Coverage Report

Created: 2025-07-23 06:15

/src/brpc/build/test/v3.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: v3.proto
3
4
#include "v3.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 v3 {
23
class EchoRequestDefaultTypeInternal {
24
 public:
25
  ::google::protobuf::internal::ExplicitlyConstructed<EchoRequest>
26
      _instance;
27
} _EchoRequest_default_instance_;
28
class EchoResponseDefaultTypeInternal {
29
 public:
30
  ::google::protobuf::internal::ExplicitlyConstructed<EchoResponse>
31
      _instance;
32
} _EchoResponse_default_instance_;
33
}  // namespace v3
34
namespace protobuf_v3_2eproto {
35
20
static void InitDefaultsEchoRequest() {
36
20
  GOOGLE_PROTOBUF_VERIFY_VERSION;
37
38
20
  {
39
20
    void* ptr = &::v3::_EchoRequest_default_instance_;
40
20
    new (ptr) ::v3::EchoRequest();
41
20
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
42
20
  }
43
20
  ::v3::EchoRequest::InitAsDefaultInstance();
44
20
}
45
46
::google::protobuf::internal::SCCInfo<0> scc_info_EchoRequest =
47
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEchoRequest}, {}};
48
49
20
static void InitDefaultsEchoResponse() {
50
20
  GOOGLE_PROTOBUF_VERIFY_VERSION;
51
52
20
  {
53
20
    void* ptr = &::v3::_EchoResponse_default_instance_;
54
20
    new (ptr) ::v3::EchoResponse();
55
20
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
56
20
  }
57
20
  ::v3::EchoResponse::InitAsDefaultInstance();
58
20
}
59
60
::google::protobuf::internal::SCCInfo<0> scc_info_EchoResponse =
61
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEchoResponse}, {}};
62
63
20
void InitDefaults() {
64
20
  ::google::protobuf::internal::InitSCC(&scc_info_EchoRequest.base);
65
20
  ::google::protobuf::internal::InitSCC(&scc_info_EchoResponse.base);
66
20
}
67
68
::google::protobuf::Metadata file_level_metadata[2];
69
const ::google::protobuf::ServiceDescriptor* file_level_service_descriptors[1];
70
71
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
72
  ~0u,  // no _has_bits_
73
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::v3::EchoRequest, _internal_metadata_),
74
  ~0u,  // no _extensions_
75
  ~0u,  // no _oneof_case_
76
  ~0u,  // no _weak_field_map_
77
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::v3::EchoRequest, message_),
78
  ~0u,  // no _has_bits_
79
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::v3::EchoResponse, _internal_metadata_),
80
  ~0u,  // no _extensions_
81
  ~0u,  // no _oneof_case_
82
  ~0u,  // no _weak_field_map_
83
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::v3::EchoResponse, message_),
84
};
85
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
86
  { 0, -1, sizeof(::v3::EchoRequest)},
87
  { 6, -1, sizeof(::v3::EchoResponse)},
88
};
89
90
static ::google::protobuf::Message const * const file_default_instances[] = {
91
  reinterpret_cast<const ::google::protobuf::Message*>(&::v3::_EchoRequest_default_instance_),
92
  reinterpret_cast<const ::google::protobuf::Message*>(&::v3::_EchoResponse_default_instance_),
93
};
94
95
0
void protobuf_AssignDescriptors() {
96
0
  AddDescriptors();
97
0
  AssignDescriptors(
98
0
      "v3.proto", schemas, file_default_instances, TableStruct::offsets,
99
0
      file_level_metadata, NULL, file_level_service_descriptors);
100
0
}
101
102
0
void protobuf_AssignDescriptorsOnce() {
103
0
  static ::google::protobuf::internal::once_flag once;
104
0
  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
105
0
}
106
107
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
108
0
void protobuf_RegisterTypes(const ::std::string&) {
109
0
  protobuf_AssignDescriptorsOnce();
110
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
111
0
}
112
113
20
void AddDescriptorsImpl() {
114
20
  InitDefaults();
115
20
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
116
20
      "\n\010v3.proto\022\002v3\"\036\n\013EchoRequest\022\017\n\007message"
117
20
      "\030\001 \001(\t\"\037\n\014EchoResponse\022\017\n\007message\030\001 \001(\t2"
118
20
      "8\n\013EchoService\022)\n\004Echo\022\017.v3.EchoRequest\032"
119
20
      "\020.v3.EchoResponseB\006\200\001\001\370\001\001b\006proto3"
120
20
  };
