YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/rpc/lightweight_message.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/rpc/lightweight_message.proto
3
4
#include "yb/rpc/lightweight_message.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/stubs/once.h>
11
#include <google/protobuf/io/coded_stream.h>
12
#include <google/protobuf/wire_format_lite_inl.h>
13
#include <google/protobuf/descriptor.h>
14
#include <google/protobuf/generated_message_reflection.h>
15
#include <google/protobuf/reflection_ops.h>
16
#include <google/protobuf/wire_format.h>
17
// This is a temporary google only hack
18
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19
#include "third_party/protobuf/version.h"
20
#endif
21
#include "yb/util/protobuf-annotations.h"
22
// @@protoc_insertion_point(includes)
23
namespace yb {
24
namespace rpc {
25
class LightweightMethodOptionsDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<LightweightMethodOptions>
28
      _instance;
29
} _LightweightMethodOptions_default_instance_;
30
class LightweightFieldOptionsDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<LightweightFieldOptions>
33
      _instance;
34
} _LightweightFieldOptions_default_instance_;
35
class LightweightMessageOptionsDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<LightweightMessageOptions>
38
      _instance;
39
} _LightweightMessageOptions_default_instance_;
40
}  // namespace rpc
41
}  // namespace yb
42
namespace protobuf_yb_2frpc_2flightweight_5fmessage_2eproto {
43
15.9k
void InitDefaultsLightweightMethodOptionsImpl() {
44
15.9k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
45
46
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
47
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
48
#else
49
15.9k
  ::google::protobuf::internal::InitProtobufDefaults();
50
15.9k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
51
15.9k
  {
52
15.9k
    void* ptr = &::yb::rpc::_LightweightMethodOptions_default_instance_;
53
15.9k
    new (ptr) ::yb::rpc::LightweightMethodOptions();
54
15.9k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
55
15.9k
  }
56
15.9k
  ::yb::rpc::LightweightMethodOptions::InitAsDefaultInstance();
57
15.9k
}
58
59
32.1k
void InitDefaultsLightweightMethodOptions() {
60
32.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
61
32.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLightweightMethodOptionsImpl);
62
32.1k
}
63
64
15.9k
void InitDefaultsLightweightFieldOptionsImpl() {
65
15.9k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
66
67
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
68
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
69
#else
70
15.9k
  ::google::protobuf::internal::InitProtobufDefaults();
71
15.9k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
72
15.9k
  {
73
15.9k
    void* ptr = &::yb::rpc::_LightweightFieldOptions_default_instance_;
74
15.9k
    new (ptr) ::yb::rpc::LightweightFieldOptions();
75
15.9k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
76
15.9k
  }
77
15.9k
  ::yb::rpc::LightweightFieldOptions::InitAsDefaultInstance();
78
15.9k
}
79
80
32.4k
void InitDefaultsLightweightFieldOptions() {
81
32.4k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
82
32.4k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLightweightFieldOptionsImpl);
83
32.4k
}
84
85
15.9k
void InitDefaultsLightweightMessageOptionsImpl() {
86
15.9k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
87
88
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
89
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
90
#else
91
15.9k
  ::google::protobuf::internal::InitProtobufDefaults();
92
15.9k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
93
15.9k
  {
94
15.9k
    void* ptr = &::yb::rpc::_LightweightMessageOptions_default_instance_;
95
15.9k
    new (ptr) ::yb::rpc::LightweightMessageOptions();
96
15.9k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
97
15.9k
  }
98
15.9k
  ::yb::rpc::LightweightMessageOptions::InitAsDefaultInstance();
99
15.9k
}
100
101
31.9k
void InitDefaultsLightweightMessageOptions() {
102
31.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
103
31.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLightweightMessageOptionsImpl);
104
31.9k
}
105
106
::google::protobuf::Metadata file_level_metadata[3];
107
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
108
109
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
110
  ~0u,  // no _has_bits_
111
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc::LightweightMethodOptions, _internal_metadata_),
112
  ~0u,  // no _extensions_
113
  ~0u,  // no _oneof_case_
114
  ~0u,  // no _weak_field_map_
115
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc::LightweightMethodOptions, sides_),
116
  ~0u,  // no _has_bits_
117
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc::LightweightFieldOptions, _internal_metadata_),
118
  ~0u,  // no _extensions_
119
  ~0u,  // no _oneof_case_
120
  ~0u,  // no _weak_field_map_
121
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc::LightweightFieldOptions, pointer_),
122
  ~0u,  // no _has_bits_
