Coverage Report

Created: 2025-11-24 06:34

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/brpc/build/brpc/policy/public_pbrpc_meta.pb.h
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: brpc/policy/public_pbrpc_meta.proto
3
4
#ifndef PROTOBUF_INCLUDED_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto
5
#define PROTOBUF_INCLUDED_brpc_2fpolicy_2fpublic_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
// @@protoc_insertion_point(includes)
34
#define PROTOBUF_INTERNAL_EXPORT_protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto 
35
36
namespace protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto {
37
// Internal implementation detail -- do not use these members.
38
struct TableStruct {
39
  static const ::google::protobuf::internal::ParseTableField entries[];
40
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
41
  static const ::google::protobuf::internal::ParseTable schema[6];
42
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
43
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
44
  static const ::google::protobuf::uint32 offsets[];
45
};
46
void AddDescriptors();
47
}  // namespace protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto
48
namespace brpc {
49
namespace policy {
50
class PublicPbrpcRequest;
51
class PublicPbrpcRequestDefaultTypeInternal;
52
extern PublicPbrpcRequestDefaultTypeInternal _PublicPbrpcRequest_default_instance_;
53
class PublicPbrpcResponse;
54
class PublicPbrpcResponseDefaultTypeInternal;
55
extern PublicPbrpcResponseDefaultTypeInternal _PublicPbrpcResponse_default_instance_;
56
class RequestBody;
57
class RequestBodyDefaultTypeInternal;
58
extern RequestBodyDefaultTypeInternal _RequestBody_default_instance_;
59
class RequestHead;
60
class RequestHeadDefaultTypeInternal;
61
extern RequestHeadDefaultTypeInternal _RequestHead_default_instance_;
62
class ResponseBody;
63
class ResponseBodyDefaultTypeInternal;
64
extern ResponseBodyDefaultTypeInternal _ResponseBody_default_instance_;
65
class ResponseHead;
66
class ResponseHeadDefaultTypeInternal;
67
extern ResponseHeadDefaultTypeInternal _ResponseHead_default_instance_;
68
}  // namespace policy
69
}  // namespace brpc
70
namespace google {
71
namespace protobuf {
72
template<> ::brpc::policy::PublicPbrpcRequest* Arena::CreateMaybeMessage<::brpc::policy::PublicPbrpcRequest>(Arena*);
73
template<> ::brpc::policy::PublicPbrpcResponse* Arena::CreateMaybeMessage<::brpc::policy::PublicPbrpcResponse>(Arena*);
74
template<> ::brpc::policy::RequestBody* Arena::CreateMaybeMessage<::brpc::policy::RequestBody>(Arena*);
75
template<> ::brpc::policy::RequestHead* Arena::CreateMaybeMessage<::brpc::policy::RequestHead>(Arena*);
76
template<> ::brpc::policy::ResponseBody* Arena::CreateMaybeMessage<::brpc::policy::ResponseBody>(Arena*);
77
template<> ::brpc::policy::ResponseHead* Arena::CreateMaybeMessage<::brpc::policy::ResponseHead>(Arena*);
78
}  // namespace protobuf
79
}  // namespace google
80
namespace brpc {
81
namespace policy {
82
83
// ===================================================================
84
85
class PublicPbrpcRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:brpc.policy.PublicPbrpcRequest) */ {
86
 public:
87
  PublicPbrpcRequest();
88
  virtual ~PublicPbrpcRequest();
89
90
  PublicPbrpcRequest(const PublicPbrpcRequest& from);
91
92
0
  inline PublicPbrpcRequest& operator=(const PublicPbrpcRequest& from) {
93
0
    CopyFrom(from);
94
0
    return *this;
95
0
  }
96
  #if LANG_CXX11
97
  PublicPbrpcRequest(PublicPbrpcRequest&& from) noexcept
98
0
    : PublicPbrpcRequest() {
99
0
    *this = ::std::move(from);
100
0
  }
101
102
0
  inline PublicPbrpcRequest& operator=(PublicPbrpcRequest&& from) noexcept {
103
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
104
0
      if (this != &from) InternalSwap(&from);
105
0
    } else {
106
0
      CopyFrom(from);
107
0
    }
108
0
    return *this;
109
0
  }
110
  #endif
111
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
112
0
    return _internal_metadata_.unknown_fields();
113
0
  }
114
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
115
0
    return _internal_metadata_.mutable_unknown_fields();
116
0
  }
117
118
  static const ::google::protobuf::Descriptor* descriptor();
119
  static const PublicPbrpcRequest& default_instance();
120
121
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
122
0
  static inline const PublicPbrpcRequest* internal_default_instance() {
123
0
    return reinterpret_cast<const PublicPbrpcRequest*>(
124
0
               &_PublicPbrpcRequest_default_instance_);
125
0
  }
126
  static constexpr int kIndexInFileMessages =
127
    0;
128
129
  void Swap(PublicPbrpcRequest* other);
130
0
  friend void swap(PublicPbrpcRequest& a, PublicPbrpcRequest& b) {
131
0
    a.Swap(&b);
132
0
  }
133
134
  // implements Message ----------------------------------------------
135
136
0
  inline PublicPbrpcRequest* New() const final {
137
0
    return CreateMaybeMessage<PublicPbrpcRequest>(NULL);
138
0
  }
139
140
0
  PublicPbrpcRequest* New(::google::protobuf::Arena* arena) const final {
141
0
    return CreateMaybeMessage<PublicPbrpcRequest>(arena);
142
0
  }
143
  void CopyFrom(const ::google::protobuf::Message& from) final;
144
  void MergeFrom(const ::google::protobuf::Message& from) final;
145
  void CopyFrom(const PublicPbrpcRequest& from);
146
  void MergeFrom(const PublicPbrpcRequest& from);
147
  void Clear() final;
148
  bool IsInitialized() const final;
149
150
  size_t ByteSizeLong() const final;
151
  bool MergePartialFromCodedStream(
152
      ::google::protobuf::io::CodedInputStream* input) final;
153
  void SerializeWithCachedSizes(
154
      ::google::protobuf::io::CodedOutputStream* output) const final;
155
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
156
      bool deterministic, ::google::protobuf::uint8* target) const final;
157
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
158
159
  private:
160
  void SharedCtor();
161
  void SharedDtor();
162
  void SetCachedSize(int size) const final;
163
  void InternalSwap(PublicPbrpcRequest* other);
164
  private:
165
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
166
0
    return NULL;
167
0
  }
168
0
  inline void* MaybeArenaPtr() const {
169
0
    return NULL;
170
0
  }
171
  public:
172
173
  ::google::protobuf::Metadata GetMetadata() const final;
174
175
  // nested types ----------------------------------------------------
176
177
  // accessors -------------------------------------------------------
178
179
  // repeated .brpc.policy.RequestBody requestBody = 2;
180
  int requestbody_size() const;
181
  void clear_requestbody();
182
  static const int kRequestBodyFieldNumber = 2;
183
  ::brpc::policy::RequestBody* mutable_requestbody(int index);
184
  ::google::protobuf::RepeatedPtrField< ::brpc::policy::RequestBody >*
185
      mutable_requestbody();
186
  const ::brpc::policy::RequestBody& requestbody(int index) const;
187
  ::brpc::policy::RequestBody* add_requestbody();
188
  const ::google::protobuf::RepeatedPtrField< ::brpc::policy::RequestBody >&
189
      requestbody() const;
190
191
  // optional .brpc.policy.RequestHead requestHead = 1;
192
  bool has_requesthead() const;
193
  void clear_requesthead();
194
  static const int kRequestHeadFieldNumber = 1;
195
  private:
196
  const ::brpc::policy::RequestHead& _internal_requesthead() const;
197
  public:
198
  const ::brpc::policy::RequestHead& requesthead() const;
199
  ::brpc::policy::RequestHead* release_requesthead();
200
  ::brpc::policy::RequestHead* mutable_requesthead();
201
  void set_allocated_requesthead(::brpc::policy::RequestHead* requesthead);
202
203
  // @@protoc_insertion_point(class_scope:brpc.policy.PublicPbrpcRequest)
204
 private:
205
  void set_has_requesthead();
206
  void clear_has_requesthead();
207
208
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
209
  ::google::protobuf::internal::HasBits<1> _has_bits_;
210
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
211
  ::google::protobuf::RepeatedPtrField< ::brpc::policy::RequestBody > requestbody_;
212
  ::brpc::policy::RequestHead* requesthead_;
213
  friend struct ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::TableStruct;
214
};
215
// -------------------------------------------------------------------
216
217
class RequestHead : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:brpc.policy.RequestHead) */ {
218
 public:
219
  RequestHead();
220
  virtual ~RequestHead();
221
222
  RequestHead(const RequestHead& from);
223
224
0
  inline RequestHead& operator=(const RequestHead& from) {
225
0
    CopyFrom(from);
226
0
    return *this;
227
0
  }
228
  #if LANG_CXX11
229
  RequestHead(RequestHead&& from) noexcept
230
0
    : RequestHead() {
231
0
    *this = ::std::move(from);
232
0
  }
233
234
0
  inline RequestHead& operator=(RequestHead&& from) noexcept {
235
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
236
0
      if (this != &from) InternalSwap(&from);
237
0
    } else {
238
0
      CopyFrom(from);
239
0
    }
240
0
    return *this;
241
0
  }
242
  #endif
243
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
244
0
    return _internal_metadata_.unknown_fields();
245
0
  }
246
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
247
0
    return _internal_metadata_.mutable_unknown_fields();
248
0
  }
249
250
  static const ::google::protobuf::Descriptor* descriptor();
251
  static const RequestHead& default_instance();
252
253
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
254
12
  static inline const RequestHead* internal_default_instance() {
255
12
    return reinterpret_cast<const RequestHead*>(
256
12
               &_RequestHead_default_instance_);
257
12
  }
258
  static constexpr int kIndexInFileMessages =
259
    1;
260
261
  void Swap(RequestHead* other);
262
0
  friend void swap(RequestHead& a, RequestHead& b) {
263
0
    a.Swap(&b);
264
0
  }
265
266
  // implements Message ----------------------------------------------
267
268
0
  inline RequestHead* New() const final {
269
0
    return CreateMaybeMessage<RequestHead>(NULL);
270
0
  }
271
272
0
  RequestHead* New(::google::protobuf::Arena* arena) const final {
273
0
    return CreateMaybeMessage<RequestHead>(arena);
274
0
  }
275
  void CopyFrom(const ::google::protobuf::Message& from) final;
276
  void MergeFrom(const ::google::protobuf::Message& from) final;
277
  void CopyFrom(const RequestHead& from);
278
  void MergeFrom(const RequestHead& from);
279
  void Clear() final;
280
  bool IsInitialized() const final;
281
282
  size_t ByteSizeLong() const final;
283
  bool MergePartialFromCodedStream(
284
      ::google::protobuf::io::CodedInputStream* input) final;
285
  void SerializeWithCachedSizes(
286
      ::google::protobuf::io::CodedOutputStream* output) const final;
287
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
288
      bool deterministic, ::google::protobuf::uint8* target) const final;
289
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
290
291
  private:
292
  void SharedCtor();
293
  void SharedDtor();
294
  void SetCachedSize(int size) const final;
295
  void InternalSwap(RequestHead* other);
296
  private:
297
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
298
0
    return NULL;
299
0
  }
300
0
  inline void* MaybeArenaPtr() const {
301
0
    return NULL;
302
0
  }
303
  public:
304
305
  ::google::protobuf::Metadata GetMetadata() const final;
306
307
  // nested types ----------------------------------------------------
308
309
  // accessors -------------------------------------------------------
310
311
  // optional string from_host = 1;
312
  bool has_from_host() const;
313
  void clear_from_host();
314
  static const int kFromHostFieldNumber = 1;
315
  const ::std::string& from_host() const;
316
  void set_from_host(const ::std::string& value);
317
  #if LANG_CXX11
318
  void set_from_host(::std::string&& value);
319
  #endif
320
  void set_from_host(const char* value);
321
  void set_from_host(const char* value, size_t size);
322
  ::std::string* mutable_from_host();