121
20
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
122
20
      descriptor, 153);
123
20
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
124
20
    "v3.proto", &protobuf_RegisterTypes);
125
20
}
126
127
20
void AddDescriptors() {
128
20
  static ::google::protobuf::internal::once_flag once;
129
20
  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
130
20
}
131
// Force AddDescriptors() to be called at dynamic initialization time.
132
struct StaticDescriptorInitializer {
133
20
  StaticDescriptorInitializer() {
134
20
    AddDescriptors();
135
20
  }
136
} static_descriptor_initializer;
137
}  // namespace protobuf_v3_2eproto
138
namespace v3 {
139
140
// ===================================================================
141
142
20
void EchoRequest::InitAsDefaultInstance() {
143
20
}
144
#if !defined(_MSC_VER) || _MSC_VER >= 1900
145
const int EchoRequest::kMessageFieldNumber;
146
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
147
148
EchoRequest::EchoRequest()
149
20
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
150
20
  ::google::protobuf::internal::InitSCC(
151
20
      &protobuf_v3_2eproto::scc_info_EchoRequest.base);
152
20
  SharedCtor();
153
  // @@protoc_insertion_point(constructor:v3.EchoRequest)
154
20
}
155
EchoRequest::EchoRequest(::google::protobuf::Arena* arena)
156
0
  : ::google::protobuf::Message(),
157
0
  _internal_metadata_(arena) {
158
0
  ::google::protobuf::internal::InitSCC(&protobuf_v3_2eproto::scc_info_EchoRequest.base);
159
0
  SharedCtor();
160
0
  RegisterArenaDtor(arena);
161
  // @@protoc_insertion_point(arena_constructor:v3.EchoRequest)
162
0
}
163
EchoRequest::EchoRequest(const EchoRequest& from)
164
0
  : ::google::protobuf::Message(),
165
0
      _internal_metadata_(NULL) {
166
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
167
0
  message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
168
0
  if (from.message().size() > 0) {
169
0
    message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message(),
170
0
      GetArenaNoVirtual());
171
0
  }
172
  // @@protoc_insertion_point(copy_constructor:v3.EchoRequest)
173
0
}
174
175
20
void EchoRequest::SharedCtor() {
176
20
  message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
177
20
}
178
179
0
EchoRequest::~EchoRequest() {
180
  // @@protoc_insertion_point(destructor:v3.EchoRequest)
181
0
  SharedDtor();
182
0
}
183
184
0
void EchoRequest::SharedDtor() {
185
0
  GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
186
0
  message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
187
0
}
188
189
0
void EchoRequest::ArenaDtor(void* object) {
190
0
  EchoRequest* _this = reinterpret_cast< EchoRequest* >(object);
191
0
  (void)_this;
192
0
}
193
0
void EchoRequest::RegisterArenaDtor(::google::protobuf::Arena* arena) {
194
0
}
195
0
void EchoRequest::SetCachedSize(int size) const {
196
0
  _cached_size_.Set(size);
197
0
}
198
0
const ::google::protobuf::Descriptor* EchoRequest::descriptor() {
199
0
  ::protobuf_v3_2eproto::protobuf_AssignDescriptorsOnce();
200
0
  return ::protobuf_v3_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
201
0
}
202
203
0
const EchoRequest& EchoRequest::default_instance() {
204
0
  ::google::protobuf::internal::InitSCC(&protobuf_v3_2eproto::scc_info_EchoRequest.base);
205
0
  return *internal_default_instance();
206
0
}
207
208
209
0
void EchoRequest::Clear() {
210
// @@protoc_insertion_point(message_clear_start:v3.EchoRequest)
211
0
  ::google::protobuf::uint32 cached_has_bits = 0;
212
  // Prevent compiler warnings about cached_has_bits being unused
213
0
  (void) cached_has_bits;
214
215
0
  message_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
216
0
  _internal_metadata_.Clear();
217
0
}
218
219
bool EchoRequest::MergePartialFromCodedStream(
220
0
    ::google::protobuf::io::CodedInputStream* input) {
221
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
222
0
  ::google::protobuf::uint32 tag;
223
  // @@protoc_insertion_point(parse_start:v3.EchoRequest)
224
0
  for (;;) {
225
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
226
0
    tag = p.first;
227
0
    if (!p.second) goto handle_unusual;
228
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
229
      // string message = 1;
230
0
      case 1: {
231
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
232
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
233
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
234
0
                input, this->mutable_message()));
235
0
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
236
0
            this->message().data(), static_cast<int>(this->message().length()),
237
0
            ::google::protobuf::internal::WireFormatLite::PARSE,
238
0
            "v3.EchoRequest.message"));
