Coverage Report

Created: 2025-11-01 07:12

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/brpc/build/brpc/policy/hulu_pbrpc_meta.pb.h
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: brpc/policy/hulu_pbrpc_meta.proto
3
4
#ifndef PROTOBUF_INCLUDED_brpc_2fpolicy_2fhulu_5fpbrpc_5fmeta_2eproto
5
#define PROTOBUF_INCLUDED_brpc_2fpolicy_2fhulu_5fpbrpc_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_2fpolicy_2fhulu_5fpbrpc_5fmeta_2eproto 
36
37
namespace protobuf_brpc_2fpolicy_2fhulu_5fpbrpc_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[2];
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_2fpolicy_2fhulu_5fpbrpc_5fmeta_2eproto
49
namespace brpc {
50
namespace policy {
51
class HuluRpcRequestMeta;
52
class HuluRpcRequestMetaDefaultTypeInternal;
53
extern HuluRpcRequestMetaDefaultTypeInternal _HuluRpcRequestMeta_default_instance_;
54
class HuluRpcResponseMeta;
55
class HuluRpcResponseMetaDefaultTypeInternal;
56
extern HuluRpcResponseMetaDefaultTypeInternal _HuluRpcResponseMeta_default_instance_;
57
}  // namespace policy
58
}  // namespace brpc
59
namespace google {
60
namespace protobuf {
61
template<> ::brpc::policy::HuluRpcRequestMeta* Arena::CreateMaybeMessage<::brpc::policy::HuluRpcRequestMeta>(Arena*);
62
template<> ::brpc::policy::HuluRpcResponseMeta* Arena::CreateMaybeMessage<::brpc::policy::HuluRpcResponseMeta>(Arena*);
63
}  // namespace protobuf
64
}  // namespace google
65
namespace brpc {
66
namespace policy {
67
68
// ===================================================================
69
70
class HuluRpcRequestMeta : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:brpc.policy.HuluRpcRequestMeta) */ {
71
 public:
72
  HuluRpcRequestMeta();
73
  virtual ~HuluRpcRequestMeta();
74
75
  HuluRpcRequestMeta(const HuluRpcRequestMeta& from);
76
77
0
  inline HuluRpcRequestMeta& operator=(const HuluRpcRequestMeta& from) {
78
0
    CopyFrom(from);
79
0
    return *this;
80
0
  }
81
  #if LANG_CXX11
82
  HuluRpcRequestMeta(HuluRpcRequestMeta&& from) noexcept
83
0
    : HuluRpcRequestMeta() {
84
0
    *this = ::std::move(from);
85
0
  }
86
87
0
  inline HuluRpcRequestMeta& operator=(HuluRpcRequestMeta&& from) noexcept {
88
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
89
0
      if (this != &from) InternalSwap(&from);
90
0
    } else {
91
0
      CopyFrom(from);
92
0
    }
93
0
    return *this;
94
0
  }
95
  #endif
96
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
97
0
    return _internal_metadata_.unknown_fields();
98
0
  }
99
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
100
0
    return _internal_metadata_.mutable_unknown_fields();
101
0
  }
102
103
  static const ::google::protobuf::Descriptor* descriptor();
104
  static const HuluRpcRequestMeta& default_instance();
105
106
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
107
0
  static inline const HuluRpcRequestMeta* internal_default_instance() {
108
0
    return reinterpret_cast<const HuluRpcRequestMeta*>(
109
0
               &_HuluRpcRequestMeta_default_instance_);
110
0
  }
111
  static constexpr int kIndexInFileMessages =
112
    0;
113
114
  void Swap(HuluRpcRequestMeta* other);
115
0
  friend void swap(HuluRpcRequestMeta& a, HuluRpcRequestMeta& b) {
116
0
    a.Swap(&b);
117
0
  }
118
119
  // implements Message ----------------------------------------------
120
121
0
  inline HuluRpcRequestMeta* New() const final {
122
0
    return CreateMaybeMessage<HuluRpcRequestMeta>(NULL);
123
0
  }
124
125
0
  HuluRpcRequestMeta* New(::google::protobuf::Arena* arena) const final {
126
0
    return CreateMaybeMessage<HuluRpcRequestMeta>(arena);
127
0
  }
128
  void CopyFrom(const ::google::protobuf::Message& from) final;
129
  void MergeFrom(const ::google::protobuf::Message& from) final;
130
  void CopyFrom(const HuluRpcRequestMeta& from);
131
  void MergeFrom(const HuluRpcRequestMeta& from);
132
  void Clear() final;
133
  bool IsInitialized() const final;
134
135
  size_t ByteSizeLong() const final;
136
  bool MergePartialFromCodedStream(
137
      ::google::protobuf::io::CodedInputStream* input) final;
138
  void SerializeWithCachedSizes(
139
      ::google::protobuf::io::CodedOutputStream* output) const final;
140
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
141
      bool deterministic, ::google::protobuf::uint8* target) const final;
142
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
143
144
  private:
145
  void SharedCtor();
146
  void SharedDtor();
147
  void SetCachedSize(int size) const final;
148
  void InternalSwap(HuluRpcRequestMeta* other);
149
  private:
150
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
151
0
    return NULL;
152
0
  }
153
0
  inline void* MaybeArenaPtr() const {
154
0
    return NULL;
155
0
  }
156
  public:
157
158
  ::google::protobuf::Metadata GetMetadata() const final;
159
160
  // nested types ----------------------------------------------------
161
162
  // accessors -------------------------------------------------------
163
164
  // required string service_name = 1;
165
  bool has_service_name() const;
166
  void clear_service_name();
167
  static const int kServiceNameFieldNumber = 1;
168
  const ::std::string& service_name() const;
169
  void set_service_name(const ::std::string& value);
170
  #if LANG_CXX11
171
  void set_service_name(::std::string&& value);
172
  #endif
173
  void set_service_name(const char* value);
174
  void set_service_name(const char* value, size_t size);
175
  ::std::string* mutable_service_name();
176
  ::std::string* release_service_name();
177
  void set_allocated_service_name(::std::string* service_name);
178
179
  // optional bytes user_data = 11;
180
  bool has_user_data() const;
181
  void clear_user_data();
182
  static const int kUserDataFieldNumber = 11;
183
  const ::std::string& user_data() const;
184
  void set_user_data(const ::std::string& value);
185
  #if LANG_CXX11
186
  void set_user_data(::std::string&& value);
187
  #endif
188
  void set_user_data(const char* value);
189
  void set_user_data(const void* value, size_t size);
190
  ::std::string* mutable_user_data();
191
  ::std::string* release_user_data();
192
  void set_allocated_user_data(::std::string* user_data);
193
194
  // optional string method_name = 14;
195
  bool has_method_name() const;
196
  void clear_method_name();
197
  static const int kMethodNameFieldNumber = 14;
198
  const ::std::string& method_name() const;
199
  void set_method_name(const ::std::string& value);
200
  #if LANG_CXX11
201
  void set_method_name(::std::string&& value);
202
  #endif
203
  void set_method_name(const char* value);
204
  void set_method_name(const char* value, size_t size);
205
  ::std::string* mutable_method_name();
206
  ::std::string* release_method_name();
207
  void set_allocated_method_name(::std::string* method_name);
208
209
  // optional bytes credential_data = 15;
210
  bool has_credential_data() const;
211
  void clear_credential_data();
212
  static const int kCredentialDataFieldNumber = 15;
213
  const ::std::string& credential_data() const;
214
  void set_credential_data(const ::std::string& value);
215
  #if LANG_CXX11
216
  void set_credential_data(::std::string&& value);
217
  #endif
218
  void set_credential_data(const char* value);
219
  void set_credential_data(const void* value, size_t size);
220
  ::std::string* mutable_credential_data();
221
  ::std::string* release_credential_data();
222
  void set_allocated_credential_data(::std::string* credential_data);
223
224
  // optional .brpc.ChunkInfo chuck_info = 6;
225
  bool has_chuck_info() const;
226
  void clear_chuck_info();
227
  static const int kChuckInfoFieldNumber = 6;
228
  private:
229
  const ::brpc::ChunkInfo& _internal_chuck_info() const;
230
  public:
231
  const ::brpc::ChunkInfo& chuck_info() const;
232
  ::brpc::ChunkInfo* release_chuck_info();
233
  ::brpc::ChunkInfo* mutable_chuck_info();