123
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc::LightweightMessageOptions, _internal_metadata_),
124
  ~0u,  // no _extensions_
125
  ~0u,  // no _oneof_case_
126
  ~0u,  // no _weak_field_map_
127
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::rpc::LightweightMessageOptions, force_arena_),
128
};
129
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
130
  { 0, -1, sizeof(::yb::rpc::LightweightMethodOptions)},
131
  { 6, -1, sizeof(::yb::rpc::LightweightFieldOptions)},
132
  { 12, -1, sizeof(::yb::rpc::LightweightMessageOptions)},
133
};
134
135
static ::google::protobuf::Message const * const file_default_instances[] = {
136
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc::_LightweightMethodOptions_default_instance_),
137
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc::_LightweightFieldOptions_default_instance_),
138
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::rpc::_LightweightMessageOptions_default_instance_),
139
};
140
141
0
void protobuf_AssignDescriptors() {
142
0
  AddDescriptors();
143
0
  ::google::protobuf::MessageFactory* factory = NULL;
144
0
  AssignDescriptors(
145
0
      "yb/rpc/lightweight_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
146
0
      file_level_metadata, file_level_enum_descriptors, NULL);
147
0
}
148
149
0
void protobuf_AssignDescriptorsOnce() {
150
0
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
151
0
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
152
0
}
153
154
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
155
0
void protobuf_RegisterTypes(const ::std::string&) {
156
0
  protobuf_AssignDescriptorsOnce();
157
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
158
0
}
159
160
15.9k
void AddDescriptorsImpl() {
161
15.9k
  InitDefaults();
162
15.9k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
163
15.9k
      "\n yb/rpc/lightweight_message.proto\022\006yb.r"
164
15.9k
      "pc\032 google/protobuf/descriptor.proto\";\n\030"
165
15.9k
      "LightweightMethodOptions\022\037\n\005sides\030\001 \001(\0162"
166
15.9k
      "\020.yb.rpc.RpcSides\"*\n\027LightweightFieldOpt"
167
15.9k
      "ions\022\017\n\007pointer\030\001 \001(\010\"0\n\031LightweightMess"
168
15.9k
      "ageOptions\022\023\n\013force_arena\030\001 \001(\010*6\n\010RpcSi"
169
15.9k
      "des\022\010\n\004NONE\020\000\022\013\n\007SERVICE\020\001\022\t\n\005PROXY\020\002\022\010\n"
170
15.9k
      "\004BOTH\020\003:^\n\022lightweight_method\022\036.google.p"
171
15.9k
      "rotobuf.MethodOptions\030\320\206\003 \001(\0132 .yb.rpc.L"
172
15.9k
      "ightweightMethodOptions:[\n\021lightweight_f"
173
15.9k
      "ield\022\035.google.protobuf.FieldOptions\030\320\206\003 "
174
15.9k
      "\001(\0132\037.yb.rpc.LightweightFieldOptions:a\n\023"
175
15.9k
      "lightweight_message\022\037.google.protobuf.Me"
176
15.9k
      "ssageOptions\030\320\206\003 \001(\0132!.yb.rpc.Lightweigh"
177
15.9k
      "tMessageOptionsb\006proto3"
178
15.9k
  };
179
15.9k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
180
15.9k
      descriptor, 583);
181
15.9k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
182
15.9k
    "yb/rpc/lightweight_message.proto", &protobuf_RegisterTypes);
183
15.9k
  ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptors();
184
15.9k
}
185
186
16.0k
void AddDescriptors() {
187
16.0k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
188
16.0k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
189
16.0k
}
190
// Force AddDescriptors() to be called at dynamic initialization time.
191
struct StaticDescriptorInitializer {
192
15.9k
  StaticDescriptorInitializer() {
193
15.9k
    AddDescriptors();
194
15.9k
  }
195
} static_descriptor_initializer;
196
}  // namespace protobuf_yb_2frpc_2flightweight_5fmessage_2eproto
197
namespace yb {
198
namespace rpc {
199
0
const ::google::protobuf::EnumDescriptor* RpcSides_descriptor() {
200
0
  protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
201
0
  return protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::file_level_enum_descriptors[0];
202
0
}
203
0
bool RpcSides_IsValid(int value) {
204
0
  switch (value) {
205
0
    case 0:
206
0
    case 1:
207
0
    case 2:
208
0
    case 3:
209
0
      return true;
210
0
    default:
211
0
      return false;
212
0
  }
213
0
}
214
215
216
// ===================================================================
217
218
15.9k
void LightweightMethodOptions::InitAsDefaultInstance() {
219
15.9k
}
220
#if !defined(_MSC_VER) || _MSC_VER >= 1900
221
const int LightweightMethodOptions::kSidesFieldNumber;
222
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
223
224
LightweightMethodOptions::LightweightMethodOptions()
225
16.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
226
255
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
227
255
    ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::InitDefaultsLightweightMethodOptions();
228
255
  }
229
16.2k
  SharedCtor();
230
  // @@protoc_insertion_point(constructor:yb.rpc.LightweightMethodOptions)
231
16.2k
}
232
LightweightMethodOptions::LightweightMethodOptions(const LightweightMethodOptions& from)
233
  : ::google::protobuf::Message(),
