Coverage Report

Created: 2025-08-05 06:45

/src/brpc/build/brpc/policy/public_pbrpc_meta.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: brpc/policy/public_pbrpc_meta.proto
3
4
#include "brpc/policy/public_pbrpc_meta.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/io/coded_stream.h>
11
#include <google/protobuf/wire_format_lite_inl.h>
12
#include <google/protobuf/descriptor.h>
13
#include <google/protobuf/generated_message_reflection.h>
14
#include <google/protobuf/reflection_ops.h>
15
#include <google/protobuf/wire_format.h>
16
// This is a temporary google only hack
17
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
18
#include "third_party/protobuf/version.h"
19
#endif
20
// @@protoc_insertion_point(includes)
21
22
namespace protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto {
23
extern PROTOBUF_INTERNAL_EXPORT_protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RequestBody;
24
extern PROTOBUF_INTERNAL_EXPORT_protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RequestHead;
25
extern PROTOBUF_INTERNAL_EXPORT_protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResponseBody;
26
extern PROTOBUF_INTERNAL_EXPORT_protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResponseHead;
27
}  // namespace protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto
28
namespace brpc {
29
namespace policy {
30
class PublicPbrpcRequestDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<PublicPbrpcRequest>
33
      _instance;
34
} _PublicPbrpcRequest_default_instance_;
35
class RequestHeadDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<RequestHead>
38
      _instance;
39
} _RequestHead_default_instance_;
40
class RequestBodyDefaultTypeInternal {
41
 public:
42
  ::google::protobuf::internal::ExplicitlyConstructed<RequestBody>
43
      _instance;
44
} _RequestBody_default_instance_;
45
class PublicPbrpcResponseDefaultTypeInternal {
46
 public:
47
  ::google::protobuf::internal::ExplicitlyConstructed<PublicPbrpcResponse>
48
      _instance;
49
} _PublicPbrpcResponse_default_instance_;
50
class ResponseHeadDefaultTypeInternal {
51
 public:
52
  ::google::protobuf::internal::ExplicitlyConstructed<ResponseHead>
53
      _instance;
54
} _ResponseHead_default_instance_;
55
class ResponseBodyDefaultTypeInternal {
56
 public:
57
  ::google::protobuf::internal::ExplicitlyConstructed<ResponseBody>
58
      _instance;
59
} _ResponseBody_default_instance_;
60
}  // namespace policy
61
}  // namespace brpc
62
namespace protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto {
63
12
static void InitDefaultsPublicPbrpcRequest() {
64
12
  GOOGLE_PROTOBUF_VERIFY_VERSION;
65
66
12
  {
67
12
    void* ptr = &::brpc::policy::_PublicPbrpcRequest_default_instance_;
68
12
    new (ptr) ::brpc::policy::PublicPbrpcRequest();
69
12
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
70
12
  }
71
12
  ::brpc::policy::PublicPbrpcRequest::InitAsDefaultInstance();
72
12
}
73
74
::google::protobuf::internal::SCCInfo<2> scc_info_PublicPbrpcRequest =
75
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPublicPbrpcRequest}, {
76
      &protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_RequestHead.base,
77
      &protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_RequestBody.base,}};
78
79
12
static void InitDefaultsRequestHead() {
80
12
  GOOGLE_PROTOBUF_VERIFY_VERSION;
81
82
12
  {
83
12
    void* ptr = &::brpc::policy::_RequestHead_default_instance_;
84
12
    new (ptr) ::brpc::policy::RequestHead();
85
12
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
86
12
  }
87
12
  ::brpc::policy::RequestHead::InitAsDefaultInstance();
88
12
}
89
90
::google::protobuf::internal::SCCInfo<0> scc_info_RequestHead =
91
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRequestHead}, {}};
92
93
12
static void InitDefaultsRequestBody() {
94
12
  GOOGLE_PROTOBUF_VERIFY_VERSION;
95
96
12
  {
97
12
    void* ptr = &::brpc::policy::_RequestBody_default_instance_;
98
12
    new (ptr) ::brpc::policy::RequestBody();
99
12
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
100
12
  }
101
12
  ::brpc::policy::RequestBody::InitAsDefaultInstance();
102
12
}
103
104
::google::protobuf::internal::SCCInfo<0> scc_info_RequestBody =
105
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRequestBody}, {}};
106
107
12
static void InitDefaultsPublicPbrpcResponse() {
108
12
  GOOGLE_PROTOBUF_VERIFY_VERSION;
109
110
12
  {
111
12
    void* ptr = &::brpc::policy::_PublicPbrpcResponse_default_instance_;
112
12
    new (ptr) ::brpc::policy::PublicPbrpcResponse();
113
12
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
114
12
  }
115
12
  ::brpc::policy::PublicPbrpcResponse::InitAsDefaultInstance();
116
12
}
117
118
::google::protobuf::internal::SCCInfo<2> scc_info_PublicPbrpcResponse =
119
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPublicPbrpcResponse}, {
120
      &protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_ResponseHead.base,
121
      &protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_ResponseBody.base,}};
122
123
12
static void InitDefaultsResponseHead() {
124
12
  GOOGLE_PROTOBUF_VERIFY_VERSION;
125
126
12
  {
127
12
    void* ptr = &::brpc::policy::_ResponseHead_default_instance_;
128
12
    new (ptr) ::brpc::policy::ResponseHead();
129
12
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
130
12
  }
131
12
  ::brpc::policy::ResponseHead::InitAsDefaultInstance();
132
12
}
133
134
::google::protobuf::internal::SCCInfo<0> scc_info_ResponseHead =
135
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResponseHead}, {}};
136
137
12
static void InitDefaultsResponseBody() {
138
12
  GOOGLE_PROTOBUF_VERIFY_VERSION;
139
140
12
  {
141
12
    void* ptr = &::brpc::policy::_ResponseBody_default_instance_;
142
12
    new (ptr) ::brpc::policy::ResponseBody();
143
12
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
144
12
  }
145
12
  ::brpc::policy::ResponseBody::InitAsDefaultInstance();
146
12
}
147
148
::google::protobuf::internal::SCCInfo<0> scc_info_ResponseBody =
149
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResponseBody}, {}};
150
151
12
void InitDefaults() {
152
12
  ::google::protobuf::internal::InitSCC(&scc_info_PublicPbrpcRequest.base);
153
12
  ::google::protobuf::internal::InitSCC(&scc_info_RequestHead.base);
154
12
  ::google::protobuf::internal::InitSCC(&scc_info_RequestBody.base);
155
12
  ::google::protobuf::internal::InitSCC(&scc_info_PublicPbrpcResponse.base);
156
12
  ::google::protobuf::internal::InitSCC(&scc_info_ResponseHead.base);
157
12
  ::google::protobuf::internal::InitSCC(&scc_info_ResponseBody.base);
158
12
}
159
160
::google::protobuf::Metadata file_level_metadata[6];
161
162
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
163
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::PublicPbrpcRequest, _has_bits_),
164
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::PublicPbrpcRequest, _internal_metadata_),
165
  ~0u,  // no _extensions_
166
  ~0u,  // no _oneof_case_
167
  ~0u,  // no _weak_field_map_
168
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::PublicPbrpcRequest, requesthead_),
169
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::PublicPbrpcRequest, requestbody_),
170
  0,
171
  ~0u,
172
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestHead, _has_bits_),
173
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestHead, _internal_metadata_),
174
  ~0u,  // no _extensions_
175
  ~0u,  // no _oneof_case_
176
  ~0u,  // no _weak_field_map_
177
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestHead, from_host_),
178
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestHead, content_type_),
179
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestHead, connection_),
180
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestHead, charset_),
181
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestHead, accept_charset_),
182
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestHead, create_time_),
183
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestHead, log_id_),
184
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestHead, compress_type_),
185
  0,
186
  4,
187
  5,
188
  1,
189
  2,
190
  3,
191
  6,
192
  7,
193
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestBody, _has_bits_),
194
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestBody, _internal_metadata_),
195
  ~0u,  // no _extensions_
196
  ~0u,  // no _oneof_case_
197
  ~0u,  // no _weak_field_map_
198
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestBody, version_),
199
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestBody, charset_),
200
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestBody, service_),
201
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestBody, method_id_),
202
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestBody, id_),
203
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::RequestBody, serialized_request_),
204
  0,
205
  1,
206
  2,
207
  5,
208
  4,
209
  3,
210
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::PublicPbrpcResponse, _has_bits_),
211
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::PublicPbrpcResponse, _internal_metadata_),
212
  ~0u,  // no _extensions_
213
  ~0u,  // no _oneof_case_
214
  ~0u,  // no _weak_field_map_
215
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::PublicPbrpcResponse, responsehead_),
216
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::PublicPbrpcResponse, responsebody_),
217
  0,
218
  ~0u,
219
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseHead, _has_bits_),
220
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseHead, _internal_metadata_),
221
  ~0u,  // no _extensions_
222
  ~0u,  // no _oneof_case_
223
  ~0u,  // no _weak_field_map_
224
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseHead, code_),
225
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseHead, text_),
226
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseHead, from_host_),
227
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseHead, compress_type_),
228
  2,
229
  0,
230
  1,
231
  3,
232
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseBody, _has_bits_),
233
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseBody, _internal_metadata_),
234
  ~0u,  // no _extensions_
235
  ~0u,  // no _oneof_case_
236
  ~0u,  // no _weak_field_map_
237
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseBody, serialized_response_),
238
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseBody, version_),
239
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseBody, error_),
240
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::brpc::policy::ResponseBody, id_),
241
  0,
242
  1,
243
  3,
244
  2,
245
};
246
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
247
  { 0, 7, sizeof(::brpc::policy::PublicPbrpcRequest)},
248
  { 9, 22, sizeof(::brpc::policy::RequestHead)},
249
  { 30, 41, sizeof(::brpc::policy::RequestBody)},
250
  { 47, 54, sizeof(::brpc::policy::PublicPbrpcResponse)},
251
  { 56, 65, sizeof(::brpc::policy::ResponseHead)},
252
  { 69, 78, sizeof(::brpc::policy::ResponseBody)},
253
};
254
255
static ::google::protobuf::Message const * const file_default_instances[] = {
256
  reinterpret_cast<const ::google::protobuf::Message*>(&::brpc::policy::_PublicPbrpcRequest_default_instance_),
257
  reinterpret_cast<const ::google::protobuf::Message*>(&::brpc::policy::_RequestHead_default_instance_),
258
  reinterpret_cast<const ::google::protobuf::Message*>(&::brpc::policy::_RequestBody_default_instance_),
259
  reinterpret_cast<const ::google::protobuf::Message*>(&::brpc::policy::_PublicPbrpcResponse_default_instance_),
260
  reinterpret_cast<const ::google::protobuf::Message*>(&::brpc::policy::_ResponseHead_default_instance_),
261
  reinterpret_cast<const ::google::protobuf::Message*>(&::brpc::policy::_ResponseBody_default_instance_),
262
};
263
264
0
void protobuf_AssignDescriptors() {
265
0
  AddDescriptors();
266
0
  AssignDescriptors(
267
0
      "brpc/policy/public_pbrpc_meta.proto", schemas, file_default_instances, TableStruct::offsets,
268
0
      file_level_metadata, NULL, NULL);
269
0
}
270
271
0
void protobuf_AssignDescriptorsOnce() {
272
0
  static ::google::protobuf::internal::once_flag once;
273
0
  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
274
0
}
275
276
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
277
0
void protobuf_RegisterTypes(const ::std::string&) {
278
0
  protobuf_AssignDescriptorsOnce();
279
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6);
280
0
}
281
282
12
void AddDescriptorsImpl() {
283
12
  InitDefaults();
284
12
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
285
12
      "\n#brpc/policy/public_pbrpc_meta.proto\022\013b"
286
12
      "rpc.policy\"r\n\022PublicPbrpcRequest\022-\n\013requ"
287
12
      "estHead\030\001 \001(\0132\030.brpc.policy.RequestHead\022"
288
12
      "-\n\013requestBody\030\002 \003(\0132\030.brpc.policy.Reque"
289
12
      "stBody\"\257\001\n\013RequestHead\022\021\n\tfrom_host\030\001 \001("
290
12
      "\t\022\024\n\014content_type\030\002 \001(\r\022\022\n\nconnection\030\003 "
291
12
      "\001(\010\022\017\n\007charset\030\004 \001(\t\022\026\n\016accept_charset\030\005"
292
12
      " \001(\t\022\023\n\013create_time\030\006 \001(\t\022\016\n\006log_id\030\007 \001("
293
12
      "\004\022\025\n\rcompress_type\030\010 \001(\r\"{\n\013RequestBody\022"
294
12
      "\017\n\007version\030\001 \001(\t\022\017\n\007charset\030\002 \001(\t\022\017\n\007ser"
295
12
      "vice\030\003 \002(\t\022\021\n\tmethod_id\030\004 \002(\r\022\n\n\002id\030\005 \002("
296
12
      "\004\022\032\n\022serialized_request\030\006 \001(\014\"w\n\023PublicP"
297
12
      "brpcResponse\022/\n\014responseHead\030\001 \001(\0132\031.brp"
298
12
      "c.policy.ResponseHead\022/\n\014responseBody\030\002 "
299
12
      "\003(\0132\031.brpc.policy.ResponseBody\"T\n\014Respon"
300
12
      "seHead\022\014\n\004code\030\001 \002(\021\022\014\n\004text\030\002 \001(\t\022\021\n\tfr"
301
12
      "om_host\030\003 \001(\t\022\025\n\rcompress_type\030\004 \001(\r\"W\n\014"
302
12
      "ResponseBody\022\033\n\023serialized_response\030\001 \001("
303
12
      "\014\022\017\n\007version\030\002 \001(\t\022\r\n\005error\030\003 \001(\005\022\n\n\002id\030"
304
12
      "\004 \002(\004B#\n\017com.brpc.policyB\020PublicPbrpcPro"
305
12
      "to"
306
12
  };