234
  void set_allocated_chuck_info(::brpc::ChunkInfo* chuck_info);
235
236
  // required int32 method_index = 2;
237
  bool has_method_index() const;
238
  void clear_method_index();
239
  static const int kMethodIndexFieldNumber = 2;
240
  ::google::protobuf::int32 method_index() const;
241
  void set_method_index(::google::protobuf::int32 value);
242
243
  // optional int32 compress_type = 3;
244
  bool has_compress_type() const;
245
  void clear_compress_type();
246
  static const int kCompressTypeFieldNumber = 3;
247
  ::google::protobuf::int32 compress_type() const;
248
  void set_compress_type(::google::protobuf::int32 value);
249
250
  // optional int64 correlation_id = 4;
251
  bool has_correlation_id() const;
252
  void clear_correlation_id();
253
  static const int kCorrelationIdFieldNumber = 4;
254
  ::google::protobuf::int64 correlation_id() const;
255
  void set_correlation_id(::google::protobuf::int64 value);
256
257
  // optional int64 log_id = 5;
258
  bool has_log_id() const;
259
  void clear_log_id();
260
  static const int kLogIdFieldNumber = 5;
261
  ::google::protobuf::int64 log_id() const;
262
  void set_log_id(::google::protobuf::int64 value);
263
264
  // optional int64 trace_id = 7;
265
  bool has_trace_id() const;
266
  void clear_trace_id();
267
  static const int kTraceIdFieldNumber = 7;
268
  ::google::protobuf::int64 trace_id() const;
269
  void set_trace_id(::google::protobuf::int64 value);
270
271
  // optional int64 parent_span_id = 8;
272
  bool has_parent_span_id() const;
273
  void clear_parent_span_id();
274
  static const int kParentSpanIdFieldNumber = 8;
275
  ::google::protobuf::int64 parent_span_id() const;
276
  void set_parent_span_id(::google::protobuf::int64 value);
277
278
  // optional int64 span_id = 9;
279
  bool has_span_id() const;
280
  void clear_span_id();
281
  static const int kSpanIdFieldNumber = 9;
282
  ::google::protobuf::int64 span_id() const;
283
  void set_span_id(::google::protobuf::int64 value);
284
285
  // optional .brpc.TalkType request_talk_type = 10;
286
  bool has_request_talk_type() const;
287
  void clear_request_talk_type();
288
  static const int kRequestTalkTypeFieldNumber = 10;
289
  ::brpc::TalkType request_talk_type() const;
290
  void set_request_talk_type(::brpc::TalkType value);
291
292
  // optional int32 user_message_size = 12;
293
  bool has_user_message_size() const;
294
  void clear_user_message_size();
295
  static const int kUserMessageSizeFieldNumber = 12;
296
  ::google::protobuf::int32 user_message_size() const;
297
  void set_user_message_size(::google::protobuf::int32 value);
298
299
  // optional int64 user_defined_source_addr = 13;
300
  bool has_user_defined_source_addr() const;
301
  void clear_user_defined_source_addr();
302
  static const int kUserDefinedSourceAddrFieldNumber = 13;
303
  ::google::protobuf::int64 user_defined_source_addr() const;
304
  void set_user_defined_source_addr(::google::protobuf::int64 value);
305
306
  // @@protoc_insertion_point(class_scope:brpc.policy.HuluRpcRequestMeta)
307
 private:
308
  void set_has_service_name();
309
  void clear_has_service_name();
310
  void set_has_method_index();
311
  void clear_has_method_index();
312
  void set_has_compress_type();
313
  void clear_has_compress_type();
314
  void set_has_correlation_id();
315
  void clear_has_correlation_id();
316
  void set_has_log_id();
317
  void clear_has_log_id();
318
  void set_has_chuck_info();
319
  void clear_has_chuck_info();
320
  void set_has_trace_id();
321
  void clear_has_trace_id();
322
  void set_has_parent_span_id();
323
  void clear_has_parent_span_id();
324
  void set_has_span_id();
325
  void clear_has_span_id();
326
  void set_has_request_talk_type();
327
  void clear_has_request_talk_type();
328
  void set_has_user_data();
329
  void clear_has_user_data();
330
  void set_has_user_message_size();
331
  void clear_has_user_message_size();
332
  void set_has_user_defined_source_addr();
333
  void clear_has_user_defined_source_addr();
334
  void set_has_method_name();
335
  void clear_has_method_name();
336
  void set_has_credential_data();
337
  void clear_has_credential_data();
338
339
  // helper for ByteSizeLong()
340
  size_t RequiredFieldsByteSizeFallback() const;
341
342
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
343
  ::google::protobuf::internal::HasBits<1> _has_bits_;
344
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
345
  ::google::protobuf::internal::ArenaStringPtr service_name_;
346
  ::google::protobuf::internal::ArenaStringPtr user_data_;
347
  ::google::protobuf::internal::ArenaStringPtr method_name_;
348
  ::google::protobuf::internal::ArenaStringPtr credential_data_;
349
  ::brpc::ChunkInfo* chuck_info_;
350
  ::google::protobuf::int32 method_index_;
351
  ::google::protobuf::int32 compress_type_;
352
  ::google::protobuf::int64 correlation_id_;
353
  ::google::protobuf::int64 log_id_;
354
  ::google::protobuf::int64 trace_id_;
355
  ::google::protobuf::int64 parent_span_id_;
356
  ::google::protobuf::int64 span_id_;
357
  int request_talk_type_;
358
  ::google::protobuf::int32 user_message_size_;
359
  ::google::protobuf::int64 user_defined_source_addr_;
360
  friend struct ::protobuf_brpc_2fpolicy_2fhulu_5fpbrpc_5fmeta_2eproto::TableStruct;
361
};
362
// -------------------------------------------------------------------
363
364
class HuluRpcResponseMeta : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:brpc.policy.HuluRpcResponseMeta) */ {
365
 public:
366
  HuluRpcResponseMeta();
367
  virtual ~HuluRpcResponseMeta();
368
369
  HuluRpcResponseMeta(const HuluRpcResponseMeta& from);
370
371
0
  inline HuluRpcResponseMeta& operator=(const HuluRpcResponseMeta& from) {
372
0
    CopyFrom(from);
373
0
    return *this;
374
0
  }
375
  #if LANG_CXX11
376
  HuluRpcResponseMeta(HuluRpcResponseMeta&& from) noexcept
377
0
    : HuluRpcResponseMeta() {
378
0
    *this = ::std::move(from);
379
0
  }
380
381
0
  inline HuluRpcResponseMeta& operator=(HuluRpcResponseMeta&& from) noexcept {
382
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
383
0
      if (this != &from) InternalSwap(&from);
384
0
    } else {
385
0
      CopyFrom(from);
386
0
    }
387
0
    return *this;
388
0
  }
389
  #endif
390
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
391
0
    return _internal_metadata_.unknown_fields();
392
0
  }
393
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
394
0
    return _internal_metadata_.mutable_unknown_fields();
395
0
  }
396
397
  static const ::google::protobuf::Descriptor* descriptor();
398
  static const HuluRpcResponseMeta& default_instance();
399
400
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
401
0
  static inline const HuluRpcResponseMeta* internal_default_instance() {
402
0
    return reinterpret_cast<const HuluRpcResponseMeta*>(
403
0
               &_HuluRpcResponseMeta_default_instance_);
404
0
  }
405
  static constexpr int kIndexInFileMessages =
406
    1;
407
408
  void Swap(HuluRpcResponseMeta* other);
409
0
  friend void swap(HuluRpcResponseMeta& a, HuluRpcResponseMeta& b) {
410
0
    a.Swap(&b);
411
0
  }
412
413
  // implements Message ----------------------------------------------
414
415
0
  inline HuluRpcResponseMeta* New() const final {
416
0
    return CreateMaybeMessage<HuluRpcResponseMeta>(NULL);
417
0
  }
418
419
0
  HuluRpcResponseMeta* New(::google::protobuf::Arena* arena) const final {
420
0
    return CreateMaybeMessage<HuluRpcResponseMeta>(arena);
421
0
  }
422
  void CopyFrom(const ::google::protobuf::Message& from) final;
423
  void MergeFrom(const ::google::protobuf::Message& from) final;
424
  void CopyFrom(const HuluRpcResponseMeta& from);