234
      _internal_metadata_(NULL),
235
0
      _cached_size_(0) {
236
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
237
0
  sides_ = from.sides_;
238
  // @@protoc_insertion_point(copy_constructor:yb.rpc.LightweightMethodOptions)
239
0
}
240
241
16.2k
void LightweightMethodOptions::SharedCtor() {
242
16.2k
  sides_ = 0;
243
16.2k
  _cached_size_ = 0;
244
16.2k
}
245
246
189
LightweightMethodOptions::~LightweightMethodOptions() {
247
  // @@protoc_insertion_point(destructor:yb.rpc.LightweightMethodOptions)
248
189
  SharedDtor();
249
189
}
250
251
189
void LightweightMethodOptions::SharedDtor() {
252
189
}
253
254
0
void LightweightMethodOptions::SetCachedSize(int size) const {
255
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
256
0
  _cached_size_ = size;
257
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
258
0
}
259
0
const ::google::protobuf::Descriptor* LightweightMethodOptions::descriptor() {
260
0
  ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
261
0
  return ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
262
0
}
263
264
15.9k
const LightweightMethodOptions& LightweightMethodOptions::default_instance() {
265
15.9k
  ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::InitDefaultsLightweightMethodOptions();
266
15.9k
  return *internal_default_instance();
267
15.9k
}
268
269
255
LightweightMethodOptions* LightweightMethodOptions::New(::google::protobuf::Arena* arena) const {
270
255
  LightweightMethodOptions* n = new LightweightMethodOptions;
271
255
  if (arena != NULL) {
272
0
    arena->Own(n);
273
0
  }
274
255
  return n;
275
255
}
276
277
0
void LightweightMethodOptions::Clear() {
278
// @@protoc_insertion_point(message_clear_start:yb.rpc.LightweightMethodOptions)
279
0
  ::google::protobuf::uint32 cached_has_bits = 0;
280
  // Prevent compiler warnings about cached_has_bits being unused
281
0
  (void) cached_has_bits;
282
283
0
  sides_ = 0;
284
0
  _internal_metadata_.Clear();
285
0
}
286
287
bool LightweightMethodOptions::MergePartialFromCodedStream(
288
255
    ::google::protobuf::io::CodedInputStream* input) {
289
255
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
290
255
  ::google::protobuf::uint32 tag;
291
  // @@protoc_insertion_point(parse_start:yb.rpc.LightweightMethodOptions)
292
510
  for (;;) {
293
510
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
294
510
    tag = p.first;
295
510
    if (!p.second) goto handle_unusual;
296
255
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
297
      // .yb.rpc.RpcSides sides = 1;
298
255
      case 1: {
299
255
        if (static_cast< ::google::protobuf::uint8>(tag) ==
300
255
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
301
255
          int value;
302
255
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
303
255
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
304
255
                 input, &value)));
305
255
          set_sides(static_cast< ::yb::rpc::RpcSides >(value));
306
0
        } else {
307
0
          goto handle_unusual;
308
0
        }
309
255
        break;
310
255
      }
311
312
0
      default: {
313
255
      handle_unusual:
314
255
        if (tag == 0) {
315
255
          goto success;
316
255
        }
317
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
318
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
319
0
        break;
320
0
      }
321
255
    }
322
255
  }
323
255
success:
324
  // @@protoc_insertion_point(parse_success:yb.rpc.LightweightMethodOptions)
325
255
  return true;
326
0
failure:
327
  // @@protoc_insertion_point(parse_failure:yb.rpc.LightweightMethodOptions)
328
0
  return false;