307
12
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
308
12
      descriptor, 802);
309
12
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
310
12
    "brpc/policy/public_pbrpc_meta.proto", &protobuf_RegisterTypes);
311
12
}
312
313
12
void AddDescriptors() {
314
12
  static ::google::protobuf::internal::once_flag once;
315
12
  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
316
12
}
317
// Force AddDescriptors() to be called at dynamic initialization time.
318
struct StaticDescriptorInitializer {
319
12
  StaticDescriptorInitializer() {
320
12
    AddDescriptors();
321
12
  }
322
} static_descriptor_initializer;
323
}  // namespace protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto
324
namespace brpc {
325
namespace policy {
326
327
// ===================================================================
328
329
12
void PublicPbrpcRequest::InitAsDefaultInstance() {
330
12
  ::brpc::policy::_PublicPbrpcRequest_default_instance_._instance.get_mutable()->requesthead_ = const_cast< ::brpc::policy::RequestHead*>(
331
12
      ::brpc::policy::RequestHead::internal_default_instance());
332
12
}
333
#if !defined(_MSC_VER) || _MSC_VER >= 1900
334
const int PublicPbrpcRequest::kRequestHeadFieldNumber;
335
const int PublicPbrpcRequest::kRequestBodyFieldNumber;
336
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
337
338
PublicPbrpcRequest::PublicPbrpcRequest()
339
12
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
340
12
  ::google::protobuf::internal::InitSCC(
341
12
      &protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_PublicPbrpcRequest.base);
342
12
  SharedCtor();
343
  // @@protoc_insertion_point(constructor:brpc.policy.PublicPbrpcRequest)
344
12
}
345
PublicPbrpcRequest::PublicPbrpcRequest(const PublicPbrpcRequest& from)
346
0
  : ::google::protobuf::Message(),
347
0
      _internal_metadata_(NULL),
348
0
      _has_bits_(from._has_bits_),
349
0
      requestbody_(from.requestbody_) {
350
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
351
0
  if (from.has_requesthead()) {
352
0
    requesthead_ = new ::brpc::policy::RequestHead(*from.requesthead_);
353
0
  } else {
354
0
    requesthead_ = NULL;
355
0
  }
356
  // @@protoc_insertion_point(copy_constructor:brpc.policy.PublicPbrpcRequest)
357
0
}
358
359
12
void PublicPbrpcRequest::SharedCtor() {
360
12
  requesthead_ = NULL;
361
12
}
362
363
0
PublicPbrpcRequest::~PublicPbrpcRequest() {
364
  // @@protoc_insertion_point(destructor:brpc.policy.PublicPbrpcRequest)
365
0
  SharedDtor();
366
0
}
367
368
0
void PublicPbrpcRequest::SharedDtor() {
369
0
  if (this != internal_default_instance()) delete requesthead_;
370
0
}
371
372
0
void PublicPbrpcRequest::SetCachedSize(int size) const {
373
0
  _cached_size_.Set(size);
374
0
}
375
0
const ::google::protobuf::Descriptor* PublicPbrpcRequest::descriptor() {
376
0
  ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
377
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
378
0
}
379
380
0
const PublicPbrpcRequest& PublicPbrpcRequest::default_instance() {
381
0
  ::google::protobuf::internal::InitSCC(&protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_PublicPbrpcRequest.base);
382
0
  return *internal_default_instance();
383
0
}
384
385
386
0
void PublicPbrpcRequest::Clear() {
387
// @@protoc_insertion_point(message_clear_start:brpc.policy.PublicPbrpcRequest)
388
0
  ::google::protobuf::uint32 cached_has_bits = 0;
389
  // Prevent compiler warnings about cached_has_bits being unused
390
0
  (void) cached_has_bits;
391
392
0
  requestbody_.Clear();
393
0
  cached_has_bits = _has_bits_[0];
394
0
  if (cached_has_bits & 0x00000001u) {
395
0
    GOOGLE_DCHECK(requesthead_ != NULL);
396
0
    requesthead_->Clear();
397
0
  }
398
0
  _has_bits_.Clear();
399
0
  _internal_metadata_.Clear();
400
0
}
401
402
bool PublicPbrpcRequest::MergePartialFromCodedStream(
403
0
    ::google::protobuf::io::CodedInputStream* input) {
404
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
405
0
  ::google::protobuf::uint32 tag;
406
  // @@protoc_insertion_point(parse_start:brpc.policy.PublicPbrpcRequest)
407
0
  for (;;) {
408
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
409
0
    tag = p.first;
410
0
    if (!p.second) goto handle_unusual;
411
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
412
      // optional .brpc.policy.RequestHead requestHead = 1;
413
0
      case 1: {
414
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
415
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
416
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
417
0
               input, mutable_requesthead()));
418
0
        } else {
419
0
          goto handle_unusual;
420
0
        }
421
0
        break;
422
0
      }
423
424
      // repeated .brpc.policy.RequestBody requestBody = 2;
425
0
      case 2: {
426
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
427
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
428
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
429
0
                input, add_requestbody()));
430
0
        } else {
431
0
          goto handle_unusual;
432
0
        }
433
0
        break;
434
0
      }
435
436
0
      default: {
437
0
      handle_unusual:
438
0
        if (tag == 0) {
439
0
          goto success;
440
0
        }
441
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
442
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
443
0
        break;
444
0
      }
445
0
    }
446
0
  }
447
0
success:
448
  // @@protoc_insertion_point(parse_success:brpc.policy.PublicPbrpcRequest)
449
0
  return true;
450
0
failure:
451
  // @@protoc_insertion_point(parse_failure:brpc.policy.PublicPbrpcRequest)
452
0
  return false;
453
0
#undef DO_
454
0
}
455
456
void PublicPbrpcRequest::SerializeWithCachedSizes(
457
0
    ::google::protobuf::io::CodedOutputStream* output) const {
458
  // @@protoc_insertion_point(serialize_start:brpc.policy.PublicPbrpcRequest)
459
0
  ::google::protobuf::uint32 cached_has_bits = 0;
460
0
  (void) cached_has_bits;
461
462
0
  cached_has_bits = _has_bits_[0];
463
  // optional .brpc.policy.RequestHead requestHead = 1;
464
0
  if (cached_has_bits & 0x00000001u) {
465
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
466
0
      1, this->_internal_requesthead(), output);
467
0
  }
468
469
  // repeated .brpc.policy.RequestBody requestBody = 2;
470
0
  for (unsigned int i = 0,
471
0
      n = static_cast<unsigned int>(this->requestbody_size()); i < n; i++) {
472
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
473
0
      2,
474
0
      this->requestbody(static_cast<int>(i)),
475
0
      output);
476
0
  }
477
478
0
  if (_internal_metadata_.have_unknown_fields()) {
479
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
480
0
        _internal_metadata_.unknown_fields(), output);
481
0
  }
482
  // @@protoc_insertion_point(serialize_end:brpc.policy.PublicPbrpcRequest)
483
0
}
484
485
::google::protobuf::uint8* PublicPbrpcRequest::InternalSerializeWithCachedSizesToArray(
486
0
    bool deterministic, ::google::protobuf::uint8* target) const {
487
0
  (void)deterministic; // Unused
488
  // @@protoc_insertion_point(serialize_to_array_start:brpc.policy.PublicPbrpcRequest)
489
0
  ::google::protobuf::uint32 cached_has_bits = 0;
490
0
  (void) cached_has_bits;
491
492
0
  cached_has_bits = _has_bits_[0];
493
  // optional .brpc.policy.RequestHead requestHead = 1;
494
0
  if (cached_has_bits & 0x00000001u) {
495
0
    target = ::google::protobuf::internal::WireFormatLite::
496
0
      InternalWriteMessageToArray(
497
0
        1, this->_internal_requesthead(), deterministic, target);
498
0
  }
499
500
  // repeated .brpc.policy.RequestBody requestBody = 2;
501
0
  for (unsigned int i = 0,
502
0
      n = static_cast<unsigned int>(this->requestbody_size()); i < n; i++) {
503
0
    target = ::google::protobuf::internal::WireFormatLite::
504
0
      InternalWriteMessageToArray(
505
0
        2, this->requestbody(static_cast<int>(i)), deterministic, target);
506
0
  }
507
508
0
  if (_internal_metadata_.have_unknown_fields()) {
509
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
510
0
        _internal_metadata_.unknown_fields(), target);
511
0
  }
512
  // @@protoc_insertion_point(serialize_to_array_end:brpc.policy.PublicPbrpcRequest)
513
0
  return target;
514
0
}
515
516
0
size_t PublicPbrpcRequest::ByteSizeLong() const {
517
// @@protoc_insertion_point(message_byte_size_start:brpc.policy.PublicPbrpcRequest)
518
0
  size_t total_size = 0;
519
520
0
  if (_internal_metadata_.have_unknown_fields()) {
521
0
    total_size +=
522
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
523
0
        _internal_metadata_.unknown_fields());
524
0
  }
525
  // repeated .brpc.policy.RequestBody requestBody = 2;
526
0
  {
527
0
    unsigned int count = static_cast<unsigned int>(this->requestbody_size());
528
0
    total_size += 1UL * count;
529
0
    for (unsigned int i = 0; i < count; i++) {
530
0
      total_size +=
531
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
532
0
          this->requestbody(static_cast<int>(i)));
533
0
    }
534
0
  }
535
536
  // optional .brpc.policy.RequestHead requestHead = 1;
537
0
  if (has_requesthead()) {
538
0
    total_size += 1 +
539
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
540
0
        *requesthead_);
541
0
  }
542
543
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
544
0
  SetCachedSize(cached_size);
545
0
  return total_size;
546
0
}
547
548
0
void PublicPbrpcRequest::MergeFrom(const ::google::protobuf::Message& from) {
549
// @@protoc_insertion_point(generalized_merge_from_start:brpc.policy.PublicPbrpcRequest)
550
0
  GOOGLE_DCHECK_NE(&from, this);
551
0
  const PublicPbrpcRequest* source =
552
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PublicPbrpcRequest>(
553
0
          &from);
554
0
  if (source == NULL) {
555
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:brpc.policy.PublicPbrpcRequest)
556
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
557
0
  } else {
558
  // @@protoc_insertion_point(generalized_merge_from_cast_success:brpc.policy.PublicPbrpcRequest)
559
0
    MergeFrom(*source);
560
0
  }
561
0
}
562
563
0
void PublicPbrpcRequest::MergeFrom(const PublicPbrpcRequest& from) {
564
// @@protoc_insertion_point(class_specific_merge_from_start:brpc.policy.PublicPbrpcRequest)
565
0
  GOOGLE_DCHECK_NE(&from, this);
566
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
567
0
  ::google::protobuf::uint32 cached_has_bits = 0;
568
0
  (void) cached_has_bits;
569
570
0
  requestbody_.MergeFrom(from.requestbody_);
571
0
  if (from.has_requesthead()) {
572
0
    mutable_requesthead()->::brpc::policy::RequestHead::MergeFrom(from.requesthead());
573
0
  }
574
0
}
575
576
0
void PublicPbrpcRequest::CopyFrom(const ::google::protobuf::Message& from) {
577
// @@protoc_insertion_point(generalized_copy_from_start:brpc.policy.PublicPbrpcRequest)
578
0
  if (&from == this) return;
579
0
  Clear();
580
0
  MergeFrom(from);
581
0
}
582
583
0
void PublicPbrpcRequest::CopyFrom(const PublicPbrpcRequest& from) {
584
// @@protoc_insertion_point(class_specific_copy_from_start:brpc.policy.PublicPbrpcRequest)
585
0
  if (&from == this) return;
586
0
  Clear();
587
0
  MergeFrom(from);
588
0
}
589
590
0
bool PublicPbrpcRequest::IsInitialized() const {
591
0
  if (!::google::protobuf::internal::AllAreInitialized(this->requestbody())) return false;
592
0
  return true;
593
0
}
594
595
0
void PublicPbrpcRequest::Swap(PublicPbrpcRequest* other) {
596
0
  if (other == this) return;
597
0
  InternalSwap(other);
598
0
}
599
0
void PublicPbrpcRequest::InternalSwap(PublicPbrpcRequest* other) {
600
0
  using std::swap;
601
0
  CastToBase(&requestbody_)->InternalSwap(CastToBase(&other->requestbody_));
602
0
  swap(requesthead_, other->requesthead_);
603
0
  swap(_has_bits_[0], other->_has_bits_[0]);
604
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
605
0
}
606
607
0
::google::protobuf::Metadata PublicPbrpcRequest::GetMetadata() const {
608
0
  protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
609
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages];
610
0
}
611
612
613
// ===================================================================
614
615
12
void RequestHead::InitAsDefaultInstance() {
616
12
}
617
#if !defined(_MSC_VER) || _MSC_VER >= 1900
618
const int RequestHead::kFromHostFieldNumber;
619
const int RequestHead::kContentTypeFieldNumber;
620
const int RequestHead::kConnectionFieldNumber;
621
const int RequestHead::kCharsetFieldNumber;
622
const int RequestHead::kAcceptCharsetFieldNumber;
623
const int RequestHead::kCreateTimeFieldNumber;
624
const int RequestHead::kLogIdFieldNumber;
625
const int RequestHead::kCompressTypeFieldNumber;
626
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
627
628
RequestHead::RequestHead()
629
12
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
630
12
  ::google::protobuf::internal::InitSCC(
631
12
      &protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_RequestHead.base);