239
0
        } else {
240
0
          goto handle_unusual;
241
0
        }
242
0
        break;
243
0
      }
244
245
0
      default: {
246
0
      handle_unusual:
247
0
        if (tag == 0) {
248
0
          goto success;
249
0
        }
250
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
251
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
252
0
        break;
253
0
      }
254
0
    }
255
0
  }
256
0
success:
257
  // @@protoc_insertion_point(parse_success:v3.EchoRequest)
258
0
  return true;
259
0
failure:
260
  // @@protoc_insertion_point(parse_failure:v3.EchoRequest)
261
0
  return false;
262
0
#undef DO_
263
0
}
264
265
void EchoRequest::SerializeWithCachedSizes(
266
0
    ::google::protobuf::io::CodedOutputStream* output) const {
267
  // @@protoc_insertion_point(serialize_start:v3.EchoRequest)
268
0
  ::google::protobuf::uint32 cached_has_bits = 0;
269
0
  (void) cached_has_bits;
270
271
  // string message = 1;
272
0
  if (this->message().size() > 0) {
273
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
274
0
      this->message().data(), static_cast<int>(this->message().length()),
275
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
276
0
      "v3.EchoRequest.message");
277
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
278
0
      1, this->message(), output);
279
0
  }
280
281
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
282
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
283
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
284
0
  }
285
  // @@protoc_insertion_point(serialize_end:v3.EchoRequest)
286
0
}
287
288
::google::protobuf::uint8* EchoRequest::InternalSerializeWithCachedSizesToArray(
289
0
    bool deterministic, ::google::protobuf::uint8* target) const {
290
0
  (void)deterministic; // Unused
291
  // @@protoc_insertion_point(serialize_to_array_start:v3.EchoRequest)
292
0
  ::google::protobuf::uint32 cached_has_bits = 0;
293
0
  (void) cached_has_bits;
294
295
  // string message = 1;
296
0
  if (this->message().size() > 0) {
297
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
298
0
      this->message().data(), static_cast<int>(this->message().length()),
299
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
300
0
      "v3.EchoRequest.message");
301
0
    target =
302
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
303
0
        1, this->message(), target);
304
0
  }
305
306
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
307
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
308
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
309
0
  }
310
  // @@protoc_insertion_point(serialize_to_array_end:v3.EchoRequest)
311
0
  return target;
312
0
}
313
314
0
size_t EchoRequest::ByteSizeLong() const {
315
// @@protoc_insertion_point(message_byte_size_start:v3.EchoRequest)
316
0
  size_t total_size = 0;
317
318
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
319
0
    total_size +=
320
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
321
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
322
0
  }
323
  // string message = 1;
324
0
  if (this->message().size() > 0) {
325
0
    total_size += 1 +
326
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
327
0
        this->message());
328
0
  }
329
330
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
331
0
  SetCachedSize(cached_size);
332
0
  return total_size;
333
0
}
334
335
0
void EchoRequest::MergeFrom(const ::google::protobuf::Message& from) {
336
// @@protoc_insertion_point(generalized_merge_from_start:v3.EchoRequest)
337
0
  GOOGLE_DCHECK_NE(&from, this);
338
0
  const EchoRequest* source =
339
0
      ::google::protobuf::internal::DynamicCastToGenerated<const EchoRequest>(
340
0
          &from);
341
0
  if (source == NULL) {
342
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:v3.EchoRequest)
343
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
344
0
  } else {
345
  // @@protoc_insertion_point(generalized_merge_from_cast_success:v3.EchoRequest)
346
0
    MergeFrom(*source);
347
0
  }