329
255
#undef DO_
330
255
}
331
332
void LightweightMethodOptions::SerializeWithCachedSizes(
333
0
    ::google::protobuf::io::CodedOutputStream* output) const {
334
  // @@protoc_insertion_point(serialize_start:yb.rpc.LightweightMethodOptions)
335
0
  ::google::protobuf::uint32 cached_has_bits = 0;
336
0
  (void) cached_has_bits;
337
338
  // .yb.rpc.RpcSides sides = 1;
339
0
  if (this->sides() != 0) {
340
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
341
0
      1, this->sides(), output);
342
0
  }
343
344
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
345
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
346
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
347
0
  }
348
  // @@protoc_insertion_point(serialize_end:yb.rpc.LightweightMethodOptions)
349
0
}
350
351
::google::protobuf::uint8* LightweightMethodOptions::InternalSerializeWithCachedSizesToArray(
352
66
    bool deterministic, ::google::protobuf::uint8* target) const {
353
66
  (void)deterministic; // Unused
354
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc.LightweightMethodOptions)
355
66
  ::google::protobuf::uint32 cached_has_bits = 0;
356
66
  (void) cached_has_bits;
357
358
  // .yb.rpc.RpcSides sides = 1;
359
66
  if (this->sides() != 0) {
360
66
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
361
66
      1, this->sides(), target);
362
66
  }
363
364
66
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
365
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
366
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
367
0
  }
368
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc.LightweightMethodOptions)
369
66
  return target;
370
66
}
371
372
66
size_t LightweightMethodOptions::ByteSizeLong() const {
373
// @@protoc_insertion_point(message_byte_size_start:yb.rpc.LightweightMethodOptions)
374
66
  size_t total_size = 0;
375
376
66
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
377
0
    total_size +=
378
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
379
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
380
0
  }
381
  // .yb.rpc.RpcSides sides = 1;
382
66
  if (this->sides() != 0) {
383
66
    total_size += 1 +
384
66
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->sides());
385
66
  }
386
387
66
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
388
66
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
389
66
  _cached_size_ = cached_size;
390
66
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
391
66
  return total_size;
392
66
}
393
394
0
void LightweightMethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
395
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc.LightweightMethodOptions)
396
0
  GOOGLE_DCHECK_NE(&from, this);
397
0
  const LightweightMethodOptions* source =
398
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LightweightMethodOptions>(
399
0
          &from);
400
0
  if (source == NULL) {
401
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc.LightweightMethodOptions)
402
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
403
0
  } else {
404
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc.LightweightMethodOptions)
405
0
    MergeFrom(*source);
406
0
  }
407
0
}
408
409
0
void LightweightMethodOptions::MergeFrom(const LightweightMethodOptions& from) {
410
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc.LightweightMethodOptions)
411
0
  GOOGLE_DCHECK_NE(&from, this);
412
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
413
0
  ::google::protobuf::uint32 cached_has_bits = 0;
414
0
  (void) cached_has_bits;
415
416
0
  if (from.sides() != 0) {
417
0
    set_sides(from.sides());
418
0
  }
419
0
}
420
421
0
void LightweightMethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
422
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc.LightweightMethodOptions)
423
0
  if (&from == this) return;
424
0
  Clear();
425
0
  MergeFrom(from);
426
0
}
427
428
0
void LightweightMethodOptions::CopyFrom(const LightweightMethodOptions& from) {
429
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc.LightweightMethodOptions)
430
0
  if (&from == this) return;
431
0
  Clear();
432
0
  MergeFrom(from);
433
0
}
434
435
321
bool LightweightMethodOptions::IsInitialized() const {
436
321
  return true;
437
321
}
438
439
0
void LightweightMethodOptions::Swap(LightweightMethodOptions* other) {
440
0
  if (other == this) return;
441
0
  InternalSwap(other);
442
0
}
443
0
void LightweightMethodOptions::InternalSwap(LightweightMethodOptions* other) {
444
0
  using std::swap;
445
0
  swap(sides_, other->sides_);
446
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
447
0
  swap(_cached_size_, other->_cached_size_);
448
0
}
449
450
0
::google::protobuf::Metadata LightweightMethodOptions::GetMetadata() const {
451
0
  protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
452
0
  return ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
453
0
}
454
455
456
// ===================================================================
457
458
15.9k
void LightweightFieldOptions::InitAsDefaultInstance() {
459
15.9k
}
460
#if !defined(_MSC_VER) || _MSC_VER >= 1900
461
const int LightweightFieldOptions::kPointerFieldNumber;
462
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
463
464
LightweightFieldOptions::LightweightFieldOptions()
465
16.4k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
466
510
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
467
510
    ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::InitDefaultsLightweightFieldOptions();