632
12
  SharedCtor();
633
  // @@protoc_insertion_point(constructor:brpc.policy.RequestHead)
634
12
}
635
RequestHead::RequestHead(const RequestHead& from)
636
0
  : ::google::protobuf::Message(),
637
0
      _internal_metadata_(NULL),
638
0
      _has_bits_(from._has_bits_) {
639
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
640
0
  from_host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
641
0
  if (from.has_from_host()) {
642
0
    from_host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.from_host_);
643
0
  }
644
0
  charset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
645
0
  if (from.has_charset()) {
646
0
    charset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.charset_);
647
0
  }
648
0
  accept_charset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
649
0
  if (from.has_accept_charset()) {
650
0
    accept_charset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.accept_charset_);
651
0
  }
652
0
  create_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
653
0
  if (from.has_create_time()) {
654
0
    create_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.create_time_);
655
0
  }
656
0
  ::memcpy(&content_type_, &from.content_type_,
657
0
    static_cast<size_t>(reinterpret_cast<char*>(&compress_type_) -
658
0
    reinterpret_cast<char*>(&content_type_)) + sizeof(compress_type_));
659
  // @@protoc_insertion_point(copy_constructor:brpc.policy.RequestHead)
660
0
}
661
662
12
void RequestHead::SharedCtor() {
663
12
  from_host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
664
12
  charset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
665
12
  accept_charset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
666
12
  create_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
667
12
  ::memset(&content_type_, 0, static_cast<size_t>(
668
12
      reinterpret_cast<char*>(&compress_type_) -
669
12
      reinterpret_cast<char*>(&content_type_)) + sizeof(compress_type_));
670
12
}
671
672
0
RequestHead::~RequestHead() {
673
  // @@protoc_insertion_point(destructor:brpc.policy.RequestHead)
674
0
  SharedDtor();
675
0
}
676
677
0
void RequestHead::SharedDtor() {
678
0
  from_host_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
679
0
  charset_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
680
0
  accept_charset_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
681
0
  create_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
682
0
}
683
684
0
void RequestHead::SetCachedSize(int size) const {
685
0
  _cached_size_.Set(size);
686
0
}
687
0
const ::google::protobuf::Descriptor* RequestHead::descriptor() {
688
0
  ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
689
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
690
0
}
691
692
0
const RequestHead& RequestHead::default_instance() {
693
0
  ::google::protobuf::internal::InitSCC(&protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_RequestHead.base);
694
0
  return *internal_default_instance();
695
0
}
696
697
698
0
void RequestHead::Clear() {
699
// @@protoc_insertion_point(message_clear_start:brpc.policy.RequestHead)
700
0
  ::google::protobuf::uint32 cached_has_bits = 0;
701
  // Prevent compiler warnings about cached_has_bits being unused
702
0
  (void) cached_has_bits;
703
704
0
  cached_has_bits = _has_bits_[0];
705
0
  if (cached_has_bits & 15u) {
706
0
    if (cached_has_bits & 0x00000001u) {
707
0
      from_host_.ClearNonDefaultToEmptyNoArena();
708
0
    }
709
0
    if (cached_has_bits & 0x00000002u) {
710
0
      charset_.ClearNonDefaultToEmptyNoArena();
711
0
    }
712
0
    if (cached_has_bits & 0x00000004u) {
713
0
      accept_charset_.ClearNonDefaultToEmptyNoArena();
714
0
    }
715
0
    if (cached_has_bits & 0x00000008u) {
716
0
      create_time_.ClearNonDefaultToEmptyNoArena();
717
0
    }
718
0
  }
719
0
  if (cached_has_bits & 240u) {
720
0
    ::memset(&content_type_, 0, static_cast<size_t>(
721
0
        reinterpret_cast<char*>(&compress_type_) -
722
0
        reinterpret_cast<char*>(&content_type_)) + sizeof(compress_type_));
723
0
  }
724
0
  _has_bits_.Clear();
725
0
  _internal_metadata_.Clear();
726
0
}
727
728
bool RequestHead::MergePartialFromCodedStream(
729
0
    ::google::protobuf::io::CodedInputStream* input) {
730
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
731
0
  ::google::protobuf::uint32 tag;
732
  // @@protoc_insertion_point(parse_start:brpc.policy.RequestHead)
733
0
  for (;;) {
734
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
735
0
    tag = p.first;
736
0
    if (!p.second) goto handle_unusual;
737
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
738
      // optional string from_host = 1;
739
0
      case 1: {
740
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
741
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
742
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
743
0
                input, this->mutable_from_host()));
744
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
745
0
            this->from_host().data(), static_cast<int>(this->from_host().length()),
746
0
            ::google::protobuf::internal::WireFormat::PARSE,
747
0
            "brpc.policy.RequestHead.from_host");
748
0
        } else {
749
0
          goto handle_unusual;
750
0
        }
751
0
        break;
752
0
      }
753
754
      // optional uint32 content_type = 2;
755
0
      case 2: {
756
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
757
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
758
0
          set_has_content_type();
759
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
760
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
761
0
                 input, &content_type_)));
762
0
        } else {
763
0
          goto handle_unusual;
764
0
        }
765
0
        break;
766
0
      }
767
768
      // optional bool connection = 3;
769
0
      case 3: {
770
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
771
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
772
0
          set_has_connection();
773
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
774
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
775
0
                 input, &connection_)));
776
0
        } else {
777
0
          goto handle_unusual;
778
0
        }
779
0
        break;
780
0
      }
781
782
      // optional string charset = 4;
783
0
      case 4: {
784
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
785
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
786
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
787
0
                input, this->mutable_charset()));
788
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
789
0
            this->charset().data(), static_cast<int>(this->charset().length()),
790
0
            ::google::protobuf::internal::WireFormat::PARSE,
791
0
            "brpc.policy.RequestHead.charset");
792
0
        } else {
793
0
          goto handle_unusual;
794
0
        }
795
0
        break;
796
0
      }
797
798
      // optional string accept_charset = 5;
799
0
      case 5: {
800
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
801
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
802
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
803
0
                input, this->mutable_accept_charset()));
804
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
805
0
            this->accept_charset().data(), static_cast<int>(this->accept_charset().length()),
806
0
            ::google::protobuf::internal::WireFormat::PARSE,
807
0
            "brpc.policy.RequestHead.accept_charset");
808
0
        } else {
809
0
          goto handle_unusual;
810
0
        }
811
0
        break;
812
0
      }
813
814
      // optional string create_time = 6;
815
0
      case 6: {
816
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
817
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
818
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
819
0
                input, this->mutable_create_time()));
820
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
821
0
            this->create_time().data(), static_cast<int>(this->create_time().length()),
822
0
            ::google::protobuf::internal::WireFormat::PARSE,
823
0
            "brpc.policy.RequestHead.create_time");
824
0
        } else {
825
0
          goto handle_unusual;
826
0
        }
827
0
        break;
828
0
      }
829
830
      // optional uint64 log_id = 7;
831
0
      case 7: {
832
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
833
0
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
834
0
          set_has_log_id();
835
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
836
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
837
0
                 input, &log_id_)));
838
0
        } else {
839
0
          goto handle_unusual;
840
0
        }
841
0
        break;
842
0
      }
843
844
      // optional uint32 compress_type = 8;
845
0
      case 8: {
846
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
847
0
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
848
0
          set_has_compress_type();
849
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
850
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
851
0
                 input, &compress_type_)));
852
0
        } else {
853
0
          goto handle_unusual;
854
0
        }
855
0
        break;
856
0
      }
857
858
0
      default: {
859
0
      handle_unusual:
860
0
        if (tag == 0) {
861
0
          goto success;
862
0
        }
863
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
864
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
865
0
        break;
866
0
      }
867
0
    }
868
0
  }
869
0
success:
870
  // @@protoc_insertion_point(parse_success:brpc.policy.RequestHead)
871
0
  return true;
872
0
failure:
873
  // @@protoc_insertion_point(parse_failure:brpc.policy.RequestHead)
874
0
  return false;
875
0
#undef DO_
876
0
}
877
878
void RequestHead::SerializeWithCachedSizes(
879
0
    ::google::protobuf::io::CodedOutputStream* output) const {
880
  // @@protoc_insertion_point(serialize_start:brpc.policy.RequestHead)
881
0
  ::google::protobuf::uint32 cached_has_bits = 0;
882
0
  (void) cached_has_bits;
883
884
0
  cached_has_bits = _has_bits_[0];
885
  // optional string from_host = 1;
886
0
  if (cached_has_bits & 0x00000001u) {
887
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
888
0
      this->from_host().data(), static_cast<int>(this->from_host().length()),
889
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
890
0
      "brpc.policy.RequestHead.from_host");
891
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
892
0
      1, this->from_host(), output);
893
0
  }
894
895
  // optional uint32 content_type = 2;
896
0
  if (cached_has_bits & 0x00000010u) {
897
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->content_type(), output);
898
0
  }
899
900
  // optional bool connection = 3;
901
0
  if (cached_has_bits & 0x00000020u) {
902
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->connection(), output);
903
0
  }
904
905
  // optional string charset = 4;
906
0
  if (cached_has_bits & 0x00000002u) {
907
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
908
0
      this->charset().data(), static_cast<int>(this->charset().length()),
909
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
910
0
      "brpc.policy.RequestHead.charset");
911
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
912
0
      4, this->charset(), output);
913
0
  }
914
915
  // optional string accept_charset = 5;
916
0
  if (cached_has_bits & 0x00000004u) {
917
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
918
0
      this->accept_charset().data(), static_cast<int>(this->accept_charset().length()),
919
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
920
0
      "brpc.policy.RequestHead.accept_charset");
921
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
922
0
      5, this->accept_charset(), output);
923
0
  }
924
925
  // optional string create_time = 6;
926
0
  if (cached_has_bits & 0x00000008u) {
927
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
928
0
      this->create_time().data(), static_cast<int>(this->create_time().length()),
929
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
930
0
      "brpc.policy.RequestHead.create_time");
931
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
932
0
      6, this->create_time(), output);
933
0
  }
934
935
  // optional uint64 log_id = 7;
936
0
  if (cached_has_bits & 0x00000040u) {
937
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->log_id(), output);
938
0
  }
939
940
  // optional uint32 compress_type = 8;
941
0
  if (cached_has_bits & 0x00000080u) {
942
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->compress_type(), output);
943
0
  }
944
945
0
  if (_internal_metadata_.have_unknown_fields()) {
946
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
947
0
        _internal_metadata_.unknown_fields(), output);
948
0
  }
949
  // @@protoc_insertion_point(serialize_end:brpc.policy.RequestHead)
950
0
}
951
952
::google::protobuf::uint8* RequestHead::InternalSerializeWithCachedSizesToArray(
953
0
    bool deterministic, ::google::protobuf::uint8* target) const {
954
0
  (void)deterministic; // Unused
955
  // @@protoc_insertion_point(serialize_to_array_start:brpc.policy.RequestHead)
956
0
  ::google::protobuf::uint32 cached_has_bits = 0;
957
0
  (void) cached_has_bits;
958
959
0
  cached_has_bits = _has_bits_[0];
960
  // optional string from_host = 1;
961
0
  if (cached_has_bits & 0x00000001u) {
962
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
963
0
      this->from_host().data(), static_cast<int>(this->from_host().length()),
964
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
965
0
      "brpc.policy.RequestHead.from_host");
966
0
    target =
967
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
968
0
        1, this->from_host(), target);
969
0
  }
970
971
  // optional uint32 content_type = 2;
972
0
  if (cached_has_bits & 0x00000010u) {
973
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->content_type(), target);
974
0
  }
975
976
  // optional bool connection = 3;
977
0
  if (cached_has_bits & 0x00000020u) {
978
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->connection(), target);
979
0
  }
980
981
  // optional string charset = 4;
982
0
  if (cached_has_bits & 0x00000002u) {
983
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
984
0
      this->charset().data(), static_cast<int>(this->charset().length()),
985
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
986
0
      "brpc.policy.RequestHead.charset");
987
0
    target =
988
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
989
0
        4, this->charset(), target);
990
0
  }
991
992
  // optional string accept_charset = 5;
993
0
  if (cached_has_bits & 0x00000004u) {
994
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
995
0
      this->accept_charset().data(), static_cast<int>(this->accept_charset().length()),
996
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
997
0
      "brpc.policy.RequestHead.accept_charset");
998
0
    target =
999
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1000
0
        5, this->accept_charset(), target);
1001
0
  }
1002
1003
  // optional string create_time = 6;
1004
0
  if (cached_has_bits & 0x00000008u) {
1005
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1006
0
      this->create_time().data(), static_cast<int>(this->create_time().length()),
1007
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1008
0
      "brpc.policy.RequestHead.create_time");
1009
0
    target =
1010
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1011
0
        6, this->create_time(), target);
1012
0
  }
1013
1014
  // optional uint64 log_id = 7;
1015
0
  if (cached_has_bits & 0x00000040u) {
1016
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->log_id(), target);
1017
0
  }
1018
1019
  // optional uint32 compress_type = 8;
1020
0
  if (cached_has_bits & 0x00000080u) {
1021
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->compress_type(), target);
1022
0
  }
1023
1024
0
  if (_internal_metadata_.have_unknown_fields()) {
1025
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1026
0
        _internal_metadata_.unknown_fields(), target);
1027
0
  }
1028
  // @@protoc_insertion_point(serialize_to_array_end:brpc.policy.RequestHead)
1029
0
  return target;