348
0
}
349
350
0
void EchoRequest::MergeFrom(const EchoRequest& from) {
351
// @@protoc_insertion_point(class_specific_merge_from_start:v3.EchoRequest)
352
0
  GOOGLE_DCHECK_NE(&from, this);
353
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
354
0
  ::google::protobuf::uint32 cached_has_bits = 0;
355
0
  (void) cached_has_bits;
356
357
0
  if (from.message().size() > 0) {
358
0
    set_message(from.message());
359
0
  }
360
0
}
361
362
0
void EchoRequest::CopyFrom(const ::google::protobuf::Message& from) {
363
// @@protoc_insertion_point(generalized_copy_from_start:v3.EchoRequest)
364
0
  if (&from == this) return;
365
0
  Clear();
366
0
  MergeFrom(from);
367
0
}
368
369
0
void EchoRequest::CopyFrom(const EchoRequest& from) {
370
// @@protoc_insertion_point(class_specific_copy_from_start:v3.EchoRequest)
371
0
  if (&from == this) return;
372
0
  Clear();
373
0
  MergeFrom(from);
374
0
}
375
376
0
bool EchoRequest::IsInitialized() const {
377
0
  return true;
378
0
}
379
380
0
void EchoRequest::Swap(EchoRequest* other) {
381
0
  if (other == this) return;
382
0
  if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
383
0
    InternalSwap(other);
384
0
  } else {
385
0
    EchoRequest* temp = New(GetArenaNoVirtual());
386
0
    temp->MergeFrom(*other);
387
0
    other->CopyFrom(*this);
388
0
    InternalSwap(temp);
389
0
    if (GetArenaNoVirtual() == NULL) {
390
0
      delete temp;
391
0
    }
392
0
  }
393
0
}
394
0
void EchoRequest::UnsafeArenaSwap(EchoRequest* other) {
395
0
  if (other == this) return;
396
0
  GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
397
0
  InternalSwap(other);
398
0
}
399
0
void EchoRequest::InternalSwap(EchoRequest* other) {
400
0
  using std::swap;
401
0
  message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
402
0
    GetArenaNoVirtual());
403
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
404
0
}
405
406
0
::google::protobuf::Metadata EchoRequest::GetMetadata() const {
407
0
  protobuf_v3_2eproto::protobuf_AssignDescriptorsOnce();
408
0
  return ::protobuf_v3_2eproto::file_level_metadata[kIndexInFileMessages];
409
0
}
410
411
412
// ===================================================================
413
414
20
void EchoResponse::InitAsDefaultInstance() {
415
20
}
416
#if !defined(_MSC_VER) || _MSC_VER >= 1900
417
const int EchoResponse::kMessageFieldNumber;
418
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
419
420
EchoResponse::EchoResponse()
421
20
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
422
20
  ::google::protobuf::internal::InitSCC(
423
20
      &protobuf_v3_2eproto::scc_info_EchoResponse.base);
424
20
  SharedCtor();
425
  // @@protoc_insertion_point(constructor:v3.EchoResponse)
426
20
}
427
EchoResponse::EchoResponse(::google::protobuf::Arena* arena)
428
0
  : ::google::protobuf::Message(),
429
0
  _internal_metadata_(arena) {
430
0
  ::google::protobuf::internal::InitSCC(&protobuf_v3_2eproto::scc_info_EchoResponse.base);
431
0
  SharedCtor();
432
0
  RegisterArenaDtor(arena);
433
  // @@protoc_insertion_point(arena_constructor:v3.EchoResponse)
434
0
}
435
EchoResponse::EchoResponse(const EchoResponse& from)
436
0
  : ::google::protobuf::Message(),
437
0
      _internal_metadata_(NULL) {
438
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
439
0
  message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
440
0
  if (from.message().size() > 0) {
441
0
    message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message(),
442
0
      GetArenaNoVirtual());
443
0
  }
444
  // @@protoc_insertion_point(copy_constructor:v3.EchoResponse)