468
510
  }
469
16.4k
  SharedCtor();
470
  // @@protoc_insertion_point(constructor:yb.rpc.LightweightFieldOptions)
471
16.4k
}
472
LightweightFieldOptions::LightweightFieldOptions(const LightweightFieldOptions& from)
473
  : ::google::protobuf::Message(),
474
      _internal_metadata_(NULL),
475
0
      _cached_size_(0) {
476
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
477
0
  pointer_ = from.pointer_;
478
  // @@protoc_insertion_point(copy_constructor:yb.rpc.LightweightFieldOptions)
479
0
}
480
481
16.4k
void LightweightFieldOptions::SharedCtor() {
482
16.4k
  pointer_ = false;
483
16.4k
  _cached_size_ = 0;
484
16.4k
}
485
486
378
LightweightFieldOptions::~LightweightFieldOptions() {
487
  // @@protoc_insertion_point(destructor:yb.rpc.LightweightFieldOptions)
488
378
  SharedDtor();
489
378
}
490
491
378
void LightweightFieldOptions::SharedDtor() {
492
378
}
493
494
0
void LightweightFieldOptions::SetCachedSize(int size) const {
495
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
496
0
  _cached_size_ = size;
497
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
498
0
}
499
0
const ::google::protobuf::Descriptor* LightweightFieldOptions::descriptor() {
500
0
  ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
501
0
  return ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
502
0
}
503
504
15.9k
const LightweightFieldOptions& LightweightFieldOptions::default_instance() {
505
15.9k
  ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::InitDefaultsLightweightFieldOptions();
506
15.9k
  return *internal_default_instance();
507
15.9k
}
508
509
510
LightweightFieldOptions* LightweightFieldOptions::New(::google::protobuf::Arena* arena) const {
510
510
  LightweightFieldOptions* n = new LightweightFieldOptions;
511
510
  if (arena != NULL) {
512
0
    arena->Own(n);
513
0
  }
514
510
  return n;
515
510
}
516
517
0
void LightweightFieldOptions::Clear() {
518
// @@protoc_insertion_point(message_clear_start:yb.rpc.LightweightFieldOptions)
519
0
  ::google::protobuf::uint32 cached_has_bits = 0;
520
  // Prevent compiler warnings about cached_has_bits being unused
521
0
  (void) cached_has_bits;
522
523
0
  pointer_ = false;
524
0
  _internal_metadata_.Clear();
525
0
}
526
527
bool LightweightFieldOptions::MergePartialFromCodedStream(
528
510
    ::google::protobuf::io::CodedInputStream* input) {
529
510
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
530
510
  ::google::protobuf::uint32 tag;
531
  // @@protoc_insertion_point(parse_start:yb.rpc.LightweightFieldOptions)
532
1.02k
  for (;;) {
533
1.02k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
534
1.02k
    tag = p.first;
535
1.02k
    if (!p.second) goto handle_unusual;
536
510
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
537
      // bool pointer = 1;
538
510
      case 1: {
539
510
        if (static_cast< ::google::protobuf::uint8>(tag) ==
540
510
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
541
542
510
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
543
510
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
544
510
                 input, &pointer_)));
545
0
        } else {
546
0
          goto handle_unusual;
547
0
        }
548
510
        break;
549
510
      }
550
551
0
      default: {
552
510
      handle_unusual:
553
510
        if (tag == 0) {
554
510
          goto success;
555
510
        }
556
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
557
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
558
0
        break;
559
0
      }
560
510
    }
561
510
  }
562
510
success:
563
  // @@protoc_insertion_point(parse_success:yb.rpc.LightweightFieldOptions)
564
510
  return true;
565
0
failure:
566
  // @@protoc_insertion_point(parse_failure:yb.rpc.LightweightFieldOptions)
567
0
  return false;
568
510
#undef DO_
569
510
}
570
571
void LightweightFieldOptions::SerializeWithCachedSizes(
572
0
    ::google::protobuf::io::CodedOutputStream* output) const {
573
  // @@protoc_insertion_point(serialize_start:yb.rpc.LightweightFieldOptions)
574
0
  ::google::protobuf::uint32 cached_has_bits = 0;
575
0
  (void) cached_has_bits;
576
577
  // bool pointer = 1;
578
0
  if (this->pointer() != 0) {
579
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->pointer(), output);
580
0
  }