1030
0
}
1031
1032
0
size_t RequestHead::ByteSizeLong() const {
1033
// @@protoc_insertion_point(message_byte_size_start:brpc.policy.RequestHead)
1034
0
  size_t total_size = 0;
1035
1036
0
  if (_internal_metadata_.have_unknown_fields()) {
1037
0
    total_size +=
1038
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1039
0
        _internal_metadata_.unknown_fields());
1040
0
  }
1041
0
  if (_has_bits_[0 / 32] & 255u) {
1042
    // optional string from_host = 1;
1043
0
    if (has_from_host()) {
1044
0
      total_size += 1 +
1045
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
1046
0
          this->from_host());
1047
0
    }
1048
1049
    // optional string charset = 4;
1050
0
    if (has_charset()) {
1051
0
      total_size += 1 +
1052
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
1053
0
          this->charset());
1054
0
    }
1055
1056
    // optional string accept_charset = 5;
1057
0
    if (has_accept_charset()) {
1058
0
      total_size += 1 +
1059
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
1060
0
          this->accept_charset());
1061
0
    }
1062
1063
    // optional string create_time = 6;
1064
0
    if (has_create_time()) {
1065
0
      total_size += 1 +
1066
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
1067
0
          this->create_time());
1068
0
    }
1069
1070
    // optional uint32 content_type = 2;
1071
0
    if (has_content_type()) {
1072
0
      total_size += 1 +
1073
0
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
1074
0
          this->content_type());
1075
0
    }
1076
1077
    // optional bool connection = 3;
1078
0
    if (has_connection()) {
1079
0
      total_size += 1 + 1;
1080
0
    }
1081
1082
    // optional uint64 log_id = 7;
1083
0
    if (has_log_id()) {
1084
0
      total_size += 1 +
1085
0
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
1086
0
          this->log_id());
1087
0
    }
1088
1089
    // optional uint32 compress_type = 8;
1090
0
    if (has_compress_type()) {
1091
0
      total_size += 1 +
1092
0
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
1093
0
          this->compress_type());
1094
0
    }
1095
1096
0
  }
1097
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1098
0
  SetCachedSize(cached_size);
1099
0
  return total_size;
1100
0
}
1101
1102
0
void RequestHead::MergeFrom(const ::google::protobuf::Message& from) {
1103
// @@protoc_insertion_point(generalized_merge_from_start:brpc.policy.RequestHead)
1104
0
  GOOGLE_DCHECK_NE(&from, this);
1105
0
  const RequestHead* source =
1106
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RequestHead>(
1107
0
          &from);
1108
0
  if (source == NULL) {
1109
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:brpc.policy.RequestHead)
1110
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1111
0
  } else {
1112
  // @@protoc_insertion_point(generalized_merge_from_cast_success:brpc.policy.RequestHead)
1113
0
    MergeFrom(*source);
1114
0
  }
1115
0
}
1116
1117
0
void RequestHead::MergeFrom(const RequestHead& from) {
1118
// @@protoc_insertion_point(class_specific_merge_from_start:brpc.policy.RequestHead)
1119
0
  GOOGLE_DCHECK_NE(&from, this);
1120
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1121
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1122
0
  (void) cached_has_bits;
1123
1124
0
  cached_has_bits = from._has_bits_[0];
1125
0
  if (cached_has_bits & 255u) {
1126
0
    if (cached_has_bits & 0x00000001u) {
1127
0
      set_has_from_host();
1128
0
      from_host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.from_host_);
1129
0
    }
1130
0
    if (cached_has_bits & 0x00000002u) {
1131
0
      set_has_charset();
1132
0
      charset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.charset_);
1133
0
    }
1134
0
    if (cached_has_bits & 0x00000004u) {
1135
0
      set_has_accept_charset();
1136
0
      accept_charset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.accept_charset_);
1137
0
    }
1138
0
    if (cached_has_bits & 0x00000008u) {
1139
0
      set_has_create_time();
1140
0
      create_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.create_time_);
1141
0
    }
1142
0
    if (cached_has_bits & 0x00000010u) {
1143
0
      content_type_ = from.content_type_;
1144
0
    }
1145
0
    if (cached_has_bits & 0x00000020u) {
1146
0
      connection_ = from.connection_;
1147
0
    }
1148
0
    if (cached_has_bits & 0x00000040u) {
1149
0
      log_id_ = from.log_id_;
1150
0
    }
1151
0
    if (cached_has_bits & 0x00000080u) {
1152
0
      compress_type_ = from.compress_type_;
1153
0
    }
1154
0
    _has_bits_[0] |= cached_has_bits;
1155
0
  }
1156
0
}
1157
1158
0
void RequestHead::CopyFrom(const ::google::protobuf::Message& from) {
1159
// @@protoc_insertion_point(generalized_copy_from_start:brpc.policy.RequestHead)
1160
0
  if (&from == this) return;
1161
0
  Clear();
1162
0
  MergeFrom(from);
1163
0
}
1164
1165
0
void RequestHead::CopyFrom(const RequestHead& from) {
1166
// @@protoc_insertion_point(class_specific_copy_from_start:brpc.policy.RequestHead)
1167
0
  if (&from == this) return;
1168
0
  Clear();
1169
0
  MergeFrom(from);
1170
0
}
1171
1172
0
bool RequestHead::IsInitialized() const {
1173
0
  return true;
1174
0
}
1175
1176
0
void RequestHead::Swap(RequestHead* other) {
1177
0
  if (other == this) return;
1178
0
  InternalSwap(other);
1179
0
}
1180
0
void RequestHead::InternalSwap(RequestHead* other) {
1181
0
  using std::swap;
1182
0
  from_host_.Swap(&other->from_host_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1183
0
    GetArenaNoVirtual());
1184
0
  charset_.Swap(&other->charset_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1185
0
    GetArenaNoVirtual());
1186
0
  accept_charset_.Swap(&other->accept_charset_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1187
0
    GetArenaNoVirtual());
1188
0
  create_time_.Swap(&other->create_time_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1189
0
    GetArenaNoVirtual());
1190
0
  swap(content_type_, other->content_type_);
1191
0
  swap(connection_, other->connection_);
1192
0
  swap(log_id_, other->log_id_);
1193
0
  swap(compress_type_, other->compress_type_);
1194
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1195
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1196
0
}
1197
1198
0
::google::protobuf::Metadata RequestHead::GetMetadata() const {
1199
0
  protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
1200
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages];
1201
0
}
1202
1203
1204
// ===================================================================
1205
1206
12
void RequestBody::InitAsDefaultInstance() {
1207
12
}
1208
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1209
const int RequestBody::kVersionFieldNumber;
1210
const int RequestBody::kCharsetFieldNumber;
1211
const int RequestBody::kServiceFieldNumber;
1212
const int RequestBody::kMethodIdFieldNumber;
1213
const int RequestBody::kIdFieldNumber;
1214
const int RequestBody::kSerializedRequestFieldNumber;
1215
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1216
1217
RequestBody::RequestBody()
1218
12
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1219
12
  ::google::protobuf::internal::InitSCC(
1220
12
      &protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_RequestBody.base);
1221
12
  SharedCtor();
1222
  // @@protoc_insertion_point(constructor:brpc.policy.RequestBody)
1223
12
}
1224
RequestBody::RequestBody(const RequestBody& from)
1225
0
  : ::google::protobuf::Message(),
1226
0
      _internal_metadata_(NULL),
1227
0
      _has_bits_(from._has_bits_) {
1228
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1229
0
  version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1230
0
  if (from.has_version()) {
1231
0
    version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
1232
0
  }
1233
0
  charset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1234
0
  if (from.has_charset()) {
1235
0
    charset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.charset_);
1236
0
  }
1237
0
  service_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1238
0
  if (from.has_service()) {
1239
0
    service_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.service_);
1240
0
  }
1241
0
  serialized_request_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1242
0
  if (from.has_serialized_request()) {
1243
0
    serialized_request_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialized_request_);
1244
0
  }
1245
0
  ::memcpy(&id_, &from.id_,
1246
0
    static_cast<size_t>(reinterpret_cast<char*>(&method_id_) -
1247
0
    reinterpret_cast<char*>(&id_)) + sizeof(method_id_));
1248
  // @@protoc_insertion_point(copy_constructor:brpc.policy.RequestBody)
1249
0
}
1250
1251
12
void RequestBody::SharedCtor() {
1252
12
  version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1253
12
  charset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1254
12
  service_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1255
12
  serialized_request_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1256
12
  ::memset(&id_, 0, static_cast<size_t>(
1257
12
      reinterpret_cast<char*>(&method_id_) -
1258
12
      reinterpret_cast<char*>(&id_)) + sizeof(method_id_));
1259
12
}
1260
1261
0
RequestBody::~RequestBody() {
1262
  // @@protoc_insertion_point(destructor:brpc.policy.RequestBody)
1263
0
  SharedDtor();
1264
0
}
1265
1266
0
void RequestBody::SharedDtor() {
1267
0
  version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1268
0
  charset_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1269
0
  service_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1270
0
  serialized_request_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1271
0
}
1272
1273
0
void RequestBody::SetCachedSize(int size) const {
1274
0
  _cached_size_.Set(size);
1275
0
}
1276
0
const ::google::protobuf::Descriptor* RequestBody::descriptor() {
1277
0
  ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
1278
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1279
0
}
1280
1281
0
const RequestBody& RequestBody::default_instance() {
1282
0
  ::google::protobuf::internal::InitSCC(&protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_RequestBody.base);
1283
0
  return *internal_default_instance();
1284
0
}
1285
1286
1287
0
void RequestBody::Clear() {
1288
// @@protoc_insertion_point(message_clear_start:brpc.policy.RequestBody)
1289
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1290
  // Prevent compiler warnings about cached_has_bits being unused
1291
0
  (void) cached_has_bits;
1292
1293
0
  cached_has_bits = _has_bits_[0];
1294
0
  if (cached_has_bits & 15u) {
1295
0
    if (cached_has_bits & 0x00000001u) {
1296
0
      version_.ClearNonDefaultToEmptyNoArena();
1297
0
    }
1298
0
    if (cached_has_bits & 0x00000002u) {
1299
0
      charset_.ClearNonDefaultToEmptyNoArena();
1300
0
    }
1301
0
    if (cached_has_bits & 0x00000004u) {
1302
0
      service_.ClearNonDefaultToEmptyNoArena();
1303
0
    }
1304
0
    if (cached_has_bits & 0x00000008u) {
1305
0
      serialized_request_.ClearNonDefaultToEmptyNoArena();
1306
0
    }
1307
0
  }
1308
0
  if (cached_has_bits & 48u) {
1309
0
    ::memset(&id_, 0, static_cast<size_t>(
1310
0
        reinterpret_cast<char*>(&method_id_) -
1311
0
        reinterpret_cast<char*>(&id_)) + sizeof(method_id_));
1312
0
  }
1313
0
  _has_bits_.Clear();
1314
0
  _internal_metadata_.Clear();
1315
0
}
1316
1317
bool RequestBody::MergePartialFromCodedStream(
1318
0
    ::google::protobuf::io::CodedInputStream* input) {
1319
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1320
0
  ::google::protobuf::uint32 tag;
1321
  // @@protoc_insertion_point(parse_start:brpc.policy.RequestBody)
1322
0
  for (;;) {
1323
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1324
0
    tag = p.first;
1325
0
    if (!p.second) goto handle_unusual;
1326
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1327
      // optional string version = 1;
1328
0
      case 1: {
1329
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1330
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1331
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1332
0
                input, this->mutable_version()));
1333
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1334
0
            this->version().data(), static_cast<int>(this->version().length()),
1335
0
            ::google::protobuf::internal::WireFormat::PARSE,
1336
0
            "brpc.policy.RequestBody.version");
1337
0
        } else {
1338
0
          goto handle_unusual;
1339
0
        }
1340
0
        break;
1341
0
      }
1342
1343
      // optional string charset = 2;
1344
0
      case 2: {
1345
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1346
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1347
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1348
0
                input, this->mutable_charset()));
1349
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1350
0
            this->charset().data(), static_cast<int>(this->charset().length()),
1351
0
            ::google::protobuf::internal::WireFormat::PARSE,
1352
0
            "brpc.policy.RequestBody.charset");
1353
0
        } else {
1354
0
          goto handle_unusual;
1355
0
        }
1356
0
        break;
1357
0
      }
1358
1359
      // required string service = 3;
1360
0
      case 3: {
1361
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1362
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1363
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1364
0
                input, this->mutable_service()));
1365
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1366
0
            this->service().data(), static_cast<int>(this->service().length()),
1367
0
            ::google::protobuf::internal::WireFormat::PARSE,
1368
0
            "brpc.policy.RequestBody.service");
1369
0
        } else {
1370
0
          goto handle_unusual;
1371
0
        }
1372
0
        break;
1373
0
      }
1374
1375
      // required uint32 method_id = 4;
1376
0
      case 4: {
1377
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1378
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
1379
0
          set_has_method_id();
1380
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1381
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1382
0
                 input, &method_id_)));
1383
0
        } else {
1384
0
          goto handle_unusual;
1385
0
        }
1386
0
        break;
1387
0
      }
1388
1389
      // required uint64 id = 5;
1390
0
      case 5: {
1391
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1392
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
1393
0
          set_has_id();
1394
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1395
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1396
0
                 input, &id_)));
1397
0
        } else {
1398
0
          goto handle_unusual;
1399
0
        }
1400
0
        break;
1401
0
      }
1402
1403
      // optional bytes serialized_request = 6;
1404
0
      case 6: {
1405
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1406
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
1407
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1408
0
                input, this->mutable_serialized_request()));
1409
0
        } else {
1410
0
          goto handle_unusual;
1411
0
        }
1412
0
        break;
1413
0
      }