445
0
}
446
447
20
void EchoResponse::SharedCtor() {
448
20
  message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
449
20
}
450
451
0
EchoResponse::~EchoResponse() {
452
  // @@protoc_insertion_point(destructor:v3.EchoResponse)
453
0
  SharedDtor();
454
0
}
455
456
0
void EchoResponse::SharedDtor() {
457
0
  GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
458
0
  message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
459
0
}
460
461
0
void EchoResponse::ArenaDtor(void* object) {
462
0
  EchoResponse* _this = reinterpret_cast< EchoResponse* >(object);
463
0
  (void)_this;
464
0
}
465
0
void EchoResponse::RegisterArenaDtor(::google::protobuf::Arena* arena) {
466
0
}
467
0
void EchoResponse::SetCachedSize(int size) const {
468
0
  _cached_size_.Set(size);
469
0
}
470
0
const ::google::protobuf::Descriptor* EchoResponse::descriptor() {
471
0
  ::protobuf_v3_2eproto::protobuf_AssignDescriptorsOnce();
472
0
  return ::protobuf_v3_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
473
0
}
474
475
0
const EchoResponse& EchoResponse::default_instance() {
476
0
  ::google::protobuf::internal::InitSCC(&protobuf_v3_2eproto::scc_info_EchoResponse.base);
477
0
  return *internal_default_instance();
478
0
}
479
480
481
0
void EchoResponse::Clear() {
482
// @@protoc_insertion_point(message_clear_start:v3.EchoResponse)
483
0
  ::google::protobuf::uint32 cached_has_bits = 0;
484
  // Prevent compiler warnings about cached_has_bits being unused
485
0
  (void) cached_has_bits;
486
487
0
  message_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
488
0
  _internal_metadata_.Clear();
489
0
}
490
491
bool EchoResponse::MergePartialFromCodedStream(
492
0
    ::google::protobuf::io::CodedInputStream* input) {
493
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
494
0
  ::google::protobuf::uint32 tag;
495
  // @@protoc_insertion_point(parse_start:v3.EchoResponse)
496
0
  for (;;) {
497
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
498
0
    tag = p.first;
499
0
    if (!p.second) goto handle_unusual;
500
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
501
      // string message = 1;
502
0
      case 1: {
503
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
504
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
505
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
506
0
                input, this->mutable_message()));
507
0
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
508
0
            this->message().data(), static_cast<int>(this->message().length()),
509
0
            ::google::protobuf::internal::WireFormatLite::PARSE,
510
0
            "v3.EchoResponse.message"));
511
0
        } else {
512
0
          goto handle_unusual;
513
0
        }
514
0
        break;
515
0
      }
516
517
0
      default: {
518
0
      handle_unusual:
519
0
        if (tag == 0) {
520
0
          goto success;
521
0
        }
522
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
523
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
524
0
        break;
525
0
      }
526
0
    }
527
0
  }
528
0
success:
529
  // @@protoc_insertion_point(parse_success:v3.EchoResponse)
530
0
  return true;
531
0
failure:
532
  // @@protoc_insertion_point(parse_failure:v3.EchoResponse)
533
0
  return false;
534
0
#undef DO_
535
0
}
536
537
void EchoResponse::SerializeWithCachedSizes(
538
0
    ::google::protobuf::io::CodedOutputStream* output) const {
539
  // @@protoc_insertion_point(serialize_start:v3.EchoResponse)
540
0
  ::google::protobuf::uint32 cached_has_bits = 0;
541
0
  (void) cached_has_bits;
542
543
  // string message = 1;
544
0
  if (this->message().size() > 0) {
545
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
546
0
      this->message().data(), static_cast<int>(this->message().length()),
547
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
548
0
      "v3.EchoResponse.message");
549
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
550
0
      1, this->message(), output);
551
0
  }
552
553
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
554
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
555
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
556
0
  }
557
  // @@protoc_insertion_point(serialize_end:v3.EchoResponse)
558
0
}
559
560
::google::protobuf::uint8* EchoResponse::InternalSerializeWithCachedSizesToArray(
561
0
    bool deterministic, ::google::protobuf::uint8* target) const {
562
0
  (void)deterministic; // Unused
563
  // @@protoc_insertion_point(serialize_to_array_start:v3.EchoResponse)
564
0
  ::google::protobuf::uint32 cached_has_bits = 0;
565
0
  (void) cached_has_bits;
566
567
  // string message = 1;
568
0
  if (this->message().size() > 0) {
569
0
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
570
0
      this->message().data(), static_cast<int>(this->message().length()),
571
0
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
572
0
      "v3.EchoResponse.message");
573
0
    target =
574
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
575
0
        1, this->message(), target);