581
582
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
583
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
584
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
585
0
  }
586
  // @@protoc_insertion_point(serialize_end:yb.rpc.LightweightFieldOptions)
587
0
}
588
589
::google::protobuf::uint8* LightweightFieldOptions::InternalSerializeWithCachedSizesToArray(
590
132
    bool deterministic, ::google::protobuf::uint8* target) const {
591
132
  (void)deterministic; // Unused
592
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc.LightweightFieldOptions)
593
132
  ::google::protobuf::uint32 cached_has_bits = 0;
594
132
  (void) cached_has_bits;
595
596
  // bool pointer = 1;
597
132
  if (this->pointer() != 0) {
598
132
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->pointer(), target);
599
132
  }
600
601
132
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
602
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
603
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
604
0
  }
605
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc.LightweightFieldOptions)
606
132
  return target;
607
132
}
608
609
132
size_t LightweightFieldOptions::ByteSizeLong() const {
610
// @@protoc_insertion_point(message_byte_size_start:yb.rpc.LightweightFieldOptions)
611
132
  size_t total_size = 0;
612
613
132
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
614
0
    total_size +=
615
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
616
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
617
0
  }
618
  // bool pointer = 1;
619
132
  if (this->pointer() != 0) {
620
132
    total_size += 1 + 1;
621
132
  }
622
623
132
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
624
132
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
625
132
  _cached_size_ = cached_size;
626
132
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
627
132
  return total_size;
628
132
}
629
630
0
void LightweightFieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
631
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc.LightweightFieldOptions)
632
0
  GOOGLE_DCHECK_NE(&from, this);
633
0
  const LightweightFieldOptions* source =
634
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LightweightFieldOptions>(
635
0
          &from);
636
0
  if (source == NULL) {
637
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc.LightweightFieldOptions)
638
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
639
0
  } else {
640
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc.LightweightFieldOptions)
641
0
    MergeFrom(*source);
642
0
  }
643
0
}
644
645
0
void LightweightFieldOptions::MergeFrom(const LightweightFieldOptions& from) {
646
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc.LightweightFieldOptions)
647
0
  GOOGLE_DCHECK_NE(&from, this);
648
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
649
0
  ::google::protobuf::uint32 cached_has_bits = 0;
650
0
  (void) cached_has_bits;
651
652
0
  if (from.pointer() != 0) {
653
0
    set_pointer(from.pointer());
654
0
  }
655
0
}
656
657
0
void LightweightFieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
658
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc.LightweightFieldOptions)
659
0
  if (&from == this) return;
660
0
  Clear();
661
0
  MergeFrom(from);
662
0
}
663
664
0
void LightweightFieldOptions::CopyFrom(const LightweightFieldOptions& from) {
665
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc.LightweightFieldOptions)
666
0
  if (&from == this) return;
667
0
  Clear();
668
0
  MergeFrom(from);
669
0
}
670
671
642
bool LightweightFieldOptions::IsInitialized() const {
672
642
  return true;
673
642
}
674
675
0
void LightweightFieldOptions::Swap(LightweightFieldOptions* other) {
676
0
  if (other == this) return;
677
0
  InternalSwap(other);
678
0
}
679
0
void LightweightFieldOptions::InternalSwap(LightweightFieldOptions* other) {
680
0
  using std::swap;
681
0
  swap(pointer_, other->pointer_);
682
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
683
0
  swap(_cached_size_, other->_cached_size_);
684
0
}
685
686
0
::google::protobuf::Metadata LightweightFieldOptions::GetMetadata() const {
687
0
  protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
688
0
  return ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
689
0
}
690
691
692
// ===================================================================
693
694
15.9k
void LightweightMessageOptions::InitAsDefaultInstance() {
695
15.9k
}
696
#if !defined(_MSC_VER) || _MSC_VER >= 1900
697
const int LightweightMessageOptions::kForceArenaFieldNumber;
698
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
699
700
LightweightMessageOptions::LightweightMessageOptions()
701
15.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
702
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
703
0
    ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::InitDefaultsLightweightMessageOptions();
704
0
  }
705
15.9k
  SharedCtor();
706
  // @@protoc_insertion_point(constructor:yb.rpc.LightweightMessageOptions)
707
15.9k
}
708
LightweightMessageOptions::LightweightMessageOptions(const LightweightMessageOptions& from)
709
  : ::google::protobuf::Message(),
710
      _internal_metadata_(NULL),