323
  ::std::string* release_from_host();
324
  void set_allocated_from_host(::std::string* from_host);
325
326
  // optional string charset = 4;
327
  bool has_charset() const;
328
  void clear_charset();
329
  static const int kCharsetFieldNumber = 4;
330
  const ::std::string& charset() const;
331
  void set_charset(const ::std::string& value);
332
  #if LANG_CXX11
333
  void set_charset(::std::string&& value);
334
  #endif
335
  void set_charset(const char* value);
336
  void set_charset(const char* value, size_t size);
337
  ::std::string* mutable_charset();
338
  ::std::string* release_charset();
339
  void set_allocated_charset(::std::string* charset);
340
341
  // optional string accept_charset = 5;
342
  bool has_accept_charset() const;
343
  void clear_accept_charset();
344
  static const int kAcceptCharsetFieldNumber = 5;
345
  const ::std::string& accept_charset() const;
346
  void set_accept_charset(const ::std::string& value);
347
  #if LANG_CXX11
348
  void set_accept_charset(::std::string&& value);
349
  #endif
350
  void set_accept_charset(const char* value);
351
  void set_accept_charset(const char* value, size_t size);
352
  ::std::string* mutable_accept_charset();
353
  ::std::string* release_accept_charset();
354
  void set_allocated_accept_charset(::std::string* accept_charset);
355
356
  // optional string create_time = 6;
357
  bool has_create_time() const;
358
  void clear_create_time();
359
  static const int kCreateTimeFieldNumber = 6;
360
  const ::std::string& create_time() const;
361
  void set_create_time(const ::std::string& value);
362
  #if LANG_CXX11
363
  void set_create_time(::std::string&& value);
364
  #endif
365
  void set_create_time(const char* value);
366
  void set_create_time(const char* value, size_t size);
367
  ::std::string* mutable_create_time();
368
  ::std::string* release_create_time();
369
  void set_allocated_create_time(::std::string* create_time);
370
371
  // optional uint32 content_type = 2;
372
  bool has_content_type() const;
373
  void clear_content_type();
374
  static const int kContentTypeFieldNumber = 2;
375
  ::google::protobuf::uint32 content_type() const;
376
  void set_content_type(::google::protobuf::uint32 value);
377
378
  // optional bool connection = 3;
379
  bool has_connection() const;
380
  void clear_connection();
381
  static const int kConnectionFieldNumber = 3;
382
  bool connection() const;
383
  void set_connection(bool value);
384
385
  // optional uint64 log_id = 7;
386
  bool has_log_id() const;
387
  void clear_log_id();
388
  static const int kLogIdFieldNumber = 7;
389
  ::google::protobuf::uint64 log_id() const;
390
  void set_log_id(::google::protobuf::uint64 value);
391
392
  // optional uint32 compress_type = 8;
393
  bool has_compress_type() const;
394
  void clear_compress_type();
395
  static const int kCompressTypeFieldNumber = 8;
396
  ::google::protobuf::uint32 compress_type() const;
397
  void set_compress_type(::google::protobuf::uint32 value);
398
399
  // @@protoc_insertion_point(class_scope:brpc.policy.RequestHead)
400
 private:
401
  void set_has_from_host();
402
  void clear_has_from_host();
403
  void set_has_content_type();
404
  void clear_has_content_type();
405
  void set_has_connection();
406
  void clear_has_connection();
407
  void set_has_charset();
408
  void clear_has_charset();
409
  void set_has_accept_charset();
410
  void clear_has_accept_charset();
411
  void set_has_create_time();
412
  void clear_has_create_time();
413
  void set_has_log_id();
414
  void clear_has_log_id();
415
  void set_has_compress_type();
416
  void clear_has_compress_type();
417
418
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
419
  ::google::protobuf::internal::HasBits<1> _has_bits_;
420
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
421
  ::google::protobuf::internal::ArenaStringPtr from_host_;
422
  ::google::protobuf::internal::ArenaStringPtr charset_;
423
  ::google::protobuf::internal::ArenaStringPtr accept_charset_;
424
  ::google::protobuf::internal::ArenaStringPtr create_time_;
425
  ::google::protobuf::uint32 content_type_;
426
  bool connection_;
427
  ::google::protobuf::uint64 log_id_;
428
  ::google::protobuf::uint32 compress_type_;
429
  friend struct ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::TableStruct;
430
};
431
// -------------------------------------------------------------------
432
433
class RequestBody : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:brpc.policy.RequestBody) */ {
434
 public:
435
  RequestBody();
436
  virtual ~RequestBody();
437
438
  RequestBody(const RequestBody& from);
439
440
0
  inline RequestBody& operator=(const RequestBody& from) {
441
0
    CopyFrom(from);
442
0
    return *this;
443
0
  }
444
  #if LANG_CXX11
445
  RequestBody(RequestBody&& from) noexcept
446
0
    : RequestBody() {
447
0
    *this = ::std::move(from);
448
0
  }
449
450
0
  inline RequestBody& operator=(RequestBody&& from) noexcept {
451
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
452
0
      if (this != &from) InternalSwap(&from);
453
0
    } else {
454
0
      CopyFrom(from);
455
0
    }
456
0
    return *this;
457
0
  }
458
  #endif
459
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
460
0
    return _internal_metadata_.unknown_fields();
461
0
  }
462
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
463
0
    return _internal_metadata_.mutable_unknown_fields();
464
0
  }
465
466
  static const ::google::protobuf::Descriptor* descriptor();
467
  static const RequestBody& default_instance();
468
469
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
470
0
  static inline const RequestBody* internal_default_instance() {
471
0
    return reinterpret_cast<const RequestBody*>(
472
0
               &_RequestBody_default_instance_);
473
0
  }
474
  static constexpr int kIndexInFileMessages =
475
    2;
476
477
  void Swap(RequestBody* other);
478
0
  friend void swap(RequestBody& a, RequestBody& b) {
479
0
    a.Swap(&b);
480
0
  }
481
482
  // implements Message ----------------------------------------------
483
484
0
  inline RequestBody* New() const final {
485
0
    return CreateMaybeMessage<RequestBody>(NULL);
486
0
  }
487
488
0
  RequestBody* New(::google::protobuf::Arena* arena) const final {
489
0
    return CreateMaybeMessage<RequestBody>(arena);
490
0
  }
491
  void CopyFrom(const ::google::protobuf::Message& from) final;
492
  void MergeFrom(const ::google::protobuf::Message& from) final;
493
  void CopyFrom(const RequestBody& from);
494
  void MergeFrom(const RequestBody& from);
495
  void Clear() final;
496
  bool IsInitialized() const final;
497
498
  size_t ByteSizeLong() const final;
499
  bool MergePartialFromCodedStream(
500
      ::google::protobuf::io::CodedInputStream* input) final;
501
  void SerializeWithCachedSizes(
502
      ::google::protobuf::io::CodedOutputStream* output) const final;
503
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
504
      bool deterministic, ::google::protobuf::uint8* target) const final;
505
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
506
507
  private:
508
  void SharedCtor();
509
  void SharedDtor();
510
  void SetCachedSize(int size) const final;
511
  void InternalSwap(RequestBody* other);
512
  private:
513
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
514
0
    return NULL;
515
0
  }
516
0
  inline void* MaybeArenaPtr() const {
517
0
    return NULL;
518
0
  }
519
  public:
520
521
  ::google::protobuf::Metadata GetMetadata() const final;
522
523
  // nested types ----------------------------------------------------
524
525
  // accessors -------------------------------------------------------
526
527
  // optional string version = 1;
528
  bool has_version() const;
529
  void clear_version();
530
  static const int kVersionFieldNumber = 1;
531
  const ::std::string& version() const;
532
  void set_version(const ::std::string& value);
533
  #if LANG_CXX11
534
  void set_version(::std::string&& value);
535
  #endif
536
  void set_version(const char* value);
537
  void set_version(const char* value, size_t size);
538
  ::std::string* mutable_version();
539
  ::std::string* release_version();
540
  void set_allocated_version(::std::string* version);
541
542
  // optional string charset = 2;
543
  bool has_charset() const;
544
  void clear_charset();
545
  static const int kCharsetFieldNumber = 2;
546
  const ::std::string& charset() const;
547
  void set_charset(const ::std::string& value);
548
  #if LANG_CXX11
549
  void set_charset(::std::string&& value);
550
  #endif
551
  void set_charset(const char* value);
552
  void set_charset(const char* value, size_t size);
553
  ::std::string* mutable_charset();
554
  ::std::string* release_charset();
555
  void set_allocated_charset(::std::string* charset);
556
557
  // required string service = 3;
558
  bool has_service() const;
559
  void clear_service();
560
  static const int kServiceFieldNumber = 3;
561
  const ::std::string& service() const;
562
  void set_service(const ::std::string& value);
563
  #if LANG_CXX11
564
  void set_service(::std::string&& value);
565
  #endif
566
  void set_service(const char* value);
567
  void set_service(const char* value, size_t size);
568
  ::std::string* mutable_service();
569
  ::std::string* release_service();
570
  void set_allocated_service(::std::string* service);
571
572
  // optional bytes serialized_request = 6;
573
  bool has_serialized_request() const;
574
  void clear_serialized_request();
575
  static const int kSerializedRequestFieldNumber = 6;
576
  const ::std::string& serialized_request() const;
577
  void set_serialized_request(const ::std::string& value);
578
  #if LANG_CXX11
579
  void set_serialized_request(::std::string&& value);
580
  #endif
581
  void set_serialized_request(const char* value);
582
  void set_serialized_request(const void* value, size_t size);
583
  ::std::string* mutable_serialized_request();
584
  ::std::string* release_serialized_request();
585
  void set_allocated_serialized_request(::std::string* serialized_request);
586
587
  // required uint64 id = 5;
588
  bool has_id() const;
589
  void clear_id();
590
  static const int kIdFieldNumber = 5;
591
  ::google::protobuf::uint64 id() const;
592
  void set_id(::google::protobuf::uint64 value);
593
594
  // required uint32 method_id = 4;
595
  bool has_method_id() const;
596
  void clear_method_id();
597
  static const int kMethodIdFieldNumber = 4;
598
  ::google::protobuf::uint32 method_id() const;
599
  void set_method_id(::google::protobuf::uint32 value);
600
601
  // @@protoc_insertion_point(class_scope:brpc.policy.RequestBody)
602
 private:
603
  void set_has_version();
604
  void clear_has_version();
605
  void set_has_charset();
606
  void clear_has_charset();
607
  void set_has_service();
608
  void clear_has_service();
609
  void set_has_method_id();
610
  void clear_has_method_id();
611
  void set_has_id();
612
  void clear_has_id();
613
  void set_has_serialized_request();
614
  void clear_has_serialized_request();
615
616
  // helper for ByteSizeLong()
617
  size_t RequiredFieldsByteSizeFallback() const;
618
619
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
620
  ::google::protobuf::internal::HasBits<1> _has_bits_;
621
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
622
  ::google::protobuf::internal::ArenaStringPtr version_;
623
  ::google::protobuf::internal::ArenaStringPtr charset_;
624
  ::google::protobuf::internal::ArenaStringPtr service_;
625
  ::google::protobuf::internal::ArenaStringPtr serialized_request_;
626
  ::google::protobuf::uint64 id_;
627
  ::google::protobuf::uint32 method_id_;
628
  friend struct ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::TableStruct;
629
};
630
// -------------------------------------------------------------------
631
632
class PublicPbrpcResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:brpc.policy.PublicPbrpcResponse) */ {
633
 public:
634
  PublicPbrpcResponse();
635
  virtual ~PublicPbrpcResponse();
636
637
  PublicPbrpcResponse(const PublicPbrpcResponse& from);
638
639
0
  inline PublicPbrpcResponse& operator=(const PublicPbrpcResponse& from) {
640
0
    CopyFrom(from);
641
0
    return *this;
642
0
  }
643
  #if LANG_CXX11
644
  PublicPbrpcResponse(PublicPbrpcResponse&& from) noexcept
645
0
    : PublicPbrpcResponse() {
646
0
    *this = ::std::move(from);
647
0
  }
648
649
0
  inline PublicPbrpcResponse& operator=(PublicPbrpcResponse&& from) noexcept {
650
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
651
0
      if (this != &from) InternalSwap(&from);
652
0
    } else {
653
0
      CopyFrom(from);
654
0
    }
655
0
    return *this;
656
0
  }