576
0
  }
577
578
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
579
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
580
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
581
0
  }
582
  // @@protoc_insertion_point(serialize_to_array_end:v3.EchoResponse)
583
0
  return target;
584
0
}
585
586
0
size_t EchoResponse::ByteSizeLong() const {
587
// @@protoc_insertion_point(message_byte_size_start:v3.EchoResponse)
588
0
  size_t total_size = 0;
589
590
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
591
0
    total_size +=
592
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
593
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
594
0
  }
595
  // string message = 1;
596
0
  if (this->message().size() > 0) {
597
0
    total_size += 1 +
598
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
599
0
        this->message());
600
0
  }
601
602
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
603
0
  SetCachedSize(cached_size);
604
0
  return total_size;
605
0
}
606
607
0
void EchoResponse::MergeFrom(const ::google::protobuf::Message& from) {
608
// @@protoc_insertion_point(generalized_merge_from_start:v3.EchoResponse)
609
0
  GOOGLE_DCHECK_NE(&from, this);
610
0
  const EchoResponse* source =
611
0
      ::google::protobuf::internal::DynamicCastToGenerated<const EchoResponse>(
612
0
          &from);
613
0
  if (source == NULL) {
614
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:v3.EchoResponse)
615
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
616
0
  } else {
617
  // @@protoc_insertion_point(generalized_merge_from_cast_success:v3.EchoResponse)
618
0
    MergeFrom(*source);
619
0
  }
620
0
}
621
622
0
void EchoResponse::MergeFrom(const EchoResponse& from) {
623
// @@protoc_insertion_point(class_specific_merge_from_start:v3.EchoResponse)
624
0
  GOOGLE_DCHECK_NE(&from, this);
625
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
626
0
  ::google::protobuf::uint32 cached_has_bits = 0;
627
0
  (void) cached_has_bits;
628
629
0
  if (from.message().size() > 0) {
630
0
    set_message(from.message());
631
0
  }
632
0
}
633
634
0
void EchoResponse::CopyFrom(const ::google::protobuf::Message& from) {
635
// @@protoc_insertion_point(generalized_copy_from_start:v3.EchoResponse)
636
0
  if (&from == this) return;
637
0
  Clear();
638
0
  MergeFrom(from);
639
0
}
640
641
0
void EchoResponse::CopyFrom(const EchoResponse& from) {
642
// @@protoc_insertion_point(class_specific_copy_from_start:v3.EchoResponse)
643
0
  if (&from == this) return;
644
0
  Clear();
645
0
  MergeFrom(from);
646
0
}
647
648
0
bool EchoResponse::IsInitialized() const {
649
0
  return true;
650
0
}
651
652
0
void EchoResponse::Swap(EchoResponse* other) {
653
0
  if (other == this) return;
654
0
  if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
655
0
    InternalSwap(other);
656
0
  } else {
657
0
    EchoResponse* temp = New(GetArenaNoVirtual());
658
0
    temp->MergeFrom(*other);
659
0
    other->CopyFrom(*this);
660
0
    InternalSwap(temp);
661
0
    if (GetArenaNoVirtual() == NULL) {
662
0
      delete temp;
663
0
    }
664
0
  }
665
0
}
666
0
void EchoResponse::UnsafeArenaSwap(EchoResponse* other) {
667
0
  if (other == this) return;
668
0
  GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
669
0
  InternalSwap(other);
670
0
}
671
0
void EchoResponse::InternalSwap(EchoResponse* other) {
672
0
  using std::swap;
673
0
  message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
674
0
    GetArenaNoVirtual());