425
  void MergeFrom(const HuluRpcResponseMeta& from);
426
  void Clear() final;
427
  bool IsInitialized() const final;
428
429
  size_t ByteSizeLong() const final;
430
  bool MergePartialFromCodedStream(
431
      ::google::protobuf::io::CodedInputStream* input) final;
432
  void SerializeWithCachedSizes(
433
      ::google::protobuf::io::CodedOutputStream* output) const final;
434
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
435
      bool deterministic, ::google::protobuf::uint8* target) const final;
436
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
437
438
  private:
439
  void SharedCtor();
440
  void SharedDtor();
441
  void SetCachedSize(int size) const final;
442
  void InternalSwap(HuluRpcResponseMeta* other);
443
  private:
444
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
445
0
    return NULL;
446
0
  }
447
0
  inline void* MaybeArenaPtr() const {
448
0
    return NULL;
449
0
  }
450
  public:
451
452
  ::google::protobuf::Metadata GetMetadata() const final;
453
454
  // nested types ----------------------------------------------------
455
456
  // accessors -------------------------------------------------------
457
458
  // optional string error_text = 2;
459
  bool has_error_text() const;
460
  void clear_error_text();
461
  static const int kErrorTextFieldNumber = 2;
462
  const ::std::string& error_text() const;
463
  void set_error_text(const ::std::string& value);
464
  #if LANG_CXX11
465
  void set_error_text(::std::string&& value);
466
  #endif
467
  void set_error_text(const char* value);
468
  void set_error_text(const char* value, size_t size);
469
  ::std::string* mutable_error_text();
470
  ::std::string* release_error_text();
471
  void set_allocated_error_text(::std::string* error_text);
472
473
  // optional bytes user_data = 7;
474
  bool has_user_data() const;
475
  void clear_user_data();
476
  static const int kUserDataFieldNumber = 7;
477
  const ::std::string& user_data() const;
478
  void set_user_data(const ::std::string& value);
479
  #if LANG_CXX11
480
  void set_user_data(::std::string&& value);
481
  #endif
482
  void set_user_data(const char* value);
483
  void set_user_data(const void* value, size_t size);
484
  ::std::string* mutable_user_data();
485
  ::std::string* release_user_data();
486
  void set_allocated_user_data(::std::string* user_data);
487
488
  // optional .brpc.ChunkInfo chuck_info = 5;
489
  bool has_chuck_info() const;
490
  void clear_chuck_info();
491
  static const int kChuckInfoFieldNumber = 5;
492
  private:
493
  const ::brpc::ChunkInfo& _internal_chuck_info() const;
494
  public:
495
  const ::brpc::ChunkInfo& chuck_info() const;
496
  ::brpc::ChunkInfo* release_chuck_info();
497
  ::brpc::ChunkInfo* mutable_chuck_info();
498
  void set_allocated_chuck_info(::brpc::ChunkInfo* chuck_info);
499
500
  // optional int32 error_code = 1;
501
  bool has_error_code() const;
502
  void clear_error_code();
503
  static const int kErrorCodeFieldNumber = 1;
504
  ::google::protobuf::int32 error_code() const;
505
  void set_error_code(::google::protobuf::int32 value);
506
507
  // optional int32 compress_type = 4;
508
  bool has_compress_type() const;
509
  void clear_compress_type();
510
  static const int kCompressTypeFieldNumber = 4;
511
  ::google::protobuf::int32 compress_type() const;
512
  void set_compress_type(::google::protobuf::int32 value);
513
514
  // optional sint64 correlation_id = 3;
515
  bool has_correlation_id() const;
516
  void clear_correlation_id();
517
  static const int kCorrelationIdFieldNumber = 3;
518
  ::google::protobuf::int64 correlation_id() const;
519
  void set_correlation_id(::google::protobuf::int64 value);
520
521
  // optional .brpc.TalkType response_talk_type = 6;
522
  bool has_response_talk_type() const;
523
  void clear_response_talk_type();
524
  static const int kResponseTalkTypeFieldNumber = 6;
525
  ::brpc::TalkType response_talk_type() const;
526
  void set_response_talk_type(::brpc::TalkType value);
527
528
  // optional int32 user_message_size = 8;
529
  bool has_user_message_size() const;
530
  void clear_user_message_size();
531
  static const int kUserMessageSizeFieldNumber = 8;
532
  ::google::protobuf::int32 user_message_size() const;
533
  void set_user_message_size(::google::protobuf::int32 value);
534
535
  // optional int64 user_defined_source_addr = 9;
536
  bool has_user_defined_source_addr() const;
537
  void clear_user_defined_source_addr();
538
  static const int kUserDefinedSourceAddrFieldNumber = 9;
539
  ::google::protobuf::int64 user_defined_source_addr() const;
540
  void set_user_defined_source_addr(::google::protobuf::int64 value);
541
542
  // @@protoc_insertion_point(class_scope:brpc.policy.HuluRpcResponseMeta)
543
 private:
544
  void set_has_error_code();
545
  void clear_has_error_code();
546
  void set_has_error_text();
547
  void clear_has_error_text();
548
  void set_has_correlation_id();
549
  void clear_has_correlation_id();
550
  void set_has_compress_type();
551
  void clear_has_compress_type();
552
  void set_has_chuck_info();
553
  void clear_has_chuck_info();
554
  void set_has_response_talk_type();
555
  void clear_has_response_talk_type();
556
  void set_has_user_data();
557
  void clear_has_user_data();
558
  void set_has_user_message_size();
559
  void clear_has_user_message_size();
560
  void set_has_user_defined_source_addr();
561
  void clear_has_user_defined_source_addr();
562
563
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
564
  ::google::protobuf::internal::HasBits<1> _has_bits_;
565
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
566
  ::google::protobuf::internal::ArenaStringPtr error_text_;
567
  ::google::protobuf::internal::ArenaStringPtr user_data_;
568
  ::brpc::ChunkInfo* chuck_info_;
569
  ::google::protobuf::int32 error_code_;
570
  ::google::protobuf::int32 compress_type_;
571
  ::google::protobuf::int64 correlation_id_;
572
  int response_talk_type_;
573
  ::google::protobuf::int32 user_message_size_;
574
  ::google::protobuf::int64 user_defined_source_addr_;
575
  friend struct ::protobuf_brpc_2fpolicy_2fhulu_5fpbrpc_5fmeta_2eproto::TableStruct;
576
};
577
// ===================================================================
578
579
580
// ===================================================================
581
582
#ifdef __GNUC__
583
  #pragma GCC diagnostic push
584
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
585
#endif  // __GNUC__
586
// HuluRpcRequestMeta
587
588
// required string service_name = 1;
589
0
inline bool HuluRpcRequestMeta::has_service_name() const {
590
0
  return (_has_bits_[0] & 0x00000001u) != 0;
591
0
}
592
0
inline void HuluRpcRequestMeta::set_has_service_name() {
593
0
  _has_bits_[0] |= 0x00000001u;
594
0
}
595
0
inline void HuluRpcRequestMeta::clear_has_service_name() {
596
0
  _has_bits_[0] &= ~0x00000001u;
597
0
}
598
0
inline void HuluRpcRequestMeta::clear_service_name() {
599
0
  service_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
600
0
  clear_has_service_name();
601
0
}
602
0
inline const ::std::string& HuluRpcRequestMeta::service_name() const {
603
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.service_name)
604
0
  return service_name_.GetNoArena();
605
0
}
606
0
inline void HuluRpcRequestMeta::set_service_name(const ::std::string& value) {
607
0
  set_has_service_name();
608
0
  service_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
609
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.service_name)
610
0
}
611
#if LANG_CXX11
612
0
inline void HuluRpcRequestMeta::set_service_name(::std::string&& value) {
613
0
  set_has_service_name();
614
0
  service_name_.SetNoArena(
615
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
616
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.HuluRpcRequestMeta.service_name)
617
0
}
618
#endif
619
0
inline void HuluRpcRequestMeta::set_service_name(const char* value) {
620
0
  GOOGLE_DCHECK(value != NULL);
621
0
  set_has_service_name();
622
0
  service_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
623
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.HuluRpcRequestMeta.service_name)
624
0
}
625
0
inline void HuluRpcRequestMeta::set_service_name(const char* value, size_t size) {
626
0
  set_has_service_name();
627
0
  service_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
628
0
      ::std::string(reinterpret_cast<const char*>(value), size));