657
  #endif
658
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
659
0
    return _internal_metadata_.unknown_fields();
660
0
  }
661
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
662
0
    return _internal_metadata_.mutable_unknown_fields();
663
0
  }
664
665
  static const ::google::protobuf::Descriptor* descriptor();
666
  static const PublicPbrpcResponse& default_instance();
667
668
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
669
0
  static inline const PublicPbrpcResponse* internal_default_instance() {
670
0
    return reinterpret_cast<const PublicPbrpcResponse*>(
671
0
               &_PublicPbrpcResponse_default_instance_);
672
0
  }
673
  static constexpr int kIndexInFileMessages =
674
    3;
675
676
  void Swap(PublicPbrpcResponse* other);
677
0
  friend void swap(PublicPbrpcResponse& a, PublicPbrpcResponse& b) {
678
0
    a.Swap(&b);
679
0
  }
680
681
  // implements Message ----------------------------------------------
682
683
0
  inline PublicPbrpcResponse* New() const final {
684
0
    return CreateMaybeMessage<PublicPbrpcResponse>(NULL);
685
0
  }
686
687
0
  PublicPbrpcResponse* New(::google::protobuf::Arena* arena) const final {
688
0
    return CreateMaybeMessage<PublicPbrpcResponse>(arena);
689
0
  }
690
  void CopyFrom(const ::google::protobuf::Message& from) final;
691
  void MergeFrom(const ::google::protobuf::Message& from) final;
692
  void CopyFrom(const PublicPbrpcResponse& from);
693
  void MergeFrom(const PublicPbrpcResponse& from);
694
  void Clear() final;
695
  bool IsInitialized() const final;
696
697
  size_t ByteSizeLong() const final;
698
  bool MergePartialFromCodedStream(
699
      ::google::protobuf::io::CodedInputStream* input) final;
700
  void SerializeWithCachedSizes(
701
      ::google::protobuf::io::CodedOutputStream* output) const final;
702
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
703
      bool deterministic, ::google::protobuf::uint8* target) const final;
704
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
705
706
  private:
707
  void SharedCtor();
708
  void SharedDtor();
709
  void SetCachedSize(int size) const final;
710
  void InternalSwap(PublicPbrpcResponse* other);
711
  private:
712
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
713
0
    return NULL;
714
0
  }
715
0
  inline void* MaybeArenaPtr() const {
716
0
    return NULL;
717
0
  }
718
  public:
719
720
  ::google::protobuf::Metadata GetMetadata() const final;
721
722
  // nested types ----------------------------------------------------
723
724
  // accessors -------------------------------------------------------
725
726
  // repeated .brpc.policy.ResponseBody responseBody = 2;
727
  int responsebody_size() const;
728
  void clear_responsebody();
729
  static const int kResponseBodyFieldNumber = 2;
730
  ::brpc::policy::ResponseBody* mutable_responsebody(int index);
731
  ::google::protobuf::RepeatedPtrField< ::brpc::policy::ResponseBody >*
732
      mutable_responsebody();
733
  const ::brpc::policy::ResponseBody& responsebody(int index) const;
734
  ::brpc::policy::ResponseBody* add_responsebody();
735
  const ::google::protobuf::RepeatedPtrField< ::brpc::policy::ResponseBody >&
736
      responsebody() const;
737
738
  // optional .brpc.policy.ResponseHead responseHead = 1;
739
  bool has_responsehead() const;
740
  void clear_responsehead();
741
  static const int kResponseHeadFieldNumber = 1;
742
  private:
743
  const ::brpc::policy::ResponseHead& _internal_responsehead() const;
744
  public:
745
  const ::brpc::policy::ResponseHead& responsehead() const;
746
  ::brpc::policy::ResponseHead* release_responsehead();
747
  ::brpc::policy::ResponseHead* mutable_responsehead();
748
  void set_allocated_responsehead(::brpc::policy::ResponseHead* responsehead);
749
750
  // @@protoc_insertion_point(class_scope:brpc.policy.PublicPbrpcResponse)
751
 private:
752
  void set_has_responsehead();
753
  void clear_has_responsehead();
754
755
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
756
  ::google::protobuf::internal::HasBits<1> _has_bits_;
757
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
758
  ::google::protobuf::RepeatedPtrField< ::brpc::policy::ResponseBody > responsebody_;
759
  ::brpc::policy::ResponseHead* responsehead_;
760
  friend struct ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::TableStruct;
761
};
762
// -------------------------------------------------------------------
763
764
class ResponseHead : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:brpc.policy.ResponseHead) */ {
765
 public:
766
  ResponseHead();
767
  virtual ~ResponseHead();
768
769
  ResponseHead(const ResponseHead& from);
770
771
0
  inline ResponseHead& operator=(const ResponseHead& from) {
772
0
    CopyFrom(from);
773
0
    return *this;
774
0
  }
775
  #if LANG_CXX11
776
  ResponseHead(ResponseHead&& from) noexcept
777
0
    : ResponseHead() {
778
0
    *this = ::std::move(from);
779
0
  }
780
781
0
  inline ResponseHead& operator=(ResponseHead&& from) noexcept {
782
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
783
0
      if (this != &from) InternalSwap(&from);
784
0
    } else {
785
0
      CopyFrom(from);
786
0
    }
787
0
    return *this;
788
0
  }
789
  #endif
790
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
791
0
    return _internal_metadata_.unknown_fields();
792
0
  }
793
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
794
0
    return _internal_metadata_.mutable_unknown_fields();
795
0
  }
796
797
  static const ::google::protobuf::Descriptor* descriptor();
798
  static const ResponseHead& default_instance();
799
800
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
801
12
  static inline const ResponseHead* internal_default_instance() {
802
12
    return reinterpret_cast<const ResponseHead*>(
803
12
               &_ResponseHead_default_instance_);
804
12
  }
805
  static constexpr int kIndexInFileMessages =
806
    4;
807
808
  void Swap(ResponseHead* other);
809
0
  friend void swap(ResponseHead& a, ResponseHead& b) {
810
0
    a.Swap(&b);
811
0
  }
812
813
  // implements Message ----------------------------------------------
814
815
0
  inline ResponseHead* New() const final {
816
0
    return CreateMaybeMessage<ResponseHead>(NULL);
817
0
  }
818
819
0
  ResponseHead* New(::google::protobuf::Arena* arena) const final {
820
0
    return CreateMaybeMessage<ResponseHead>(arena);
821
0
  }
822
  void CopyFrom(const ::google::protobuf::Message& from) final;
823
  void MergeFrom(const ::google::protobuf::Message& from) final;
824
  void CopyFrom(const ResponseHead& from);
825
  void MergeFrom(const ResponseHead& from);
826
  void Clear() final;
827
  bool IsInitialized() const final;
828
829
  size_t ByteSizeLong() const final;
830
  bool MergePartialFromCodedStream(
831
      ::google::protobuf::io::CodedInputStream* input) final;
832
  void SerializeWithCachedSizes(
833
      ::google::protobuf::io::CodedOutputStream* output) const final;
834
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
835
      bool deterministic, ::google::protobuf::uint8* target) const final;
836
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
837
838
  private:
839
  void SharedCtor();
840
  void SharedDtor();
841
  void SetCachedSize(int size) const final;
842
  void InternalSwap(ResponseHead* other);
843
  private:
844
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
845
0
    return NULL;
846
0
  }
847
0
  inline void* MaybeArenaPtr() const {
848
0
    return NULL;
849
0
  }
850
  public:
851
852
  ::google::protobuf::Metadata GetMetadata() const final;
853
854
  // nested types ----------------------------------------------------
855
856
  // accessors -------------------------------------------------------
857
858
  // optional string text = 2;
859
  bool has_text() const;
860
  void clear_text();
861
  static const int kTextFieldNumber = 2;
862
  const ::std::string& text() const;
863
  void set_text(const ::std::string& value);
864
  #if LANG_CXX11
865
  void set_text(::std::string&& value);
866
  #endif
867
  void set_text(const char* value);
868
  void set_text(const char* value, size_t size);
869
  ::std::string* mutable_text();
870
  ::std::string* release_text();
871
  void set_allocated_text(::std::string* text);
872
873
  // optional string from_host = 3;
874
  bool has_from_host() const;
875
  void clear_from_host();
876
  static const int kFromHostFieldNumber = 3;
877
  const ::std::string& from_host() const;
878
  void set_from_host(const ::std::string& value);
879
  #if LANG_CXX11
880
  void set_from_host(::std::string&& value);
881
  #endif
882
  void set_from_host(const char* value);
883
  void set_from_host(const char* value, size_t size);
884
  ::std::string* mutable_from_host();
885
  ::std::string* release_from_host();
886
  void set_allocated_from_host(::std::string* from_host);
887
888
  // required sint32 code = 1;
889
  bool has_code() const;
890
  void clear_code();
891
  static const int kCodeFieldNumber = 1;
892
  ::google::protobuf::int32 code() const;
893
  void set_code(::google::protobuf::int32 value);
894
895
  // optional uint32 compress_type = 4;
896
  bool has_compress_type() const;
897
  void clear_compress_type();
898
  static const int kCompressTypeFieldNumber = 4;
899
  ::google::protobuf::uint32 compress_type() const;
900
  void set_compress_type(::google::protobuf::uint32 value);
901
902
  // @@protoc_insertion_point(class_scope:brpc.policy.ResponseHead)
903
 private:
904
  void set_has_code();
905
  void clear_has_code();
906
  void set_has_text();
907
  void clear_has_text();
908
  void set_has_from_host();
909
  void clear_has_from_host();
910
  void set_has_compress_type();
911
  void clear_has_compress_type();
912
913
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
914
  ::google::protobuf::internal::HasBits<1> _has_bits_;
915
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
916
  ::google::protobuf::internal::ArenaStringPtr text_;
917
  ::google::protobuf::internal::ArenaStringPtr from_host_;
918
  ::google::protobuf::int32 code_;
919
  ::google::protobuf::uint32 compress_type_;
920
  friend struct ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::TableStruct;
921
};
922
// -------------------------------------------------------------------
923
924
class ResponseBody : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:brpc.policy.ResponseBody) */ {
925
 public:
926
  ResponseBody();
927
  virtual ~ResponseBody();
928
929
  ResponseBody(const ResponseBody& from);
930
931
0
  inline ResponseBody& operator=(const ResponseBody& from) {
932
0
    CopyFrom(from);
933
0
    return *this;
934
0
  }
935
  #if LANG_CXX11
936
  ResponseBody(ResponseBody&& from) noexcept
937
0
    : ResponseBody() {
938
0
    *this = ::std::move(from);
939
0
  }
940
941
0
  inline ResponseBody& operator=(ResponseBody&& from) noexcept {
942
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
943
0
      if (this != &from) InternalSwap(&from);
944
0
    } else {
945
0
      CopyFrom(from);
946
0
    }
947
0
    return *this;
948
0
  }
949
  #endif
950
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
951
0
    return _internal_metadata_.unknown_fields();
952
0
  }
953
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
954
0
    return _internal_metadata_.mutable_unknown_fields();
955
0
  }
956
957
  static const ::google::protobuf::Descriptor* descriptor();
958
  static const ResponseBody& default_instance();
959
960
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
961
0
  static inline const ResponseBody* internal_default_instance() {
962
0
    return reinterpret_cast<const ResponseBody*>(
963
0
               &_ResponseBody_default_instance_);
964
0
  }
965
  static constexpr int kIndexInFileMessages =
966
    5;
967
968
  void Swap(ResponseBody* other);
969
0
  friend void swap(ResponseBody& a, ResponseBody& b) {
970
0
    a.Swap(&b);
971
0
  }
972
973
  // implements Message ----------------------------------------------
974
975
0
  inline ResponseBody* New() const final {
976
0
    return CreateMaybeMessage<ResponseBody>(NULL);
977
0
  }