1414
1415
0
      default: {
1416
0
      handle_unusual:
1417
0
        if (tag == 0) {
1418
0
          goto success;
1419
0
        }
1420
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1421
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1422
0
        break;
1423
0
      }
1424
0
    }
1425
0
  }
1426
0
success:
1427
  // @@protoc_insertion_point(parse_success:brpc.policy.RequestBody)
1428
0
  return true;
1429
0
failure:
1430
  // @@protoc_insertion_point(parse_failure:brpc.policy.RequestBody)
1431
0
  return false;
1432
0
#undef DO_
1433
0
}
1434
1435
void RequestBody::SerializeWithCachedSizes(
1436
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1437
  // @@protoc_insertion_point(serialize_start:brpc.policy.RequestBody)
1438
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1439
0
  (void) cached_has_bits;
1440
1441
0
  cached_has_bits = _has_bits_[0];
1442
  // optional string version = 1;
1443
0
  if (cached_has_bits & 0x00000001u) {
1444
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1445
0
      this->version().data(), static_cast<int>(this->version().length()),
1446
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1447
0
      "brpc.policy.RequestBody.version");
1448
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1449
0
      1, this->version(), output);
1450
0
  }
1451
1452
  // optional string charset = 2;
1453
0
  if (cached_has_bits & 0x00000002u) {
1454
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1455
0
      this->charset().data(), static_cast<int>(this->charset().length()),
1456
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1457
0
      "brpc.policy.RequestBody.charset");
1458
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1459
0
      2, this->charset(), output);
1460
0
  }
1461
1462
  // required string service = 3;
1463
0
  if (cached_has_bits & 0x00000004u) {
1464
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1465
0
      this->service().data(), static_cast<int>(this->service().length()),
1466
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1467
0
      "brpc.policy.RequestBody.service");
1468
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1469
0
      3, this->service(), output);
1470
0
  }
1471
1472
  // required uint32 method_id = 4;
1473
0
  if (cached_has_bits & 0x00000020u) {
1474
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->method_id(), output);
1475
0
  }
1476
1477
  // required uint64 id = 5;
1478
0
  if (cached_has_bits & 0x00000010u) {
1479
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->id(), output);
1480
0
  }
1481
1482
  // optional bytes serialized_request = 6;
1483
0
  if (cached_has_bits & 0x00000008u) {
1484
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1485
0
      6, this->serialized_request(), output);
1486
0
  }
1487
1488
0
  if (_internal_metadata_.have_unknown_fields()) {
1489
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1490
0
        _internal_metadata_.unknown_fields(), output);
1491
0
  }
1492
  // @@protoc_insertion_point(serialize_end:brpc.policy.RequestBody)
1493
0
}
1494
1495
::google::protobuf::uint8* RequestBody::InternalSerializeWithCachedSizesToArray(
1496
0
    bool deterministic, ::google::protobuf::uint8* target) const {
1497
0
  (void)deterministic; // Unused
1498
  // @@protoc_insertion_point(serialize_to_array_start:brpc.policy.RequestBody)
1499
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1500
0
  (void) cached_has_bits;
1501
1502
0
  cached_has_bits = _has_bits_[0];
1503
  // optional string version = 1;
1504
0
  if (cached_has_bits & 0x00000001u) {
1505
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1506
0
      this->version().data(), static_cast<int>(this->version().length()),
1507
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1508
0
      "brpc.policy.RequestBody.version");
1509
0
    target =
1510
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1511
0
        1, this->version(), target);
1512
0
  }
1513
1514
  // optional string charset = 2;
1515
0
  if (cached_has_bits & 0x00000002u) {
1516
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1517
0
      this->charset().data(), static_cast<int>(this->charset().length()),
1518
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1519
0
      "brpc.policy.RequestBody.charset");
1520
0
    target =
1521
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1522
0
        2, this->charset(), target);
1523
0
  }
1524
1525
  // required string service = 3;
1526
0
  if (cached_has_bits & 0x00000004u) {
1527
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1528
0
      this->service().data(), static_cast<int>(this->service().length()),
1529
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1530
0
      "brpc.policy.RequestBody.service");
1531
0
    target =
1532
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1533
0
        3, this->service(), target);
1534
0
  }
1535
1536
  // required uint32 method_id = 4;
1537
0
  if (cached_has_bits & 0x00000020u) {
1538
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->method_id(), target);
1539
0
  }
1540
1541
  // required uint64 id = 5;
1542
0
  if (cached_has_bits & 0x00000010u) {
1543
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->id(), target);
1544
0
  }
1545
1546
  // optional bytes serialized_request = 6;
1547
0
  if (cached_has_bits & 0x00000008u) {
1548
0
    target =
1549
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1550
0
        6, this->serialized_request(), target);
1551
0
  }
1552
1553
0
  if (_internal_metadata_.have_unknown_fields()) {
1554
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1555
0
        _internal_metadata_.unknown_fields(), target);
1556
0
  }
1557
  // @@protoc_insertion_point(serialize_to_array_end:brpc.policy.RequestBody)
1558
0
  return target;
1559
0
}
1560
1561
0
size_t RequestBody::RequiredFieldsByteSizeFallback() const {
1562
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:brpc.policy.RequestBody)
1563
0
  size_t total_size = 0;
1564
1565
0
  if (has_service()) {
1566
    // required string service = 3;
1567
0
    total_size += 1 +
1568
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
1569
0
        this->service());
1570
0
  }
1571
1572
0
  if (has_id()) {
1573
    // required uint64 id = 5;
1574
0
    total_size += 1 +
1575
0
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
1576
0
        this->id());
1577
0
  }
1578
1579
0
  if (has_method_id()) {
1580
    // required uint32 method_id = 4;
1581
0
    total_size += 1 +
1582
0
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
1583
0
        this->method_id());
1584
0
  }
1585
1586
0
  return total_size;
1587
0
}
1588
0
size_t RequestBody::ByteSizeLong() const {
1589
// @@protoc_insertion_point(message_byte_size_start:brpc.policy.RequestBody)
1590
0
  size_t total_size = 0;
1591
1592
0
  if (_internal_metadata_.have_unknown_fields()) {
1593
0
    total_size +=
1594
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1595
0
        _internal_metadata_.unknown_fields());
1596
0
  }
1597
0
  if (((_has_bits_[0] & 0x00000034) ^ 0x00000034) == 0) {  // All required fields are present.
1598
    // required string service = 3;
1599
0
    total_size += 1 +
1600
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
1601
0
        this->service());
1602
1603
    // required uint64 id = 5;
1604
0
    total_size += 1 +
1605
0
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
1606
0
        this->id());
1607
1608
    // required uint32 method_id = 4;
1609
0
    total_size += 1 +
1610
0
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
1611
0
        this->method_id());
1612
1613
0
  } else {
1614
0
    total_size += RequiredFieldsByteSizeFallback();
1615
0
  }
1616
0
  if (_has_bits_[0 / 32] & 3u) {
1617
    // optional string version = 1;
1618
0
    if (has_version()) {
1619
0
      total_size += 1 +
1620
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
1621
0
          this->version());
1622
0
    }
1623
1624
    // optional string charset = 2;
1625
0
    if (has_charset()) {
1626
0
      total_size += 1 +
1627
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
1628
0
          this->charset());
1629
0
    }
1630
1631
0
  }
1632
  // optional bytes serialized_request = 6;
1633
0
  if (has_serialized_request()) {
1634
0
    total_size += 1 +
1635
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
1636
0
        this->serialized_request());
1637
0
  }
1638
1639
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1640
0
  SetCachedSize(cached_size);
1641
0
  return total_size;
1642
0
}
1643
1644
0
void RequestBody::MergeFrom(const ::google::protobuf::Message& from) {
1645
// @@protoc_insertion_point(generalized_merge_from_start:brpc.policy.RequestBody)
1646
0
  GOOGLE_DCHECK_NE(&from, this);
1647
0
  const RequestBody* source =
1648
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RequestBody>(
1649
0
          &from);
1650
0
  if (source == NULL) {
1651
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:brpc.policy.RequestBody)
1652
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1653
0
  } else {
1654
  // @@protoc_insertion_point(generalized_merge_from_cast_success:brpc.policy.RequestBody)
1655
0
    MergeFrom(*source);
1656
0
  }
1657
0
}
1658
1659
0
void RequestBody::MergeFrom(const RequestBody& from) {
1660
// @@protoc_insertion_point(class_specific_merge_from_start:brpc.policy.RequestBody)
1661
0
  GOOGLE_DCHECK_NE(&from, this);
1662
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1663
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1664
0
  (void) cached_has_bits;
1665
1666
0
  cached_has_bits = from._has_bits_[0];
1667
0
  if (cached_has_bits & 63u) {
1668
0
    if (cached_has_bits & 0x00000001u) {
1669
0
      set_has_version();
1670
0
      version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
1671
0
    }
1672
0
    if (cached_has_bits & 0x00000002u) {
1673
0
      set_has_charset();
1674
0
      charset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.charset_);
1675
0
    }
1676
0
    if (cached_has_bits & 0x00000004u) {
1677
0
      set_has_service();
1678
0
      service_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.service_);
1679
0
    }
1680
0
    if (cached_has_bits & 0x00000008u) {
1681
0
      set_has_serialized_request();
1682
0
      serialized_request_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialized_request_);
1683
0
    }
1684
0
    if (cached_has_bits & 0x00000010u) {
1685
0
      id_ = from.id_;
1686
0
    }
1687
0
    if (cached_has_bits & 0x00000020u) {
1688
0
      method_id_ = from.method_id_;
1689
0
    }
1690
0
    _has_bits_[0] |= cached_has_bits;
1691
0
  }
1692
0
}
1693
1694
0
void RequestBody::CopyFrom(const ::google::protobuf::Message& from) {
1695
// @@protoc_insertion_point(generalized_copy_from_start:brpc.policy.RequestBody)
1696
0
  if (&from == this) return;
1697
0
  Clear();
1698
0
  MergeFrom(from);
1699
0
}
1700
1701
0
void RequestBody::CopyFrom(const RequestBody& from) {
1702
// @@protoc_insertion_point(class_specific_copy_from_start:brpc.policy.RequestBody)
1703
0
  if (&from == this) return;
1704
0
  Clear();
1705
0
  MergeFrom(from);
1706
0
}
1707
1708
0
bool RequestBody::IsInitialized() const {
1709
0
  if ((_has_bits_[0] & 0x00000034) != 0x00000034) return false;
1710
0
  return true;
1711
0
}
1712
1713
0
void RequestBody::Swap(RequestBody* other) {
1714
0
  if (other == this) return;
1715
0
  InternalSwap(other);
1716
0
}
1717
0
void RequestBody::InternalSwap(RequestBody* other) {
1718
0
  using std::swap;
1719
0
  version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1720
0
    GetArenaNoVirtual());
1721
0
  charset_.Swap(&other->charset_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1722
0
    GetArenaNoVirtual());
1723
0
  service_.Swap(&other->service_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1724
0
    GetArenaNoVirtual());
1725
0
  serialized_request_.Swap(&other->serialized_request_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1726
0
    GetArenaNoVirtual());
1727
0
  swap(id_, other->id_);
1728
0
  swap(method_id_, other->method_id_);
1729
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1730
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1731
0
}
1732
1733
0
::google::protobuf::Metadata RequestBody::GetMetadata() const {
1734
0
  protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
1735
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages];
1736
0
}
1737
1738
1739
// ===================================================================
1740
1741
12
void PublicPbrpcResponse::InitAsDefaultInstance() {
1742
12
  ::brpc::policy::_PublicPbrpcResponse_default_instance_._instance.get_mutable()->responsehead_ = const_cast< ::brpc::policy::ResponseHead*>(
1743
12
      ::brpc::policy::ResponseHead::internal_default_instance());
1744
12
}
1745
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1746
const int PublicPbrpcResponse::kResponseHeadFieldNumber;
1747
const int PublicPbrpcResponse::kResponseBodyFieldNumber;
1748
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1749
1750
PublicPbrpcResponse::PublicPbrpcResponse()
1751
12
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1752
12
  ::google::protobuf::internal::InitSCC(
1753
12
      &protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_PublicPbrpcResponse.base);
1754
12
  SharedCtor();
1755
  // @@protoc_insertion_point(constructor:brpc.policy.PublicPbrpcResponse)
1756
12
}
1757
PublicPbrpcResponse::PublicPbrpcResponse(const PublicPbrpcResponse& from)
1758
0
  : ::google::protobuf::Message(),
1759
0
      _internal_metadata_(NULL),
1760
0
      _has_bits_(from._has_bits_),