629
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.HuluRpcRequestMeta.service_name)
630
0
}
631
0
inline ::std::string* HuluRpcRequestMeta::mutable_service_name() {
632
0
  set_has_service_name();
633
  // @@protoc_insertion_point(field_mutable:brpc.policy.HuluRpcRequestMeta.service_name)
634
0
  return service_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
635
0
}
636
0
inline ::std::string* HuluRpcRequestMeta::release_service_name() {
637
0
  // @@protoc_insertion_point(field_release:brpc.policy.HuluRpcRequestMeta.service_name)
638
0
  if (!has_service_name()) {
639
0
    return NULL;
640
0
  }
641
0
  clear_has_service_name();
642
0
  return service_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
643
0
}
644
0
inline void HuluRpcRequestMeta::set_allocated_service_name(::std::string* service_name) {
645
0
  if (service_name != NULL) {
646
0
    set_has_service_name();
647
0
  } else {
648
0
    clear_has_service_name();
649
0
  }
650
0
  service_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), service_name);
651
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.HuluRpcRequestMeta.service_name)
652
0
}
653
654
// required int32 method_index = 2;
655
0
inline bool HuluRpcRequestMeta::has_method_index() const {
656
0
  return (_has_bits_[0] & 0x00000020u) != 0;
657
0
}
658
0
inline void HuluRpcRequestMeta::set_has_method_index() {
659
0
  _has_bits_[0] |= 0x00000020u;
660
0
}
661
0
inline void HuluRpcRequestMeta::clear_has_method_index() {
662
0
  _has_bits_[0] &= ~0x00000020u;
663
0
}
664
0
inline void HuluRpcRequestMeta::clear_method_index() {
665
0
  method_index_ = 0;
666
0
  clear_has_method_index();
667
0
}
668
0
inline ::google::protobuf::int32 HuluRpcRequestMeta::method_index() const {
669
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.method_index)
670
0
  return method_index_;
671
0
}
672
0
inline void HuluRpcRequestMeta::set_method_index(::google::protobuf::int32 value) {
673
0
  set_has_method_index();
674
0
  method_index_ = value;
675
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.method_index)
676
0
}
677
678
// optional int32 compress_type = 3;
679
0
inline bool HuluRpcRequestMeta::has_compress_type() const {
680
0
  return (_has_bits_[0] & 0x00000040u) != 0;
681
0
}
682
0
inline void HuluRpcRequestMeta::set_has_compress_type() {
683
0
  _has_bits_[0] |= 0x00000040u;
684
0
}
685
0
inline void HuluRpcRequestMeta::clear_has_compress_type() {
686
0
  _has_bits_[0] &= ~0x00000040u;
687
0
}
688
0
inline void HuluRpcRequestMeta::clear_compress_type() {
689
0
  compress_type_ = 0;
690
0
  clear_has_compress_type();
691
0
}
692
0
inline ::google::protobuf::int32 HuluRpcRequestMeta::compress_type() const {
693
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.compress_type)
694
0
  return compress_type_;
695
0
}
696
0
inline void HuluRpcRequestMeta::set_compress_type(::google::protobuf::int32 value) {
697
0
  set_has_compress_type();
698
0
  compress_type_ = value;
699
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.compress_type)
700
0
}
701
702
// optional int64 correlation_id = 4;
703
0
inline bool HuluRpcRequestMeta::has_correlation_id() const {
704
0
  return (_has_bits_[0] & 0x00000080u) != 0;
705
0
}
706
0
inline void HuluRpcRequestMeta::set_has_correlation_id() {
707
0
  _has_bits_[0] |= 0x00000080u;
708
0
}
709
0
inline void HuluRpcRequestMeta::clear_has_correlation_id() {
710
0
  _has_bits_[0] &= ~0x00000080u;
711
0
}
712
0
inline void HuluRpcRequestMeta::clear_correlation_id() {
713
0
  correlation_id_ = GOOGLE_LONGLONG(0);
714
0
  clear_has_correlation_id();
715
0
}
716
0
inline ::google::protobuf::int64 HuluRpcRequestMeta::correlation_id() const {
717
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.correlation_id)
718
0
  return correlation_id_;
719
0
}
720
0
inline void HuluRpcRequestMeta::set_correlation_id(::google::protobuf::int64 value) {
721
0
  set_has_correlation_id();
722
0
  correlation_id_ = value;
723
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.correlation_id)
724
0
}
725
726
// optional int64 log_id = 5;
727
0
inline bool HuluRpcRequestMeta::has_log_id() const {
728
0
  return (_has_bits_[0] & 0x00000100u) != 0;
729
0
}
730
0
inline void HuluRpcRequestMeta::set_has_log_id() {
731
0
  _has_bits_[0] |= 0x00000100u;
732
0
}
733
0
inline void HuluRpcRequestMeta::clear_has_log_id() {
734
0
  _has_bits_[0] &= ~0x00000100u;
735
0
}
736
0
inline void HuluRpcRequestMeta::clear_log_id() {
737
0
  log_id_ = GOOGLE_LONGLONG(0);
738
0
  clear_has_log_id();
739
0
}
740
0
inline ::google::protobuf::int64 HuluRpcRequestMeta::log_id() const {
741
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.log_id)
742
0
  return log_id_;
743
0
}
744
0
inline void HuluRpcRequestMeta::set_log_id(::google::protobuf::int64 value) {
745
0
  set_has_log_id();
746
0
  log_id_ = value;
747
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.log_id)
748
0
}
749
750
// optional .brpc.ChunkInfo chuck_info = 6;
751
0
inline bool HuluRpcRequestMeta::has_chuck_info() const {
752
0
  return (_has_bits_[0] & 0x00000010u) != 0;
753
0
}
754
0
inline void HuluRpcRequestMeta::set_has_chuck_info() {
755
0
  _has_bits_[0] |= 0x00000010u;
756
0
}
757
0
inline void HuluRpcRequestMeta::clear_has_chuck_info() {
758
0
  _has_bits_[0] &= ~0x00000010u;
759
0
}
760
0
inline const ::brpc::ChunkInfo& HuluRpcRequestMeta::_internal_chuck_info() const {
761
0
  return *chuck_info_;
762
0
}
763
0
inline const ::brpc::ChunkInfo& HuluRpcRequestMeta::chuck_info() const {
764
0
  const ::brpc::ChunkInfo* p = chuck_info_;
765
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.chuck_info)
766
0
  return p != NULL ? *p : *reinterpret_cast<const ::brpc::ChunkInfo*>(
767
0
      &::brpc::_ChunkInfo_default_instance_);
768
0
}
769
0
inline ::brpc::ChunkInfo* HuluRpcRequestMeta::release_chuck_info() {
770
0
  // @@protoc_insertion_point(field_release:brpc.policy.HuluRpcRequestMeta.chuck_info)
771
0
  clear_has_chuck_info();
772
0
  ::brpc::ChunkInfo* temp = chuck_info_;
773
0
  chuck_info_ = NULL;
774
0
  return temp;
775
0
}
776
0
inline ::brpc::ChunkInfo* HuluRpcRequestMeta::mutable_chuck_info() {
777
0
  set_has_chuck_info();
778
0
  if (chuck_info_ == NULL) {
779
0
    auto* p = CreateMaybeMessage<::brpc::ChunkInfo>(GetArenaNoVirtual());
780
0
    chuck_info_ = p;
781
0
  }
782
  // @@protoc_insertion_point(field_mutable:brpc.policy.HuluRpcRequestMeta.chuck_info)
783
0
  return chuck_info_;
784
0
}
785
0
inline void HuluRpcRequestMeta::set_allocated_chuck_info(::brpc::ChunkInfo* chuck_info) {
786
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
787
0
  if (message_arena == NULL) {
788
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(chuck_info_);
789
0
  }
790
0
  if (chuck_info) {
791
0
    ::google::protobuf::Arena* submessage_arena = NULL;
792
0
    if (message_arena != submessage_arena) {
793
0
      chuck_info = ::google::protobuf::internal::GetOwnedMessage(
794
0
          message_arena, chuck_info, submessage_arena);
795
0
    }
796
0
    set_has_chuck_info();
797
0
  } else {
798
0
    clear_has_chuck_info();
799
0
  }
800
0
  chuck_info_ = chuck_info;
801
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.HuluRpcRequestMeta.chuck_info)
802
0
}
803
804
// optional int64 trace_id = 7;
805
0
inline bool HuluRpcRequestMeta::has_trace_id() const {
806
0
  return (_has_bits_[0] & 0x00000200u) != 0;
807
0
}
808
0
inline void HuluRpcRequestMeta::set_has_trace_id() {
809
0
  _has_bits_[0] |= 0x00000200u;
810
0
}
811
0
inline void HuluRpcRequestMeta::clear_has_trace_id() {
812
0
  _has_bits_[0] &= ~0x00000200u;
813
0
}
814
0
inline void HuluRpcRequestMeta::clear_trace_id() {
815
0
  trace_id_ = GOOGLE_LONGLONG(0);
816
0
  clear_has_trace_id();
817
0
}
818
0
inline ::google::protobuf::int64 HuluRpcRequestMeta::trace_id() const {
819
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.trace_id)
820
0
  return trace_id_;