978
979
0
  ResponseBody* New(::google::protobuf::Arena* arena) const final {
980
0
    return CreateMaybeMessage<ResponseBody>(arena);
981
0
  }
982
  void CopyFrom(const ::google::protobuf::Message& from) final;
983
  void MergeFrom(const ::google::protobuf::Message& from) final;
984
  void CopyFrom(const ResponseBody& from);
985
  void MergeFrom(const ResponseBody& from);
986
  void Clear() final;
987
  bool IsInitialized() const final;
988
989
  size_t ByteSizeLong() const final;
990
  bool MergePartialFromCodedStream(
991
      ::google::protobuf::io::CodedInputStream* input) final;
992
  void SerializeWithCachedSizes(
993
      ::google::protobuf::io::CodedOutputStream* output) const final;
994
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
995
      bool deterministic, ::google::protobuf::uint8* target) const final;
996
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
997
998
  private:
999
  void SharedCtor();
1000
  void SharedDtor();
1001
  void SetCachedSize(int size) const final;
1002
  void InternalSwap(ResponseBody* other);
1003
  private:
1004
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1005
0
    return NULL;
1006
0
  }
1007
0
  inline void* MaybeArenaPtr() const {
1008
0
    return NULL;
1009
0
  }
1010
  public:
1011
1012
  ::google::protobuf::Metadata GetMetadata() const final;
1013
1014
  // nested types ----------------------------------------------------
1015
1016
  // accessors -------------------------------------------------------
1017
1018
  // optional bytes serialized_response = 1;
1019
  bool has_serialized_response() const;
1020
  void clear_serialized_response();
1021
  static const int kSerializedResponseFieldNumber = 1;
1022
  const ::std::string& serialized_response() const;
1023
  void set_serialized_response(const ::std::string& value);
1024
  #if LANG_CXX11
1025
  void set_serialized_response(::std::string&& value);
1026
  #endif
1027
  void set_serialized_response(const char* value);
1028
  void set_serialized_response(const void* value, size_t size);
1029
  ::std::string* mutable_serialized_response();
1030
  ::std::string* release_serialized_response();
1031
  void set_allocated_serialized_response(::std::string* serialized_response);
1032
1033
  // optional string version = 2;
1034
  bool has_version() const;
1035
  void clear_version();
1036
  static const int kVersionFieldNumber = 2;
1037
  const ::std::string& version() const;
1038
  void set_version(const ::std::string& value);
1039
  #if LANG_CXX11
1040
  void set_version(::std::string&& value);
1041
  #endif
1042
  void set_version(const char* value);
1043
  void set_version(const char* value, size_t size);
1044
  ::std::string* mutable_version();
1045
  ::std::string* release_version();
1046
  void set_allocated_version(::std::string* version);
1047
1048
  // required uint64 id = 4;
1049
  bool has_id() const;
1050
  void clear_id();
1051
  static const int kIdFieldNumber = 4;
1052
  ::google::protobuf::uint64 id() const;
1053
  void set_id(::google::protobuf::uint64 value);
1054
1055
  // optional int32 error = 3;
1056
  bool has_error() const;
1057
  void clear_error();
1058
  static const int kErrorFieldNumber = 3;
1059
  ::google::protobuf::int32 error() const;
1060
  void set_error(::google::protobuf::int32 value);
1061
1062
  // @@protoc_insertion_point(class_scope:brpc.policy.ResponseBody)
1063
 private:
1064
  void set_has_serialized_response();
1065
  void clear_has_serialized_response();
1066
  void set_has_version();
1067
  void clear_has_version();
1068
  void set_has_error();
1069
  void clear_has_error();
1070
  void set_has_id();
1071
  void clear_has_id();
1072
1073
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1074
  ::google::protobuf::internal::HasBits<1> _has_bits_;
1075
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
1076
  ::google::protobuf::internal::ArenaStringPtr serialized_response_;
1077
  ::google::protobuf::internal::ArenaStringPtr version_;
1078
  ::google::protobuf::uint64 id_;
1079
  ::google::protobuf::int32 error_;
1080
  friend struct ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::TableStruct;
1081
};
1082
// ===================================================================
1083
1084
1085
// ===================================================================
1086
1087
#ifdef __GNUC__
1088
  #pragma GCC diagnostic push
1089
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1090
#endif  // __GNUC__
1091
// PublicPbrpcRequest
1092
1093
// optional .brpc.policy.RequestHead requestHead = 1;
1094
0
inline bool PublicPbrpcRequest::has_requesthead() const {
1095
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1096
0
}
1097
0
inline void PublicPbrpcRequest::set_has_requesthead() {
1098
0
  _has_bits_[0] |= 0x00000001u;
1099
0
}
1100
0
inline void PublicPbrpcRequest::clear_has_requesthead() {
1101
0
  _has_bits_[0] &= ~0x00000001u;
1102
0
}
1103
0
inline void PublicPbrpcRequest::clear_requesthead() {
1104
0
  if (requesthead_ != NULL) requesthead_->Clear();
1105
0
  clear_has_requesthead();
1106
0
}
1107
0
inline const ::brpc::policy::RequestHead& PublicPbrpcRequest::_internal_requesthead() const {
1108
0
  return *requesthead_;
1109
0
}
1110
0
inline const ::brpc::policy::RequestHead& PublicPbrpcRequest::requesthead() const {
1111
0
  const ::brpc::policy::RequestHead* p = requesthead_;
1112
  // @@protoc_insertion_point(field_get:brpc.policy.PublicPbrpcRequest.requestHead)
1113
0
  return p != NULL ? *p : *reinterpret_cast<const ::brpc::policy::RequestHead*>(
1114
0
      &::brpc::policy::_RequestHead_default_instance_);
1115
0
}
1116
0
inline ::brpc::policy::RequestHead* PublicPbrpcRequest::release_requesthead() {
1117
0
  // @@protoc_insertion_point(field_release:brpc.policy.PublicPbrpcRequest.requestHead)
1118
0
  clear_has_requesthead();
1119
0
  ::brpc::policy::RequestHead* temp = requesthead_;
1120
0
  requesthead_ = NULL;
1121
0
  return temp;
1122
0
}
1123
0
inline ::brpc::policy::RequestHead* PublicPbrpcRequest::mutable_requesthead() {
1124
0
  set_has_requesthead();
1125
0
  if (requesthead_ == NULL) {
1126
0
    auto* p = CreateMaybeMessage<::brpc::policy::RequestHead>(GetArenaNoVirtual());
1127
0
    requesthead_ = p;
1128
0
  }
1129
  // @@protoc_insertion_point(field_mutable:brpc.policy.PublicPbrpcRequest.requestHead)
1130
0
  return requesthead_;
1131
0
}
1132
0
inline void PublicPbrpcRequest::set_allocated_requesthead(::brpc::policy::RequestHead* requesthead) {
1133
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1134
0
  if (message_arena == NULL) {
1135
0
    delete requesthead_;
1136
0
  }
1137
0
  if (requesthead) {
1138
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1139
0
    if (message_arena != submessage_arena) {
1140
0
      requesthead = ::google::protobuf::internal::GetOwnedMessage(
1141
0
          message_arena, requesthead, submessage_arena);
1142
0
    }
1143
0
    set_has_requesthead();
1144
0
  } else {
1145
0
    clear_has_requesthead();
1146
0
  }
1147
0
  requesthead_ = requesthead;
1148
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.PublicPbrpcRequest.requestHead)
1149
0
}
1150
1151
// repeated .brpc.policy.RequestBody requestBody = 2;
1152
0
inline int PublicPbrpcRequest::requestbody_size() const {
1153
0
  return requestbody_.size();
1154
0
}
1155
0
inline void PublicPbrpcRequest::clear_requestbody() {
1156
0
  requestbody_.Clear();
1157
0
}
1158
0
inline ::brpc::policy::RequestBody* PublicPbrpcRequest::mutable_requestbody(int index) {
1159
0
  // @@protoc_insertion_point(field_mutable:brpc.policy.PublicPbrpcRequest.requestBody)
1160
0
  return requestbody_.Mutable(index);
1161
0
}
1162
inline ::google::protobuf::RepeatedPtrField< ::brpc::policy::RequestBody >*
1163
0
PublicPbrpcRequest::mutable_requestbody() {
1164
0
  // @@protoc_insertion_point(field_mutable_list:brpc.policy.PublicPbrpcRequest.requestBody)
1165
0
  return &requestbody_;
1166
0
}
1167
0
inline const ::brpc::policy::RequestBody& PublicPbrpcRequest::requestbody(int index) const {
1168
  // @@protoc_insertion_point(field_get:brpc.policy.PublicPbrpcRequest.requestBody)
1169
0
  return requestbody_.Get(index);
1170
0
}
1171
0
inline ::brpc::policy::RequestBody* PublicPbrpcRequest::add_requestbody() {
1172
  // @@protoc_insertion_point(field_add:brpc.policy.PublicPbrpcRequest.requestBody)
1173
0
  return requestbody_.Add();
1174
0
}
1175
inline const ::google::protobuf::RepeatedPtrField< ::brpc::policy::RequestBody >&
1176
0
PublicPbrpcRequest::requestbody() const {
1177
  // @@protoc_insertion_point(field_list:brpc.policy.PublicPbrpcRequest.requestBody)
1178
0
  return requestbody_;
1179
0
}
1180
1181
// -------------------------------------------------------------------
1182
1183
// RequestHead
1184
1185
// optional string from_host = 1;
1186
0
inline bool RequestHead::has_from_host() const {
1187
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1188
0
}
1189
0
inline void RequestHead::set_has_from_host() {
1190
0
  _has_bits_[0] |= 0x00000001u;
1191
0
}
1192
0
inline void RequestHead::clear_has_from_host() {
1193
0
  _has_bits_[0] &= ~0x00000001u;
1194
0
}
1195
0
inline void RequestHead::clear_from_host() {
1196
0
  from_host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1197
0
  clear_has_from_host();
1198
0
}
1199
0
inline const ::std::string& RequestHead::from_host() const {
1200
  // @@protoc_insertion_point(field_get:brpc.policy.RequestHead.from_host)
1201
0
  return from_host_.GetNoArena();
1202
0
}
1203
0
inline void RequestHead::set_from_host(const ::std::string& value) {
1204
0
  set_has_from_host();
1205
0
  from_host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1206
0
  // @@protoc_insertion_point(field_set:brpc.policy.RequestHead.from_host)
1207
0
}
1208
#if LANG_CXX11
1209
0
inline void RequestHead::set_from_host(::std::string&& value) {
1210
0
  set_has_from_host();
1211
0
  from_host_.SetNoArena(
1212
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1213
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.RequestHead.from_host)
1214
0
}
1215
#endif
1216
0
inline void RequestHead::set_from_host(const char* value) {
1217
0
  GOOGLE_DCHECK(value != NULL);
1218
0
  set_has_from_host();
1219
0
  from_host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1220
  // @@protoc_insertion_point(field_set_char:brpc.policy.RequestHead.from_host)
1221
0
}
1222
0
inline void RequestHead::set_from_host(const char* value, size_t size) {
1223
0
  set_has_from_host();
1224
0
  from_host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1225
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1226
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.RequestHead.from_host)
1227
0
}
1228
0
inline ::std::string* RequestHead::mutable_from_host() {
1229
0
  set_has_from_host();
1230
  // @@protoc_insertion_point(field_mutable:brpc.policy.RequestHead.from_host)
1231
0
  return from_host_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1232
0
}
1233
0
inline ::std::string* RequestHead::release_from_host() {
1234
0
  // @@protoc_insertion_point(field_release:brpc.policy.RequestHead.from_host)
1235
0
  if (!has_from_host()) {
1236
0
    return NULL;
1237
0
  }
1238
0
  clear_has_from_host();
1239
0
  return from_host_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1240
0
}
1241
0
inline void RequestHead::set_allocated_from_host(::std::string* from_host) {
1242
0
  if (from_host != NULL) {
1243
0
    set_has_from_host();
1244
0
  } else {
1245
0
    clear_has_from_host();
1246
0
  }
1247
0
  from_host_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from_host);