1761
0
      responsebody_(from.responsebody_) {
1762
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1763
0
  if (from.has_responsehead()) {
1764
0
    responsehead_ = new ::brpc::policy::ResponseHead(*from.responsehead_);
1765
0
  } else {
1766
0
    responsehead_ = NULL;
1767
0
  }
1768
  // @@protoc_insertion_point(copy_constructor:brpc.policy.PublicPbrpcResponse)
1769
0
}
1770
1771
12
void PublicPbrpcResponse::SharedCtor() {
1772
12
  responsehead_ = NULL;
1773
12
}
1774
1775
0
PublicPbrpcResponse::~PublicPbrpcResponse() {
1776
  // @@protoc_insertion_point(destructor:brpc.policy.PublicPbrpcResponse)
1777
0
  SharedDtor();
1778
0
}
1779
1780
0
void PublicPbrpcResponse::SharedDtor() {
1781
0
  if (this != internal_default_instance()) delete responsehead_;
1782
0
}
1783
1784
0
void PublicPbrpcResponse::SetCachedSize(int size) const {
1785
0
  _cached_size_.Set(size);
1786
0
}
1787
0
const ::google::protobuf::Descriptor* PublicPbrpcResponse::descriptor() {
1788
0
  ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
1789
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1790
0
}
1791
1792
0
const PublicPbrpcResponse& PublicPbrpcResponse::default_instance() {
1793
0
  ::google::protobuf::internal::InitSCC(&protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_PublicPbrpcResponse.base);
1794
0
  return *internal_default_instance();
1795
0
}
1796
1797
1798
0
void PublicPbrpcResponse::Clear() {
1799
// @@protoc_insertion_point(message_clear_start:brpc.policy.PublicPbrpcResponse)
1800
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1801
  // Prevent compiler warnings about cached_has_bits being unused
1802
0
  (void) cached_has_bits;
1803
1804
0
  responsebody_.Clear();
1805
0
  cached_has_bits = _has_bits_[0];
1806
0
  if (cached_has_bits & 0x00000001u) {
1807
0
    GOOGLE_DCHECK(responsehead_ != NULL);
1808
0
    responsehead_->Clear();
1809
0
  }
1810
0
  _has_bits_.Clear();
1811
0
  _internal_metadata_.Clear();
1812
0
}
1813
1814
bool PublicPbrpcResponse::MergePartialFromCodedStream(
1815
0
    ::google::protobuf::io::CodedInputStream* input) {
1816
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1817
0
  ::google::protobuf::uint32 tag;
1818
  // @@protoc_insertion_point(parse_start:brpc.policy.PublicPbrpcResponse)
1819
0
  for (;;) {
1820
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1821
0
    tag = p.first;
1822
0
    if (!p.second) goto handle_unusual;
1823
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1824
      // optional .brpc.policy.ResponseHead responseHead = 1;
1825
0
      case 1: {
1826
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1827
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1828
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1829
0
               input, mutable_responsehead()));
1830
0
        } else {
1831
0
          goto handle_unusual;
1832
0
        }
1833
0
        break;
1834
0
      }
1835
1836
      // repeated .brpc.policy.ResponseBody responseBody = 2;
1837
0
      case 2: {
1838
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1839
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1840
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1841
0
                input, add_responsebody()));
1842
0
        } else {
1843
0
          goto handle_unusual;
1844
0
        }
1845
0
        break;
1846
0
      }
1847
1848
0
      default: {
1849
0
      handle_unusual:
1850
0
        if (tag == 0) {
1851
0
          goto success;
1852
0
        }
1853
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1854
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1855
0
        break;
1856
0
      }
1857
0
    }
1858
0
  }
1859
0
success:
1860
  // @@protoc_insertion_point(parse_success:brpc.policy.PublicPbrpcResponse)
1861
0
  return true;
1862
0
failure:
1863
  // @@protoc_insertion_point(parse_failure:brpc.policy.PublicPbrpcResponse)
1864
0
  return false;
1865
0
#undef DO_
1866
0
}
1867
1868
void PublicPbrpcResponse::SerializeWithCachedSizes(
1869
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1870
  // @@protoc_insertion_point(serialize_start:brpc.policy.PublicPbrpcResponse)
1871
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1872
0
  (void) cached_has_bits;
1873
1874
0
  cached_has_bits = _has_bits_[0];
1875
  // optional .brpc.policy.ResponseHead responseHead = 1;
1876
0
  if (cached_has_bits & 0x00000001u) {
1877
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1878
0
      1, this->_internal_responsehead(), output);
1879
0
  }
1880
1881
  // repeated .brpc.policy.ResponseBody responseBody = 2;
1882
0
  for (unsigned int i = 0,
1883
0
      n = static_cast<unsigned int>(this->responsebody_size()); i < n; i++) {
1884
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1885
0
      2,
1886
0
      this->responsebody(static_cast<int>(i)),
1887
0
      output);
1888
0
  }
1889
1890
0
  if (_internal_metadata_.have_unknown_fields()) {
1891
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1892
0
        _internal_metadata_.unknown_fields(), output);
1893
0
  }
1894
  // @@protoc_insertion_point(serialize_end:brpc.policy.PublicPbrpcResponse)
1895
0
}
1896
1897
::google::protobuf::uint8* PublicPbrpcResponse::InternalSerializeWithCachedSizesToArray(
1898
0
    bool deterministic, ::google::protobuf::uint8* target) const {
1899
0
  (void)deterministic; // Unused
1900
  // @@protoc_insertion_point(serialize_to_array_start:brpc.policy.PublicPbrpcResponse)
1901
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1902
0
  (void) cached_has_bits;
1903
1904
0
  cached_has_bits = _has_bits_[0];
1905
  // optional .brpc.policy.ResponseHead responseHead = 1;
1906
0
  if (cached_has_bits & 0x00000001u) {
1907
0
    target = ::google::protobuf::internal::WireFormatLite::
1908
0
      InternalWriteMessageToArray(
1909
0
        1, this->_internal_responsehead(), deterministic, target);
1910
0
  }
1911
1912
  // repeated .brpc.policy.ResponseBody responseBody = 2;
1913
0
  for (unsigned int i = 0,
1914
0
      n = static_cast<unsigned int>(this->responsebody_size()); i < n; i++) {
1915
0
    target = ::google::protobuf::internal::WireFormatLite::
1916
0
      InternalWriteMessageToArray(
1917
0
        2, this->responsebody(static_cast<int>(i)), deterministic, target);
1918
0
  }
1919
1920
0
  if (_internal_metadata_.have_unknown_fields()) {
1921
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1922
0
        _internal_metadata_.unknown_fields(), target);
1923
0
  }
1924
  // @@protoc_insertion_point(serialize_to_array_end:brpc.policy.PublicPbrpcResponse)
1925
0
  return target;
1926
0
}
1927
1928
0
size_t PublicPbrpcResponse::ByteSizeLong() const {
1929
// @@protoc_insertion_point(message_byte_size_start:brpc.policy.PublicPbrpcResponse)
1930
0
  size_t total_size = 0;
1931
1932
0
  if (_internal_metadata_.have_unknown_fields()) {
1933
0
    total_size +=
1934
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1935
0
        _internal_metadata_.unknown_fields());
1936
0
  }
1937
  // repeated .brpc.policy.ResponseBody responseBody = 2;
1938
0
  {
1939
0
    unsigned int count = static_cast<unsigned int>(this->responsebody_size());
1940
0
    total_size += 1UL * count;
1941
0
    for (unsigned int i = 0; i < count; i++) {
1942
0
      total_size +=
1943
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1944
0
          this->responsebody(static_cast<int>(i)));
1945
0
    }
1946
0
  }
1947
1948
  // optional .brpc.policy.ResponseHead responseHead = 1;
1949
0
  if (has_responsehead()) {
1950
0
    total_size += 1 +
1951
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1952
0
        *responsehead_);
1953
0
  }
1954
1955
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1956
0
  SetCachedSize(cached_size);
1957
0
  return total_size;
1958
0
}
1959
1960
0
void PublicPbrpcResponse::MergeFrom(const ::google::protobuf::Message& from) {
1961
// @@protoc_insertion_point(generalized_merge_from_start:brpc.policy.PublicPbrpcResponse)
1962
0
  GOOGLE_DCHECK_NE(&from, this);
1963
0
  const PublicPbrpcResponse* source =
1964
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PublicPbrpcResponse>(
1965
0
          &from);
1966
0
  if (source == NULL) {
1967
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:brpc.policy.PublicPbrpcResponse)
1968
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1969
0
  } else {
1970
  // @@protoc_insertion_point(generalized_merge_from_cast_success:brpc.policy.PublicPbrpcResponse)
1971
0
    MergeFrom(*source);
1972
0
  }
1973
0
}
1974
1975
0
void PublicPbrpcResponse::MergeFrom(const PublicPbrpcResponse& from) {
1976
// @@protoc_insertion_point(class_specific_merge_from_start:brpc.policy.PublicPbrpcResponse)
1977
0
  GOOGLE_DCHECK_NE(&from, this);
1978
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1979
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1980
0
  (void) cached_has_bits;
1981
1982
0
  responsebody_.MergeFrom(from.responsebody_);
1983
0
  if (from.has_responsehead()) {
1984
0
    mutable_responsehead()->::brpc::policy::ResponseHead::MergeFrom(from.responsehead());
1985
0
  }
1986
0
}
1987
1988
0
void PublicPbrpcResponse::CopyFrom(const ::google::protobuf::Message& from) {
1989
// @@protoc_insertion_point(generalized_copy_from_start:brpc.policy.PublicPbrpcResponse)
1990
0
  if (&from == this) return;
1991
0
  Clear();
1992
0
  MergeFrom(from);
1993
0
}
1994
1995
0
void PublicPbrpcResponse::CopyFrom(const PublicPbrpcResponse& from) {
1996
// @@protoc_insertion_point(class_specific_copy_from_start:brpc.policy.PublicPbrpcResponse)
1997
0
  if (&from == this) return;
1998
0
  Clear();
1999
0
  MergeFrom(from);
2000
0
}
2001
2002
0
bool PublicPbrpcResponse::IsInitialized() const {
2003
0
  if (!::google::protobuf::internal::AllAreInitialized(this->responsebody())) return false;
2004
0
  if (has_responsehead()) {
2005
0
    if (!this->responsehead_->IsInitialized()) return false;
2006
0
  }
2007
0
  return true;
2008
0
}
2009
2010
0
void PublicPbrpcResponse::Swap(PublicPbrpcResponse* other) {
2011
0
  if (other == this) return;
2012
0
  InternalSwap(other);
2013
0
}
2014
0
void PublicPbrpcResponse::InternalSwap(PublicPbrpcResponse* other) {
2015
0
  using std::swap;
2016
0
  CastToBase(&responsebody_)->InternalSwap(CastToBase(&other->responsebody_));
2017
0
  swap(responsehead_, other->responsehead_);
2018
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2019
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2020
0
}
2021
2022
0
::google::protobuf::Metadata PublicPbrpcResponse::GetMetadata() const {
2023
0
  protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
2024
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages];
2025
0
}
2026
2027
2028
// ===================================================================
2029
2030
12
void ResponseHead::InitAsDefaultInstance() {
2031
12
}
2032
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2033
const int ResponseHead::kCodeFieldNumber;
2034
const int ResponseHead::kTextFieldNumber;
2035
const int ResponseHead::kFromHostFieldNumber;
2036
const int ResponseHead::kCompressTypeFieldNumber;
2037
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2038
2039
ResponseHead::ResponseHead()
2040
12
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2041
12
  ::google::protobuf::internal::InitSCC(
2042
12
      &protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_ResponseHead.base);
2043
12
  SharedCtor();
2044
  // @@protoc_insertion_point(constructor:brpc.policy.ResponseHead)
2045
12
}
2046
ResponseHead::ResponseHead(const ResponseHead& from)
2047
0
  : ::google::protobuf::Message(),
2048
0
      _internal_metadata_(NULL),
2049
0
      _has_bits_(from._has_bits_) {
2050
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2051
0
  text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2052
0
  if (from.has_text()) {
2053
0
    text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.text_);
2054
0
  }
2055
0
  from_host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2056
0
  if (from.has_from_host()) {
2057
0
    from_host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.from_host_);
2058
0
  }
2059
0
  ::memcpy(&code_, &from.code_,
2060
0
    static_cast<size_t>(reinterpret_cast<char*>(&compress_type_) -
2061
0
    reinterpret_cast<char*>(&code_)) + sizeof(compress_type_));
2062
  // @@protoc_insertion_point(copy_constructor:brpc.policy.ResponseHead)
2063
0
}
2064
2065
12
void ResponseHead::SharedCtor() {
2066
12
  text_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2067
12
  from_host_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2068
12
  ::memset(&code_, 0, static_cast<size_t>(
2069
12
      reinterpret_cast<char*>(&compress_type_) -
2070
12
      reinterpret_cast<char*>(&code_)) + sizeof(compress_type_));
2071
12
}
2072
2073
0
ResponseHead::~ResponseHead() {
2074
  // @@protoc_insertion_point(destructor:brpc.policy.ResponseHead)
2075
0
  SharedDtor();
2076
0
}
2077
2078
0
void ResponseHead::SharedDtor() {
2079
0
  text_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2080
0
  from_host_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2081
0
}
2082
2083
0
void ResponseHead::SetCachedSize(int size) const {
2084
0
  _cached_size_.Set(size);
2085
0
}
2086
0
const ::google::protobuf::Descriptor* ResponseHead::descriptor() {
2087
0
  ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
2088
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2089
0
}
2090
2091
0
const ResponseHead& ResponseHead::default_instance() {
2092
0
  ::google::protobuf::internal::InitSCC(&protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_ResponseHead.base);
2093
0
  return *internal_default_instance();
2094
0
}
2095
2096
2097
0
void ResponseHead::Clear() {
2098
// @@protoc_insertion_point(message_clear_start:brpc.policy.ResponseHead)
2099
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2100
  // Prevent compiler warnings about cached_has_bits being unused
2101
0
  (void) cached_has_bits;
2102
2103
0
  cached_has_bits = _has_bits_[0];
2104
0
  if (cached_has_bits & 3u) {
2105
0
    if (cached_has_bits & 0x00000001u) {
2106
0
      text_.ClearNonDefaultToEmptyNoArena();
2107
0
    }
2108
0
    if (cached_has_bits & 0x00000002u) {
2109
0
      from_host_.ClearNonDefaultToEmptyNoArena();
2110
0
    }
2111
0
  }
2112
0
  if (cached_has_bits & 12u) {
2113
0
    ::memset(&code_, 0, static_cast<size_t>(
2114
0
        reinterpret_cast<char*>(&compress_type_) -
2115
0
        reinterpret_cast<char*>(&code_)) + sizeof(compress_type_));
2116
0
  }
2117
0
  _has_bits_.Clear();
2118
0
  _internal_metadata_.Clear();
2119
0
}
2120
2121
bool ResponseHead::MergePartialFromCodedStream(
2122
0
    ::google::protobuf::io::CodedInputStream* input) {
2123
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2124
0
  ::google::protobuf::uint32 tag;
2125
  // @@protoc_insertion_point(parse_start:brpc.policy.ResponseHead)
2126
0
  for (;;) {
2127
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2128
0
    tag = p.first;
2129
0
    if (!p.second) goto handle_unusual;
2130
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2131
      // required sint32 code = 1;
2132
0
      case 1: {
2133
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2134
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2135
0
          set_has_code();
2136
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2137
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
2138
0
                 input, &code_)));