821
0
}
822
0
inline void HuluRpcRequestMeta::set_trace_id(::google::protobuf::int64 value) {
823
0
  set_has_trace_id();
824
0
  trace_id_ = value;
825
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.trace_id)
826
0
}
827
828
// optional int64 parent_span_id = 8;
829
0
inline bool HuluRpcRequestMeta::has_parent_span_id() const {
830
0
  return (_has_bits_[0] & 0x00000400u) != 0;
831
0
}
832
0
inline void HuluRpcRequestMeta::set_has_parent_span_id() {
833
0
  _has_bits_[0] |= 0x00000400u;
834
0
}
835
0
inline void HuluRpcRequestMeta::clear_has_parent_span_id() {
836
0
  _has_bits_[0] &= ~0x00000400u;
837
0
}
838
0
inline void HuluRpcRequestMeta::clear_parent_span_id() {
839
0
  parent_span_id_ = GOOGLE_LONGLONG(0);
840
0
  clear_has_parent_span_id();
841
0
}
842
0
inline ::google::protobuf::int64 HuluRpcRequestMeta::parent_span_id() const {
843
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.parent_span_id)
844
0
  return parent_span_id_;
845
0
}
846
0
inline void HuluRpcRequestMeta::set_parent_span_id(::google::protobuf::int64 value) {
847
0
  set_has_parent_span_id();
848
0
  parent_span_id_ = value;
849
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.parent_span_id)
850
0
}
851
852
// optional int64 span_id = 9;
853
0
inline bool HuluRpcRequestMeta::has_span_id() const {
854
0
  return (_has_bits_[0] & 0x00000800u) != 0;
855
0
}
856
0
inline void HuluRpcRequestMeta::set_has_span_id() {
857
0
  _has_bits_[0] |= 0x00000800u;
858
0
}
859
0
inline void HuluRpcRequestMeta::clear_has_span_id() {
860
0
  _has_bits_[0] &= ~0x00000800u;
861
0
}
862
0
inline void HuluRpcRequestMeta::clear_span_id() {
863
0
  span_id_ = GOOGLE_LONGLONG(0);
864
0
  clear_has_span_id();
865
0
}
866
0
inline ::google::protobuf::int64 HuluRpcRequestMeta::span_id() const {
867
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.span_id)
868
0
  return span_id_;
869
0
}
870
0
inline void HuluRpcRequestMeta::set_span_id(::google::protobuf::int64 value) {
871
0
  set_has_span_id();
872
0
  span_id_ = value;
873
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.span_id)
874
0
}
875
876
// optional .brpc.TalkType request_talk_type = 10;
877
0
inline bool HuluRpcRequestMeta::has_request_talk_type() const {
878
0
  return (_has_bits_[0] & 0x00001000u) != 0;
879
0
}
880
0
inline void HuluRpcRequestMeta::set_has_request_talk_type() {
881
0
  _has_bits_[0] |= 0x00001000u;
882
0
}
883
0
inline void HuluRpcRequestMeta::clear_has_request_talk_type() {
884
0
  _has_bits_[0] &= ~0x00001000u;
885
0
}
886
0
inline void HuluRpcRequestMeta::clear_request_talk_type() {
887
0
  request_talk_type_ = 0;
888
0
  clear_has_request_talk_type();
889
0
}
890
0
inline ::brpc::TalkType HuluRpcRequestMeta::request_talk_type() const {
891
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.request_talk_type)
892
0
  return static_cast< ::brpc::TalkType >(request_talk_type_);
893
0
}
894
0
inline void HuluRpcRequestMeta::set_request_talk_type(::brpc::TalkType value) {
895
0
  assert(::brpc::TalkType_IsValid(value));
896
0
  set_has_request_talk_type();
897
0
  request_talk_type_ = value;
898
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.request_talk_type)
899
0
}
900
901
// optional bytes user_data = 11;
902
0
inline bool HuluRpcRequestMeta::has_user_data() const {
903
0
  return (_has_bits_[0] & 0x00000002u) != 0;
904
0
}
905
0
inline void HuluRpcRequestMeta::set_has_user_data() {
906
0
  _has_bits_[0] |= 0x00000002u;
907
0
}
908
0
inline void HuluRpcRequestMeta::clear_has_user_data() {
909
0
  _has_bits_[0] &= ~0x00000002u;
910
0
}
911
0
inline void HuluRpcRequestMeta::clear_user_data() {
912
0
  user_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
913
0
  clear_has_user_data();
914
0
}
915
0
inline const ::std::string& HuluRpcRequestMeta::user_data() const {
916
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.user_data)
917
0
  return user_data_.GetNoArena();
918
0
}
919
0
inline void HuluRpcRequestMeta::set_user_data(const ::std::string& value) {
920
0
  set_has_user_data();
921
0
  user_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
922
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.user_data)
923
0
}
924
#if LANG_CXX11
925
0
inline void HuluRpcRequestMeta::set_user_data(::std::string&& value) {
926
0
  set_has_user_data();
927
0
  user_data_.SetNoArena(
928
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
929
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.HuluRpcRequestMeta.user_data)
930
0
}
931
#endif
932
0
inline void HuluRpcRequestMeta::set_user_data(const char* value) {
933
0
  GOOGLE_DCHECK(value != NULL);
934
0
  set_has_user_data();
935
0
  user_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
936
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.HuluRpcRequestMeta.user_data)
937
0
}
938
0
inline void HuluRpcRequestMeta::set_user_data(const void* value, size_t size) {
939
0
  set_has_user_data();
940
0
  user_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
941
0
      ::std::string(reinterpret_cast<const char*>(value), size));
942
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.HuluRpcRequestMeta.user_data)
943
0
}
944
0
inline ::std::string* HuluRpcRequestMeta::mutable_user_data() {
945
0
  set_has_user_data();
946
  // @@protoc_insertion_point(field_mutable:brpc.policy.HuluRpcRequestMeta.user_data)
947
0
  return user_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
948
0
}
949
0
inline ::std::string* HuluRpcRequestMeta::release_user_data() {
950
0
  // @@protoc_insertion_point(field_release:brpc.policy.HuluRpcRequestMeta.user_data)
951
0
  if (!has_user_data()) {
952
0
    return NULL;
953
0
  }
954
0
  clear_has_user_data();
955
0
  return user_data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
956
0
}
957
0
inline void HuluRpcRequestMeta::set_allocated_user_data(::std::string* user_data) {
958
0
  if (user_data != NULL) {
959
0
    set_has_user_data();
960
0
  } else {
961
0
    clear_has_user_data();
962
0
  }
963
0
  user_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user_data);
964
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.HuluRpcRequestMeta.user_data)
965
0
}
966
967
// optional int32 user_message_size = 12;
968
0
inline bool HuluRpcRequestMeta::has_user_message_size() const {
969
0
  return (_has_bits_[0] & 0x00002000u) != 0;
970
0
}
971
0
inline void HuluRpcRequestMeta::set_has_user_message_size() {
972
0
  _has_bits_[0] |= 0x00002000u;
973
0
}
974
0
inline void HuluRpcRequestMeta::clear_has_user_message_size() {
975
0
  _has_bits_[0] &= ~0x00002000u;
976
0
}
977
0
inline void HuluRpcRequestMeta::clear_user_message_size() {
978
0
  user_message_size_ = 0;
979
0
  clear_has_user_message_size();
980
0
}
981
0
inline ::google::protobuf::int32 HuluRpcRequestMeta::user_message_size() const {
982
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.user_message_size)
983
0
  return user_message_size_;