1248
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.RequestHead.from_host)
1249
0
}
1250
1251
// optional uint32 content_type = 2;
1252
0
inline bool RequestHead::has_content_type() const {
1253
0
  return (_has_bits_[0] & 0x00000010u) != 0;
1254
0
}
1255
0
inline void RequestHead::set_has_content_type() {
1256
0
  _has_bits_[0] |= 0x00000010u;
1257
0
}
1258
0
inline void RequestHead::clear_has_content_type() {
1259
0
  _has_bits_[0] &= ~0x00000010u;
1260
0
}
1261
0
inline void RequestHead::clear_content_type() {
1262
0
  content_type_ = 0u;
1263
0
  clear_has_content_type();
1264
0
}
1265
0
inline ::google::protobuf::uint32 RequestHead::content_type() const {
1266
  // @@protoc_insertion_point(field_get:brpc.policy.RequestHead.content_type)
1267
0
  return content_type_;
1268
0
}
1269
0
inline void RequestHead::set_content_type(::google::protobuf::uint32 value) {
1270
0
  set_has_content_type();
1271
0
  content_type_ = value;
1272
  // @@protoc_insertion_point(field_set:brpc.policy.RequestHead.content_type)
1273
0
}
1274
1275
// optional bool connection = 3;
1276
0
inline bool RequestHead::has_connection() const {
1277
0
  return (_has_bits_[0] & 0x00000020u) != 0;
1278
0
}
1279
0
inline void RequestHead::set_has_connection() {
1280
0
  _has_bits_[0] |= 0x00000020u;
1281
0
}
1282
0
inline void RequestHead::clear_has_connection() {
1283
0
  _has_bits_[0] &= ~0x00000020u;
1284
0
}
1285
0
inline void RequestHead::clear_connection() {
1286
0
  connection_ = false;
1287
0
  clear_has_connection();
1288
0
}
1289
0
inline bool RequestHead::connection() const {
1290
  // @@protoc_insertion_point(field_get:brpc.policy.RequestHead.connection)
1291
0
  return connection_;
1292
0
}
1293
0
inline void RequestHead::set_connection(bool value) {
1294
0
  set_has_connection();
1295
0
  connection_ = value;
1296
  // @@protoc_insertion_point(field_set:brpc.policy.RequestHead.connection)
1297
0
}
1298
1299
// optional string charset = 4;
1300
0
inline bool RequestHead::has_charset() const {
1301
0
  return (_has_bits_[0] & 0x00000002u) != 0;
1302
0
}
1303
0
inline void RequestHead::set_has_charset() {
1304
0
  _has_bits_[0] |= 0x00000002u;
1305
0
}
1306
0
inline void RequestHead::clear_has_charset() {
1307
0
  _has_bits_[0] &= ~0x00000002u;
1308
0
}
1309
0
inline void RequestHead::clear_charset() {
1310
0
  charset_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1311
0
  clear_has_charset();
1312
0
}
1313
0
inline const ::std::string& RequestHead::charset() const {
1314
  // @@protoc_insertion_point(field_get:brpc.policy.RequestHead.charset)
1315
0
  return charset_.GetNoArena();
1316
0
}
1317
0
inline void RequestHead::set_charset(const ::std::string& value) {
1318
0
  set_has_charset();
1319
0
  charset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1320
  // @@protoc_insertion_point(field_set:brpc.policy.RequestHead.charset)
1321
0
}
1322
#if LANG_CXX11
1323
0
inline void RequestHead::set_charset(::std::string&& value) {
1324
0
  set_has_charset();
1325
0
  charset_.SetNoArena(
1326
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1327
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.RequestHead.charset)
1328
0
}
1329
#endif
1330
0
inline void RequestHead::set_charset(const char* value) {
1331
0
  GOOGLE_DCHECK(value != NULL);
1332
0
  set_has_charset();
1333
0
  charset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1334
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.RequestHead.charset)
1335
0
}
1336
0
inline void RequestHead::set_charset(const char* value, size_t size) {
1337
0
  set_has_charset();
1338
0
  charset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1339
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1340
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.RequestHead.charset)
1341
0
}
1342
0
inline ::std::string* RequestHead::mutable_charset() {
1343
0
  set_has_charset();
1344
  // @@protoc_insertion_point(field_mutable:brpc.policy.RequestHead.charset)
1345
0
  return charset_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1346
0
}
1347
0
inline ::std::string* RequestHead::release_charset() {
1348
0
  // @@protoc_insertion_point(field_release:brpc.policy.RequestHead.charset)
1349
0
  if (!has_charset()) {
1350
0
    return NULL;
1351
0
  }
1352
0
  clear_has_charset();
1353
0
  return charset_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1354
0
}
1355
0
inline void RequestHead::set_allocated_charset(::std::string* charset) {
1356
0
  if (charset != NULL) {
1357
0
    set_has_charset();
1358
0
  } else {
1359
0
    clear_has_charset();
1360
0
  }
1361
0
  charset_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), charset);
1362
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.RequestHead.charset)
1363
0
}
1364
1365
// optional string accept_charset = 5;
1366
0
inline bool RequestHead::has_accept_charset() const {
1367
0
  return (_has_bits_[0] & 0x00000004u) != 0;
1368
0
}
1369
0
inline void RequestHead::set_has_accept_charset() {
1370
0
  _has_bits_[0] |= 0x00000004u;
1371
0
}
1372
0
inline void RequestHead::clear_has_accept_charset() {
1373
0
  _has_bits_[0] &= ~0x00000004u;
1374
0
}
1375
0
inline void RequestHead::clear_accept_charset() {
1376
0
  accept_charset_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1377
0
  clear_has_accept_charset();
1378
0
}
1379
0
inline const ::std::string& RequestHead::accept_charset() const {
1380
  // @@protoc_insertion_point(field_get:brpc.policy.RequestHead.accept_charset)
1381
0
  return accept_charset_.GetNoArena();
1382
0
}
1383
0
inline void RequestHead::set_accept_charset(const ::std::string& value) {
1384
0
  set_has_accept_charset();
1385
0
  accept_charset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1386
0
  // @@protoc_insertion_point(field_set:brpc.policy.RequestHead.accept_charset)
1387
0
}
1388
#if LANG_CXX11
1389
0
inline void RequestHead::set_accept_charset(::std::string&& value) {
1390
0
  set_has_accept_charset();
1391
0
  accept_charset_.SetNoArena(
1392
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1393
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.RequestHead.accept_charset)
1394
0
}
1395
#endif
1396
0
inline void RequestHead::set_accept_charset(const char* value) {
1397
0
  GOOGLE_DCHECK(value != NULL);
1398
0
  set_has_accept_charset();
1399
0
  accept_charset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1400
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.RequestHead.accept_charset)
1401
0
}
1402
0
inline void RequestHead::set_accept_charset(const char* value, size_t size) {
1403
0
  set_has_accept_charset();
1404
0
  accept_charset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1405
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1406
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.RequestHead.accept_charset)
1407
0
}
1408
0
inline ::std::string* RequestHead::mutable_accept_charset() {
1409
0
  set_has_accept_charset();
1410
  // @@protoc_insertion_point(field_mutable:brpc.policy.RequestHead.accept_charset)
1411
0
  return accept_charset_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1412
0
}
1413
0
inline ::std::string* RequestHead::release_accept_charset() {
1414
0
  // @@protoc_insertion_point(field_release:brpc.policy.RequestHead.accept_charset)
1415
0
  if (!has_accept_charset()) {
1416
0
    return NULL;
1417
0
  }
1418
0
  clear_has_accept_charset();
1419
0
  return accept_charset_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1420
0
}
1421
0
inline void RequestHead::set_allocated_accept_charset(::std::string* accept_charset) {
1422
0
  if (accept_charset != NULL) {
1423
0
    set_has_accept_charset();
1424
0
  } else {
1425
0
    clear_has_accept_charset();
1426
0
  }
1427
0
  accept_charset_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), accept_charset);
1428
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.RequestHead.accept_charset)
1429
0
}
1430
1431
// optional string create_time = 6;
1432
0
inline bool RequestHead::has_create_time() const {
1433
0
  return (_has_bits_[0] & 0x00000008u) != 0;
1434
0
}
1435
0
inline void RequestHead::set_has_create_time() {
1436
0
  _has_bits_[0] |= 0x00000008u;
1437
0
}
1438
0
inline void RequestHead::clear_has_create_time() {
1439
0
  _has_bits_[0] &= ~0x00000008u;
1440
0
}
1441
0
inline void RequestHead::clear_create_time() {
1442
0
  create_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1443
0
  clear_has_create_time();
1444
0
}
1445
0
inline const ::std::string& RequestHead::create_time() const {
1446
  // @@protoc_insertion_point(field_get:brpc.policy.RequestHead.create_time)
1447
0
  return create_time_.GetNoArena();
1448
0
}
1449
0
inline void RequestHead::set_create_time(const ::std::string& value) {
1450
0
  set_has_create_time();
1451
0
  create_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1452
0
  // @@protoc_insertion_point(field_set:brpc.policy.RequestHead.create_time)
1453
0
}
1454
#if LANG_CXX11
1455
0
inline void RequestHead::set_create_time(::std::string&& value) {
1456
0
  set_has_create_time();
1457
0
  create_time_.SetNoArena(
1458
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1459
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.RequestHead.create_time)
1460
0
}
1461
#endif
1462
0
inline void RequestHead::set_create_time(const char* value) {
1463
0
  GOOGLE_DCHECK(value != NULL);
1464
0
  set_has_create_time();
1465
0
  create_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1466
  // @@protoc_insertion_point(field_set_char:brpc.policy.RequestHead.create_time)
1467
0
}
1468
0
inline void RequestHead::set_create_time(const char* value, size_t size) {
1469
0
  set_has_create_time();
1470
0
  create_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1471
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1472
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.RequestHead.create_time)
1473
0
}
1474
0
inline ::std::string* RequestHead::mutable_create_time() {
1475
0
  set_has_create_time();
1476
  // @@protoc_insertion_point(field_mutable:brpc.policy.RequestHead.create_time)
1477
0
  return create_time_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1478
0
}
1479
0
inline ::std::string* RequestHead::release_create_time() {
1480
0
  // @@protoc_insertion_point(field_release:brpc.policy.RequestHead.create_time)
1481
0
  if (!has_create_time()) {
1482
0
    return NULL;
1483
0
  }
1484
0
  clear_has_create_time();
1485
0
  return create_time_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1486
0
}
1487
0
inline void RequestHead::set_allocated_create_time(::std::string* create_time) {
1488
0
  if (create_time != NULL) {
1489
0
    set_has_create_time();
1490
0
  } else {
1491
0
    clear_has_create_time();
1492
0
  }
1493
0
  create_time_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), create_time);