711
0
      _cached_size_(0) {
712
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
713
0
  force_arena_ = from.force_arena_;
714
  // @@protoc_insertion_point(copy_constructor:yb.rpc.LightweightMessageOptions)
715
0
}
716
717
15.9k
void LightweightMessageOptions::SharedCtor() {
718
15.9k
  force_arena_ = false;
719
15.9k
  _cached_size_ = 0;
720
15.9k
}
721
722
0
LightweightMessageOptions::~LightweightMessageOptions() {
723
  // @@protoc_insertion_point(destructor:yb.rpc.LightweightMessageOptions)
724
0
  SharedDtor();
725
0
}
726
727
0
void LightweightMessageOptions::SharedDtor() {
728
0
}
729
730
0
void LightweightMessageOptions::SetCachedSize(int size) const {
731
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
732
0
  _cached_size_ = size;
733
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
734
0
}
735
0
const ::google::protobuf::Descriptor* LightweightMessageOptions::descriptor() {
736
0
  ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
737
0
  return ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
738
0
}
739
740
15.9k
const LightweightMessageOptions& LightweightMessageOptions::default_instance() {
741
15.9k
  ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::InitDefaultsLightweightMessageOptions();
742
15.9k
  return *internal_default_instance();
743
15.9k
}
744
745
0
LightweightMessageOptions* LightweightMessageOptions::New(::google::protobuf::Arena* arena) const {
746
0
  LightweightMessageOptions* n = new LightweightMessageOptions;
747
0
  if (arena != NULL) {
748
0
    arena->Own(n);
749
0
  }
750
0
  return n;
751
0
}
752
753
0
void LightweightMessageOptions::Clear() {
754
// @@protoc_insertion_point(message_clear_start:yb.rpc.LightweightMessageOptions)
755
0
  ::google::protobuf::uint32 cached_has_bits = 0;
756
  // Prevent compiler warnings about cached_has_bits being unused
757
0
  (void) cached_has_bits;
758
759
0
  force_arena_ = false;
760
0
  _internal_metadata_.Clear();
761
0
}
762
763
bool LightweightMessageOptions::MergePartialFromCodedStream(
764
0
    ::google::protobuf::io::CodedInputStream* input) {
765
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
766
0
  ::google::protobuf::uint32 tag;
767
  // @@protoc_insertion_point(parse_start:yb.rpc.LightweightMessageOptions)
768
0
  for (;;) {
769
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
770
0
    tag = p.first;
771
0
    if (!p.second) goto handle_unusual;
772
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
773
      // bool force_arena = 1;
774
0
      case 1: {
775
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
776
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
777
778
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
779
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
780
0
                 input, &force_arena_)));
781
0
        } else {
782
0
          goto handle_unusual;
783
0
        }
784
0
        break;
785
0
      }
786
787
0
      default: {
788
0
      handle_unusual:
789
0
        if (tag == 0) {
790
0
          goto success;
791
0
        }
792
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
793
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
794
0
        break;
795
0
      }
796
0
    }
797
0
  }
798
0
success:
799
  // @@protoc_insertion_point(parse_success:yb.rpc.LightweightMessageOptions)
800
0
  return true;
801
0
failure:
802
  // @@protoc_insertion_point(parse_failure:yb.rpc.LightweightMessageOptions)
803
0
  return false;
804
0
#undef DO_
805
0
}
806
807
void LightweightMessageOptions::SerializeWithCachedSizes(
808
0
    ::google::protobuf::io::CodedOutputStream* output) const {
809
  // @@protoc_insertion_point(serialize_start:yb.rpc.LightweightMessageOptions)
810
0
  ::google::protobuf::uint32 cached_has_bits = 0;
811
0
  (void) cached_has_bits;
812
813
  // bool force_arena = 1;
814
0
  if (this->force_arena() != 0) {
815
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->force_arena(), output);
816
0
  }
817
818
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
819
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
820
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
821
0
  }
822
  // @@protoc_insertion_point(serialize_end:yb.rpc.LightweightMessageOptions)
823
0
}
824
825
::google::protobuf::uint8* LightweightMessageOptions::InternalSerializeWithCachedSizesToArray(
826
0
    bool deterministic, ::google::protobuf::uint8* target) const {
827
0
  (void)deterministic; // Unused
828
  // @@protoc_insertion_point(serialize_to_array_start:yb.rpc.LightweightMessageOptions)
829
0
  ::google::protobuf::uint32 cached_has_bits = 0;
830
0
  (void) cached_has_bits;
831
832
  // bool force_arena = 1;
833
0
  if (this->force_arena() != 0) {
834
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->force_arena(), target);
835
0
  }