984
0
}
985
0
inline void HuluRpcRequestMeta::set_user_message_size(::google::protobuf::int32 value) {
986
0
  set_has_user_message_size();
987
0
  user_message_size_ = value;
988
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.user_message_size)
989
0
}
990
991
// optional int64 user_defined_source_addr = 13;
992
0
inline bool HuluRpcRequestMeta::has_user_defined_source_addr() const {
993
0
  return (_has_bits_[0] & 0x00004000u) != 0;
994
0
}
995
0
inline void HuluRpcRequestMeta::set_has_user_defined_source_addr() {
996
0
  _has_bits_[0] |= 0x00004000u;
997
0
}
998
0
inline void HuluRpcRequestMeta::clear_has_user_defined_source_addr() {
999
0
  _has_bits_[0] &= ~0x00004000u;
1000
0
}
1001
0
inline void HuluRpcRequestMeta::clear_user_defined_source_addr() {
1002
0
  user_defined_source_addr_ = GOOGLE_LONGLONG(0);
1003
0
  clear_has_user_defined_source_addr();
1004
0
}
1005
0
inline ::google::protobuf::int64 HuluRpcRequestMeta::user_defined_source_addr() const {
1006
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.user_defined_source_addr)
1007
0
  return user_defined_source_addr_;
1008
0
}
1009
0
inline void HuluRpcRequestMeta::set_user_defined_source_addr(::google::protobuf::int64 value) {
1010
0
  set_has_user_defined_source_addr();
1011
0
  user_defined_source_addr_ = value;
1012
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.user_defined_source_addr)
1013
0
}
1014
1015
// optional string method_name = 14;
1016
0
inline bool HuluRpcRequestMeta::has_method_name() const {
1017
0
  return (_has_bits_[0] & 0x00000004u) != 0;
1018
0
}
1019
0
inline void HuluRpcRequestMeta::set_has_method_name() {
1020
0
  _has_bits_[0] |= 0x00000004u;
1021
0
}
1022
0
inline void HuluRpcRequestMeta::clear_has_method_name() {
1023
0
  _has_bits_[0] &= ~0x00000004u;
1024
0
}
1025
0
inline void HuluRpcRequestMeta::clear_method_name() {
1026
0
  method_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1027
0
  clear_has_method_name();
1028
0
}
1029
0
inline const ::std::string& HuluRpcRequestMeta::method_name() const {
1030
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.method_name)
1031
0
  return method_name_.GetNoArena();
1032
0
}
1033
0
inline void HuluRpcRequestMeta::set_method_name(const ::std::string& value) {
1034
0
  set_has_method_name();
1035
0
  method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1036
0
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.method_name)
1037
0
}
1038
#if LANG_CXX11
1039
0
inline void HuluRpcRequestMeta::set_method_name(::std::string&& value) {
1040
0
  set_has_method_name();
1041
0
  method_name_.SetNoArena(
1042
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1043
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.HuluRpcRequestMeta.method_name)
1044
0
}
1045
#endif
1046
0
inline void HuluRpcRequestMeta::set_method_name(const char* value) {
1047
0
  GOOGLE_DCHECK(value != NULL);
1048
0
  set_has_method_name();
1049
0
  method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1050
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.HuluRpcRequestMeta.method_name)
1051
0
}
1052
0
inline void HuluRpcRequestMeta::set_method_name(const char* value, size_t size) {
1053
0
  set_has_method_name();
1054
0
  method_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1055
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1056
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.HuluRpcRequestMeta.method_name)
1057
0
}
1058
0
inline ::std::string* HuluRpcRequestMeta::mutable_method_name() {
1059
0
  set_has_method_name();
1060
  // @@protoc_insertion_point(field_mutable:brpc.policy.HuluRpcRequestMeta.method_name)
1061
0
  return method_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1062
0
}
1063
0
inline ::std::string* HuluRpcRequestMeta::release_method_name() {
1064
0
  // @@protoc_insertion_point(field_release:brpc.policy.HuluRpcRequestMeta.method_name)
1065
0
  if (!has_method_name()) {
1066
0
    return NULL;
1067
0
  }
1068
0
  clear_has_method_name();
1069
0
  return method_name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1070
0
}
1071
0
inline void HuluRpcRequestMeta::set_allocated_method_name(::std::string* method_name) {
1072
0
  if (method_name != NULL) {
1073
0
    set_has_method_name();
1074
0
  } else {
1075
0
    clear_has_method_name();
1076
0
  }
1077
0
  method_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), method_name);
1078
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.HuluRpcRequestMeta.method_name)
1079
0
}
1080
1081
// optional bytes credential_data = 15;
1082
0
inline bool HuluRpcRequestMeta::has_credential_data() const {
1083
0
  return (_has_bits_[0] & 0x00000008u) != 0;
1084
0
}
1085
0
inline void HuluRpcRequestMeta::set_has_credential_data() {
1086
0
  _has_bits_[0] |= 0x00000008u;
1087
0
}
1088
0
inline void HuluRpcRequestMeta::clear_has_credential_data() {
1089
0
  _has_bits_[0] &= ~0x00000008u;
1090
0
}
1091
0
inline void HuluRpcRequestMeta::clear_credential_data() {
1092
0
  credential_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1093
0
  clear_has_credential_data();
1094
0
}
1095
0
inline const ::std::string& HuluRpcRequestMeta::credential_data() const {
1096
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcRequestMeta.credential_data)
1097
0
  return credential_data_.GetNoArena();
1098
0
}
1099
0
inline void HuluRpcRequestMeta::set_credential_data(const ::std::string& value) {
1100
0
  set_has_credential_data();
1101
0
  credential_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1102
0
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcRequestMeta.credential_data)
1103
0
}
1104
#if LANG_CXX11
1105
0
inline void HuluRpcRequestMeta::set_credential_data(::std::string&& value) {
1106
0
  set_has_credential_data();
1107
0
  credential_data_.SetNoArena(
1108
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1109
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.HuluRpcRequestMeta.credential_data)
1110
0
}
1111
#endif
1112
0
inline void HuluRpcRequestMeta::set_credential_data(const char* value) {
1113
0
  GOOGLE_DCHECK(value != NULL);
1114
0
  set_has_credential_data();
1115
0
  credential_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1116
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.HuluRpcRequestMeta.credential_data)
1117
0
}
1118
0
inline void HuluRpcRequestMeta::set_credential_data(const void* value, size_t size) {
1119
0
  set_has_credential_data();
1120
0
  credential_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1121
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1122
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.HuluRpcRequestMeta.credential_data)
1123
0
}
1124
0
inline ::std::string* HuluRpcRequestMeta::mutable_credential_data() {
1125
0
  set_has_credential_data();
1126
  // @@protoc_insertion_point(field_mutable:brpc.policy.HuluRpcRequestMeta.credential_data)
1127
0
  return credential_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1128
0
}
1129
0
inline ::std::string* HuluRpcRequestMeta::release_credential_data() {
1130
0
  // @@protoc_insertion_point(field_release:brpc.policy.HuluRpcRequestMeta.credential_data)
1131
0
  if (!has_credential_data()) {
1132
0
    return NULL;
1133
0
  }
1134
0
  clear_has_credential_data();
1135
0
  return credential_data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1136
0
}
1137
0
inline void HuluRpcRequestMeta::set_allocated_credential_data(::std::string* credential_data) {
1138
0
  if (credential_data != NULL) {
1139
0
    set_has_credential_data();
1140
0
  } else {
1141
0
    clear_has_credential_data();
1142
0
  }
1143
0
  credential_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), credential_data);
1144
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.HuluRpcRequestMeta.credential_data)
1145
0
}
1146
1147
// -------------------------------------------------------------------
1148
1149
// HuluRpcResponseMeta
1150
1151
// optional int32 error_code = 1;
1152
0
inline bool HuluRpcResponseMeta::has_error_code() const {
1153
0
  return (_has_bits_[0] & 0x00000008u) != 0;
1154
0
}
1155
0
inline void HuluRpcResponseMeta::set_has_error_code() {
1156
0
  _has_bits_[0] |= 0x00000008u;
1157
0
}
1158
0
inline void HuluRpcResponseMeta::clear_has_error_code() {
1159
0
  _has_bits_[0] &= ~0x00000008u;
1160
0
}
1161
0
inline void HuluRpcResponseMeta::clear_error_code() {
1162
0
  error_code_ = 0;
1163
0
  clear_has_error_code();
1164
0
}
1165
0
inline ::google::protobuf::int32 HuluRpcResponseMeta::error_code() const {
1166
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcResponseMeta.error_code)
1167
0
  return error_code_;