1494
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.RequestHead.create_time)
1495
0
}
1496
1497
// optional uint64 log_id = 7;
1498
0
inline bool RequestHead::has_log_id() const {
1499
0
  return (_has_bits_[0] & 0x00000040u) != 0;
1500
0
}
1501
0
inline void RequestHead::set_has_log_id() {
1502
0
  _has_bits_[0] |= 0x00000040u;
1503
0
}
1504
0
inline void RequestHead::clear_has_log_id() {
1505
0
  _has_bits_[0] &= ~0x00000040u;
1506
0
}
1507
0
inline void RequestHead::clear_log_id() {
1508
0
  log_id_ = GOOGLE_ULONGLONG(0);
1509
0
  clear_has_log_id();
1510
0
}
1511
0
inline ::google::protobuf::uint64 RequestHead::log_id() const {
1512
  // @@protoc_insertion_point(field_get:brpc.policy.RequestHead.log_id)
1513
0
  return log_id_;
1514
0
}
1515
0
inline void RequestHead::set_log_id(::google::protobuf::uint64 value) {
1516
0
  set_has_log_id();
1517
0
  log_id_ = value;
1518
  // @@protoc_insertion_point(field_set:brpc.policy.RequestHead.log_id)
1519
0
}
1520
1521
// optional uint32 compress_type = 8;
1522
0
inline bool RequestHead::has_compress_type() const {
1523
0
  return (_has_bits_[0] & 0x00000080u) != 0;
1524
0
}
1525
0
inline void RequestHead::set_has_compress_type() {
1526
0
  _has_bits_[0] |= 0x00000080u;
1527
0
}
1528
0
inline void RequestHead::clear_has_compress_type() {
1529
0
  _has_bits_[0] &= ~0x00000080u;
1530
0
}
1531
0
inline void RequestHead::clear_compress_type() {
1532
0
  compress_type_ = 0u;
1533
0
  clear_has_compress_type();
1534
0
}
1535
0
inline ::google::protobuf::uint32 RequestHead::compress_type() const {
1536
  // @@protoc_insertion_point(field_get:brpc.policy.RequestHead.compress_type)
1537
0
  return compress_type_;
1538
0
}
1539
0
inline void RequestHead::set_compress_type(::google::protobuf::uint32 value) {
1540
0
  set_has_compress_type();
1541
0
  compress_type_ = value;
1542
  // @@protoc_insertion_point(field_set:brpc.policy.RequestHead.compress_type)
1543
0
}
1544
1545
// -------------------------------------------------------------------
1546
1547
// RequestBody
1548
1549
// optional string version = 1;
1550
0
inline bool RequestBody::has_version() const {
1551
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1552
0
}
1553
0
inline void RequestBody::set_has_version() {
1554
0
  _has_bits_[0] |= 0x00000001u;
1555
0
}
1556
0
inline void RequestBody::clear_has_version() {
1557
0
  _has_bits_[0] &= ~0x00000001u;
1558
0
}
1559
0
inline void RequestBody::clear_version() {
1560
0
  version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1561
0
  clear_has_version();
1562
0
}
1563
0
inline const ::std::string& RequestBody::version() const {
1564
  // @@protoc_insertion_point(field_get:brpc.policy.RequestBody.version)
1565
0
  return version_.GetNoArena();
1566
0
}
1567
0
inline void RequestBody::set_version(const ::std::string& value) {
1568
0
  set_has_version();
1569
0
  version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1570
  // @@protoc_insertion_point(field_set:brpc.policy.RequestBody.version)
1571
0
}
1572
#if LANG_CXX11
1573
0
inline void RequestBody::set_version(::std::string&& value) {
1574
0
  set_has_version();
1575
0
  version_.SetNoArena(
1576
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1577
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.RequestBody.version)
1578
0
}
1579
#endif
1580
0
inline void RequestBody::set_version(const char* value) {
1581
0
  GOOGLE_DCHECK(value != NULL);
1582
0
  set_has_version();
1583
0
  version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1584
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.RequestBody.version)
1585
0
}
1586
0
inline void RequestBody::set_version(const char* value, size_t size) {
1587
0
  set_has_version();
1588
0
  version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1589
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1590
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.RequestBody.version)
1591
0
}
1592
0
inline ::std::string* RequestBody::mutable_version() {
1593
0
  set_has_version();
1594
  // @@protoc_insertion_point(field_mutable:brpc.policy.RequestBody.version)
1595
0
  return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1596
0
}
1597
0
inline ::std::string* RequestBody::release_version() {
1598
0
  // @@protoc_insertion_point(field_release:brpc.policy.RequestBody.version)
1599
0
  if (!has_version()) {
1600
0
    return NULL;
1601
0
  }
1602
0
  clear_has_version();
1603
0
  return version_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1604
0
}
1605
0
inline void RequestBody::set_allocated_version(::std::string* version) {
1606
0
  if (version != NULL) {
1607
0
    set_has_version();
1608
0
  } else {
1609
0
    clear_has_version();
1610
0
  }
1611
0
  version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
1612
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.RequestBody.version)
1613
0
}
1614
1615
// optional string charset = 2;
1616
0
inline bool RequestBody::has_charset() const {
1617
0
  return (_has_bits_[0] & 0x00000002u) != 0;
1618
0
}
1619
0
inline void RequestBody::set_has_charset() {
1620
0
  _has_bits_[0] |= 0x00000002u;
1621
0
}
1622
0
inline void RequestBody::clear_has_charset() {
1623
0
  _has_bits_[0] &= ~0x00000002u;
1624
0
}
1625
0
inline void RequestBody::clear_charset() {
1626
0
  charset_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1627
0
  clear_has_charset();
1628
0
}
1629
0
inline const ::std::string& RequestBody::charset() const {
1630
  // @@protoc_insertion_point(field_get:brpc.policy.RequestBody.charset)
1631
0
  return charset_.GetNoArena();
1632
0
}
1633
0
inline void RequestBody::set_charset(const ::std::string& value) {
1634
0
  set_has_charset();
1635
0
  charset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1636
  // @@protoc_insertion_point(field_set:brpc.policy.RequestBody.charset)
1637
0
}
1638
#if LANG_CXX11
1639
0
inline void RequestBody::set_charset(::std::string&& value) {
1640
0
  set_has_charset();
1641
0
  charset_.SetNoArena(
1642
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1643
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.RequestBody.charset)
1644
0
}
1645
#endif
1646
0
inline void RequestBody::set_charset(const char* value) {
1647
0
  GOOGLE_DCHECK(value != NULL);
1648
0
  set_has_charset();
1649
0
  charset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1650
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.RequestBody.charset)
1651
0
}
1652
0
inline void RequestBody::set_charset(const char* value, size_t size) {
1653
0
  set_has_charset();
1654
0
  charset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1655
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1656
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.RequestBody.charset)
1657
0
}
1658
0
inline ::std::string* RequestBody::mutable_charset() {
1659
0
  set_has_charset();
1660
  // @@protoc_insertion_point(field_mutable:brpc.policy.RequestBody.charset)
1661
0
  return charset_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1662
0
}
1663
0
inline ::std::string* RequestBody::release_charset() {
1664
0
  // @@protoc_insertion_point(field_release:brpc.policy.RequestBody.charset)
1665
0
  if (!has_charset()) {
1666
0
    return NULL;
1667
0
  }
1668
0
  clear_has_charset();
1669
0
  return charset_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1670
0
}
1671
0
inline void RequestBody::set_allocated_charset(::std::string* charset) {
1672
0
  if (charset != NULL) {
1673
0
    set_has_charset();
1674
0
  } else {
1675
0
    clear_has_charset();
1676
0
  }
1677
0
  charset_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), charset);
1678
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.RequestBody.charset)
1679
0
}
1680
1681
// required string service = 3;
1682
0
inline bool RequestBody::has_service() const {
1683
0
  return (_has_bits_[0] & 0x00000004u) != 0;
1684
0
}
1685
0
inline void RequestBody::set_has_service() {
1686
0
  _has_bits_[0] |= 0x00000004u;
1687
0
}
1688
0
inline void RequestBody::clear_has_service() {
1689
0
  _has_bits_[0] &= ~0x00000004u;
1690
0
}
1691
0
inline void RequestBody::clear_service() {
1692
0
  service_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1693
0
  clear_has_service();
1694
0
}
1695
0
inline const ::std::string& RequestBody::service() const {
1696
  // @@protoc_insertion_point(field_get:brpc.policy.RequestBody.service)
1697
0
  return service_.GetNoArena();
1698
0
}
1699
0
inline void RequestBody::set_service(const ::std::string& value) {
1700
0
  set_has_service();
1701
0
  service_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1702
  // @@protoc_insertion_point(field_set:brpc.policy.RequestBody.service)
1703
0
}
1704
#if LANG_CXX11
1705
0
inline void RequestBody::set_service(::std::string&& value) {
1706
0
  set_has_service();
1707
0
  service_.SetNoArena(
1708
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1709
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.RequestBody.service)
1710
0
}
1711
#endif
1712
0
inline void RequestBody::set_service(const char* value) {
1713
0
  GOOGLE_DCHECK(value != NULL);
1714
0
  set_has_service();
1715
0
  service_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1716
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.RequestBody.service)
1717
0
}
1718
0
inline void RequestBody::set_service(const char* value, size_t size) {
1719
0
  set_has_service();
1720
0
  service_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1721
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1722
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.RequestBody.service)
1723
0
}
1724
0
inline ::std::string* RequestBody::mutable_service() {
1725
0
  set_has_service();
1726
  // @@protoc_insertion_point(field_mutable:brpc.policy.RequestBody.service)
1727
0
  return service_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1728
0
}
1729
0
inline ::std::string* RequestBody::release_service() {
1730
0
  // @@protoc_insertion_point(field_release:brpc.policy.RequestBody.service)
1731
0
  if (!has_service()) {
1732
0
    return NULL;
1733
0
  }
1734
0
  clear_has_service();
1735
0
  return service_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1736
0
}
1737
0
inline void RequestBody::set_allocated_service(::std::string* service) {
1738
0
  if (service != NULL) {
1739
0
    set_has_service();
1740
0
  } else {
1741
0
    clear_has_service();
1742
0
  }
1743
0
  service_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), service);
1744
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.RequestBody.service)
1745
0
}
1746
1747
// required uint32 method_id = 4;
1748
0
inline bool RequestBody::has_method_id() const {
1749
0
  return (_has_bits_[0] & 0x00000020u) != 0;
1750
0
}
1751
0
inline void RequestBody::set_has_method_id() {
1752
0
  _has_bits_[0] |= 0x00000020u;
1753
0
}
1754
0
inline void RequestBody::clear_has_method_id() {
1755
0
  _has_bits_[0] &= ~0x00000020u;
1756
0
}
1757
0
inline void RequestBody::clear_method_id() {
1758
0
  method_id_ = 0u;
1759
0
  clear_has_method_id();
1760
0
}
1761
0
inline ::google::protobuf::uint32 RequestBody::method_id() const {
1762
  // @@protoc_insertion_point(field_get:brpc.policy.RequestBody.method_id)
1763
0
  return method_id_;
1764
0
}
1765
0
inline void RequestBody::set_method_id(::google::protobuf::uint32 value) {
1766
0
  set_has_method_id();
1767
0
  method_id_ = value;
1768
  // @@protoc_insertion_point(field_set:brpc.policy.RequestBody.method_id)
1769
0
}
1770
1771
// required uint64 id = 5;
1772
0
inline bool RequestBody::has_id() const {
1773
0
  return (_has_bits_[0] & 0x00000010u) != 0;
1774
0
}
1775
0
inline void RequestBody::set_has_id() {
1776
0
  _has_bits_[0] |= 0x00000010u;
1777
0
}
1778
0
inline void RequestBody::clear_has_id() {
1779
0
  _has_bits_[0] &= ~0x00000010u;
1780
0
}
1781
0
inline void RequestBody::clear_id() {
1782
0
  id_ = GOOGLE_ULONGLONG(0);
1783
0
  clear_has_id();
1784
0
}
1785
0
inline ::google::protobuf::uint64 RequestBody::id() const {
1786
  // @@protoc_insertion_point(field_get:brpc.policy.RequestBody.id)
1787
0
  return id_;
1788
0
}
1789
0
inline void RequestBody::set_id(::google::protobuf::uint64 value) {
1790
0
  set_has_id();
1791
0
  id_ = value;
1792
  // @@protoc_insertion_point(field_set:brpc.policy.RequestBody.id)
1793
0
}
1794
1795
// optional bytes serialized_request = 6;
1796
0
inline bool RequestBody::has_serialized_request() const {
1797
0
  return (_has_bits_[0] & 0x00000008u) != 0;
1798
0
}
1799
0
inline void RequestBody::set_has_serialized_request() {
1800
0
  _has_bits_[0] |= 0x00000008u;
1801
0
}
1802
0
inline void RequestBody::clear_has_serialized_request() {
1803
0
  _has_bits_[0] &= ~0x00000008u;
1804
0
}
1805
0
inline void RequestBody::clear_serialized_request() {
1806
0
  serialized_request_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1807
0
  clear_has_serialized_request();
1808
0
}
1809
0
inline const ::std::string& RequestBody::serialized_request() const {
1810
  // @@protoc_insertion_point(field_get:brpc.policy.RequestBody.serialized_request)
1811
0
  return serialized_request_.GetNoArena();
1812
0
}
1813
0
inline void RequestBody::set_serialized_request(const ::std::string& value) {
1814
0
  set_has_serialized_request();
1815
0
  serialized_request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1816
0
  // @@protoc_insertion_point(field_set:brpc.policy.RequestBody.serialized_request)
1817
0
}
1818
#if LANG_CXX11
1819
0
inline void RequestBody::set_serialized_request(::std::string&& value) {
1820
0
  set_has_serialized_request();
1821
0
  serialized_request_.SetNoArena(
1822
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1823
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.RequestBody.serialized_request)
1824
0
}
1825
#endif
1826
0
inline void RequestBody::set_serialized_request(const char* value) {
1827
0
  GOOGLE_DCHECK(value != NULL);
1828
0
  set_has_serialized_request();
1829
0
  serialized_request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1830
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.RequestBody.serialized_request)
1831
0
}
1832
0
inline void RequestBody::set_serialized_request(const void* value, size_t size) {
1833
0
  set_has_serialized_request();
1834
0
  serialized_request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1835
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1836
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.RequestBody.serialized_request)
1837
0
}
1838
0
inline ::std::string* RequestBody::mutable_serialized_request() {
1839
0
  set_has_serialized_request();
1840
  // @@protoc_insertion_point(field_mutable:brpc.policy.RequestBody.serialized_request)
1841
0
  return serialized_request_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1842
0
}
1843
0
inline ::std::string* RequestBody::release_serialized_request() {
1844
0
  // @@protoc_insertion_point(field_release:brpc.policy.RequestBody.serialized_request)
1845
0
  if (!has_serialized_request()) {
1846
0
    return NULL;
1847
0
  }
1848
0
  clear_has_serialized_request();
1849
0
  return serialized_request_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1850
0
}
1851
0
inline void RequestBody::set_allocated_serialized_request(::std::string* serialized_request) {
1852
0
  if (serialized_request != NULL) {
1853
0
    set_has_serialized_request();
1854
0
  } else {
1855
0
    clear_has_serialized_request();
1856
0
  }
1857
0
  serialized_request_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serialized_request);