836
837
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
838
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
839
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
840
0
  }
841
  // @@protoc_insertion_point(serialize_to_array_end:yb.rpc.LightweightMessageOptions)
842
0
  return target;
843
0
}
844
845
0
size_t LightweightMessageOptions::ByteSizeLong() const {
846
// @@protoc_insertion_point(message_byte_size_start:yb.rpc.LightweightMessageOptions)
847
0
  size_t total_size = 0;
848
849
0
  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
850
0
    total_size +=
851
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
852
0
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
853
0
  }
854
  // bool force_arena = 1;
855
0
  if (this->force_arena() != 0) {
856
0
    total_size += 1 + 1;
857
0
  }
858
859
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
860
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
861
0
  _cached_size_ = cached_size;
862
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
863
0
  return total_size;
864
0
}
865
866
0
void LightweightMessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
867
// @@protoc_insertion_point(generalized_merge_from_start:yb.rpc.LightweightMessageOptions)
868
0
  GOOGLE_DCHECK_NE(&from, this);
869
0
  const LightweightMessageOptions* source =
870
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LightweightMessageOptions>(
871
0
          &from);
872
0
  if (source == NULL) {
873
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.rpc.LightweightMessageOptions)
874
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
875
0
  } else {
876
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.rpc.LightweightMessageOptions)
877
0
    MergeFrom(*source);
878
0
  }
879
0
}
880
881
0
void LightweightMessageOptions::MergeFrom(const LightweightMessageOptions& from) {
882
// @@protoc_insertion_point(class_specific_merge_from_start:yb.rpc.LightweightMessageOptions)
883
0
  GOOGLE_DCHECK_NE(&from, this);
884
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
885
0
  ::google::protobuf::uint32 cached_has_bits = 0;
886
0
  (void) cached_has_bits;
887
888
0
  if (from.force_arena() != 0) {
889
0
    set_force_arena(from.force_arena());
890
0
  }
891
0
}
892
893
0
void LightweightMessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
894
// @@protoc_insertion_point(generalized_copy_from_start:yb.rpc.LightweightMessageOptions)
895
0
  if (&from == this) return;
896
0
  Clear();
897
0
  MergeFrom(from);
898
0
}
899
900
0
void LightweightMessageOptions::CopyFrom(const LightweightMessageOptions& from) {
901
// @@protoc_insertion_point(class_specific_copy_from_start:yb.rpc.LightweightMessageOptions)
902
0
  if (&from == this) return;
903
0
  Clear();
904
0
  MergeFrom(from);
905
0
}
906
907
0
bool LightweightMessageOptions::IsInitialized() const {
908
0
  return true;
909
0
}
910
911
0
void LightweightMessageOptions::Swap(LightweightMessageOptions* other) {
912
0
  if (other == this) return;
913
0
  InternalSwap(other);
914
0
}
915
0
void LightweightMessageOptions::InternalSwap(LightweightMessageOptions* other) {
916
0
  using std::swap;
917
0
  swap(force_arena_, other->force_arena_);
918
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
919
0
  swap(_cached_size_, other->_cached_size_);
920
0
}
921
922
0
::google::protobuf::Metadata LightweightMessageOptions::GetMetadata() const {
923
0
  protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
924
0
  return ::protobuf_yb_2frpc_2flightweight_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
925
0
}
926
927
::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
928
    ::google::protobuf::internal::MessageTypeTraits< ::yb::rpc::LightweightMethodOptions >, 11, false >
929
  lightweight_method(kLightweightMethodFieldNumber, *::yb::rpc::LightweightMethodOptions::internal_default_instance());
930
::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
931
    ::google::protobuf::internal::MessageTypeTraits< ::yb::rpc::LightweightFieldOptions >, 11, false >
932
  lightweight_field(kLightweightFieldFieldNumber, *::yb::rpc::LightweightFieldOptions::internal_default_instance());
933
::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
934
    ::google::protobuf::internal::MessageTypeTraits< ::yb::rpc::LightweightMessageOptions >, 11, false >
935
  lightweight_message(kLightweightMessageFieldNumber, *::yb::rpc::LightweightMessageOptions::internal_default_instance());
936
937
// @@protoc_insertion_point(namespace_scope)
938
}  // namespace rpc
939
}  // namespace yb
940
941
// @@protoc_insertion_point(global_scope)