1168
0
}
1169
0
inline void HuluRpcResponseMeta::set_error_code(::google::protobuf::int32 value) {
1170
0
  set_has_error_code();
1171
0
  error_code_ = value;
1172
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcResponseMeta.error_code)
1173
0
}
1174
1175
// optional string error_text = 2;
1176
0
inline bool HuluRpcResponseMeta::has_error_text() const {
1177
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1178
0
}
1179
0
inline void HuluRpcResponseMeta::set_has_error_text() {
1180
0
  _has_bits_[0] |= 0x00000001u;
1181
0
}
1182
0
inline void HuluRpcResponseMeta::clear_has_error_text() {
1183
0
  _has_bits_[0] &= ~0x00000001u;
1184
0
}
1185
0
inline void HuluRpcResponseMeta::clear_error_text() {
1186
0
  error_text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1187
0
  clear_has_error_text();
1188
0
}
1189
0
inline const ::std::string& HuluRpcResponseMeta::error_text() const {
1190
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcResponseMeta.error_text)
1191
0
  return error_text_.GetNoArena();
1192
0
}
1193
0
inline void HuluRpcResponseMeta::set_error_text(const ::std::string& value) {
1194
0
  set_has_error_text();
1195
0
  error_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1196
0
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcResponseMeta.error_text)
1197
0
}
1198
#if LANG_CXX11
1199
0
inline void HuluRpcResponseMeta::set_error_text(::std::string&& value) {
1200
0
  set_has_error_text();
1201
0
  error_text_.SetNoArena(
1202
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1203
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.HuluRpcResponseMeta.error_text)
1204
0
}
1205
#endif
1206
0
inline void HuluRpcResponseMeta::set_error_text(const char* value) {
1207
0
  GOOGLE_DCHECK(value != NULL);
1208
0
  set_has_error_text();
1209
0
  error_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1210
  // @@protoc_insertion_point(field_set_char:brpc.policy.HuluRpcResponseMeta.error_text)
1211
0
}
1212
0
inline void HuluRpcResponseMeta::set_error_text(const char* value, size_t size) {
1213
0
  set_has_error_text();
1214
0
  error_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1215
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1216
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.HuluRpcResponseMeta.error_text)
1217
0
}
1218
0
inline ::std::string* HuluRpcResponseMeta::mutable_error_text() {
1219
0
  set_has_error_text();
1220
  // @@protoc_insertion_point(field_mutable:brpc.policy.HuluRpcResponseMeta.error_text)
1221
0
  return error_text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1222
0
}
1223
0
inline ::std::string* HuluRpcResponseMeta::release_error_text() {
1224
0
  // @@protoc_insertion_point(field_release:brpc.policy.HuluRpcResponseMeta.error_text)
1225
0
  if (!has_error_text()) {
1226
0
    return NULL;
1227
0
  }
1228
0
  clear_has_error_text();
1229
0
  return error_text_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1230
0
}
1231
0
inline void HuluRpcResponseMeta::set_allocated_error_text(::std::string* error_text) {
1232
0
  if (error_text != NULL) {
1233
0
    set_has_error_text();
1234
0
  } else {
1235
0
    clear_has_error_text();
1236
0
  }
1237
0
  error_text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_text);
1238
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.HuluRpcResponseMeta.error_text)
1239
0
}
1240
1241
// optional sint64 correlation_id = 3;
1242
0
inline bool HuluRpcResponseMeta::has_correlation_id() const {
1243
0
  return (_has_bits_[0] & 0x00000020u) != 0;
1244
0
}
1245
0
inline void HuluRpcResponseMeta::set_has_correlation_id() {
1246
0
  _has_bits_[0] |= 0x00000020u;
1247
0
}
1248
0
inline void HuluRpcResponseMeta::clear_has_correlation_id() {
1249
0
  _has_bits_[0] &= ~0x00000020u;
1250
0
}
1251
0
inline void HuluRpcResponseMeta::clear_correlation_id() {
1252
0
  correlation_id_ = GOOGLE_LONGLONG(0);
1253
0
  clear_has_correlation_id();
1254
0
}
1255
0
inline ::google::protobuf::int64 HuluRpcResponseMeta::correlation_id() const {
1256
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcResponseMeta.correlation_id)
1257
0
  return correlation_id_;
1258
0
}
1259
0
inline void HuluRpcResponseMeta::set_correlation_id(::google::protobuf::int64 value) {
1260
0
  set_has_correlation_id();
1261
0
  correlation_id_ = value;
1262
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcResponseMeta.correlation_id)
1263
0
}
1264
1265
// optional int32 compress_type = 4;
1266
0
inline bool HuluRpcResponseMeta::has_compress_type() const {
1267
0
  return (_has_bits_[0] & 0x00000010u) != 0;
1268
0
}
1269
0
inline void HuluRpcResponseMeta::set_has_compress_type() {
1270
0
  _has_bits_[0] |= 0x00000010u;
1271
0
}
1272
0
inline void HuluRpcResponseMeta::clear_has_compress_type() {
1273
0
  _has_bits_[0] &= ~0x00000010u;
1274
0
}
1275
0
inline void HuluRpcResponseMeta::clear_compress_type() {
1276
0
  compress_type_ = 0;
1277
0
  clear_has_compress_type();
1278
0
}
1279
0
inline ::google::protobuf::int32 HuluRpcResponseMeta::compress_type() const {
1280
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcResponseMeta.compress_type)
1281
0
  return compress_type_;
1282
0
}
1283
0
inline void HuluRpcResponseMeta::set_compress_type(::google::protobuf::int32 value) {
1284
0
  set_has_compress_type();
1285
0
  compress_type_ = value;
1286
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcResponseMeta.compress_type)
1287
0
}
1288
1289
// optional .brpc.ChunkInfo chuck_info = 5;
1290
0
inline bool HuluRpcResponseMeta::has_chuck_info() const {
1291
0
  return (_has_bits_[0] & 0x00000004u) != 0;
1292
0
}
1293
0
inline void HuluRpcResponseMeta::set_has_chuck_info() {
1294
0
  _has_bits_[0] |= 0x00000004u;
1295
0
}
1296
0
inline void HuluRpcResponseMeta::clear_has_chuck_info() {
1297
0
  _has_bits_[0] &= ~0x00000004u;
1298
0
}
1299
0
inline const ::brpc::ChunkInfo& HuluRpcResponseMeta::_internal_chuck_info() const {
1300
0
  return *chuck_info_;
1301
0
}
1302
0
inline const ::brpc::ChunkInfo& HuluRpcResponseMeta::chuck_info() const {
1303
0
  const ::brpc::ChunkInfo* p = chuck_info_;
1304
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcResponseMeta.chuck_info)
1305
0
  return p != NULL ? *p : *reinterpret_cast<const ::brpc::ChunkInfo*>(
1306
0
      &::brpc::_ChunkInfo_default_instance_);
1307
0
}
1308
0
inline ::brpc::ChunkInfo* HuluRpcResponseMeta::release_chuck_info() {
1309
0
  // @@protoc_insertion_point(field_release:brpc.policy.HuluRpcResponseMeta.chuck_info)
1310
0
  clear_has_chuck_info();
1311
0
  ::brpc::ChunkInfo* temp = chuck_info_;
1312
0
  chuck_info_ = NULL;
1313
0
  return temp;
1314
0
}
1315
0
inline ::brpc::ChunkInfo* HuluRpcResponseMeta::mutable_chuck_info() {
1316
0
  set_has_chuck_info();
1317
0
  if (chuck_info_ == NULL) {
1318
0
    auto* p = CreateMaybeMessage<::brpc::ChunkInfo>(GetArenaNoVirtual());
1319
0
    chuck_info_ = p;
1320
0
  }
1321
  // @@protoc_insertion_point(field_mutable:brpc.policy.HuluRpcResponseMeta.chuck_info)
1322
0
  return chuck_info_;
1323
0
}
1324
0
inline void HuluRpcResponseMeta::set_allocated_chuck_info(::brpc::ChunkInfo* chuck_info) {
1325
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1326
0
  if (message_arena == NULL) {
1327
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(chuck_info_);
1328
0
  }
1329
0
  if (chuck_info) {
1330
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1331
0
    if (message_arena != submessage_arena) {
1332
0
      chuck_info = ::google::protobuf::internal::GetOwnedMessage(
1333
0
          message_arena, chuck_info, submessage_arena);
1334
0
    }
1335
0
    set_has_chuck_info();
1336
0
  } else {
1337
0
    clear_has_chuck_info();
1338
0
  }
1339
0
  chuck_info_ = chuck_info;
1340
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.HuluRpcResponseMeta.chuck_info)
1341
0
}
1342
1343
// optional .brpc.TalkType response_talk_type = 6;
1344
0
inline bool HuluRpcResponseMeta::has_response_talk_type() const {
1345
0
  return (_has_bits_[0] & 0x00000040u) != 0;
1346
0
}
1347
0
inline void HuluRpcResponseMeta::set_has_response_talk_type() {
1348
0
  _has_bits_[0] |= 0x00000040u;
1349
0
}
1350
0
inline void HuluRpcResponseMeta::clear_has_response_talk_type() {
1351
0
  _has_bits_[0] &= ~0x00000040u;
1352
0
}
1353
0
inline void HuluRpcResponseMeta::clear_response_talk_type() {
1354
0
  response_talk_type_ = 0;
1355
0
  clear_has_response_talk_type();
1356
0
}
1357
0
inline ::brpc::TalkType HuluRpcResponseMeta::response_talk_type() const {
1358
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcResponseMeta.response_talk_type)
1359
0
  return static_cast< ::brpc::TalkType >(response_talk_type_);
1360
0
}
1361
0
inline void HuluRpcResponseMeta::set_response_talk_type(::brpc::TalkType value) {
1362
0
  assert(::brpc::TalkType_IsValid(value));
1363
0
  set_has_response_talk_type();
1364
0
  response_talk_type_ = value;
1365
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcResponseMeta.response_talk_type)
1366
0
}
1367
1368
// optional bytes user_data = 7;
1369
0
inline bool HuluRpcResponseMeta::has_user_data() const {
1370
0
  return (_has_bits_[0] & 0x00000002u) != 0;
1371
0
}
1372
0
inline void HuluRpcResponseMeta::set_has_user_data() {
1373
0
  _has_bits_[0] |= 0x00000002u;
1374
0
}
1375
0
inline void HuluRpcResponseMeta::clear_has_user_data() {
1376
0
  _has_bits_[0] &= ~0x00000002u;
1377
0
}
1378
0
inline void HuluRpcResponseMeta::clear_user_data() {
1379
0
  user_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1380
0
  clear_has_user_data();
1381
0
}
1382
0
inline const ::std::string& HuluRpcResponseMeta::user_data() const {
1383
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcResponseMeta.user_data)
1384
0
  return user_data_.GetNoArena();
1385
0
}
1386
0
inline void HuluRpcResponseMeta::set_user_data(const ::std::string& value) {
1387
0
  set_has_user_data();
1388
0
  user_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1389
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcResponseMeta.user_data)
1390
0
}
1391
#if LANG_CXX11
1392
0
inline void HuluRpcResponseMeta::set_user_data(::std::string&& value) {
1393
0
  set_has_user_data();
1394
0
  user_data_.SetNoArena(
1395
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1396
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.HuluRpcResponseMeta.user_data)
1397
0
}
1398
#endif
1399
0
inline void HuluRpcResponseMeta::set_user_data(const char* value) {
1400
0
  GOOGLE_DCHECK(value != NULL);
1401
0
  set_has_user_data();
1402
0
  user_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1403
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.HuluRpcResponseMeta.user_data)
1404
0
}
1405
0
inline void HuluRpcResponseMeta::set_user_data(const void* value, size_t size) {
1406
0
  set_has_user_data();
1407
0
  user_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1408
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1409
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.HuluRpcResponseMeta.user_data)
1410
0
}
1411
0
inline ::std::string* HuluRpcResponseMeta::mutable_user_data() {
1412
0
  set_has_user_data();
1413
  // @@protoc_insertion_point(field_mutable:brpc.policy.HuluRpcResponseMeta.user_data)
1414
0
  return user_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1415
0
}
1416
0
inline ::std::string* HuluRpcResponseMeta::release_user_data() {
1417
0
  // @@protoc_insertion_point(field_release:brpc.policy.HuluRpcResponseMeta.user_data)
1418
0
  if (!has_user_data()) {
1419
0
    return NULL;
1420
0
  }
1421
0
  clear_has_user_data();
1422
0
  return user_data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1423
0
}
1424
0
inline void HuluRpcResponseMeta::set_allocated_user_data(::std::string* user_data) {
1425
0
  if (user_data != NULL) {
1426
0
    set_has_user_data();
1427
0
  } else {
1428
0
    clear_has_user_data();
1429
0
  }
1430
0
  user_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user_data);
1431
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.HuluRpcResponseMeta.user_data)
1432
0
}
1433
1434
// optional int32 user_message_size = 8;
1435
0
inline bool HuluRpcResponseMeta::has_user_message_size() const {
1436
0
  return (_has_bits_[0] & 0x00000080u) != 0;
1437
0
}
1438
0
inline void HuluRpcResponseMeta::set_has_user_message_size() {
1439
0
  _has_bits_[0] |= 0x00000080u;
1440
0
}
1441
0
inline void HuluRpcResponseMeta::clear_has_user_message_size() {
1442
0
  _has_bits_[0] &= ~0x00000080u;
1443
0
}
1444
0
inline void HuluRpcResponseMeta::clear_user_message_size() {
1445
0
  user_message_size_ = 0;
1446
0
  clear_has_user_message_size();
1447
0
}
1448
0
inline ::google::protobuf::int32 HuluRpcResponseMeta::user_message_size() const {
1449
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcResponseMeta.user_message_size)
1450
0
  return user_message_size_;
1451
0
}
1452
0
inline void HuluRpcResponseMeta::set_user_message_size(::google::protobuf::int32 value) {
1453
0
  set_has_user_message_size();
1454
0
  user_message_size_ = value;
1455
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcResponseMeta.user_message_size)
1456
0
}
1457
1458
// optional int64 user_defined_source_addr = 9;
1459
0
inline bool HuluRpcResponseMeta::has_user_defined_source_addr() const {
1460
0
  return (_has_bits_[0] & 0x00000100u) != 0;
1461
0
}
1462
0
inline void HuluRpcResponseMeta::set_has_user_defined_source_addr() {
1463
0
  _has_bits_[0] |= 0x00000100u;
1464
0
}
1465
0
inline void HuluRpcResponseMeta::clear_has_user_defined_source_addr() {
1466
0
  _has_bits_[0] &= ~0x00000100u;
1467
0
}
1468
0
inline void HuluRpcResponseMeta::clear_user_defined_source_addr() {
1469
0
  user_defined_source_addr_ = GOOGLE_LONGLONG(0);
1470
0
  clear_has_user_defined_source_addr();
1471
0
}
1472
0
inline ::google::protobuf::int64 HuluRpcResponseMeta::user_defined_source_addr() const {
1473
  // @@protoc_insertion_point(field_get:brpc.policy.HuluRpcResponseMeta.user_defined_source_addr)
1474
0
  return user_defined_source_addr_;
1475
0
}
1476
0
inline void HuluRpcResponseMeta::set_user_defined_source_addr(::google::protobuf::int64 value) {
1477
0
  set_has_user_defined_source_addr();
1478
0
  user_defined_source_addr_ = value;
1479
  // @@protoc_insertion_point(field_set:brpc.policy.HuluRpcResponseMeta.user_defined_source_addr)
1480
0
}
1481
1482
#ifdef __GNUC__
1483
  #pragma GCC diagnostic pop
1484
#endif  // __GNUC__
1485
// -------------------------------------------------------------------
1486
1487
1488
// @@protoc_insertion_point(namespace_scope)
1489
1490
}  // namespace policy
1491
}  // namespace brpc
1492
1493
// @@protoc_insertion_point(global_scope)
1494
1495
#endif  // PROTOBUF_INCLUDED_brpc_2fpolicy_2fhulu_5fpbrpc_5fmeta_2eproto