1858
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.RequestBody.serialized_request)
1859
0
}
1860
1861
// -------------------------------------------------------------------
1862
1863
// PublicPbrpcResponse
1864
1865
// optional .brpc.policy.ResponseHead responseHead = 1;
1866
0
inline bool PublicPbrpcResponse::has_responsehead() const {
1867
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1868
0
}
1869
0
inline void PublicPbrpcResponse::set_has_responsehead() {
1870
0
  _has_bits_[0] |= 0x00000001u;
1871
0
}
1872
0
inline void PublicPbrpcResponse::clear_has_responsehead() {
1873
0
  _has_bits_[0] &= ~0x00000001u;
1874
0
}
1875
0
inline void PublicPbrpcResponse::clear_responsehead() {
1876
0
  if (responsehead_ != NULL) responsehead_->Clear();
1877
0
  clear_has_responsehead();
1878
0
}
1879
0
inline const ::brpc::policy::ResponseHead& PublicPbrpcResponse::_internal_responsehead() const {
1880
0
  return *responsehead_;
1881
0
}
1882
0
inline const ::brpc::policy::ResponseHead& PublicPbrpcResponse::responsehead() const {
1883
0
  const ::brpc::policy::ResponseHead* p = responsehead_;
1884
  // @@protoc_insertion_point(field_get:brpc.policy.PublicPbrpcResponse.responseHead)
1885
0
  return p != NULL ? *p : *reinterpret_cast<const ::brpc::policy::ResponseHead*>(
1886
0
      &::brpc::policy::_ResponseHead_default_instance_);
1887
0
}
1888
0
inline ::brpc::policy::ResponseHead* PublicPbrpcResponse::release_responsehead() {
1889
0
  // @@protoc_insertion_point(field_release:brpc.policy.PublicPbrpcResponse.responseHead)
1890
0
  clear_has_responsehead();
1891
0
  ::brpc::policy::ResponseHead* temp = responsehead_;
1892
0
  responsehead_ = NULL;
1893
0
  return temp;
1894
0
}
1895
0
inline ::brpc::policy::ResponseHead* PublicPbrpcResponse::mutable_responsehead() {
1896
0
  set_has_responsehead();
1897
0
  if (responsehead_ == NULL) {
1898
0
    auto* p = CreateMaybeMessage<::brpc::policy::ResponseHead>(GetArenaNoVirtual());
1899
0
    responsehead_ = p;
1900
0
  }
1901
  // @@protoc_insertion_point(field_mutable:brpc.policy.PublicPbrpcResponse.responseHead)
1902
0
  return responsehead_;
1903
0
}
1904
0
inline void PublicPbrpcResponse::set_allocated_responsehead(::brpc::policy::ResponseHead* responsehead) {
1905
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1906
0
  if (message_arena == NULL) {
1907
0
    delete responsehead_;
1908
0
  }
1909
0
  if (responsehead) {
1910
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1911
0
    if (message_arena != submessage_arena) {
1912
0
      responsehead = ::google::protobuf::internal::GetOwnedMessage(
1913
0
          message_arena, responsehead, submessage_arena);
1914
0
    }
1915
0
    set_has_responsehead();
1916
0
  } else {
1917
0
    clear_has_responsehead();
1918
0
  }
1919
0
  responsehead_ = responsehead;
1920
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.PublicPbrpcResponse.responseHead)
1921
0
}
1922
1923
// repeated .brpc.policy.ResponseBody responseBody = 2;
1924
0
inline int PublicPbrpcResponse::responsebody_size() const {
1925
0
  return responsebody_.size();
1926
0
}
1927
0
inline void PublicPbrpcResponse::clear_responsebody() {
1928
0
  responsebody_.Clear();
1929
0
}
1930
0
inline ::brpc::policy::ResponseBody* PublicPbrpcResponse::mutable_responsebody(int index) {
1931
0
  // @@protoc_insertion_point(field_mutable:brpc.policy.PublicPbrpcResponse.responseBody)
1932
0
  return responsebody_.Mutable(index);
1933
0
}
1934
inline ::google::protobuf::RepeatedPtrField< ::brpc::policy::ResponseBody >*
1935
0
PublicPbrpcResponse::mutable_responsebody() {
1936
0
  // @@protoc_insertion_point(field_mutable_list:brpc.policy.PublicPbrpcResponse.responseBody)
1937
0
  return &responsebody_;
1938
0
}
1939
0
inline const ::brpc::policy::ResponseBody& PublicPbrpcResponse::responsebody(int index) const {
1940
  // @@protoc_insertion_point(field_get:brpc.policy.PublicPbrpcResponse.responseBody)
1941
0
  return responsebody_.Get(index);
1942
0
}
1943
0
inline ::brpc::policy::ResponseBody* PublicPbrpcResponse::add_responsebody() {
1944
  // @@protoc_insertion_point(field_add:brpc.policy.PublicPbrpcResponse.responseBody)
1945
0
  return responsebody_.Add();
1946
0
}
1947
inline const ::google::protobuf::RepeatedPtrField< ::brpc::policy::ResponseBody >&
1948
0
PublicPbrpcResponse::responsebody() const {
1949
  // @@protoc_insertion_point(field_list:brpc.policy.PublicPbrpcResponse.responseBody)
1950
0
  return responsebody_;
1951
0
}
1952
1953
// -------------------------------------------------------------------
1954
1955
// ResponseHead
1956
1957
// required sint32 code = 1;
1958
0
inline bool ResponseHead::has_code() const {
1959
0
  return (_has_bits_[0] & 0x00000004u) != 0;
1960
0
}
1961
0
inline void ResponseHead::set_has_code() {
1962
0
  _has_bits_[0] |= 0x00000004u;
1963
0
}
1964
0
inline void ResponseHead::clear_has_code() {
1965
0
  _has_bits_[0] &= ~0x00000004u;
1966
0
}
1967
0
inline void ResponseHead::clear_code() {
1968
0
  code_ = 0;
1969
0
  clear_has_code();
1970
0
}
1971
0
inline ::google::protobuf::int32 ResponseHead::code() const {
1972
  // @@protoc_insertion_point(field_get:brpc.policy.ResponseHead.code)
1973
0
  return code_;
1974
0
}
1975
0
inline void ResponseHead::set_code(::google::protobuf::int32 value) {
1976
0
  set_has_code();
1977
0
  code_ = value;
1978
  // @@protoc_insertion_point(field_set:brpc.policy.ResponseHead.code)
1979
0
}
1980
1981
// optional string text = 2;
1982
0
inline bool ResponseHead::has_text() const {
1983
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1984
0
}
1985
0
inline void ResponseHead::set_has_text() {
1986
0
  _has_bits_[0] |= 0x00000001u;
1987
0
}
1988
0
inline void ResponseHead::clear_has_text() {
1989
0
  _has_bits_[0] &= ~0x00000001u;
1990
0
}
1991
0
inline void ResponseHead::clear_text() {
1992
0
  text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1993
0
  clear_has_text();
1994
0
}
1995
0
inline const ::std::string& ResponseHead::text() const {
1996
  // @@protoc_insertion_point(field_get:brpc.policy.ResponseHead.text)
1997
0
  return text_.GetNoArena();
1998
0
}
1999
0
inline void ResponseHead::set_text(const ::std::string& value) {
2000
0
  set_has_text();
2001
0
  text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2002
  // @@protoc_insertion_point(field_set:brpc.policy.ResponseHead.text)
2003
0
}
2004
#if LANG_CXX11
2005
0
inline void ResponseHead::set_text(::std::string&& value) {
2006
0
  set_has_text();
2007
0
  text_.SetNoArena(
2008
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2009
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.ResponseHead.text)
2010
0
}
2011
#endif
2012
0
inline void ResponseHead::set_text(const char* value) {
2013
0
  GOOGLE_DCHECK(value != NULL);
2014
0
  set_has_text();
2015
0
  text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2016
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.ResponseHead.text)
2017
0
}
2018
0
inline void ResponseHead::set_text(const char* value, size_t size) {
2019
0
  set_has_text();
2020
0
  text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2021
0
      ::std::string(reinterpret_cast<const char*>(value), size));
2022
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.ResponseHead.text)
2023
0
}
2024
0
inline ::std::string* ResponseHead::mutable_text() {
2025
0
  set_has_text();
2026
  // @@protoc_insertion_point(field_mutable:brpc.policy.ResponseHead.text)
2027
0
  return text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2028
0
}
2029
0
inline ::std::string* ResponseHead::release_text() {
2030
0
  // @@protoc_insertion_point(field_release:brpc.policy.ResponseHead.text)
2031
0
  if (!has_text()) {
2032
0
    return NULL;
2033
0
  }
2034
0
  clear_has_text();
2035
0
  return text_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2036
0
}
2037
0
inline void ResponseHead::set_allocated_text(::std::string* text) {
2038
0
  if (text != NULL) {
2039
0
    set_has_text();
2040
0
  } else {
2041
0
    clear_has_text();
2042
0
  }
2043
0
  text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), text);
2044
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.ResponseHead.text)
2045
0
}
2046
2047
// optional string from_host = 3;
2048
0
inline bool ResponseHead::has_from_host() const {
2049
0
  return (_has_bits_[0] & 0x00000002u) != 0;
2050
0
}
2051
0
inline void ResponseHead::set_has_from_host() {
2052
0
  _has_bits_[0] |= 0x00000002u;
2053
0
}
2054
0
inline void ResponseHead::clear_has_from_host() {
2055
0
  _has_bits_[0] &= ~0x00000002u;
2056
0
}
2057
0
inline void ResponseHead::clear_from_host() {
2058
0
  from_host_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2059
0
  clear_has_from_host();
2060
0
}
2061
0
inline const ::std::string& ResponseHead::from_host() const {
2062
  // @@protoc_insertion_point(field_get:brpc.policy.ResponseHead.from_host)
2063
0
  return from_host_.GetNoArena();
2064
0
}
2065
0
inline void ResponseHead::set_from_host(const ::std::string& value) {
2066
0
  set_has_from_host();
2067
0
  from_host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2068
0
  // @@protoc_insertion_point(field_set:brpc.policy.ResponseHead.from_host)
2069
0
}
2070
#if LANG_CXX11
2071
0
inline void ResponseHead::set_from_host(::std::string&& value) {
2072
0
  set_has_from_host();
2073
0
  from_host_.SetNoArena(
2074
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2075
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.ResponseHead.from_host)
2076
0
}
2077
#endif
2078
0
inline void ResponseHead::set_from_host(const char* value) {
2079
0
  GOOGLE_DCHECK(value != NULL);
2080
0
  set_has_from_host();
2081
0
  from_host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2082
  // @@protoc_insertion_point(field_set_char:brpc.policy.ResponseHead.from_host)
2083
0
}
2084
0
inline void ResponseHead::set_from_host(const char* value, size_t size) {
2085
0
  set_has_from_host();
2086
0
  from_host_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2087
0
      ::std::string(reinterpret_cast<const char*>(value), size));