675
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
676
0
}
677
678
0
::google::protobuf::Metadata EchoResponse::GetMetadata() const {
679
0
  protobuf_v3_2eproto::protobuf_AssignDescriptorsOnce();
680
0
  return ::protobuf_v3_2eproto::file_level_metadata[kIndexInFileMessages];
681
0
}
682
683
684
// ===================================================================
685
686
0
EchoService::~EchoService() {}
687
688
0
const ::google::protobuf::ServiceDescriptor* EchoService::descriptor() {
689
0
  protobuf_v3_2eproto::protobuf_AssignDescriptorsOnce();
690
0
  return protobuf_v3_2eproto::file_level_service_descriptors[0];
691
0
}
692
693
0
const ::google::protobuf::ServiceDescriptor* EchoService::GetDescriptor() {
694
0
  return descriptor();
695
0
}
696
697
void EchoService::Echo(::google::protobuf::RpcController* controller,
698
                         const ::v3::EchoRequest*,
699
                         ::v3::EchoResponse*,
700
0
                         ::google::protobuf::Closure* done) {
701
0
  controller->SetFailed("Method Echo() not implemented.");
702
0
  done->Run();
703
0
}
704
705
void EchoService::CallMethod(const ::google::protobuf::MethodDescriptor* method,
706
                             ::google::protobuf::RpcController* controller,
707
                             const ::google::protobuf::Message* request,
708
                             ::google::protobuf::Message* response,
709
0
                             ::google::protobuf::Closure* done) {
710
0
  GOOGLE_DCHECK_EQ(method->service(), protobuf_v3_2eproto::file_level_service_descriptors[0]);
711
0
  switch(method->index()) {
712
0
    case 0:
713
0
      Echo(controller,
714
0
             ::google::protobuf::down_cast<const ::v3::EchoRequest*>(request),
715
0
             ::google::protobuf::down_cast< ::v3::EchoResponse*>(response),
716
0
             done);
717
0
      break;
718
0
    default:
719
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
720
0
      break;
721
0
  }
722
0
}
723
724
const ::google::protobuf::Message& EchoService::GetRequestPrototype(
725
0
    const ::google::protobuf::MethodDescriptor* method) const {
726
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
727
0
  switch(method->index()) {
728
0
    case 0:
729
0
      return ::v3::EchoRequest::default_instance();
730
0
    default:
731
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
732
0
      return *::google::protobuf::MessageFactory::generated_factory()
733
0
          ->GetPrototype(method->input_type());
734
0
  }
735
0
}
736
737
const ::google::protobuf::Message& EchoService::GetResponsePrototype(
738
0
    const ::google::protobuf::MethodDescriptor* method) const {
739
0
  GOOGLE_DCHECK_EQ(method->service(), descriptor());
740
0
  switch(method->index()) {
741
0
    case 0:
742
0
      return ::v3::EchoResponse::default_instance();
743
0
    default:
744
0
      GOOGLE_LOG(FATAL) << "Bad method index; this should never happen.";
745
0
      return *::google::protobuf::MessageFactory::generated_factory()
746
0
          ->GetPrototype(method->output_type());
747
0
  }
748
0
}
749
750
EchoService_Stub::EchoService_Stub(::google::protobuf::RpcChannel* channel)
751
0
  : channel_(channel), owns_channel_(false) {}
752
EchoService_Stub::EchoService_Stub(
753
    ::google::protobuf::RpcChannel* channel,
754
    ::google::protobuf::Service::ChannelOwnership ownership)
755
0
  : channel_(channel),
756
0
    owns_channel_(ownership == ::google::protobuf::Service::STUB_OWNS_CHANNEL) {}
757
0
EchoService_Stub::~EchoService_Stub() {
758
0
  if (owns_channel_) delete channel_;
759
0
}
760
761
void EchoService_Stub::Echo(::google::protobuf::RpcController* controller,
762
                              const ::v3::EchoRequest* request,
763
                              ::v3::EchoResponse* response,
764
0
                              ::google::protobuf::Closure* done) {
765
0
  channel_->CallMethod(descriptor()->method(0),
766
0
                       controller, request, response, done);
767
0
}
768
769
// @@protoc_insertion_point(namespace_scope)
770
}  // namespace v3
771
namespace google {
772
namespace protobuf {
773
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::v3::EchoRequest* Arena::CreateMaybeMessage< ::v3::EchoRequest >(Arena* arena) {
774
0
  return Arena::CreateMessageInternal< ::v3::EchoRequest >(arena);
775
0
}
776
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::v3::EchoResponse* Arena::CreateMaybeMessage< ::v3::EchoResponse >(Arena* arena) {
777
0
  return Arena::CreateMessageInternal< ::v3::EchoResponse >(arena);
778
0
}
779
}  // namespace protobuf
780
}  // namespace google
781
782
// @@protoc_insertion_point(global_scope)