2139
0
        } else {
2140
0
          goto handle_unusual;
2141
0
        }
2142
0
        break;
2143
0
      }
2144
2145
      // optional string text = 2;
2146
0
      case 2: {
2147
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2148
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2149
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2150
0
                input, this->mutable_text()));
2151
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2152
0
            this->text().data(), static_cast<int>(this->text().length()),
2153
0
            ::google::protobuf::internal::WireFormat::PARSE,
2154
0
            "brpc.policy.ResponseHead.text");
2155
0
        } else {
2156
0
          goto handle_unusual;
2157
0
        }
2158
0
        break;
2159
0
      }
2160
2161
      // optional string from_host = 3;
2162
0
      case 3: {
2163
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2164
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2165
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2166
0
                input, this->mutable_from_host()));
2167
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2168
0
            this->from_host().data(), static_cast<int>(this->from_host().length()),
2169
0
            ::google::protobuf::internal::WireFormat::PARSE,
2170
0
            "brpc.policy.ResponseHead.from_host");
2171
0
        } else {
2172
0
          goto handle_unusual;
2173
0
        }
2174
0
        break;
2175
0
      }
2176
2177
      // optional uint32 compress_type = 4;
2178
0
      case 4: {
2179
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2180
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
2181
0
          set_has_compress_type();
2182
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2183
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2184
0
                 input, &compress_type_)));
2185
0
        } else {
2186
0
          goto handle_unusual;
2187
0
        }
2188
0
        break;
2189
0
      }
2190
2191
0
      default: {
2192
0
      handle_unusual:
2193
0
        if (tag == 0) {
2194
0
          goto success;
2195
0
        }
2196
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2197
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2198
0
        break;
2199
0
      }
2200
0
    }
2201
0
  }
2202
0
success:
2203
  // @@protoc_insertion_point(parse_success:brpc.policy.ResponseHead)
2204
0
  return true;
2205
0
failure:
2206
  // @@protoc_insertion_point(parse_failure:brpc.policy.ResponseHead)
2207
0
  return false;
2208
0
#undef DO_
2209
0
}
2210
2211
void ResponseHead::SerializeWithCachedSizes(
2212
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2213
  // @@protoc_insertion_point(serialize_start:brpc.policy.ResponseHead)
2214
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2215
0
  (void) cached_has_bits;
2216
2217
0
  cached_has_bits = _has_bits_[0];
2218
  // required sint32 code = 1;
2219
0
  if (cached_has_bits & 0x00000004u) {
2220
0
    ::google::protobuf::internal::WireFormatLite::WriteSInt32(1, this->code(), output);
2221
0
  }
2222
2223
  // optional string text = 2;
2224
0
  if (cached_has_bits & 0x00000001u) {
2225
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2226
0
      this->text().data(), static_cast<int>(this->text().length()),
2227
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2228
0
      "brpc.policy.ResponseHead.text");
2229
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2230
0
      2, this->text(), output);
2231
0
  }
2232
2233
  // optional string from_host = 3;
2234
0
  if (cached_has_bits & 0x00000002u) {
2235
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2236
0
      this->from_host().data(), static_cast<int>(this->from_host().length()),
2237
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2238
0
      "brpc.policy.ResponseHead.from_host");
2239
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2240
0
      3, this->from_host(), output);
2241
0
  }
2242
2243
  // optional uint32 compress_type = 4;
2244
0
  if (cached_has_bits & 0x00000008u) {
2245
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->compress_type(), output);
2246
0
  }
2247
2248
0
  if (_internal_metadata_.have_unknown_fields()) {
2249
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2250
0
        _internal_metadata_.unknown_fields(), output);
2251
0
  }
2252
  // @@protoc_insertion_point(serialize_end:brpc.policy.ResponseHead)
2253
0
}
2254
2255
::google::protobuf::uint8* ResponseHead::InternalSerializeWithCachedSizesToArray(
2256
0
    bool deterministic, ::google::protobuf::uint8* target) const {
2257
0
  (void)deterministic; // Unused
2258
  // @@protoc_insertion_point(serialize_to_array_start:brpc.policy.ResponseHead)
2259
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2260
0
  (void) cached_has_bits;
2261
2262
0
  cached_has_bits = _has_bits_[0];
2263
  // required sint32 code = 1;
2264
0
  if (cached_has_bits & 0x00000004u) {
2265
0
    target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(1, this->code(), target);
2266
0
  }
2267
2268
  // optional string text = 2;
2269
0
  if (cached_has_bits & 0x00000001u) {
2270
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2271
0
      this->text().data(), static_cast<int>(this->text().length()),
2272
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2273
0
      "brpc.policy.ResponseHead.text");
2274
0
    target =
2275
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2276
0
        2, this->text(), target);
2277
0
  }
2278
2279
  // optional string from_host = 3;
2280
0
  if (cached_has_bits & 0x00000002u) {
2281
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2282
0
      this->from_host().data(), static_cast<int>(this->from_host().length()),
2283
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2284
0
      "brpc.policy.ResponseHead.from_host");
2285
0
    target =
2286
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2287
0
        3, this->from_host(), target);
2288
0
  }
2289
2290
  // optional uint32 compress_type = 4;
2291
0
  if (cached_has_bits & 0x00000008u) {
2292
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->compress_type(), target);
2293
0
  }
2294
2295
0
  if (_internal_metadata_.have_unknown_fields()) {
2296
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2297
0
        _internal_metadata_.unknown_fields(), target);
2298
0
  }
2299
  // @@protoc_insertion_point(serialize_to_array_end:brpc.policy.ResponseHead)
2300
0
  return target;
2301
0
}
2302
2303
0
size_t ResponseHead::ByteSizeLong() const {
2304
// @@protoc_insertion_point(message_byte_size_start:brpc.policy.ResponseHead)
2305
0
  size_t total_size = 0;
2306
2307
0
  if (_internal_metadata_.have_unknown_fields()) {
2308
0
    total_size +=
2309
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2310
0
        _internal_metadata_.unknown_fields());
2311
0
  }
2312
  // required sint32 code = 1;
2313
0
  if (has_code()) {
2314
0
    total_size += 1 +
2315
0
      ::google::protobuf::internal::WireFormatLite::SInt32Size(
2316
0
        this->code());
2317
0
  }
2318
0
  if (_has_bits_[0 / 32] & 3u) {
2319
    // optional string text = 2;
2320
0
    if (has_text()) {
2321
0
      total_size += 1 +
2322
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
2323
0
          this->text());
2324
0
    }
2325
2326
    // optional string from_host = 3;
2327
0
    if (has_from_host()) {
2328
0
      total_size += 1 +
2329
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
2330
0
          this->from_host());
2331
0
    }
2332
2333
0
  }
2334
  // optional uint32 compress_type = 4;
2335
0
  if (has_compress_type()) {
2336
0
    total_size += 1 +
2337
0
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
2338
0
        this->compress_type());
2339
0
  }
2340
2341
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2342
0
  SetCachedSize(cached_size);
2343
0
  return total_size;
2344
0
}
2345
2346
0
void ResponseHead::MergeFrom(const ::google::protobuf::Message& from) {
2347
// @@protoc_insertion_point(generalized_merge_from_start:brpc.policy.ResponseHead)
2348
0
  GOOGLE_DCHECK_NE(&from, this);
2349
0
  const ResponseHead* source =
2350
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ResponseHead>(
2351
0
          &from);
2352
0
  if (source == NULL) {
2353
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:brpc.policy.ResponseHead)
2354
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2355
0
  } else {
2356
  // @@protoc_insertion_point(generalized_merge_from_cast_success:brpc.policy.ResponseHead)
2357
0
    MergeFrom(*source);
2358
0
  }
2359
0
}
2360
2361
0
void ResponseHead::MergeFrom(const ResponseHead& from) {
2362
// @@protoc_insertion_point(class_specific_merge_from_start:brpc.policy.ResponseHead)
2363
0
  GOOGLE_DCHECK_NE(&from, this);
2364
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2365
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2366
0
  (void) cached_has_bits;
2367
2368
0
  cached_has_bits = from._has_bits_[0];
2369
0
  if (cached_has_bits & 15u) {
2370
0
    if (cached_has_bits & 0x00000001u) {
2371
0
      set_has_text();
2372
0
      text_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.text_);
2373
0
    }
2374
0
    if (cached_has_bits & 0x00000002u) {
2375
0
      set_has_from_host();
2376
0
      from_host_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.from_host_);
2377
0
    }
2378
0
    if (cached_has_bits & 0x00000004u) {
2379
0
      code_ = from.code_;
2380
0
    }
2381
0
    if (cached_has_bits & 0x00000008u) {
2382
0
      compress_type_ = from.compress_type_;
2383
0
    }
2384
0
    _has_bits_[0] |= cached_has_bits;
2385
0
  }
2386
0
}
2387
2388
0
void ResponseHead::CopyFrom(const ::google::protobuf::Message& from) {
2389
// @@protoc_insertion_point(generalized_copy_from_start:brpc.policy.ResponseHead)
2390
0
  if (&from == this) return;
2391
0
  Clear();
2392
0
  MergeFrom(from);
2393
0
}
2394
2395
0
void ResponseHead::CopyFrom(const ResponseHead& from) {
2396
// @@protoc_insertion_point(class_specific_copy_from_start:brpc.policy.ResponseHead)
2397
0
  if (&from == this) return;
2398
0
  Clear();
2399
0
  MergeFrom(from);
2400
0
}
2401
2402
0
bool ResponseHead::IsInitialized() const {
2403
0
  if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false;
2404
0
  return true;
2405
0
}
2406
2407
0
void ResponseHead::Swap(ResponseHead* other) {
2408
0
  if (other == this) return;
2409
0
  InternalSwap(other);
2410
0
}
2411
0
void ResponseHead::InternalSwap(ResponseHead* other) {
2412
0
  using std::swap;
2413
0
  text_.Swap(&other->text_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2414
0
    GetArenaNoVirtual());
2415
0
  from_host_.Swap(&other->from_host_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2416
0
    GetArenaNoVirtual());
2417
0
  swap(code_, other->code_);
2418
0
  swap(compress_type_, other->compress_type_);
2419
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2420
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2421
0
}
2422
2423
0
::google::protobuf::Metadata ResponseHead::GetMetadata() const {
2424
0
  protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
2425
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages];
2426
0
}
2427
2428
2429
// ===================================================================
2430
2431
12
void ResponseBody::InitAsDefaultInstance() {
2432
12
}
2433
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2434
const int ResponseBody::kSerializedResponseFieldNumber;
2435
const int ResponseBody::kVersionFieldNumber;
2436
const int ResponseBody::kErrorFieldNumber;
2437
const int ResponseBody::kIdFieldNumber;
2438
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2439
2440
ResponseBody::ResponseBody()
2441
12
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2442
12
  ::google::protobuf::internal::InitSCC(
2443
12
      &protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_ResponseBody.base);
2444
12
  SharedCtor();
2445
  // @@protoc_insertion_point(constructor:brpc.policy.ResponseBody)
2446
12
}
2447
ResponseBody::ResponseBody(const ResponseBody& from)
2448
0
  : ::google::protobuf::Message(),
2449
0
      _internal_metadata_(NULL),
2450
0
      _has_bits_(from._has_bits_) {
2451
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2452
0
  serialized_response_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2453
0
  if (from.has_serialized_response()) {
2454
0
    serialized_response_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialized_response_);
2455
0
  }
2456
0
  version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2457
0
  if (from.has_version()) {
2458
0
    version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
2459
0
  }
2460
0
  ::memcpy(&id_, &from.id_,
2461
0
    static_cast<size_t>(reinterpret_cast<char*>(&error_) -
2462
0
    reinterpret_cast<char*>(&id_)) + sizeof(error_));
2463
  // @@protoc_insertion_point(copy_constructor:brpc.policy.ResponseBody)
2464
0
}
2465
2466
12
void ResponseBody::SharedCtor() {
2467
12
  serialized_response_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2468
12
  version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2469
12
  ::memset(&id_, 0, static_cast<size_t>(
2470
12
      reinterpret_cast<char*>(&error_) -
2471
12
      reinterpret_cast<char*>(&id_)) + sizeof(error_));
2472
12
}
2473
2474
0
ResponseBody::~ResponseBody() {
2475
  // @@protoc_insertion_point(destructor:brpc.policy.ResponseBody)
2476
0
  SharedDtor();
2477
0
}
2478
2479
0
void ResponseBody::SharedDtor() {
2480
0
  serialized_response_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2481
0
  version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2482
0
}
2483
2484
0
void ResponseBody::SetCachedSize(int size) const {
2485
0
  _cached_size_.Set(size);
2486
0
}
2487
0
const ::google::protobuf::Descriptor* ResponseBody::descriptor() {
2488
0
  ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
2489
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2490
0
}
2491
2492
0
const ResponseBody& ResponseBody::default_instance() {
2493
0
  ::google::protobuf::internal::InitSCC(&protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::scc_info_ResponseBody.base);
2494
0
  return *internal_default_instance();
2495
0
}
2496
2497
2498
0
void ResponseBody::Clear() {
2499
// @@protoc_insertion_point(message_clear_start:brpc.policy.ResponseBody)
2500
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2501
  // Prevent compiler warnings about cached_has_bits being unused
2502
0
  (void) cached_has_bits;
2503
2504
0
  cached_has_bits = _has_bits_[0];
2505
0
  if (cached_has_bits & 3u) {
2506
0
    if (cached_has_bits & 0x00000001u) {
2507
0
      serialized_response_.ClearNonDefaultToEmptyNoArena();
2508
0
    }
2509
0
    if (cached_has_bits & 0x00000002u) {
2510
0
      version_.ClearNonDefaultToEmptyNoArena();
2511
0
    }
2512
0
  }
2513
0
  if (cached_has_bits & 12u) {
2514
0
    ::memset(&id_, 0, static_cast<size_t>(
2515
0
        reinterpret_cast<char*>(&error_) -
2516
0
        reinterpret_cast<char*>(&id_)) + sizeof(error_));
2517
0
  }
2518
0
  _has_bits_.Clear();
2519
0
  _internal_metadata_.Clear();
2520
0
}
2521
2522
bool ResponseBody::MergePartialFromCodedStream(
2523
0
    ::google::protobuf::io::CodedInputStream* input) {
2524
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2525
0
  ::google::protobuf::uint32 tag;
2526
  // @@protoc_insertion_point(parse_start:brpc.policy.ResponseBody)
2527
0
  for (;;) {
2528
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2529
0
    tag = p.first;
2530
0
    if (!p.second) goto handle_unusual;
2531
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2532
      // optional bytes serialized_response = 1;
2533
0
      case 1: {
2534
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2535
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2536
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2537
0
                input, this->mutable_serialized_response()));
2538
0
        } else {
2539
0
          goto handle_unusual;
2540
0
        }
2541
0
        break;
2542
0
      }
2543
2544
      // optional string version = 2;
2545
0
      case 2: {
2546
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2547
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2548
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2549
0
                input, this->mutable_version()));
2550
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2551
0
            this->version().data(), static_cast<int>(this->version().length()),
2552
0
            ::google::protobuf::internal::WireFormat::PARSE,
2553
0
            "brpc.policy.ResponseBody.version");
2554
0
        } else {
2555
0
          goto handle_unusual;
2556
0
        }
2557
0
        break;
2558
0
      }
2559
2560
      // optional int32 error = 3;
2561
0
      case 3: {
2562
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2563
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
2564
0
          set_has_error();
2565
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2566
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2567
0
                 input, &error_)));
2568
0
        } else {
2569
0
          goto handle_unusual;
2570
0
        }
2571
0
        break;
2572
0
      }
2573
2574
      // required uint64 id = 4;
2575
0
      case 4: {
2576
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2577
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
2578
0
          set_has_id();
2579
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2580
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2581
0
                 input, &id_)));
2582
0
        } else {
2583
0
          goto handle_unusual;
2584
0
        }
2585
0
        break;
2586
0
      }
2587
2588
0
      default: {
2589
0
      handle_unusual:
2590
0
        if (tag == 0) {
2591
0
          goto success;
2592
0
        }
2593
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2594
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2595
0
        break;
2596
0
      }
2597
0
    }
2598
0
  }
2599
0
success:
2600
  // @@protoc_insertion_point(parse_success:brpc.policy.ResponseBody)
2601
0
  return true;
2602
0
failure:
2603
  // @@protoc_insertion_point(parse_failure:brpc.policy.ResponseBody)
2604
0
  return false;
2605
0
#undef DO_
2606
0
}
2607
2608
void ResponseBody::SerializeWithCachedSizes(
2609
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2610
  // @@protoc_insertion_point(serialize_start:brpc.policy.ResponseBody)
2611
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2612
0
  (void) cached_has_bits;
2613
2614
0
  cached_has_bits = _has_bits_[0];
2615
  // optional bytes serialized_response = 1;
2616
0
  if (cached_has_bits & 0x00000001u) {
2617
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2618
0
      1, this->serialized_response(), output);
2619
0
  }
2620
2621
  // optional string version = 2;
2622
0
  if (cached_has_bits & 0x00000002u) {
2623
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2624
0
      this->version().data(), static_cast<int>(this->version().length()),
2625
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2626
0
      "brpc.policy.ResponseBody.version");
2627
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2628
0
      2, this->version(), output);
2629
0
  }
2630
2631
  // optional int32 error = 3;
2632
0
  if (cached_has_bits & 0x00000008u) {
2633
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->error(), output);
2634
0
  }
2635
2636
  // required uint64 id = 4;
2637
0
  if (cached_has_bits & 0x00000004u) {
2638
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->id(), output);
2639
0
  }
2640
2641
0
  if (_internal_metadata_.have_unknown_fields()) {
2642
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2643
0
        _internal_metadata_.unknown_fields(), output);
2644
0
  }
2645
  // @@protoc_insertion_point(serialize_end:brpc.policy.ResponseBody)
2646
0
}
2647
2648
::google::protobuf::uint8* ResponseBody::InternalSerializeWithCachedSizesToArray(
2649
0
    bool deterministic, ::google::protobuf::uint8* target) const {
2650
0
  (void)deterministic; // Unused
2651
  // @@protoc_insertion_point(serialize_to_array_start:brpc.policy.ResponseBody)
2652
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2653
0
  (void) cached_has_bits;
2654
2655
0
  cached_has_bits = _has_bits_[0];
2656
  // optional bytes serialized_response = 1;
2657
0
  if (cached_has_bits & 0x00000001u) {
2658
0
    target =
2659
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2660
0
        1, this->serialized_response(), target);
2661
0
  }
2662
2663
  // optional string version = 2;
2664
0
  if (cached_has_bits & 0x00000002u) {
2665
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2666
0
      this->version().data(), static_cast<int>(this->version().length()),
2667
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2668
0
      "brpc.policy.ResponseBody.version");
2669
0
    target =
2670
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2671
0
        2, this->version(), target);
2672
0
  }
2673
2674
  // optional int32 error = 3;
2675
0
  if (cached_has_bits & 0x00000008u) {
2676
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->error(), target);
2677
0
  }
2678
2679
  // required uint64 id = 4;
2680
0
  if (cached_has_bits & 0x00000004u) {
2681
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->id(), target);
2682
0
  }
2683
2684
0
  if (_internal_metadata_.have_unknown_fields()) {
2685
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2686
0
        _internal_metadata_.unknown_fields(), target);
2687
0
  }
2688
  // @@protoc_insertion_point(serialize_to_array_end:brpc.policy.ResponseBody)
2689
0
  return target;
2690
0
}
2691
2692
0
size_t ResponseBody::ByteSizeLong() const {
2693
// @@protoc_insertion_point(message_byte_size_start:brpc.policy.ResponseBody)
2694
0
  size_t total_size = 0;
2695
2696
0
  if (_internal_metadata_.have_unknown_fields()) {
2697
0
    total_size +=
2698
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2699
0
        _internal_metadata_.unknown_fields());
2700
0
  }
2701
  // required uint64 id = 4;
2702
0
  if (has_id()) {
2703
0
    total_size += 1 +
2704
0
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
2705
0
        this->id());
2706
0
  }
2707
0
  if (_has_bits_[0 / 32] & 3u) {
2708
    // optional bytes serialized_response = 1;
2709
0
    if (has_serialized_response()) {
2710
0
      total_size += 1 +
2711
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2712
0
          this->serialized_response());
2713
0
    }
2714
2715
    // optional string version = 2;
2716
0
    if (has_version()) {
2717
0
      total_size += 1 +
2718
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
2719
0
          this->version());
2720
0
    }
2721
2722
0
  }
2723
  // optional int32 error = 3;
2724
0
  if (has_error()) {
2725
0
    total_size += 1 +
2726
0
      ::google::protobuf::internal::WireFormatLite::Int32Size(
2727
0
        this->error());
2728
0
  }
2729
2730
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2731
0
  SetCachedSize(cached_size);
2732
0
  return total_size;
2733
0
}
2734
2735
0
void ResponseBody::MergeFrom(const ::google::protobuf::Message& from) {
2736
// @@protoc_insertion_point(generalized_merge_from_start:brpc.policy.ResponseBody)
2737
0
  GOOGLE_DCHECK_NE(&from, this);
2738
0
  const ResponseBody* source =
2739
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ResponseBody>(
2740
0
          &from);
2741
0
  if (source == NULL) {
2742
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:brpc.policy.ResponseBody)
2743
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2744
0
  } else {
2745
  // @@protoc_insertion_point(generalized_merge_from_cast_success:brpc.policy.ResponseBody)
2746
0
    MergeFrom(*source);
2747
0
  }
2748
0
}
2749
2750
0
void ResponseBody::MergeFrom(const ResponseBody& from) {
2751
// @@protoc_insertion_point(class_specific_merge_from_start:brpc.policy.ResponseBody)
2752
0
  GOOGLE_DCHECK_NE(&from, this);
2753
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2754
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2755
0
  (void) cached_has_bits;
2756
2757
0
  cached_has_bits = from._has_bits_[0];
2758
0
  if (cached_has_bits & 15u) {
2759
0
    if (cached_has_bits & 0x00000001u) {
2760
0
      set_has_serialized_response();
2761
0
      serialized_response_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serialized_response_);
2762
0
    }
2763
0
    if (cached_has_bits & 0x00000002u) {
2764
0
      set_has_version();
2765
0
      version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
2766
0
    }
2767
0
    if (cached_has_bits & 0x00000004u) {
2768
0
      id_ = from.id_;
2769
0
    }
2770
0
    if (cached_has_bits & 0x00000008u) {
2771
0
      error_ = from.error_;
2772
0
    }
2773
0
    _has_bits_[0] |= cached_has_bits;
2774
0
  }
2775
0
}
2776
2777
0
void ResponseBody::CopyFrom(const ::google::protobuf::Message& from) {
2778
// @@protoc_insertion_point(generalized_copy_from_start:brpc.policy.ResponseBody)
2779
0
  if (&from == this) return;
2780
0
  Clear();
2781
0
  MergeFrom(from);
2782
0
}
2783
2784
0
void ResponseBody::CopyFrom(const ResponseBody& from) {
2785
// @@protoc_insertion_point(class_specific_copy_from_start:brpc.policy.ResponseBody)
2786
0
  if (&from == this) return;
2787
0
  Clear();
2788
0
  MergeFrom(from);
2789
0
}
2790
2791
0
bool ResponseBody::IsInitialized() const {
2792
0
  if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false;
2793
0
  return true;
2794
0
}
2795
2796
0
void ResponseBody::Swap(ResponseBody* other) {
2797
0
  if (other == this) return;
2798
0
  InternalSwap(other);
2799
0
}
2800
0
void ResponseBody::InternalSwap(ResponseBody* other) {
2801
0
  using std::swap;
2802
0
  serialized_response_.Swap(&other->serialized_response_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2803
0
    GetArenaNoVirtual());
2804
0
  version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2805
0
    GetArenaNoVirtual());
2806
0
  swap(id_, other->id_);
2807
0
  swap(error_, other->error_);
2808
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2809
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2810
0
}
2811
2812
0
::google::protobuf::Metadata ResponseBody::GetMetadata() const {
2813
0
  protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::protobuf_AssignDescriptorsOnce();
2814
0
  return ::protobuf_brpc_2fpolicy_2fpublic_5fpbrpc_5fmeta_2eproto::file_level_metadata[kIndexInFileMessages];
2815
0
}
2816
2817
2818
// @@protoc_insertion_point(namespace_scope)
2819
}  // namespace policy
2820
}  // namespace brpc
2821
namespace google {
2822
namespace protobuf {
2823
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::brpc::policy::PublicPbrpcRequest* Arena::CreateMaybeMessage< ::brpc::policy::PublicPbrpcRequest >(Arena* arena) {
2824
0
  return Arena::CreateInternal< ::brpc::policy::PublicPbrpcRequest >(arena);
2825
0
}
2826
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::brpc::policy::RequestHead* Arena::CreateMaybeMessage< ::brpc::policy::RequestHead >(Arena* arena) {
2827
0
  return Arena::CreateInternal< ::brpc::policy::RequestHead >(arena);
2828
0
}
2829
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::brpc::policy::RequestBody* Arena::CreateMaybeMessage< ::brpc::policy::RequestBody >(Arena* arena) {
2830
0
  return Arena::CreateInternal< ::brpc::policy::RequestBody >(arena);
2831
0
}
2832
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::brpc::policy::PublicPbrpcResponse* Arena::CreateMaybeMessage< ::brpc::policy::PublicPbrpcResponse >(Arena* arena) {
2833
0
  return Arena::CreateInternal< ::brpc::policy::PublicPbrpcResponse >(arena);
2834
0
}
2835
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::brpc::policy::ResponseHead* Arena::CreateMaybeMessage< ::brpc::policy::ResponseHead >(Arena* arena) {
2836
0
  return Arena::CreateInternal< ::brpc::policy::ResponseHead >(arena);
2837
0
}
2838
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::brpc::policy::ResponseBody* Arena::CreateMaybeMessage< ::brpc::policy::ResponseBody >(Arena* arena) {
2839
0
  return Arena::CreateInternal< ::brpc::policy::ResponseBody >(arena);
2840
0
}
2841
}  // namespace protobuf
2842
}  // namespace google
2843
2844
// @@protoc_insertion_point(global_scope)