2088
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.ResponseHead.from_host)
2089
0
}
2090
0
inline ::std::string* ResponseHead::mutable_from_host() {
2091
0
  set_has_from_host();
2092
  // @@protoc_insertion_point(field_mutable:brpc.policy.ResponseHead.from_host)
2093
0
  return from_host_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2094
0
}
2095
0
inline ::std::string* ResponseHead::release_from_host() {
2096
0
  // @@protoc_insertion_point(field_release:brpc.policy.ResponseHead.from_host)
2097
0
  if (!has_from_host()) {
2098
0
    return NULL;
2099
0
  }
2100
0
  clear_has_from_host();
2101
0
  return from_host_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2102
0
}
2103
0
inline void ResponseHead::set_allocated_from_host(::std::string* from_host) {
2104
0
  if (from_host != NULL) {
2105
0
    set_has_from_host();
2106
0
  } else {
2107
0
    clear_has_from_host();
2108
0
  }
2109
0
  from_host_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from_host);
2110
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.ResponseHead.from_host)
2111
0
}
2112
2113
// optional uint32 compress_type = 4;
2114
0
inline bool ResponseHead::has_compress_type() const {
2115
0
  return (_has_bits_[0] & 0x00000008u) != 0;
2116
0
}
2117
0
inline void ResponseHead::set_has_compress_type() {
2118
0
  _has_bits_[0] |= 0x00000008u;
2119
0
}
2120
0
inline void ResponseHead::clear_has_compress_type() {
2121
0
  _has_bits_[0] &= ~0x00000008u;
2122
0
}
2123
0
inline void ResponseHead::clear_compress_type() {
2124
0
  compress_type_ = 0u;
2125
0
  clear_has_compress_type();
2126
0
}
2127
0
inline ::google::protobuf::uint32 ResponseHead::compress_type() const {
2128
  // @@protoc_insertion_point(field_get:brpc.policy.ResponseHead.compress_type)
2129
0
  return compress_type_;
2130
0
}
2131
0
inline void ResponseHead::set_compress_type(::google::protobuf::uint32 value) {
2132
0
  set_has_compress_type();
2133
0
  compress_type_ = value;
2134
  // @@protoc_insertion_point(field_set:brpc.policy.ResponseHead.compress_type)
2135
0
}
2136
2137
// -------------------------------------------------------------------
2138
2139
// ResponseBody
2140
2141
// optional bytes serialized_response = 1;
2142
0
inline bool ResponseBody::has_serialized_response() const {
2143
0
  return (_has_bits_[0] & 0x00000001u) != 0;
2144
0
}
2145
0
inline void ResponseBody::set_has_serialized_response() {
2146
0
  _has_bits_[0] |= 0x00000001u;
2147
0
}
2148
0
inline void ResponseBody::clear_has_serialized_response() {
2149
0
  _has_bits_[0] &= ~0x00000001u;
2150
0
}
2151
0
inline void ResponseBody::clear_serialized_response() {
2152
0
  serialized_response_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2153
0
  clear_has_serialized_response();
2154
0
}
2155
0
inline const ::std::string& ResponseBody::serialized_response() const {
2156
  // @@protoc_insertion_point(field_get:brpc.policy.ResponseBody.serialized_response)
2157
0
  return serialized_response_.GetNoArena();
2158
0
}
2159
0
inline void ResponseBody::set_serialized_response(const ::std::string& value) {
2160
0
  set_has_serialized_response();
2161
0
  serialized_response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2162
0
  // @@protoc_insertion_point(field_set:brpc.policy.ResponseBody.serialized_response)
2163
0
}
2164
#if LANG_CXX11
2165
0
inline void ResponseBody::set_serialized_response(::std::string&& value) {
2166
0
  set_has_serialized_response();
2167
0
  serialized_response_.SetNoArena(
2168
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2169
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.ResponseBody.serialized_response)
2170
0
}
2171
#endif
2172
0
inline void ResponseBody::set_serialized_response(const char* value) {
2173
0
  GOOGLE_DCHECK(value != NULL);
2174
0
  set_has_serialized_response();
2175
0
  serialized_response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2176
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.ResponseBody.serialized_response)
2177
0
}
2178
0
inline void ResponseBody::set_serialized_response(const void* value, size_t size) {
2179
0
  set_has_serialized_response();
2180
0
  serialized_response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2181
0
      ::std::string(reinterpret_cast<const char*>(value), size));
2182
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.ResponseBody.serialized_response)
2183
0
}
2184
0
inline ::std::string* ResponseBody::mutable_serialized_response() {
2185
0
  set_has_serialized_response();
2186
  // @@protoc_insertion_point(field_mutable:brpc.policy.ResponseBody.serialized_response)
2187
0
  return serialized_response_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2188
0
}
2189
0
inline ::std::string* ResponseBody::release_serialized_response() {
2190
0
  // @@protoc_insertion_point(field_release:brpc.policy.ResponseBody.serialized_response)
2191
0
  if (!has_serialized_response()) {
2192
0
    return NULL;
2193
0
  }
2194
0
  clear_has_serialized_response();
2195
0
  return serialized_response_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2196
0
}
2197
0
inline void ResponseBody::set_allocated_serialized_response(::std::string* serialized_response) {
2198
0
  if (serialized_response != NULL) {
2199
0
    set_has_serialized_response();
2200
0
  } else {
2201
0
    clear_has_serialized_response();
2202
0
  }
2203
0
  serialized_response_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serialized_response);
2204
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.ResponseBody.serialized_response)
2205
0
}
2206
2207
// optional string version = 2;
2208
0
inline bool ResponseBody::has_version() const {
2209
0
  return (_has_bits_[0] & 0x00000002u) != 0;
2210
0
}
2211
0
inline void ResponseBody::set_has_version() {
2212
0
  _has_bits_[0] |= 0x00000002u;
2213
0
}
2214
0
inline void ResponseBody::clear_has_version() {
2215
0
  _has_bits_[0] &= ~0x00000002u;
2216
0
}
2217
0
inline void ResponseBody::clear_version() {
2218
0
  version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2219
0
  clear_has_version();
2220
0
}
2221
0
inline const ::std::string& ResponseBody::version() const {
2222
  // @@protoc_insertion_point(field_get:brpc.policy.ResponseBody.version)
2223
0
  return version_.GetNoArena();
2224
0
}
2225
0
inline void ResponseBody::set_version(const ::std::string& value) {
2226
0
  set_has_version();
2227
0
  version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2228
  // @@protoc_insertion_point(field_set:brpc.policy.ResponseBody.version)
2229
0
}
2230
#if LANG_CXX11
2231
0
inline void ResponseBody::set_version(::std::string&& value) {
2232
0
  set_has_version();
2233
0
  version_.SetNoArena(
2234
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2235
0
  // @@protoc_insertion_point(field_set_rvalue:brpc.policy.ResponseBody.version)
2236
0
}
2237
#endif
2238
0
inline void ResponseBody::set_version(const char* value) {
2239
0
  GOOGLE_DCHECK(value != NULL);
2240
0
  set_has_version();
2241
0
  version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2242
0
  // @@protoc_insertion_point(field_set_char:brpc.policy.ResponseBody.version)
2243
0
}
2244
0
inline void ResponseBody::set_version(const char* value, size_t size) {
2245
0
  set_has_version();
2246
0
  version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2247
0
      ::std::string(reinterpret_cast<const char*>(value), size));
2248
0
  // @@protoc_insertion_point(field_set_pointer:brpc.policy.ResponseBody.version)
2249
0
}
2250
0
inline ::std::string* ResponseBody::mutable_version() {
2251
0
  set_has_version();
2252
  // @@protoc_insertion_point(field_mutable:brpc.policy.ResponseBody.version)
2253
0
  return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2254
0
}
2255
0
inline ::std::string* ResponseBody::release_version() {
2256
0
  // @@protoc_insertion_point(field_release:brpc.policy.ResponseBody.version)
2257
0
  if (!has_version()) {
2258
0
    return NULL;
2259
0
  }
2260
0
  clear_has_version();
2261
0
  return version_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2262
0
}
2263
0
inline void ResponseBody::set_allocated_version(::std::string* version) {
2264
0
  if (version != NULL) {
2265
0
    set_has_version();
2266
0
  } else {
2267
0
    clear_has_version();
2268
0
  }
2269
0
  version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
2270
0
  // @@protoc_insertion_point(field_set_allocated:brpc.policy.ResponseBody.version)
2271
0
}
2272
2273
// optional int32 error = 3;
2274
0
inline bool ResponseBody::has_error() const {
2275
0
  return (_has_bits_[0] & 0x00000008u) != 0;
2276
0
}
2277
0
inline void ResponseBody::set_has_error() {
2278
0
  _has_bits_[0] |= 0x00000008u;
2279
0
}
2280
0
inline void ResponseBody::clear_has_error() {
2281
0
  _has_bits_[0] &= ~0x00000008u;
2282
0
}
2283
0
inline void ResponseBody::clear_error() {
2284
0
  error_ = 0;
2285
0
  clear_has_error();
2286
0
}
2287
0
inline ::google::protobuf::int32 ResponseBody::error() const {
2288
  // @@protoc_insertion_point(field_get:brpc.policy.ResponseBody.error)
2289
0
  return error_;
2290
0
}
2291
0
inline void ResponseBody::set_error(::google::protobuf::int32 value) {
2292
0
  set_has_error();
2293
0
  error_ = value;
2294
0
  // @@protoc_insertion_point(field_set:brpc.policy.ResponseBody.error)
2295
0
}
2296
2297
// required uint64 id = 4;
2298
0
inline bool ResponseBody::has_id() const {
2299
0
  return (_has_bits_[0] & 0x00000004u) != 0;
2300
0
}
2301
0
inline void ResponseBody::set_has_id() {
2302
0
  _has_bits_[0] |= 0x00000004u;
2303
0
}
2304
0
inline void ResponseBody::clear_has_id() {
2305
0
  _has_bits_[0] &= ~0x00000004u;
2306
0
}
2307
0
inline void ResponseBody::clear_id() {
2308
0
  id_ = GOOGLE_ULONGLONG(0);
2309
0
  clear_has_id();
2310
0
}
2311
0
inline ::google::protobuf::uint64 ResponseBody::id() const {
2312
  // @@protoc_insertion_point(field_get:brpc.policy.ResponseBody.id)
2313
0
  return id_;
2314
0
}
2315
0
inline void ResponseBody::set_id(::google::protobuf::uint64 value) {
2316
0
  set_has_id();
2317
0
  id_ = value;
2318
  // @@protoc_insertion_point(field_set:brpc.policy.ResponseBody.id)
2319
0
}
2320
2321
#ifdef __GNUC__
2322
  #pragma GCC diagnostic pop
2323
#endif  // __GNUC__
2324
// -------------------------------------------------------------------
2325
2326
// -------------------------------------------------------------------
2327
2328
// -------------------------------------------------------------------
2329
2330
// -------------------------------------------------------------------
2331
2332
// -------------------------------------------------------------------
2333
2334
2335
// @@protoc_insertion_point(namespace_scope)
2336
2337
}  // namespace policy
2338
}  // namespace brpc
2339
2340
// @@protoc_insertion_point(global_scope)
2341
2342
#endif  // PROTOBUF_INCLUDED_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto