You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by qi...@apache.org on 2017/07/27 05:47:20 UTC

[1/3] mesos git commit: Generated protobuf_tests.pb.* files during the build.

Repository: mesos
Updated Branches:
  refs/heads/master fc27129a1 -> e6ec4e836


http://git-wip-us.apache.org/repos/asf/mesos/blob/e6ec4e83/3rdparty/stout/tests/protobuf_tests.pb.h
----------------------------------------------------------------------
diff --git a/3rdparty/stout/tests/protobuf_tests.pb.h b/3rdparty/stout/tests/protobuf_tests.pb.h
deleted file mode 100644
index 2e4ffe1..0000000
--- a/3rdparty/stout/tests/protobuf_tests.pb.h
+++ /dev/null
@@ -1,2262 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: protobuf_tests.proto
-
-#ifndef PROTOBUF_protobuf_5ftests_2eproto__INCLUDED
-#define PROTOBUF_protobuf_5ftests_2eproto__INCLUDED
-
-#include <string>
-
-#include <google/protobuf/stubs/common.h>
-
-#if GOOGLE_PROTOBUF_VERSION < 3003000
-#error This file was generated by a newer version of protoc which is
-#error incompatible with your Protocol Buffer headers.  Please update
-#error your headers.
-#endif
-#if 3003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
-#error This file was generated by an older version of protoc which is
-#error incompatible with your Protocol Buffer headers.  Please
-#error regenerate this file with a newer version of protoc.
-#endif
-
-#include <google/protobuf/io/coded_stream.h>
-#include <google/protobuf/arena.h>
-#include <google/protobuf/arenastring.h>
-#include <google/protobuf/generated_message_table_driven.h>
-#include <google/protobuf/generated_message_util.h>
-#include <google/protobuf/metadata.h>
-#include <google/protobuf/message.h>
-#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
-#include <google/protobuf/extension_set.h>  // IWYU pragma: export
-#include <google/protobuf/generated_enum_reflection.h>
-#include <google/protobuf/unknown_field_set.h>
-// @@protoc_insertion_point(includes)
-namespace tests {
-class ArrayMessage;
-class ArrayMessageDefaultTypeInternal;
-extern ArrayMessageDefaultTypeInternal _ArrayMessage_default_instance_;
-class Message;
-class MessageDefaultTypeInternal;
-extern MessageDefaultTypeInternal _Message_default_instance_;
-class Nested;
-class NestedDefaultTypeInternal;
-extern NestedDefaultTypeInternal _Nested_default_instance_;
-class SimpleMessage;
-class SimpleMessageDefaultTypeInternal;
-extern SimpleMessageDefaultTypeInternal _SimpleMessage_default_instance_;
-}  // namespace tests
-
-namespace tests {
-
-namespace protobuf_protobuf_5ftests_2eproto {
-// Internal implementation detail -- do not call these.
-struct TableStruct {
-  static const ::google::protobuf::internal::ParseTableField entries[];
-  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
-  static const ::google::protobuf::internal::ParseTable schema[];
-  static const ::google::protobuf::uint32 offsets[];
-  static void InitDefaultsImpl();
-  static void Shutdown();
-};
-void AddDescriptors();
-void InitDefaults();
-}  // namespace protobuf_protobuf_5ftests_2eproto
-
-enum Enum {
-  ONE = 1,
-  TWO = 2
-};
-bool Enum_IsValid(int value);
-const Enum Enum_MIN = ONE;
-const Enum Enum_MAX = TWO;
-const int Enum_ARRAYSIZE = Enum_MAX + 1;
-
-const ::google::protobuf::EnumDescriptor* Enum_descriptor();
-inline const ::std::string& Enum_Name(Enum value) {
-  return ::google::protobuf::internal::NameOfEnum(
-    Enum_descriptor(), value);
-}
-inline bool Enum_Parse(
-    const ::std::string& name, Enum* value) {
-  return ::google::protobuf::internal::ParseNamedEnum<Enum>(
-    Enum_descriptor(), name, value);
-}
-// ===================================================================
-
-class Nested : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tests.Nested) */ {
- public:
-  Nested();
-  virtual ~Nested();
-
-  Nested(const Nested& from);
-
-  inline Nested& operator=(const Nested& from) {
-    CopyFrom(from);
-    return *this;
-  }
-
-  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
-    return _internal_metadata_.unknown_fields();
-  }
-
-  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
-    return _internal_metadata_.mutable_unknown_fields();
-  }
-
-  static const ::google::protobuf::Descriptor* descriptor();
-  static const Nested& default_instance();
-
-  static inline const Nested* internal_default_instance() {
-    return reinterpret_cast<const Nested*>(
-               &_Nested_default_instance_);
-  }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
-    0;
-
-  void Swap(Nested* other);
-
-  // implements Message ----------------------------------------------
-
-  inline Nested* New() const PROTOBUF_FINAL { return New(NULL); }
-
-  Nested* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
-  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
-  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
-  void CopyFrom(const Nested& from);
-  void MergeFrom(const Nested& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
-
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
-  bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
-  void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
-  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
-  private:
-  void SharedCtor();
-  void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
-  void InternalSwap(Nested* other);
-  private:
-  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
-    return NULL;
-  }
-  inline void* MaybeArenaPtr() const {
-    return NULL;
-  }
-  public:
-
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
-
-  // nested types ----------------------------------------------------
-
-  // accessors -------------------------------------------------------
-
-  // repeated string repeated_str = 3;
-  int repeated_str_size() const;
-  void clear_repeated_str();
-  static const int kRepeatedStrFieldNumber = 3;
-  const ::std::string& repeated_str(int index) const;
-  ::std::string* mutable_repeated_str(int index);
-  void set_repeated_str(int index, const ::std::string& value);
-  #if LANG_CXX11
-  void set_repeated_str(int index, ::std::string&& value);
-  #endif
-  void set_repeated_str(int index, const char* value);
-  void set_repeated_str(int index, const char* value, size_t size);
-  ::std::string* add_repeated_str();
-  void add_repeated_str(const ::std::string& value);
-  #if LANG_CXX11
-  void add_repeated_str(::std::string&& value);
-  #endif
-  void add_repeated_str(const char* value);
-  void add_repeated_str(const char* value, size_t size);
-  const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_str() const;
-  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_str();
-
-  // required string str = 1;
-  bool has_str() const;
-  void clear_str();
-  static const int kStrFieldNumber = 1;
-  const ::std::string& str() const;
-  void set_str(const ::std::string& value);
-  #if LANG_CXX11
-  void set_str(::std::string&& value);
-  #endif
-  void set_str(const char* value);
-  void set_str(const char* value, size_t size);
-  ::std::string* mutable_str();
-  ::std::string* release_str();
-  void set_allocated_str(::std::string* str);
-
-  // optional string optional_str = 2;
-  bool has_optional_str() const;
-  void clear_optional_str();
-  static const int kOptionalStrFieldNumber = 2;
-  const ::std::string& optional_str() const;
-  void set_optional_str(const ::std::string& value);
-  #if LANG_CXX11
-  void set_optional_str(::std::string&& value);
-  #endif
-  void set_optional_str(const char* value);
-  void set_optional_str(const char* value, size_t size);
-  ::std::string* mutable_optional_str();
-  ::std::string* release_optional_str();
-  void set_allocated_optional_str(::std::string* optional_str);
-
-  // @@protoc_insertion_point(class_scope:tests.Nested)
- private:
-  void set_has_str();
-  void clear_has_str();
-  void set_has_optional_str();
-  void clear_has_optional_str();
-
-  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
-  ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
-  ::google::protobuf::RepeatedPtrField< ::std::string> repeated_str_;
-  ::google::protobuf::internal::ArenaStringPtr str_;
-  ::google::protobuf::internal::ArenaStringPtr optional_str_;
-  friend struct protobuf_protobuf_5ftests_2eproto::TableStruct;
-};
-// -------------------------------------------------------------------
-
-class SimpleMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tests.SimpleMessage) */ {
- public:
-  SimpleMessage();
-  virtual ~SimpleMessage();
-
-  SimpleMessage(const SimpleMessage& from);
-
-  inline SimpleMessage& operator=(const SimpleMessage& from) {
-    CopyFrom(from);
-    return *this;
-  }
-
-  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
-    return _internal_metadata_.unknown_fields();
-  }
-
-  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
-    return _internal_metadata_.mutable_unknown_fields();
-  }
-
-  static const ::google::protobuf::Descriptor* descriptor();
-  static const SimpleMessage& default_instance();
-
-  static inline const SimpleMessage* internal_default_instance() {
-    return reinterpret_cast<const SimpleMessage*>(
-               &_SimpleMessage_default_instance_);
-  }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
-    1;
-
-  void Swap(SimpleMessage* other);
-
-  // implements Message ----------------------------------------------
-
-  inline SimpleMessage* New() const PROTOBUF_FINAL { return New(NULL); }
-
-  SimpleMessage* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
-  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
-  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
-  void CopyFrom(const SimpleMessage& from);
-  void MergeFrom(const SimpleMessage& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
-
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
-  bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
-  void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
-  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
-  private:
-  void SharedCtor();
-  void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
-  void InternalSwap(SimpleMessage* other);
-  private:
-  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
-    return NULL;
-  }
-  inline void* MaybeArenaPtr() const {
-    return NULL;
-  }
-  public:
-
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
-
-  // nested types ----------------------------------------------------
-
-  // accessors -------------------------------------------------------
-
-  // repeated int32 numbers = 2;
-  int numbers_size() const;
-  void clear_numbers();
-  static const int kNumbersFieldNumber = 2;
-  ::google::protobuf::int32 numbers(int index) const;
-  void set_numbers(int index, ::google::protobuf::int32 value);
-  void add_numbers(::google::protobuf::int32 value);
-  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
-      numbers() const;
-  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
-      mutable_numbers();
-
-  // required string id = 1;
-  bool has_id() const;
-  void clear_id();
-  static const int kIdFieldNumber = 1;
-  const ::std::string& id() const;
-  void set_id(const ::std::string& value);
-  #if LANG_CXX11
-  void set_id(::std::string&& value);
-  #endif
-  void set_id(const char* value);
-  void set_id(const char* value, size_t size);
-  ::std::string* mutable_id();
-  ::std::string* release_id();
-  void set_allocated_id(::std::string* id);
-
-  // @@protoc_insertion_point(class_scope:tests.SimpleMessage)
- private:
-  void set_has_id();
-  void clear_has_id();
-
-  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
-  ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
-  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > numbers_;
-  ::google::protobuf::internal::ArenaStringPtr id_;
-  friend struct protobuf_protobuf_5ftests_2eproto::TableStruct;
-};
-// -------------------------------------------------------------------
-
-class Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tests.Message) */ {
- public:
-  Message();
-  virtual ~Message();
-
-  Message(const Message& from);
-
-  inline Message& operator=(const Message& from) {
-    CopyFrom(from);
-    return *this;
-  }
-
-  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
-    return _internal_metadata_.unknown_fields();
-  }
-
-  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
-    return _internal_metadata_.mutable_unknown_fields();
-  }
-
-  static const ::google::protobuf::Descriptor* descriptor();
-  static const Message& default_instance();
-
-  static inline const Message* internal_default_instance() {
-    return reinterpret_cast<const Message*>(
-               &_Message_default_instance_);
-  }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
-    2;
-
-  void Swap(Message* other);
-
-  // implements Message ----------------------------------------------
-
-  inline Message* New() const PROTOBUF_FINAL { return New(NULL); }
-
-  Message* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
-  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
-  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
-  void CopyFrom(const Message& from);
-  void MergeFrom(const Message& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
-
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
-  bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
-  void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
-  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
-  private:
-  void SharedCtor();
-  void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
-  void InternalSwap(Message* other);
-  private:
-  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
-    return NULL;
-  }
-  inline void* MaybeArenaPtr() const {
-    return NULL;
-  }
-  public:
-
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
-
-  // nested types ----------------------------------------------------
-
-  // accessors -------------------------------------------------------
-
-  // repeated string repeated_string = 13;
-  int repeated_string_size() const;
-  void clear_repeated_string();
-  static const int kRepeatedStringFieldNumber = 13;
-  const ::std::string& repeated_string(int index) const;
-  ::std::string* mutable_repeated_string(int index);
-  void set_repeated_string(int index, const ::std::string& value);
-  #if LANG_CXX11
-  void set_repeated_string(int index, ::std::string&& value);
-  #endif
-  void set_repeated_string(int index, const char* value);
-  void set_repeated_string(int index, const char* value, size_t size);
-  ::std::string* add_repeated_string();
-  void add_repeated_string(const ::std::string& value);
-  #if LANG_CXX11
-  void add_repeated_string(::std::string&& value);
-  #endif
-  void add_repeated_string(const char* value);
-  void add_repeated_string(const char* value, size_t size);
-  const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string() const;
-  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string();
-
-  // repeated bytes repeated_bytes = 14;
-  int repeated_bytes_size() const;
-  void clear_repeated_bytes();
-  static const int kRepeatedBytesFieldNumber = 14;
-  const ::std::string& repeated_bytes(int index) const;
-  ::std::string* mutable_repeated_bytes(int index);
-  void set_repeated_bytes(int index, const ::std::string& value);
-  #if LANG_CXX11
-  void set_repeated_bytes(int index, ::std::string&& value);
-  #endif
-  void set_repeated_bytes(int index, const char* value);
-  void set_repeated_bytes(int index, const void* value, size_t size);
-  ::std::string* add_repeated_bytes();
-  void add_repeated_bytes(const ::std::string& value);
-  #if LANG_CXX11
-  void add_repeated_bytes(::std::string&& value);
-  #endif
-  void add_repeated_bytes(const char* value);
-  void add_repeated_bytes(const void* value, size_t size);
-  const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_bytes() const;
-  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_bytes();
-
-  // repeated int32 repeated_int32 = 15;
-  int repeated_int32_size() const;
-  void clear_repeated_int32();
-  static const int kRepeatedInt32FieldNumber = 15;
-  ::google::protobuf::int32 repeated_int32(int index) const;
-  void set_repeated_int32(int index, ::google::protobuf::int32 value);
-  void add_repeated_int32(::google::protobuf::int32 value);
-  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
-      repeated_int32() const;
-  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
-      mutable_repeated_int32();
-
-  // repeated int64 repeated_int64 = 16;
-  int repeated_int64_size() const;
-  void clear_repeated_int64();
-  static const int kRepeatedInt64FieldNumber = 16;
-  ::google::protobuf::int64 repeated_int64(int index) const;
-  void set_repeated_int64(int index, ::google::protobuf::int64 value);
-  void add_repeated_int64(::google::protobuf::int64 value);
-  const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
-      repeated_int64() const;
-  ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
-      mutable_repeated_int64();
-
-  // repeated uint32 repeated_uint32 = 17;
-  int repeated_uint32_size() const;
-  void clear_repeated_uint32();
-  static const int kRepeatedUint32FieldNumber = 17;
-  ::google::protobuf::uint32 repeated_uint32(int index) const;
-  void set_repeated_uint32(int index, ::google::protobuf::uint32 value);
-  void add_repeated_uint32(::google::protobuf::uint32 value);
-  const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
-      repeated_uint32() const;
-  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
-      mutable_repeated_uint32();
-
-  // repeated uint64 repeated_uint64 = 18;
-  int repeated_uint64_size() const;
-  void clear_repeated_uint64();
-  static const int kRepeatedUint64FieldNumber = 18;
-  ::google::protobuf::uint64 repeated_uint64(int index) const;
-  void set_repeated_uint64(int index, ::google::protobuf::uint64 value);
-  void add_repeated_uint64(::google::protobuf::uint64 value);
-  const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
-      repeated_uint64() const;
-  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
-      mutable_repeated_uint64();
-
-  // repeated sint32 repeated_sint32 = 19;
-  int repeated_sint32_size() const;
-  void clear_repeated_sint32();
-  static const int kRepeatedSint32FieldNumber = 19;
-  ::google::protobuf::int32 repeated_sint32(int index) const;
-  void set_repeated_sint32(int index, ::google::protobuf::int32 value);
-  void add_repeated_sint32(::google::protobuf::int32 value);
-  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
-      repeated_sint32() const;
-  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
-      mutable_repeated_sint32();
-
-  // repeated sint64 repeated_sint64 = 20;
-  int repeated_sint64_size() const;
-  void clear_repeated_sint64();
-  static const int kRepeatedSint64FieldNumber = 20;
-  ::google::protobuf::int64 repeated_sint64(int index) const;
-  void set_repeated_sint64(int index, ::google::protobuf::int64 value);
-  void add_repeated_sint64(::google::protobuf::int64 value);
-  const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
-      repeated_sint64() const;
-  ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
-      mutable_repeated_sint64();
-
-  // repeated float repeated_float = 21;
-  int repeated_float_size() const;
-  void clear_repeated_float();
-  static const int kRepeatedFloatFieldNumber = 21;
-  float repeated_float(int index) const;
-  void set_repeated_float(int index, float value);
-  void add_repeated_float(float value);
-  const ::google::protobuf::RepeatedField< float >&
-      repeated_float() const;
-  ::google::protobuf::RepeatedField< float >*
-      mutable_repeated_float();
-
-  // repeated double repeated_double = 22;
-  int repeated_double_size() const;
-  void clear_repeated_double();
-  static const int kRepeatedDoubleFieldNumber = 22;
-  double repeated_double(int index) const;
-  void set_repeated_double(int index, double value);
-  void add_repeated_double(double value);
-  const ::google::protobuf::RepeatedField< double >&
-      repeated_double() const;
-  ::google::protobuf::RepeatedField< double >*
-      mutable_repeated_double();
-
-  // repeated .tests.Enum repeated_enum = 23;
-  int repeated_enum_size() const;
-  void clear_repeated_enum();
-  static const int kRepeatedEnumFieldNumber = 23;
-  ::tests::Enum repeated_enum(int index) const;
-  void set_repeated_enum(int index, ::tests::Enum value);
-  void add_repeated_enum(::tests::Enum value);
-  const ::google::protobuf::RepeatedField<int>& repeated_enum() const;
-  ::google::protobuf::RepeatedField<int>* mutable_repeated_enum();
-
-  // repeated .tests.Nested repeated_nested = 24;
-  int repeated_nested_size() const;
-  void clear_repeated_nested();
-  static const int kRepeatedNestedFieldNumber = 24;
-  const ::tests::Nested& repeated_nested(int index) const;
-  ::tests::Nested* mutable_repeated_nested(int index);
-  ::tests::Nested* add_repeated_nested();
-  ::google::protobuf::RepeatedPtrField< ::tests::Nested >*
-      mutable_repeated_nested();
-  const ::google::protobuf::RepeatedPtrField< ::tests::Nested >&
-      repeated_nested() const;
-
-  // repeated string empty = 25;
-  int empty_size() const;
-  void clear_empty();
-  static const int kEmptyFieldNumber = 25;
-  const ::std::string& empty(int index) const;
-  ::std::string* mutable_empty(int index);
-  void set_empty(int index, const ::std::string& value);
-  #if LANG_CXX11
-  void set_empty(int index, ::std::string&& value);
-  #endif
-  void set_empty(int index, const char* value);
-  void set_empty(int index, const char* value, size_t size);
-  ::std::string* add_empty();
-  void add_empty(const ::std::string& value);
-  #if LANG_CXX11
-  void add_empty(::std::string&& value);
-  #endif
-  void add_empty(const char* value);
-  void add_empty(const char* value, size_t size);
-  const ::google::protobuf::RepeatedPtrField< ::std::string>& empty() const;
-  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_empty();
-
-  // repeated bool repeated_bool = 27;
-  int repeated_bool_size() const;
-  void clear_repeated_bool();
-  static const int kRepeatedBoolFieldNumber = 27;
-  bool repeated_bool(int index) const;
-  void set_repeated_bool(int index, bool value);
-  void add_repeated_bool(bool value);
-  const ::google::protobuf::RepeatedField< bool >&
-      repeated_bool() const;
-  ::google::protobuf::RepeatedField< bool >*
-      mutable_repeated_bool();
-
-  // required string str = 1;
-  bool has_str() const;
-  void clear_str();
-  static const int kStrFieldNumber = 1;
-  const ::std::string& str() const;
-  void set_str(const ::std::string& value);
-  #if LANG_CXX11
-  void set_str(::std::string&& value);
-  #endif
-  void set_str(const char* value);
-  void set_str(const char* value, size_t size);
-  ::std::string* mutable_str();
-  ::std::string* release_str();
-  void set_allocated_str(::std::string* str);
-
-  // required bytes bytes = 2;
-  bool has_bytes() const;
-  void clear_bytes();
-  static const int kBytesFieldNumber = 2;
-  const ::std::string& bytes() const;
-  void set_bytes(const ::std::string& value);
-  #if LANG_CXX11
-  void set_bytes(::std::string&& value);
-  #endif
-  void set_bytes(const char* value);
-  void set_bytes(const void* value, size_t size);
-  ::std::string* mutable_bytes();
-  ::std::string* release_bytes();
-  void set_allocated_bytes(::std::string* bytes);
-
-  // required .tests.Nested nested = 12;
-  bool has_nested() const;
-  void clear_nested();
-  static const int kNestedFieldNumber = 12;
-  const ::tests::Nested& nested() const;
-  ::tests::Nested* mutable_nested();
-  ::tests::Nested* release_nested();
-  void set_allocated_nested(::tests::Nested* nested);
-
-  // optional int64 int64 = 4;
-  bool has_int64() const;
-  void clear_int64();
-  static const int kInt64FieldNumber = 4;
-  ::google::protobuf::int64 int64() const;
-  void set_int64(::google::protobuf::int64 value);
-
-  // optional int32 int32 = 3;
-  bool has_int32() const;
-  void clear_int32();
-  static const int kInt32FieldNumber = 3;
-  ::google::protobuf::int32 int32() const;
-  void set_int32(::google::protobuf::int32 value);
-
-  // optional uint32 uint32 = 5;
-  bool has_uint32() const;
-  void clear_uint32();
-  static const int kUint32FieldNumber = 5;
-  ::google::protobuf::uint32 uint32() const;
-  void set_uint32(::google::protobuf::uint32 value);
-
-  // optional uint64 uint64 = 6;
-  bool has_uint64() const;
-  void clear_uint64();
-  static const int kUint64FieldNumber = 6;
-  ::google::protobuf::uint64 uint64() const;
-  void set_uint64(::google::protobuf::uint64 value);
-
-  // optional sint64 sint64 = 8;
-  bool has_sint64() const;
-  void clear_sint64();
-  static const int kSint64FieldNumber = 8;
-  ::google::protobuf::int64 sint64() const;
-  void set_sint64(::google::protobuf::int64 value);
-
-  // optional sint32 sint32 = 7;
-  bool has_sint32() const;
-  void clear_sint32();
-  static const int kSint32FieldNumber = 7;
-  ::google::protobuf::int32 sint32() const;
-  void set_sint32(::google::protobuf::int32 value);
-
-  // required float f = 9;
-  bool has_f() const;
-  void clear_f();
-  static const int kFFieldNumber = 9;
-  float f() const;
-  void set_f(float value);
-
-  // required double d = 10;
-  bool has_d() const;
-  void clear_d();
-  static const int kDFieldNumber = 10;
-  double d() const;
-  void set_d(double value);
-
-  // optional double optional_no_default = 29;
-  bool has_optional_no_default() const;
-  void clear_optional_no_default();
-  static const int kOptionalNoDefaultFieldNumber = 29;
-  double optional_no_default() const;
-  void set_optional_no_default(double value);
-
-  // required bool b = 26;
-  bool has_b() const;
-  void clear_b();
-  static const int kBFieldNumber = 26;
-  bool b() const;
-  void set_b(bool value);
-
-  // required .tests.Enum e = 11;
-  bool has_e() const;
-  void clear_e();
-  static const int kEFieldNumber = 11;
-  ::tests::Enum e() const;
-  void set_e(::tests::Enum value);
-
-  // optional double optional_default = 28 [default = 42];
-  bool has_optional_default() const;
-  void clear_optional_default();
-  static const int kOptionalDefaultFieldNumber = 28;
-  double optional_default() const;
-  void set_optional_default(double value);
-
-  // @@protoc_insertion_point(class_scope:tests.Message)
- private:
-  void set_has_b();
-  void clear_has_b();
-  void set_has_str();
-  void clear_has_str();
-  void set_has_bytes();
-  void clear_has_bytes();
-  void set_has_int32();
-  void clear_has_int32();
-  void set_has_int64();
-  void clear_has_int64();
-  void set_has_uint32();
-  void clear_has_uint32();
-  void set_has_uint64();
-  void clear_has_uint64();
-  void set_has_sint32();
-  void clear_has_sint32();
-  void set_has_sint64();
-  void clear_has_sint64();
-  void set_has_f();
-  void clear_has_f();
-  void set_has_d();
-  void clear_has_d();
-  void set_has_e();
-  void clear_has_e();
-  void set_has_nested();
-  void clear_has_nested();
-  void set_has_optional_default();
-  void clear_has_optional_default();
-  void set_has_optional_no_default();
-  void clear_has_optional_no_default();
-
-  // helper for ByteSizeLong()
-  size_t RequiredFieldsByteSizeFallback() const;
-
-  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
-  ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
-  ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_;
-  ::google::protobuf::RepeatedPtrField< ::std::string> repeated_bytes_;
-  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
-  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_;
-  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_uint32_;
-  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_;
-  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sint32_;
-  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sint64_;
-  ::google::protobuf::RepeatedField< float > repeated_float_;
-  ::google::protobuf::RepeatedField< double > repeated_double_;
-  ::google::protobuf::RepeatedField<int> repeated_enum_;
-  ::google::protobuf::RepeatedPtrField< ::tests::Nested > repeated_nested_;
-  ::google::protobuf::RepeatedPtrField< ::std::string> empty_;
-  ::google::protobuf::RepeatedField< bool > repeated_bool_;
-  ::google::protobuf::internal::ArenaStringPtr str_;
-  ::google::protobuf::internal::ArenaStringPtr bytes_;
-  ::tests::Nested* nested_;
-  ::google::protobuf::int64 int64_;
-  ::google::protobuf::int32 int32_;
-  ::google::protobuf::uint32 uint32_;
-  ::google::protobuf::uint64 uint64_;
-  ::google::protobuf::int64 sint64_;
-  ::google::protobuf::int32 sint32_;
-  float f_;
-  double d_;
-  double optional_no_default_;
-  bool b_;
-  int e_;
-  double optional_default_;
-  friend struct protobuf_protobuf_5ftests_2eproto::TableStruct;
-};
-// -------------------------------------------------------------------
-
-class ArrayMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tests.ArrayMessage) */ {
- public:
-  ArrayMessage();
-  virtual ~ArrayMessage();
-
-  ArrayMessage(const ArrayMessage& from);
-
-  inline ArrayMessage& operator=(const ArrayMessage& from) {
-    CopyFrom(from);
-    return *this;
-  }
-
-  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
-    return _internal_metadata_.unknown_fields();
-  }
-
-  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
-    return _internal_metadata_.mutable_unknown_fields();
-  }
-
-  static const ::google::protobuf::Descriptor* descriptor();
-  static const ArrayMessage& default_instance();
-
-  static inline const ArrayMessage* internal_default_instance() {
-    return reinterpret_cast<const ArrayMessage*>(
-               &_ArrayMessage_default_instance_);
-  }
-  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
-    3;
-
-  void Swap(ArrayMessage* other);
-
-  // implements Message ----------------------------------------------
-
-  inline ArrayMessage* New() const PROTOBUF_FINAL { return New(NULL); }
-
-  ArrayMessage* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
-  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
-  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
-  void CopyFrom(const ArrayMessage& from);
-  void MergeFrom(const ArrayMessage& from);
-  void Clear() PROTOBUF_FINAL;
-  bool IsInitialized() const PROTOBUF_FINAL;
-
-  size_t ByteSizeLong() const PROTOBUF_FINAL;
-  bool MergePartialFromCodedStream(
-      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
-  void SerializeWithCachedSizes(
-      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
-  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
-      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
-  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
-  private:
-  void SharedCtor();
-  void SharedDtor();
-  void SetCachedSize(int size) const PROTOBUF_FINAL;
-  void InternalSwap(ArrayMessage* other);
-  private:
-  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
-    return NULL;
-  }
-  inline void* MaybeArenaPtr() const {
-    return NULL;
-  }
-  public:
-
-  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
-
-  // nested types ----------------------------------------------------
-
-  // accessors -------------------------------------------------------
-
-  // repeated .tests.SimpleMessage values = 1;
-  int values_size() const;
-  void clear_values();
-  static const int kValuesFieldNumber = 1;
-  const ::tests::SimpleMessage& values(int index) const;
-  ::tests::SimpleMessage* mutable_values(int index);
-  ::tests::SimpleMessage* add_values();
-  ::google::protobuf::RepeatedPtrField< ::tests::SimpleMessage >*
-      mutable_values();
-  const ::google::protobuf::RepeatedPtrField< ::tests::SimpleMessage >&
-      values() const;
-
-  // @@protoc_insertion_point(class_scope:tests.ArrayMessage)
- private:
-
-  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
-  ::google::protobuf::internal::HasBits<1> _has_bits_;
-  mutable int _cached_size_;
-  ::google::protobuf::RepeatedPtrField< ::tests::SimpleMessage > values_;
-  friend struct protobuf_protobuf_5ftests_2eproto::TableStruct;
-};
-// ===================================================================
-
-
-// ===================================================================
-
-#if !PROTOBUF_INLINE_NOT_IN_HEADERS
-// Nested
-
-// required string str = 1;
-inline bool Nested::has_str() const {
-  return (_has_bits_[0] & 0x00000001u) != 0;
-}
-inline void Nested::set_has_str() {
-  _has_bits_[0] |= 0x00000001u;
-}
-inline void Nested::clear_has_str() {
-  _has_bits_[0] &= ~0x00000001u;
-}
-inline void Nested::clear_str() {
-  str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  clear_has_str();
-}
-inline const ::std::string& Nested::str() const {
-  // @@protoc_insertion_point(field_get:tests.Nested.str)
-  return str_.GetNoArena();
-}
-inline void Nested::set_str(const ::std::string& value) {
-  set_has_str();
-  str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:tests.Nested.str)
-}
-#if LANG_CXX11
-inline void Nested::set_str(::std::string&& value) {
-  set_has_str();
-  str_.SetNoArena(
-    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:tests.Nested.str)
-}
-#endif
-inline void Nested::set_str(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  set_has_str();
-  str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:tests.Nested.str)
-}
-inline void Nested::set_str(const char* value, size_t size) {
-  set_has_str();
-  str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-      ::std::string(reinterpret_cast<const char*>(value), size));
-  // @@protoc_insertion_point(field_set_pointer:tests.Nested.str)
-}
-inline ::std::string* Nested::mutable_str() {
-  set_has_str();
-  // @@protoc_insertion_point(field_mutable:tests.Nested.str)
-  return str_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* Nested::release_str() {
-  // @@protoc_insertion_point(field_release:tests.Nested.str)
-  clear_has_str();
-  return str_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void Nested::set_allocated_str(::std::string* str) {
-  if (str != NULL) {
-    set_has_str();
-  } else {
-    clear_has_str();
-  }
-  str_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), str);
-  // @@protoc_insertion_point(field_set_allocated:tests.Nested.str)
-}
-
-// optional string optional_str = 2;
-inline bool Nested::has_optional_str() const {
-  return (_has_bits_[0] & 0x00000002u) != 0;
-}
-inline void Nested::set_has_optional_str() {
-  _has_bits_[0] |= 0x00000002u;
-}
-inline void Nested::clear_has_optional_str() {
-  _has_bits_[0] &= ~0x00000002u;
-}
-inline void Nested::clear_optional_str() {
-  optional_str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  clear_has_optional_str();
-}
-inline const ::std::string& Nested::optional_str() const {
-  // @@protoc_insertion_point(field_get:tests.Nested.optional_str)
-  return optional_str_.GetNoArena();
-}
-inline void Nested::set_optional_str(const ::std::string& value) {
-  set_has_optional_str();
-  optional_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:tests.Nested.optional_str)
-}
-#if LANG_CXX11
-inline void Nested::set_optional_str(::std::string&& value) {
-  set_has_optional_str();
-  optional_str_.SetNoArena(
-    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:tests.Nested.optional_str)
-}
-#endif
-inline void Nested::set_optional_str(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  set_has_optional_str();
-  optional_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:tests.Nested.optional_str)
-}
-inline void Nested::set_optional_str(const char* value, size_t size) {
-  set_has_optional_str();
-  optional_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-      ::std::string(reinterpret_cast<const char*>(value), size));
-  // @@protoc_insertion_point(field_set_pointer:tests.Nested.optional_str)
-}
-inline ::std::string* Nested::mutable_optional_str() {
-  set_has_optional_str();
-  // @@protoc_insertion_point(field_mutable:tests.Nested.optional_str)
-  return optional_str_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* Nested::release_optional_str() {
-  // @@protoc_insertion_point(field_release:tests.Nested.optional_str)
-  clear_has_optional_str();
-  return optional_str_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void Nested::set_allocated_optional_str(::std::string* optional_str) {
-  if (optional_str != NULL) {
-    set_has_optional_str();
-  } else {
-    clear_has_optional_str();
-  }
-  optional_str_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_str);
-  // @@protoc_insertion_point(field_set_allocated:tests.Nested.optional_str)
-}
-
-// repeated string repeated_str = 3;
-inline int Nested::repeated_str_size() const {
-  return repeated_str_.size();
-}
-inline void Nested::clear_repeated_str() {
-  repeated_str_.Clear();
-}
-inline const ::std::string& Nested::repeated_str(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Nested.repeated_str)
-  return repeated_str_.Get(index);
-}
-inline ::std::string* Nested::mutable_repeated_str(int index) {
-  // @@protoc_insertion_point(field_mutable:tests.Nested.repeated_str)
-  return repeated_str_.Mutable(index);
-}
-inline void Nested::set_repeated_str(int index, const ::std::string& value) {
-  // @@protoc_insertion_point(field_set:tests.Nested.repeated_str)
-  repeated_str_.Mutable(index)->assign(value);
-}
-#if LANG_CXX11
-inline void Nested::set_repeated_str(int index, ::std::string&& value) {
-  // @@protoc_insertion_point(field_set:tests.Nested.repeated_str)
-  repeated_str_.Mutable(index)->assign(std::move(value));
-}
-#endif
-inline void Nested::set_repeated_str(int index, const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  repeated_str_.Mutable(index)->assign(value);
-  // @@protoc_insertion_point(field_set_char:tests.Nested.repeated_str)
-}
-inline void Nested::set_repeated_str(int index, const char* value, size_t size) {
-  repeated_str_.Mutable(index)->assign(
-    reinterpret_cast<const char*>(value), size);
-  // @@protoc_insertion_point(field_set_pointer:tests.Nested.repeated_str)
-}
-inline ::std::string* Nested::add_repeated_str() {
-  // @@protoc_insertion_point(field_add_mutable:tests.Nested.repeated_str)
-  return repeated_str_.Add();
-}
-inline void Nested::add_repeated_str(const ::std::string& value) {
-  repeated_str_.Add()->assign(value);
-  // @@protoc_insertion_point(field_add:tests.Nested.repeated_str)
-}
-#if LANG_CXX11
-inline void Nested::add_repeated_str(::std::string&& value) {
-  repeated_str_.Add(std::move(value));
-  // @@protoc_insertion_point(field_add:tests.Nested.repeated_str)
-}
-#endif
-inline void Nested::add_repeated_str(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  repeated_str_.Add()->assign(value);
-  // @@protoc_insertion_point(field_add_char:tests.Nested.repeated_str)
-}
-inline void Nested::add_repeated_str(const char* value, size_t size) {
-  repeated_str_.Add()->assign(reinterpret_cast<const char*>(value), size);
-  // @@protoc_insertion_point(field_add_pointer:tests.Nested.repeated_str)
-}
-inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
-Nested::repeated_str() const {
-  // @@protoc_insertion_point(field_list:tests.Nested.repeated_str)
-  return repeated_str_;
-}
-inline ::google::protobuf::RepeatedPtrField< ::std::string>*
-Nested::mutable_repeated_str() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Nested.repeated_str)
-  return &repeated_str_;
-}
-
-// -------------------------------------------------------------------
-
-// SimpleMessage
-
-// required string id = 1;
-inline bool SimpleMessage::has_id() const {
-  return (_has_bits_[0] & 0x00000001u) != 0;
-}
-inline void SimpleMessage::set_has_id() {
-  _has_bits_[0] |= 0x00000001u;
-}
-inline void SimpleMessage::clear_has_id() {
-  _has_bits_[0] &= ~0x00000001u;
-}
-inline void SimpleMessage::clear_id() {
-  id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  clear_has_id();
-}
-inline const ::std::string& SimpleMessage::id() const {
-  // @@protoc_insertion_point(field_get:tests.SimpleMessage.id)
-  return id_.GetNoArena();
-}
-inline void SimpleMessage::set_id(const ::std::string& value) {
-  set_has_id();
-  id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:tests.SimpleMessage.id)
-}
-#if LANG_CXX11
-inline void SimpleMessage::set_id(::std::string&& value) {
-  set_has_id();
-  id_.SetNoArena(
-    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:tests.SimpleMessage.id)
-}
-#endif
-inline void SimpleMessage::set_id(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  set_has_id();
-  id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:tests.SimpleMessage.id)
-}
-inline void SimpleMessage::set_id(const char* value, size_t size) {
-  set_has_id();
-  id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-      ::std::string(reinterpret_cast<const char*>(value), size));
-  // @@protoc_insertion_point(field_set_pointer:tests.SimpleMessage.id)
-}
-inline ::std::string* SimpleMessage::mutable_id() {
-  set_has_id();
-  // @@protoc_insertion_point(field_mutable:tests.SimpleMessage.id)
-  return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* SimpleMessage::release_id() {
-  // @@protoc_insertion_point(field_release:tests.SimpleMessage.id)
-  clear_has_id();
-  return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void SimpleMessage::set_allocated_id(::std::string* id) {
-  if (id != NULL) {
-    set_has_id();
-  } else {
-    clear_has_id();
-  }
-  id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id);
-  // @@protoc_insertion_point(field_set_allocated:tests.SimpleMessage.id)
-}
-
-// repeated int32 numbers = 2;
-inline int SimpleMessage::numbers_size() const {
-  return numbers_.size();
-}
-inline void SimpleMessage::clear_numbers() {
-  numbers_.Clear();
-}
-inline ::google::protobuf::int32 SimpleMessage::numbers(int index) const {
-  // @@protoc_insertion_point(field_get:tests.SimpleMessage.numbers)
-  return numbers_.Get(index);
-}
-inline void SimpleMessage::set_numbers(int index, ::google::protobuf::int32 value) {
-  numbers_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.SimpleMessage.numbers)
-}
-inline void SimpleMessage::add_numbers(::google::protobuf::int32 value) {
-  numbers_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.SimpleMessage.numbers)
-}
-inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
-SimpleMessage::numbers() const {
-  // @@protoc_insertion_point(field_list:tests.SimpleMessage.numbers)
-  return numbers_;
-}
-inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
-SimpleMessage::mutable_numbers() {
-  // @@protoc_insertion_point(field_mutable_list:tests.SimpleMessage.numbers)
-  return &numbers_;
-}
-
-// -------------------------------------------------------------------
-
-// Message
-
-// required bool b = 26;
-inline bool Message::has_b() const {
-  return (_has_bits_[0] & 0x00001000u) != 0;
-}
-inline void Message::set_has_b() {
-  _has_bits_[0] |= 0x00001000u;
-}
-inline void Message::clear_has_b() {
-  _has_bits_[0] &= ~0x00001000u;
-}
-inline void Message::clear_b() {
-  b_ = false;
-  clear_has_b();
-}
-inline bool Message::b() const {
-  // @@protoc_insertion_point(field_get:tests.Message.b)
-  return b_;
-}
-inline void Message::set_b(bool value) {
-  set_has_b();
-  b_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.b)
-}
-
-// required string str = 1;
-inline bool Message::has_str() const {
-  return (_has_bits_[0] & 0x00000001u) != 0;
-}
-inline void Message::set_has_str() {
-  _has_bits_[0] |= 0x00000001u;
-}
-inline void Message::clear_has_str() {
-  _has_bits_[0] &= ~0x00000001u;
-}
-inline void Message::clear_str() {
-  str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  clear_has_str();
-}
-inline const ::std::string& Message::str() const {
-  // @@protoc_insertion_point(field_get:tests.Message.str)
-  return str_.GetNoArena();
-}
-inline void Message::set_str(const ::std::string& value) {
-  set_has_str();
-  str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:tests.Message.str)
-}
-#if LANG_CXX11
-inline void Message::set_str(::std::string&& value) {
-  set_has_str();
-  str_.SetNoArena(
-    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:tests.Message.str)
-}
-#endif
-inline void Message::set_str(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  set_has_str();
-  str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:tests.Message.str)
-}
-inline void Message::set_str(const char* value, size_t size) {
-  set_has_str();
-  str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-      ::std::string(reinterpret_cast<const char*>(value), size));
-  // @@protoc_insertion_point(field_set_pointer:tests.Message.str)
-}
-inline ::std::string* Message::mutable_str() {
-  set_has_str();
-  // @@protoc_insertion_point(field_mutable:tests.Message.str)
-  return str_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* Message::release_str() {
-  // @@protoc_insertion_point(field_release:tests.Message.str)
-  clear_has_str();
-  return str_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void Message::set_allocated_str(::std::string* str) {
-  if (str != NULL) {
-    set_has_str();
-  } else {
-    clear_has_str();
-  }
-  str_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), str);
-  // @@protoc_insertion_point(field_set_allocated:tests.Message.str)
-}
-
-// required bytes bytes = 2;
-inline bool Message::has_bytes() const {
-  return (_has_bits_[0] & 0x00000002u) != 0;
-}
-inline void Message::set_has_bytes() {
-  _has_bits_[0] |= 0x00000002u;
-}
-inline void Message::clear_has_bytes() {
-  _has_bits_[0] &= ~0x00000002u;
-}
-inline void Message::clear_bytes() {
-  bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  clear_has_bytes();
-}
-inline const ::std::string& Message::bytes() const {
-  // @@protoc_insertion_point(field_get:tests.Message.bytes)
-  return bytes_.GetNoArena();
-}
-inline void Message::set_bytes(const ::std::string& value) {
-  set_has_bytes();
-  bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:tests.Message.bytes)
-}
-#if LANG_CXX11
-inline void Message::set_bytes(::std::string&& value) {
-  set_has_bytes();
-  bytes_.SetNoArena(
-    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:tests.Message.bytes)
-}
-#endif
-inline void Message::set_bytes(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  set_has_bytes();
-  bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:tests.Message.bytes)
-}
-inline void Message::set_bytes(const void* value, size_t size) {
-  set_has_bytes();
-  bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-      ::std::string(reinterpret_cast<const char*>(value), size));
-  // @@protoc_insertion_point(field_set_pointer:tests.Message.bytes)
-}
-inline ::std::string* Message::mutable_bytes() {
-  set_has_bytes();
-  // @@protoc_insertion_point(field_mutable:tests.Message.bytes)
-  return bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* Message::release_bytes() {
-  // @@protoc_insertion_point(field_release:tests.Message.bytes)
-  clear_has_bytes();
-  return bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void Message::set_allocated_bytes(::std::string* bytes) {
-  if (bytes != NULL) {
-    set_has_bytes();
-  } else {
-    clear_has_bytes();
-  }
-  bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bytes);
-  // @@protoc_insertion_point(field_set_allocated:tests.Message.bytes)
-}
-
-// optional int32 int32 = 3;
-inline bool Message::has_int32() const {
-  return (_has_bits_[0] & 0x00000010u) != 0;
-}
-inline void Message::set_has_int32() {
-  _has_bits_[0] |= 0x00000010u;
-}
-inline void Message::clear_has_int32() {
-  _has_bits_[0] &= ~0x00000010u;
-}
-inline void Message::clear_int32() {
-  int32_ = 0;
-  clear_has_int32();
-}
-inline ::google::protobuf::int32 Message::int32() const {
-  // @@protoc_insertion_point(field_get:tests.Message.int32)
-  return int32_;
-}
-inline void Message::set_int32(::google::protobuf::int32 value) {
-  set_has_int32();
-  int32_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.int32)
-}
-
-// optional int64 int64 = 4;
-inline bool Message::has_int64() const {
-  return (_has_bits_[0] & 0x00000008u) != 0;
-}
-inline void Message::set_has_int64() {
-  _has_bits_[0] |= 0x00000008u;
-}
-inline void Message::clear_has_int64() {
-  _has_bits_[0] &= ~0x00000008u;
-}
-inline void Message::clear_int64() {
-  int64_ = GOOGLE_LONGLONG(0);
-  clear_has_int64();
-}
-inline ::google::protobuf::int64 Message::int64() const {
-  // @@protoc_insertion_point(field_get:tests.Message.int64)
-  return int64_;
-}
-inline void Message::set_int64(::google::protobuf::int64 value) {
-  set_has_int64();
-  int64_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.int64)
-}
-
-// optional uint32 uint32 = 5;
-inline bool Message::has_uint32() const {
-  return (_has_bits_[0] & 0x00000020u) != 0;
-}
-inline void Message::set_has_uint32() {
-  _has_bits_[0] |= 0x00000020u;
-}
-inline void Message::clear_has_uint32() {
-  _has_bits_[0] &= ~0x00000020u;
-}
-inline void Message::clear_uint32() {
-  uint32_ = 0u;
-  clear_has_uint32();
-}
-inline ::google::protobuf::uint32 Message::uint32() const {
-  // @@protoc_insertion_point(field_get:tests.Message.uint32)
-  return uint32_;
-}
-inline void Message::set_uint32(::google::protobuf::uint32 value) {
-  set_has_uint32();
-  uint32_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.uint32)
-}
-
-// optional uint64 uint64 = 6;
-inline bool Message::has_uint64() const {
-  return (_has_bits_[0] & 0x00000040u) != 0;
-}
-inline void Message::set_has_uint64() {
-  _has_bits_[0] |= 0x00000040u;
-}
-inline void Message::clear_has_uint64() {
-  _has_bits_[0] &= ~0x00000040u;
-}
-inline void Message::clear_uint64() {
-  uint64_ = GOOGLE_ULONGLONG(0);
-  clear_has_uint64();
-}
-inline ::google::protobuf::uint64 Message::uint64() const {
-  // @@protoc_insertion_point(field_get:tests.Message.uint64)
-  return uint64_;
-}
-inline void Message::set_uint64(::google::protobuf::uint64 value) {
-  set_has_uint64();
-  uint64_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.uint64)
-}
-
-// optional sint32 sint32 = 7;
-inline bool Message::has_sint32() const {
-  return (_has_bits_[0] & 0x00000100u) != 0;
-}
-inline void Message::set_has_sint32() {
-  _has_bits_[0] |= 0x00000100u;
-}
-inline void Message::clear_has_sint32() {
-  _has_bits_[0] &= ~0x00000100u;
-}
-inline void Message::clear_sint32() {
-  sint32_ = 0;
-  clear_has_sint32();
-}
-inline ::google::protobuf::int32 Message::sint32() const {
-  // @@protoc_insertion_point(field_get:tests.Message.sint32)
-  return sint32_;
-}
-inline void Message::set_sint32(::google::protobuf::int32 value) {
-  set_has_sint32();
-  sint32_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.sint32)
-}
-
-// optional sint64 sint64 = 8;
-inline bool Message::has_sint64() const {
-  return (_has_bits_[0] & 0x00000080u) != 0;
-}
-inline void Message::set_has_sint64() {
-  _has_bits_[0] |= 0x00000080u;
-}
-inline void Message::clear_has_sint64() {
-  _has_bits_[0] &= ~0x00000080u;
-}
-inline void Message::clear_sint64() {
-  sint64_ = GOOGLE_LONGLONG(0);
-  clear_has_sint64();
-}
-inline ::google::protobuf::int64 Message::sint64() const {
-  // @@protoc_insertion_point(field_get:tests.Message.sint64)
-  return sint64_;
-}
-inline void Message::set_sint64(::google::protobuf::int64 value) {
-  set_has_sint64();
-  sint64_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.sint64)
-}
-
-// required float f = 9;
-inline bool Message::has_f() const {
-  return (_has_bits_[0] & 0x00000200u) != 0;
-}
-inline void Message::set_has_f() {
-  _has_bits_[0] |= 0x00000200u;
-}
-inline void Message::clear_has_f() {
-  _has_bits_[0] &= ~0x00000200u;
-}
-inline void Message::clear_f() {
-  f_ = 0;
-  clear_has_f();
-}
-inline float Message::f() const {
-  // @@protoc_insertion_point(field_get:tests.Message.f)
-  return f_;
-}
-inline void Message::set_f(float value) {
-  set_has_f();
-  f_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.f)
-}
-
-// required double d = 10;
-inline bool Message::has_d() const {
-  return (_has_bits_[0] & 0x00000400u) != 0;
-}
-inline void Message::set_has_d() {
-  _has_bits_[0] |= 0x00000400u;
-}
-inline void Message::clear_has_d() {
-  _has_bits_[0] &= ~0x00000400u;
-}
-inline void Message::clear_d() {
-  d_ = 0;
-  clear_has_d();
-}
-inline double Message::d() const {
-  // @@protoc_insertion_point(field_get:tests.Message.d)
-  return d_;
-}
-inline void Message::set_d(double value) {
-  set_has_d();
-  d_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.d)
-}
-
-// required .tests.Enum e = 11;
-inline bool Message::has_e() const {
-  return (_has_bits_[0] & 0x00002000u) != 0;
-}
-inline void Message::set_has_e() {
-  _has_bits_[0] |= 0x00002000u;
-}
-inline void Message::clear_has_e() {
-  _has_bits_[0] &= ~0x00002000u;
-}
-inline void Message::clear_e() {
-  e_ = 1;
-  clear_has_e();
-}
-inline ::tests::Enum Message::e() const {
-  // @@protoc_insertion_point(field_get:tests.Message.e)
-  return static_cast< ::tests::Enum >(e_);
-}
-inline void Message::set_e(::tests::Enum value) {
-  assert(::tests::Enum_IsValid(value));
-  set_has_e();
-  e_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.e)
-}
-
-// required .tests.Nested nested = 12;
-inline bool Message::has_nested() const {
-  return (_has_bits_[0] & 0x00000004u) != 0;
-}
-inline void Message::set_has_nested() {
-  _has_bits_[0] |= 0x00000004u;
-}
-inline void Message::clear_has_nested() {
-  _has_bits_[0] &= ~0x00000004u;
-}
-inline void Message::clear_nested() {
-  if (nested_ != NULL) nested_->::tests::Nested::Clear();
-  clear_has_nested();
-}
-inline const ::tests::Nested& Message::nested() const {
-  // @@protoc_insertion_point(field_get:tests.Message.nested)
-  return nested_ != NULL ? *nested_
-                         : *::tests::Nested::internal_default_instance();
-}
-inline ::tests::Nested* Message::mutable_nested() {
-  set_has_nested();
-  if (nested_ == NULL) {
-    nested_ = new ::tests::Nested;
-  }
-  // @@protoc_insertion_point(field_mutable:tests.Message.nested)
-  return nested_;
-}
-inline ::tests::Nested* Message::release_nested() {
-  // @@protoc_insertion_point(field_release:tests.Message.nested)
-  clear_has_nested();
-  ::tests::Nested* temp = nested_;
-  nested_ = NULL;
-  return temp;
-}
-inline void Message::set_allocated_nested(::tests::Nested* nested) {
-  delete nested_;
-  nested_ = nested;
-  if (nested) {
-    set_has_nested();
-  } else {
-    clear_has_nested();
-  }
-  // @@protoc_insertion_point(field_set_allocated:tests.Message.nested)
-}
-
-// repeated bool repeated_bool = 27;
-inline int Message::repeated_bool_size() const {
-  return repeated_bool_.size();
-}
-inline void Message::clear_repeated_bool() {
-  repeated_bool_.Clear();
-}
-inline bool Message::repeated_bool(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_bool)
-  return repeated_bool_.Get(index);
-}
-inline void Message::set_repeated_bool(int index, bool value) {
-  repeated_bool_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_bool)
-}
-inline void Message::add_repeated_bool(bool value) {
-  repeated_bool_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_bool)
-}
-inline const ::google::protobuf::RepeatedField< bool >&
-Message::repeated_bool() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_bool)
-  return repeated_bool_;
-}
-inline ::google::protobuf::RepeatedField< bool >*
-Message::mutable_repeated_bool() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_bool)
-  return &repeated_bool_;
-}
-
-// repeated string repeated_string = 13;
-inline int Message::repeated_string_size() const {
-  return repeated_string_.size();
-}
-inline void Message::clear_repeated_string() {
-  repeated_string_.Clear();
-}
-inline const ::std::string& Message::repeated_string(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_string)
-  return repeated_string_.Get(index);
-}
-inline ::std::string* Message::mutable_repeated_string(int index) {
-  // @@protoc_insertion_point(field_mutable:tests.Message.repeated_string)
-  return repeated_string_.Mutable(index);
-}
-inline void Message::set_repeated_string(int index, const ::std::string& value) {
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_string)
-  repeated_string_.Mutable(index)->assign(value);
-}
-#if LANG_CXX11
-inline void Message::set_repeated_string(int index, ::std::string&& value) {
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_string)
-  repeated_string_.Mutable(index)->assign(std::move(value));
-}
-#endif
-inline void Message::set_repeated_string(int index, const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  repeated_string_.Mutable(index)->assign(value);
-  // @@protoc_insertion_point(field_set_char:tests.Message.repeated_string)
-}
-inline void Message::set_repeated_string(int index, const char* value, size_t size) {
-  repeated_string_.Mutable(index)->assign(
-    reinterpret_cast<const char*>(value), size);
-  // @@protoc_insertion_point(field_set_pointer:tests.Message.repeated_string)
-}
-inline ::std::string* Message::add_repeated_string() {
-  // @@protoc_insertion_point(field_add_mutable:tests.Message.repeated_string)
-  return repeated_string_.Add();
-}
-inline void Message::add_repeated_string(const ::std::string& value) {
-  repeated_string_.Add()->assign(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_string)
-}
-#if LANG_CXX11
-inline void Message::add_repeated_string(::std::string&& value) {
-  repeated_string_.Add(std::move(value));
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_string)
-}
-#endif
-inline void Message::add_repeated_string(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  repeated_string_.Add()->assign(value);
-  // @@protoc_insertion_point(field_add_char:tests.Message.repeated_string)
-}
-inline void Message::add_repeated_string(const char* value, size_t size) {
-  repeated_string_.Add()->assign(reinterpret_cast<const char*>(value), size);
-  // @@protoc_insertion_point(field_add_pointer:tests.Message.repeated_string)
-}
-inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
-Message::repeated_string() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_string)
-  return repeated_string_;
-}
-inline ::google::protobuf::RepeatedPtrField< ::std::string>*
-Message::mutable_repeated_string() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_string)
-  return &repeated_string_;
-}
-
-// repeated bytes repeated_bytes = 14;
-inline int Message::repeated_bytes_size() const {
-  return repeated_bytes_.size();
-}
-inline void Message::clear_repeated_bytes() {
-  repeated_bytes_.Clear();
-}
-inline const ::std::string& Message::repeated_bytes(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_bytes)
-  return repeated_bytes_.Get(index);
-}
-inline ::std::string* Message::mutable_repeated_bytes(int index) {
-  // @@protoc_insertion_point(field_mutable:tests.Message.repeated_bytes)
-  return repeated_bytes_.Mutable(index);
-}
-inline void Message::set_repeated_bytes(int index, const ::std::string& value) {
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_bytes)
-  repeated_bytes_.Mutable(index)->assign(value);
-}
-#if LANG_CXX11
-inline void Message::set_repeated_bytes(int index, ::std::string&& value) {
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_bytes)
-  repeated_bytes_.Mutable(index)->assign(std::move(value));
-}
-#endif
-inline void Message::set_repeated_bytes(int index, const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  repeated_bytes_.Mutable(index)->assign(value);
-  // @@protoc_insertion_point(field_set_char:tests.Message.repeated_bytes)
-}
-inline void Message::set_repeated_bytes(int index, const void* value, size_t size) {
-  repeated_bytes_.Mutable(index)->assign(
-    reinterpret_cast<const char*>(value), size);
-  // @@protoc_insertion_point(field_set_pointer:tests.Message.repeated_bytes)
-}
-inline ::std::string* Message::add_repeated_bytes() {
-  // @@protoc_insertion_point(field_add_mutable:tests.Message.repeated_bytes)
-  return repeated_bytes_.Add();
-}
-inline void Message::add_repeated_bytes(const ::std::string& value) {
-  repeated_bytes_.Add()->assign(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_bytes)
-}
-#if LANG_CXX11
-inline void Message::add_repeated_bytes(::std::string&& value) {
-  repeated_bytes_.Add(std::move(value));
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_bytes)
-}
-#endif
-inline void Message::add_repeated_bytes(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  repeated_bytes_.Add()->assign(value);
-  // @@protoc_insertion_point(field_add_char:tests.Message.repeated_bytes)
-}
-inline void Message::add_repeated_bytes(const void* value, size_t size) {
-  repeated_bytes_.Add()->assign(reinterpret_cast<const char*>(value), size);
-  // @@protoc_insertion_point(field_add_pointer:tests.Message.repeated_bytes)
-}
-inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
-Message::repeated_bytes() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_bytes)
-  return repeated_bytes_;
-}
-inline ::google::protobuf::RepeatedPtrField< ::std::string>*
-Message::mutable_repeated_bytes() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_bytes)
-  return &repeated_bytes_;
-}
-
-// repeated int32 repeated_int32 = 15;
-inline int Message::repeated_int32_size() const {
-  return repeated_int32_.size();
-}
-inline void Message::clear_repeated_int32() {
-  repeated_int32_.Clear();
-}
-inline ::google::protobuf::int32 Message::repeated_int32(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_int32)
-  return repeated_int32_.Get(index);
-}
-inline void Message::set_repeated_int32(int index, ::google::protobuf::int32 value) {
-  repeated_int32_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_int32)
-}
-inline void Message::add_repeated_int32(::google::protobuf::int32 value) {
-  repeated_int32_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_int32)
-}
-inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
-Message::repeated_int32() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_int32)
-  return repeated_int32_;
-}
-inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
-Message::mutable_repeated_int32() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_int32)
-  return &repeated_int32_;
-}
-
-// repeated int64 repeated_int64 = 16;
-inline int Message::repeated_int64_size() const {
-  return repeated_int64_.size();
-}
-inline void Message::clear_repeated_int64() {
-  repeated_int64_.Clear();
-}
-inline ::google::protobuf::int64 Message::repeated_int64(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_int64)
-  return repeated_int64_.Get(index);
-}
-inline void Message::set_repeated_int64(int index, ::google::protobuf::int64 value) {
-  repeated_int64_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_int64)
-}
-inline void Message::add_repeated_int64(::google::protobuf::int64 value) {
-  repeated_int64_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_int64)
-}
-inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
-Message::repeated_int64() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_int64)
-  return repeated_int64_;
-}
-inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
-Message::mutable_repeated_int64() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_int64)
-  return &repeated_int64_;
-}
-
-// repeated uint32 repeated_uint32 = 17;
-inline int Message::repeated_uint32_size() const {
-  return repeated_uint32_.size();
-}
-inline void Message::clear_repeated_uint32() {
-  repeated_uint32_.Clear();
-}
-inline ::google::protobuf::uint32 Message::repeated_uint32(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_uint32)
-  return repeated_uint32_.Get(index);
-}
-inline void Message::set_repeated_uint32(int index, ::google::protobuf::uint32 value) {
-  repeated_uint32_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_uint32)
-}
-inline void Message::add_repeated_uint32(::google::protobuf::uint32 value) {
-  repeated_uint32_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_uint32)
-}
-inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
-Message::repeated_uint32() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_uint32)
-  return repeated_uint32_;
-}
-inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
-Message::mutable_repeated_uint32() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_uint32)
-  return &repeated_uint32_;
-}
-
-// repeated uint64 repeated_uint64 = 18;
-inline int Message::repeated_uint64_size() const {
-  return repeated_uint64_.size();
-}
-inline void Message::clear_repeated_uint64() {
-  repeated_uint64_.Clear();
-}
-inline ::google::protobuf::uint64 Message::repeated_uint64(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_uint64)
-  return repeated_uint64_.Get(index);
-}
-inline void Message::set_repeated_uint64(int index, ::google::protobuf::uint64 value) {
-  repeated_uint64_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_uint64)
-}
-inline void Message::add_repeated_uint64(::google::protobuf::uint64 value) {
-  repeated_uint64_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_uint64)
-}
-inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
-Message::repeated_uint64() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_uint64)
-  return repeated_uint64_;
-}
-inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
-Message::mutable_repeated_uint64() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_uint64)
-  return &repeated_uint64_;
-}
-
-// repeated sint32 repeated_sint32 = 19;
-inline int Message::repeated_sint32_size() const {
-  return repeated_sint32_.size();
-}
-inline void Message::clear_repeated_sint32() {
-  repeated_sint32_.Clear();
-}
-inline ::google::protobuf::int32 Message::repeated_sint32(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_sint32)
-  return repeated_sint32_.Get(index);
-}
-inline void Message::set_repeated_sint32(int index, ::google::protobuf::int32 value) {
-  repeated_sint32_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_sint32)
-}
-inline void Message::add_repeated_sint32(::google::protobuf::int32 value) {
-  repeated_sint32_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_sint32)
-}
-inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
-Message::repeated_sint32() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_sint32)
-  return repeated_sint32_;
-}
-inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
-Message::mutable_repeated_sint32() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_sint32)
-  return &repeated_sint32_;
-}
-
-// repeated sint64 repeated_sint64 = 20;
-inline int Message::repeated_sint64_size() const {
-  return repeated_sint64_.size();
-}
-inline void Message::clear_repeated_sint64() {
-  repeated_sint64_.Clear();
-}
-inline ::google::protobuf::int64 Message::repeated_sint64(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_sint64)
-  return repeated_sint64_.Get(index);
-}
-inline void Message::set_repeated_sint64(int index, ::google::protobuf::int64 value) {
-  repeated_sint64_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_sint64)
-}
-inline void Message::add_repeated_sint64(::google::protobuf::int64 value) {
-  repeated_sint64_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_sint64)
-}
-inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
-Message::repeated_sint64() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_sint64)
-  return repeated_sint64_;
-}
-inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
-Message::mutable_repeated_sint64() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_sint64)
-  return &repeated_sint64_;
-}
-
-// repeated float repeated_float = 21;
-inline int Message::repeated_float_size() const {
-  return repeated_float_.size();
-}
-inline void Message::clear_repeated_float() {
-  repeated_float_.Clear();
-}
-inline float Message::repeated_float(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_float)
-  return repeated_float_.Get(index);
-}
-inline void Message::set_repeated_float(int index, float value) {
-  repeated_float_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_float)
-}
-inline void Message::add_repeated_float(float value) {
-  repeated_float_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_float)
-}
-inline const ::google::protobuf::RepeatedField< float >&
-Message::repeated_float() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_float)
-  return repeated_float_;
-}
-inline ::google::protobuf::RepeatedField< float >*
-Message::mutable_repeated_float() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_float)
-  return &repeated_float_;
-}
-
-// repeated double repeated_double = 22;
-inline int Message::repeated_double_size() const {
-  return repeated_double_.size();
-}
-inline void Message::clear_repeated_double() {
-  repeated_double_.Clear();
-}
-inline double Message::repeated_double(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_double)
-  return repeated_double_.Get(index);
-}
-inline void Message::set_repeated_double(int index, double value) {
-  repeated_double_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_double)
-}
-inline void Message::add_repeated_double(double value) {
-  repeated_double_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_double)
-}
-inline const ::google::protobuf::RepeatedField< double >&
-Message::repeated_double() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_double)
-  return repeated_double_;
-}
-inline ::google::protobuf::RepeatedField< double >*
-Message::mutable_repeated_double() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_double)
-  return &repeated_double_;
-}
-
-// repeated .tests.Enum repeated_enum = 23;
-inline int Message::repeated_enum_size() const {
-  return repeated_enum_.size();
-}
-inline void Message::clear_repeated_enum() {
-  repeated_enum_.Clear();
-}
-inline ::tests::Enum Message::repeated_enum(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_enum)
-  return static_cast< ::tests::Enum >(repeated_enum_.Get(index));
-}
-inline void Message::set_repeated_enum(int index, ::tests::Enum value) {
-  assert(::tests::Enum_IsValid(value));
-  repeated_enum_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.Message.repeated_enum)
-}
-inline void Message::add_repeated_enum(::tests::Enum value) {
-  assert(::tests::Enum_IsValid(value));
-  repeated_enum_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_enum)
-}
-inline const ::google::protobuf::RepeatedField<int>&
-Message::repeated_enum() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_enum)
-  return repeated_enum_;
-}
-inline ::google::protobuf::RepeatedField<int>*
-Message::mutable_repeated_enum() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_enum)
-  return &repeated_enum_;
-}
-
-// repeated .tests.Nested repeated_nested = 24;
-inline int Message::repeated_nested_size() const {
-  return repeated_nested_.size();
-}
-inline void Message::clear_repeated_nested() {
-  repeated_nested_.Clear();
-}
-inline const ::tests::Nested& Message::repeated_nested(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.repeated_nested)
-  return repeated_nested_.Get(index);
-}
-inline ::tests::Nested* Message::mutable_repeated_nested(int index) {
-  // @@protoc_insertion_point(field_mutable:tests.Message.repeated_nested)
-  return repeated_nested_.Mutable(index);
-}
-inline ::tests::Nested* Message::add_repeated_nested() {
-  // @@protoc_insertion_point(field_add:tests.Message.repeated_nested)
-  return repeated_nested_.Add();
-}
-inline ::google::protobuf::RepeatedPtrField< ::tests::Nested >*
-Message::mutable_repeated_nested() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.repeated_nested)
-  return &repeated_nested_;
-}
-inline const ::google::protobuf::RepeatedPtrField< ::tests::Nested >&
-Message::repeated_nested() const {
-  // @@protoc_insertion_point(field_list:tests.Message.repeated_nested)
-  return repeated_nested_;
-}
-
-// repeated string empty = 25;
-inline int Message::empty_size() const {
-  return empty_.size();
-}
-inline void Message::clear_empty() {
-  empty_.Clear();
-}
-inline const ::std::string& Message::empty(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Message.empty)
-  return empty_.Get(index);
-}
-inline ::std::string* Message::mutable_empty(int index) {
-  // @@protoc_insertion_point(field_mutable:tests.Message.empty)
-  return empty_.Mutable(index);
-}
-inline void Message::set_empty(int index, const ::std::string& value) {
-  // @@protoc_insertion_point(field_set:tests.Message.empty)
-  empty_.Mutable(index)->assign(value);
-}
-#if LANG_CXX11
-inline void Message::set_empty(int index, ::std::string&& value) {
-  // @@protoc_insertion_point(field_set:tests.Message.empty)
-  empty_.Mutable(index)->assign(std::move(value));
-}
-#endif
-inline void Message::set_empty(int index, const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  empty_.Mutable(index)->assign(value);
-  // @@protoc_insertion_point(field_set_char:tests.Message.empty)
-}
-inline void Message::set_empty(int index, const char* value, size_t size) {
-  empty_.Mutable(index)->assign(
-    reinterpret_cast<const char*>(value), size);
-  // @@protoc_insertion_point(field_set_pointer:tests.Message.empty)
-}
-inline ::std::string* Message::add_empty() {
-  // @@protoc_insertion_point(field_add_mutable:tests.Message.empty)
-  return empty_.Add();
-}
-inline void Message::add_empty(const ::std::string& value) {
-  empty_.Add()->assign(value);
-  // @@protoc_insertion_point(field_add:tests.Message.empty)
-}
-#if LANG_CXX11
-inline void Message::add_empty(::std::string&& value) {
-  empty_.Add(std::move(value));
-  // @@protoc_insertion_point(field_add:tests.Message.empty)
-}
-#endif
-inline void Message::add_empty(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  empty_.Add()->assign(value);
-  // @@protoc_insertion_point(field_add_char:tests.Message.empty)
-}
-inline void Message::add_empty(const char* value, size_t size) {
-  empty_.Add()->assign(reinterpret_cast<const char*>(value), size);
-  // @@protoc_insertion_point(field_add_pointer:tests.Message.empty)
-}
-inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
-Message::empty() const {
-  // @@protoc_insertion_point(field_list:tests.Message.empty)
-  return empty_;
-}
-inline ::google::protobuf::RepeatedPtrField< ::std::string>*
-Message::mutable_empty() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Message.empty)
-  return &empty_;
-}
-
-// optional double optional_default = 28 [default = 42];
-inline bool Message::has_optional_default() const {
-  return (_has_bits_[0] & 0x00004000u) != 0;
-}
-inline void Message::set_has_optional_default() {
-  _has_bits_[0] |= 0x00004000u;
-}
-inline void Message::clear_has_optional_default() {
-  _has_bits_[0] &= ~0x00004000u;
-}
-inline void Message::clear_optional_default() {
-  optional_default_ = 42;
-  clear_has_optional_default();
-}
-inline double Message::optional_default() const {
-  // @@protoc_insertion_point(field_get:tests.Message.optional_default)
-  return optional_default_;
-}
-inline void Message::set_optional_default(double value) {
-  set_has_optional_default();
-  optional_default_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.optional_default)
-}
-
-// optional double optional_no_default = 29;
-inline bool Message::has_optional_no_default() const {
-  return (_has_bits_[0] & 0x00000800u) != 0;
-}
-inline void Message::set_has_optional_no_default() {
-  _has_bits_[0] |= 0x00000800u;
-}
-inline void Message::clear_has_optional_no_default() {
-  _has_bits_[0] &= ~0x00000800u;
-}
-inline void Message::clear_optional_no_default() {
-  optional_no_default_ = 0;
-  clear_has_optional_no_default();
-}
-inline double Message::optional_no_default() const {
-  // @@protoc_insertion_point(field_get:tests.Message.optional_no_default)
-  return optional_no_default_;
-}
-inline void Message::set_optional_no_default(double value) {
-  set_has_optional_no_default();
-  optional_no_default_ = value;
-  // @@protoc_insertion_point(field_set:tests.Message.optional_no_default)
-}
-
-// -------------------------------------------------------------------
-
-// ArrayMessage
-
-// repeated .tests.SimpleMessage values = 1;
-inline int ArrayMessage::values_size() const {
-  return values_.size();
-}
-inline void ArrayMessage::clear_values() {
-  values_.Clear();
-}
-inline const ::tests::SimpleMessage& ArrayMessage::values(int index) const {
-  // @@protoc_insertion_point(field_get:tests.ArrayMessage.values)
-  return values_.Get(index);
-}
-inline ::tests::SimpleMessage* ArrayMessage::mutable_values(int index) {
-  // @@protoc_insertion_point(field_mutable:tests.ArrayMessage.values)
-  return values_.Mutable(index);
-}
-inline ::tests::SimpleMessage* ArrayMessage::add_values() {
-  // @@protoc_insertion_point(field_add:tests.ArrayMessage.values)
-  return values_.Add();
-}
-inline ::google::protobuf::RepeatedPtrField< ::tests::SimpleMessage >*
-ArrayMessage::mutable_values() {
-  // @@protoc_insertion_point(field_mutable_list:tests.ArrayMessage.values)
-  return &values_;
-}
-inline const ::google::protobuf::RepeatedPtrField< ::tests::SimpleMessage >&
-ArrayMessage::values() const {
-  // @@protoc_insertion_point(field_list:tests.ArrayMessage.values)
-  return values_;
-}
-
-#endif  // !PROTOBUF_INLINE_NOT_IN_HEADERS
-// -------------------------------------------------------------------
-
-// -------------------------------------------------------------------
-
-// -------------------------------------------------------------------
-
-
-// @@protoc_insertion_point(namespace_scope)
-
-
-}  // namespace tests
-
-#ifndef SWIG
-namespace google {
-namespace protobuf {
-
-template <> struct is_proto_enum< ::tests::Enum> : ::google::protobuf::internal::true_type {};
-template <>
-inline const EnumDescriptor* GetEnumDescriptor< ::tests::Enum>() {
-  return ::tests::Enum_descriptor();
-}
-
-}  // namespace protobuf
-}  // namespace google
-#endif  // SWIG
-
-// @@protoc_insertion_point(global_scope)
-
-#endif  // PROTOBUF_protobuf_5ftests_2eproto__INCLUDED


[3/3] mesos git commit: Generated protobuf_tests.pb.* files during the build.

Posted by qi...@apache.org.
Generated protobuf_tests.pb.* files during the build.

Review: https://reviews.apache.org/r/60109/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e6ec4e83
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e6ec4e83
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e6ec4e83

Branch: refs/heads/master
Commit: e6ec4e8362552cbaf74bf3e844e7ac4b15f9aafd
Parents: fc27129
Author: Qian Zhang <zh...@gmail.com>
Authored: Thu Jul 27 09:45:48 2017 +0800
Committer: Qian Zhang <zh...@gmail.com>
Committed: Thu Jul 27 09:45:48 2017 +0800

----------------------------------------------------------------------
 3rdparty/stout/Makefile.am                |   20 +-
 3rdparty/stout/configure.ac               |    2 +
 3rdparty/stout/tests/CMakeLists.txt       |   11 +
 3rdparty/stout/tests/protobuf_tests.pb.cc | 3985 ------------------------
 3rdparty/stout/tests/protobuf_tests.pb.h  | 2262 --------------
 5 files changed, 31 insertions(+), 6249 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e6ec4e83/3rdparty/stout/Makefile.am
----------------------------------------------------------------------
diff --git a/3rdparty/stout/Makefile.am b/3rdparty/stout/Makefile.am
index 7956d1a..20c3c1b 100644
--- a/3rdparty/stout/Makefile.am
+++ b/3rdparty/stout/Makefile.am
@@ -110,10 +110,18 @@ PROTOBUF_INCLUDE_FLAGS = -I$(PROTOBUF)/src
 LIB_PROTOBUF = $(PROTOBUF)/src/libprotobuf.la
 $(LIB_PROTOBUF): $(PROTOBUF)-build-stamp
 BUNDLED_DEPS += $(PROTOBUF)-build-stamp
+PROTOC = $(PROTOBUF)/src/protoc
 else
 LIB_PROTOBUF = -lprotobuf
+PROTOC = @PROTOCOMPILER@
 endif
 
+PROTOCFLAGS = -I$(srcdir)/tests
+
+# Targets for generating C++ protocol buffer code.
+protobuf_tests.pb.cc protobuf_tests.pb.h: tests/protobuf_tests.proto
+	$(PROTOC) $(PROTOCFLAGS) --cpp_out=$(builddir) $^
+
 # Tests for stout.
 check_PROGRAMS = stout-tests
 
@@ -154,8 +162,6 @@ stout_tests_SOURCES =			\
   tests/os/systems_tests.cpp		\
   tests/path_tests.cpp			\
   tests/protobuf_tests.cpp		\
-  tests/protobuf_tests.pb.cc		\
-  tests/protobuf_tests.pb.h		\
   tests/protobuf_tests.proto		\
   tests/recordio_tests.cpp		\
   tests/result_tests.cpp		\
@@ -204,6 +210,16 @@ endif
 
 BUILT_SOURCES = $(BUNDLED_DEPS)
 
+BUILT_SOURCES +=			\
+  protobuf_tests.pb.cc
+
+nodist_stout_tests_SOURCES =		\
+  protobuf_tests.pb.cc
+
+CLEANFILES =				\
+  protobuf_tests.pb.cc			\
+  protobuf_tests.pb.h
+
 # We use a check-local target for now to avoid the parallel test
 # runner that ships with newer versions of autotools.
 # See the following discussion for the workaround:

http://git-wip-us.apache.org/repos/asf/mesos/blob/e6ec4e83/3rdparty/stout/configure.ac
----------------------------------------------------------------------
diff --git a/3rdparty/stout/configure.ac b/3rdparty/stout/configure.ac
index abb6521..6db2287 100644
--- a/3rdparty/stout/configure.ac
+++ b/3rdparty/stout/configure.ac
@@ -520,6 +520,7 @@ if test "x$without_bundled_protobuf" = "xyes" || \
       AC_MSG_ERROR([protoc not found in PATH])
     fi
 
+    PROTOCOMPILER="$PROTOBUFPREFIX/bin/protoc"
   else
     AC_MSG_ERROR([cannot find protobuf
 -------------------------------------------------------------------
@@ -539,6 +540,7 @@ fi
 AM_CONDITIONAL([WITH_BUNDLED_PROTOBUF],
                [test "x$with_bundled_protobuf" = "xyes"])
 
+AC_SUBST([PROTOCOMPILER])
 
 # Check if libsvn-1 prefix path was provided, and if so, add it to
 # the CPPFLAGS and LDFLAGS with respective /include and /lib path

http://git-wip-us.apache.org/repos/asf/mesos/blob/e6ec4e83/3rdparty/stout/tests/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/stout/tests/CMakeLists.txt b/3rdparty/stout/tests/CMakeLists.txt
index 8d881ab..12882ee 100644
--- a/3rdparty/stout/tests/CMakeLists.txt
+++ b/3rdparty/stout/tests/CMakeLists.txt
@@ -99,12 +99,23 @@ set(STOUT_TESTS_SRC
 #############################################################################
 include_directories(SYSTEM ${STOUT_TEST_3RDPARTY_INCLUDE_DIRS})
 include_directories(${STOUT_INCLUDE_DIRS})
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
 
 # LINKING LIBRARIES BY DIRECTORY (might generate, e.g., -L/path/to/thing on
 # Linux).
 ###########################################################################
 link_directories(${STOUT_TEST_LIB_DIRS})
 
+# THE C++ PROTOCOL BUFFER CODE (protobuf_tests.pb.h and protobuf_tests.pb.cc).
+##############################################################################
+add_custom_command(
+  OUTPUT protobuf_tests.pb.h protobuf_tests.pb.cc
+  COMMAND ${PROTOC}
+    -I${CMAKE_SOURCE_DIR}/3rdparty/stout/tests
+    --cpp_out=.
+    ${CMAKE_SOURCE_DIR}/3rdparty/stout/tests/protobuf_tests.proto
+  DEPENDS ${CMAKE_SOURCE_DIR}/3rdparty/stout/tests/protobuf_tests.proto)
+
 # THE STOUT TEST EXECUTABLE (generates, e.g., stout-tests, etc., on Linux).
 ###########################################################################
 add_executable(${STOUT_TESTS_TARGET} EXCLUDE_FROM_ALL ${STOUT_TESTS_SRC})


[2/3] mesos git commit: Generated protobuf_tests.pb.* files during the build.

Posted by qi...@apache.org.
http://git-wip-us.apache.org/repos/asf/mesos/blob/e6ec4e83/3rdparty/stout/tests/protobuf_tests.pb.cc
----------------------------------------------------------------------
diff --git a/3rdparty/stout/tests/protobuf_tests.pb.cc b/3rdparty/stout/tests/protobuf_tests.pb.cc
deleted file mode 100644
index ad6eff7..0000000
--- a/3rdparty/stout/tests/protobuf_tests.pb.cc
+++ /dev/null
@@ -1,3985 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: protobuf_tests.proto
-
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
-#include "protobuf_tests.pb.h"
-
-#include <algorithm>
-
-#include <google/protobuf/stubs/common.h>
-#include <google/protobuf/stubs/port.h>
-#include <google/protobuf/stubs/once.h>
-#include <google/protobuf/io/coded_stream.h>
-#include <google/protobuf/wire_format_lite_inl.h>
-#include <google/protobuf/descriptor.h>
-#include <google/protobuf/generated_message_reflection.h>
-#include <google/protobuf/reflection_ops.h>
-#include <google/protobuf/wire_format.h>
-// @@protoc_insertion_point(includes)
-
-namespace tests {
-class NestedDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Nested> {
-} _Nested_default_instance_;
-class SimpleMessageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SimpleMessage> {
-} _SimpleMessage_default_instance_;
-class MessageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Message> {
-} _Message_default_instance_;
-class ArrayMessageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ArrayMessage> {
-} _ArrayMessage_default_instance_;
-
-namespace protobuf_protobuf_5ftests_2eproto {
-
-
-namespace {
-
-::google::protobuf::Metadata file_level_metadata[4];
-const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
-
-}  // namespace
-
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
-    const TableStruct::entries[] = {
-  {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
-};
-
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
-    const TableStruct::aux[] = {
-  ::google::protobuf::internal::AuxillaryParseTableField(),
-};
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
-    TableStruct::schema[] = {
-  { NULL, NULL, 0, -1, -1, false },
-  { NULL, NULL, 0, -1, -1, false },
-  { NULL, NULL, 0, -1, -1, false },
-  { NULL, NULL, 0, -1, -1, false },
-};
-
-const ::google::protobuf::uint32 TableStruct::offsets[] = {
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Nested, _has_bits_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Nested, _internal_metadata_),
-  ~0u,  // no _extensions_
-  ~0u,  // no _oneof_case_
-  ~0u,  // no _weak_field_map_
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Nested, str_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Nested, optional_str_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Nested, repeated_str_),
-  0,
-  1,
-  ~0u,
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleMessage, _has_bits_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleMessage, _internal_metadata_),
-  ~0u,  // no _extensions_
-  ~0u,  // no _oneof_case_
-  ~0u,  // no _weak_field_map_
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleMessage, id_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SimpleMessage, numbers_),
-  0,
-  ~0u,
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, _has_bits_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, _internal_metadata_),
-  ~0u,  // no _extensions_
-  ~0u,  // no _oneof_case_
-  ~0u,  // no _weak_field_map_
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, b_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, str_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, bytes_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, int32_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, int64_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, uint32_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, uint64_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, sint32_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, sint64_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, f_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, d_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, e_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, nested_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_bool_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_string_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_bytes_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_int32_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_int64_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_uint32_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_uint64_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_sint32_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_sint64_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_float_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_double_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_enum_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, repeated_nested_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, empty_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, optional_default_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Message, optional_no_default_),
-  12,
-  0,
-  1,
-  4,
-  3,
-  5,
-  6,
-  8,
-  7,
-  9,
-  10,
-  13,
-  2,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  ~0u,
-  14,
-  11,
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArrayMessage, _has_bits_),
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArrayMessage, _internal_metadata_),
-  ~0u,  // no _extensions_
-  ~0u,  // no _oneof_case_
-  ~0u,  // no _weak_field_map_
-  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArrayMessage, values_),
-  ~0u,
-};
-
-static const ::google::protobuf::internal::MigrationSchema schemas[] = {
-  { 0, 8, sizeof(Nested)},
-  { 11, 18, sizeof(SimpleMessage)},
-  { 20, 54, sizeof(Message)},
-  { 83, 89, sizeof(ArrayMessage)},
-};
-
-static ::google::protobuf::Message const * const file_default_instances[] = {
-  reinterpret_cast<const ::google::protobuf::Message*>(&_Nested_default_instance_),
-  reinterpret_cast<const ::google::protobuf::Message*>(&_SimpleMessage_default_instance_),
-  reinterpret_cast<const ::google::protobuf::Message*>(&_Message_default_instance_),
-  reinterpret_cast<const ::google::protobuf::Message*>(&_ArrayMessage_default_instance_),
-};
-
-namespace {
-
-void protobuf_AssignDescriptors() {
-  AddDescriptors();
-  ::google::protobuf::MessageFactory* factory = NULL;
-  AssignDescriptors(
-      "protobuf_tests.proto", schemas, file_default_instances, TableStruct::offsets, factory,
-      file_level_metadata, file_level_enum_descriptors, NULL);
-}
-
-void protobuf_AssignDescriptorsOnce() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
-}
-
-void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
-void protobuf_RegisterTypes(const ::std::string&) {
-  protobuf_AssignDescriptorsOnce();
-  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
-}
-
-}  // namespace
-
-void TableStruct::Shutdown() {
-  _Nested_default_instance_.Shutdown();
-  delete file_level_metadata[0].reflection;
-  _SimpleMessage_default_instance_.Shutdown();
-  delete file_level_metadata[1].reflection;
-  _Message_default_instance_.Shutdown();
-  delete file_level_metadata[2].reflection;
-  _ArrayMessage_default_instance_.Shutdown();
-  delete file_level_metadata[3].reflection;
-}
-
-void TableStruct::InitDefaultsImpl() {
-  GOOGLE_PROTOBUF_VERIFY_VERSION;
-
-  ::google::protobuf::internal::InitProtobufDefaults();
-  _Nested_default_instance_.DefaultConstruct();
-  _SimpleMessage_default_instance_.DefaultConstruct();
-  _Message_default_instance_.DefaultConstruct();
-  _ArrayMessage_default_instance_.DefaultConstruct();
-  _Message_default_instance_.get_mutable()->nested_ = const_cast< ::tests::Nested*>(
-      ::tests::Nested::internal_default_instance());
-}
-
-void InitDefaults() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
-}
-void AddDescriptorsImpl() {
-  InitDefaults();
-  static const char descriptor[] = {
-      "\n\024protobuf_tests.proto\022\005tests\"A\n\006Nested\022"
-      "\013\n\003str\030\001 \002(\t\022\024\n\014optional_str\030\002 \001(\t\022\024\n\014re"
-      "peated_str\030\003 \003(\t\",\n\rSimpleMessage\022\n\n\002id\030"
-      "\001 \002(\t\022\017\n\007numbers\030\002 \003(\005\"\376\004\n\007Message\022\t\n\001b\030"
-      "\032 \002(\010\022\013\n\003str\030\001 \002(\t\022\r\n\005bytes\030\002 \002(\014\022\r\n\005int"
-      "32\030\003 \001(\005\022\r\n\005int64\030\004 \001(\003\022\016\n\006uint32\030\005 \001(\r\022"
-      "\016\n\006uint64\030\006 \001(\004\022\016\n\006sint32\030\007 \001(\021\022\016\n\006sint6"
-      "4\030\010 \001(\022\022\t\n\001f\030\t \002(\002\022\t\n\001d\030\n \002(\001\022\026\n\001e\030\013 \002(\016"
-      "2\013.tests.Enum\022\035\n\006nested\030\014 \002(\0132\r.tests.Ne"
-      "sted\022\025\n\rrepeated_bool\030\033 \003(\010\022\027\n\017repeated_"
-      "string\030\r \003(\t\022\026\n\016repeated_bytes\030\016 \003(\014\022\026\n\016"
-      "repeated_int32\030\017 \003(\005\022\026\n\016repeated_int64\030\020"
-      " \003(\003\022\027\n\017repeated_uint32\030\021 \003(\r\022\027\n\017repeate"
-      "d_uint64\030\022 \003(\004\022\027\n\017repeated_sint32\030\023 \003(\021\022"
-      "\027\n\017repeated_sint64\030\024 \003(\022\022\026\n\016repeated_flo"
-      "at\030\025 \003(\002\022\027\n\017repeated_double\030\026 \003(\001\022\"\n\rrep"
-      "eated_enum\030\027 \003(\0162\013.tests.Enum\022&\n\017repeate"
-      "d_nested\030\030 \003(\0132\r.tests.Nested\022\r\n\005empty\030\031"
-      " \003(\t\022\034\n\020optional_default\030\034 \001(\001:\00242\022\033\n\023op"
-      "tional_no_default\030\035 \001(\001\"4\n\014ArrayMessage\022"
-      "$\n\006values\030\001 \003(\0132\024.tests.SimpleMessage*\030\n"
-      "\004Enum\022\007\n\003ONE\020\001\022\007\n\003TWO\020\002"
-  };
-  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
-      descriptor, 863);
-  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
-    "protobuf_tests.proto", &protobuf_RegisterTypes);
-  ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown);
-}
-
-void AddDescriptors() {
-  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
-  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
-}
-// Force AddDescriptors() to be called at static initialization time.
-struct StaticDescriptorInitializer {
-  StaticDescriptorInitializer() {
-    AddDescriptors();
-  }
-} static_descriptor_initializer;
-
-}  // namespace protobuf_protobuf_5ftests_2eproto
-
-const ::google::protobuf::EnumDescriptor* Enum_descriptor() {
-  protobuf_protobuf_5ftests_2eproto::protobuf_AssignDescriptorsOnce();
-  return protobuf_protobuf_5ftests_2eproto::file_level_enum_descriptors[0];
-}
-bool Enum_IsValid(int value) {
-  switch (value) {
-    case 1:
-    case 2:
-      return true;
-    default:
-      return false;
-  }
-}
-
-
-// ===================================================================
-
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int Nested::kStrFieldNumber;
-const int Nested::kOptionalStrFieldNumber;
-const int Nested::kRepeatedStrFieldNumber;
-#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
-
-Nested::Nested()
-  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    protobuf_protobuf_5ftests_2eproto::InitDefaults();
-  }
-  SharedCtor();
-  // @@protoc_insertion_point(constructor:tests.Nested)
-}
-Nested::Nested(const Nested& from)
-  : ::google::protobuf::Message(),
-      _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0),
-      repeated_str_(from.repeated_str_) {
-  _internal_metadata_.MergeFrom(from._internal_metadata_);
-  str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  if (from.has_str()) {
-    str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
-  }
-  optional_str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  if (from.has_optional_str()) {
-    optional_str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.optional_str_);
-  }
-  // @@protoc_insertion_point(copy_constructor:tests.Nested)
-}
-
-void Nested::SharedCtor() {
-  _cached_size_ = 0;
-  str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  optional_str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-
-Nested::~Nested() {
-  // @@protoc_insertion_point(destructor:tests.Nested)
-  SharedDtor();
-}
-
-void Nested::SharedDtor() {
-  str_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  optional_str_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-
-void Nested::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
-}
-const ::google::protobuf::Descriptor* Nested::descriptor() {
-  protobuf_protobuf_5ftests_2eproto::protobuf_AssignDescriptorsOnce();
-  return protobuf_protobuf_5ftests_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
-const Nested& Nested::default_instance() {
-  protobuf_protobuf_5ftests_2eproto::InitDefaults();
-  return *internal_default_instance();
-}
-
-Nested* Nested::New(::google::protobuf::Arena* arena) const {
-  Nested* n = new Nested;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
-
-void Nested::Clear() {
-// @@protoc_insertion_point(message_clear_start:tests.Nested)
-  repeated_str_.Clear();
-  if (_has_bits_[0 / 32] & 3u) {
-    if (has_str()) {
-      GOOGLE_DCHECK(!str_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*str_.UnsafeRawStringPointer())->clear();
-    }
-    if (has_optional_str()) {
-      GOOGLE_DCHECK(!optional_str_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*optional_str_.UnsafeRawStringPointer())->clear();
-    }
-  }
-  _has_bits_.Clear();
-  _internal_metadata_.Clear();
-}
-
-bool Nested::MergePartialFromCodedStream(
-    ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
-  ::google::protobuf::uint32 tag;
-  // @@protoc_insertion_point(parse_start:tests.Nested)
-  for (;;) {
-    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
-    tag = p.first;
-    if (!p.second) goto handle_unusual;
-    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
-      // required string str = 1;
-      case 1: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(10u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
-                input, this->mutable_str()));
-          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-            this->str().data(), this->str().length(),
-            ::google::protobuf::internal::WireFormat::PARSE,
-            "tests.Nested.str");
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // optional string optional_str = 2;
-      case 2: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(18u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
-                input, this->mutable_optional_str()));
-          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-            this->optional_str().data(), this->optional_str().length(),
-            ::google::protobuf::internal::WireFormat::PARSE,
-            "tests.Nested.optional_str");
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated string repeated_str = 3;
-      case 3: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(26u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
-                input, this->add_repeated_str()));
-          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-            this->repeated_str(this->repeated_str_size() - 1).data(),
-            this->repeated_str(this->repeated_str_size() - 1).length(),
-            ::google::protobuf::internal::WireFormat::PARSE,
-            "tests.Nested.repeated_str");
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      default: {
-      handle_unusual:
-        if (tag == 0 ||
-            ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
-            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
-          goto success;
-        }
-        DO_(::google::protobuf::internal::WireFormat::SkipField(
-              input, tag, mutable_unknown_fields()));
-        break;
-      }
-    }
-  }
-success:
-  // @@protoc_insertion_point(parse_success:tests.Nested)
-  return true;
-failure:
-  // @@protoc_insertion_point(parse_failure:tests.Nested)
-  return false;
-#undef DO_
-}
-
-void Nested::SerializeWithCachedSizes(
-    ::google::protobuf::io::CodedOutputStream* output) const {
-  // @@protoc_insertion_point(serialize_start:tests.Nested)
-  ::google::protobuf::uint32 cached_has_bits = 0;
-  (void) cached_has_bits;
-
-  cached_has_bits = _has_bits_[0];
-  // required string str = 1;
-  if (cached_has_bits & 0x00000001u) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->str().data(), this->str().length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Nested.str");
-    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
-      1, this->str(), output);
-  }
-
-  // optional string optional_str = 2;
-  if (cached_has_bits & 0x00000002u) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->optional_str().data(), this->optional_str().length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Nested.optional_str");
-    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
-      2, this->optional_str(), output);
-  }
-
-  // repeated string repeated_str = 3;
-  for (int i = 0, n = this->repeated_str_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->repeated_str(i).data(), this->repeated_str(i).length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Nested.repeated_str");
-    ::google::protobuf::internal::WireFormatLite::WriteString(
-      3, this->repeated_str(i), output);
-  }
-
-  if (_internal_metadata_.have_unknown_fields()) {
-    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
-        unknown_fields(), output);
-  }
-  // @@protoc_insertion_point(serialize_end:tests.Nested)
-}
-
-::google::protobuf::uint8* Nested::InternalSerializeWithCachedSizesToArray(
-    bool deterministic, ::google::protobuf::uint8* target) const {
-  // @@protoc_insertion_point(serialize_to_array_start:tests.Nested)
-  ::google::protobuf::uint32 cached_has_bits = 0;
-  (void) cached_has_bits;
-
-  cached_has_bits = _has_bits_[0];
-  // required string str = 1;
-  if (cached_has_bits & 0x00000001u) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->str().data(), this->str().length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Nested.str");
-    target =
-      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
-        1, this->str(), target);
-  }
-
-  // optional string optional_str = 2;
-  if (cached_has_bits & 0x00000002u) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->optional_str().data(), this->optional_str().length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Nested.optional_str");
-    target =
-      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
-        2, this->optional_str(), target);
-  }
-
-  // repeated string repeated_str = 3;
-  for (int i = 0, n = this->repeated_str_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->repeated_str(i).data(), this->repeated_str(i).length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Nested.repeated_str");
-    target = ::google::protobuf::internal::WireFormatLite::
-      WriteStringToArray(3, this->repeated_str(i), target);
-  }
-
-  if (_internal_metadata_.have_unknown_fields()) {
-    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
-        unknown_fields(), target);
-  }
-  // @@protoc_insertion_point(serialize_to_array_end:tests.Nested)
-  return target;
-}
-
-size_t Nested::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tests.Nested)
-  size_t total_size = 0;
-
-  if (_internal_metadata_.have_unknown_fields()) {
-    total_size +=
-      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
-        unknown_fields());
-  }
-  // required string str = 1;
-  if (has_str()) {
-    total_size += 1 +
-      ::google::protobuf::internal::WireFormatLite::StringSize(
-        this->str());
-  }
-  // repeated string repeated_str = 3;
-  total_size += 1 *
-      ::google::protobuf::internal::FromIntSize(this->repeated_str_size());
-  for (int i = 0, n = this->repeated_str_size(); i < n; i++) {
-    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
-      this->repeated_str(i));
-  }
-
-  // optional string optional_str = 2;
-  if (has_optional_str()) {
-    total_size += 1 +
-      ::google::protobuf::internal::WireFormatLite::StringSize(
-        this->optional_str());
-  }
-
-  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
-  return total_size;
-}
-
-void Nested::MergeFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tests.Nested)
-  GOOGLE_DCHECK_NE(&from, this);
-  const Nested* source =
-      ::google::protobuf::internal::DynamicCastToGenerated<const Nested>(
-          &from);
-  if (source == NULL) {
-  // @@protoc_insertion_point(generalized_merge_from_cast_fail:tests.Nested)
-    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
-  } else {
-  // @@protoc_insertion_point(generalized_merge_from_cast_success:tests.Nested)
-    MergeFrom(*source);
-  }
-}
-
-void Nested::MergeFrom(const Nested& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tests.Nested)
-  GOOGLE_DCHECK_NE(&from, this);
-  _internal_metadata_.MergeFrom(from._internal_metadata_);
-  ::google::protobuf::uint32 cached_has_bits = 0;
-  (void) cached_has_bits;
-
-  repeated_str_.MergeFrom(from.repeated_str_);
-  cached_has_bits = from._has_bits_[0];
-  if (cached_has_bits & 3u) {
-    if (cached_has_bits & 0x00000001u) {
-      set_has_str();
-      str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
-    }
-    if (cached_has_bits & 0x00000002u) {
-      set_has_optional_str();
-      optional_str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.optional_str_);
-    }
-  }
-}
-
-void Nested::CopyFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tests.Nested)
-  if (&from == this) return;
-  Clear();
-  MergeFrom(from);
-}
-
-void Nested::CopyFrom(const Nested& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tests.Nested)
-  if (&from == this) return;
-  Clear();
-  MergeFrom(from);
-}
-
-bool Nested::IsInitialized() const {
-  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
-  return true;
-}
-
-void Nested::Swap(Nested* other) {
-  if (other == this) return;
-  InternalSwap(other);
-}
-void Nested::InternalSwap(Nested* other) {
-  repeated_str_.InternalSwap(&other->repeated_str_);
-  str_.Swap(&other->str_);
-  optional_str_.Swap(&other->optional_str_);
-  std::swap(_has_bits_[0], other->_has_bits_[0]);
-  _internal_metadata_.Swap(&other->_internal_metadata_);
-  std::swap(_cached_size_, other->_cached_size_);
-}
-
-::google::protobuf::Metadata Nested::GetMetadata() const {
-  protobuf_protobuf_5ftests_2eproto::protobuf_AssignDescriptorsOnce();
-  return protobuf_protobuf_5ftests_2eproto::file_level_metadata[kIndexInFileMessages];
-}
-
-#if PROTOBUF_INLINE_NOT_IN_HEADERS
-// Nested
-
-// required string str = 1;
-bool Nested::has_str() const {
-  return (_has_bits_[0] & 0x00000001u) != 0;
-}
-void Nested::set_has_str() {
-  _has_bits_[0] |= 0x00000001u;
-}
-void Nested::clear_has_str() {
-  _has_bits_[0] &= ~0x00000001u;
-}
-void Nested::clear_str() {
-  str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  clear_has_str();
-}
-const ::std::string& Nested::str() const {
-  // @@protoc_insertion_point(field_get:tests.Nested.str)
-  return str_.GetNoArena();
-}
-void Nested::set_str(const ::std::string& value) {
-  set_has_str();
-  str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:tests.Nested.str)
-}
-#if LANG_CXX11
-void Nested::set_str(::std::string&& value) {
-  set_has_str();
-  str_.SetNoArena(
-    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:tests.Nested.str)
-}
-#endif
-void Nested::set_str(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  set_has_str();
-  str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:tests.Nested.str)
-}
-void Nested::set_str(const char* value, size_t size) {
-  set_has_str();
-  str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-      ::std::string(reinterpret_cast<const char*>(value), size));
-  // @@protoc_insertion_point(field_set_pointer:tests.Nested.str)
-}
-::std::string* Nested::mutable_str() {
-  set_has_str();
-  // @@protoc_insertion_point(field_mutable:tests.Nested.str)
-  return str_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* Nested::release_str() {
-  // @@protoc_insertion_point(field_release:tests.Nested.str)
-  clear_has_str();
-  return str_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void Nested::set_allocated_str(::std::string* str) {
-  if (str != NULL) {
-    set_has_str();
-  } else {
-    clear_has_str();
-  }
-  str_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), str);
-  // @@protoc_insertion_point(field_set_allocated:tests.Nested.str)
-}
-
-// optional string optional_str = 2;
-bool Nested::has_optional_str() const {
-  return (_has_bits_[0] & 0x00000002u) != 0;
-}
-void Nested::set_has_optional_str() {
-  _has_bits_[0] |= 0x00000002u;
-}
-void Nested::clear_has_optional_str() {
-  _has_bits_[0] &= ~0x00000002u;
-}
-void Nested::clear_optional_str() {
-  optional_str_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  clear_has_optional_str();
-}
-const ::std::string& Nested::optional_str() const {
-  // @@protoc_insertion_point(field_get:tests.Nested.optional_str)
-  return optional_str_.GetNoArena();
-}
-void Nested::set_optional_str(const ::std::string& value) {
-  set_has_optional_str();
-  optional_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:tests.Nested.optional_str)
-}
-#if LANG_CXX11
-void Nested::set_optional_str(::std::string&& value) {
-  set_has_optional_str();
-  optional_str_.SetNoArena(
-    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:tests.Nested.optional_str)
-}
-#endif
-void Nested::set_optional_str(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  set_has_optional_str();
-  optional_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:tests.Nested.optional_str)
-}
-void Nested::set_optional_str(const char* value, size_t size) {
-  set_has_optional_str();
-  optional_str_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-      ::std::string(reinterpret_cast<const char*>(value), size));
-  // @@protoc_insertion_point(field_set_pointer:tests.Nested.optional_str)
-}
-::std::string* Nested::mutable_optional_str() {
-  set_has_optional_str();
-  // @@protoc_insertion_point(field_mutable:tests.Nested.optional_str)
-  return optional_str_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* Nested::release_optional_str() {
-  // @@protoc_insertion_point(field_release:tests.Nested.optional_str)
-  clear_has_optional_str();
-  return optional_str_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void Nested::set_allocated_optional_str(::std::string* optional_str) {
-  if (optional_str != NULL) {
-    set_has_optional_str();
-  } else {
-    clear_has_optional_str();
-  }
-  optional_str_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_str);
-  // @@protoc_insertion_point(field_set_allocated:tests.Nested.optional_str)
-}
-
-// repeated string repeated_str = 3;
-int Nested::repeated_str_size() const {
-  return repeated_str_.size();
-}
-void Nested::clear_repeated_str() {
-  repeated_str_.Clear();
-}
-const ::std::string& Nested::repeated_str(int index) const {
-  // @@protoc_insertion_point(field_get:tests.Nested.repeated_str)
-  return repeated_str_.Get(index);
-}
-::std::string* Nested::mutable_repeated_str(int index) {
-  // @@protoc_insertion_point(field_mutable:tests.Nested.repeated_str)
-  return repeated_str_.Mutable(index);
-}
-void Nested::set_repeated_str(int index, const ::std::string& value) {
-  // @@protoc_insertion_point(field_set:tests.Nested.repeated_str)
-  repeated_str_.Mutable(index)->assign(value);
-}
-#if LANG_CXX11
-void Nested::set_repeated_str(int index, ::std::string&& value) {
-  // @@protoc_insertion_point(field_set:tests.Nested.repeated_str)
-  repeated_str_.Mutable(index)->assign(std::move(value));
-}
-#endif
-void Nested::set_repeated_str(int index, const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  repeated_str_.Mutable(index)->assign(value);
-  // @@protoc_insertion_point(field_set_char:tests.Nested.repeated_str)
-}
-void Nested::set_repeated_str(int index, const char* value, size_t size) {
-  repeated_str_.Mutable(index)->assign(
-    reinterpret_cast<const char*>(value), size);
-  // @@protoc_insertion_point(field_set_pointer:tests.Nested.repeated_str)
-}
-::std::string* Nested::add_repeated_str() {
-  // @@protoc_insertion_point(field_add_mutable:tests.Nested.repeated_str)
-  return repeated_str_.Add();
-}
-void Nested::add_repeated_str(const ::std::string& value) {
-  repeated_str_.Add()->assign(value);
-  // @@protoc_insertion_point(field_add:tests.Nested.repeated_str)
-}
-#if LANG_CXX11
-void Nested::add_repeated_str(::std::string&& value) {
-  repeated_str_.Add(std::move(value));
-  // @@protoc_insertion_point(field_add:tests.Nested.repeated_str)
-}
-#endif
-void Nested::add_repeated_str(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  repeated_str_.Add()->assign(value);
-  // @@protoc_insertion_point(field_add_char:tests.Nested.repeated_str)
-}
-void Nested::add_repeated_str(const char* value, size_t size) {
-  repeated_str_.Add()->assign(reinterpret_cast<const char*>(value), size);
-  // @@protoc_insertion_point(field_add_pointer:tests.Nested.repeated_str)
-}
-const ::google::protobuf::RepeatedPtrField< ::std::string>&
-Nested::repeated_str() const {
-  // @@protoc_insertion_point(field_list:tests.Nested.repeated_str)
-  return repeated_str_;
-}
-::google::protobuf::RepeatedPtrField< ::std::string>*
-Nested::mutable_repeated_str() {
-  // @@protoc_insertion_point(field_mutable_list:tests.Nested.repeated_str)
-  return &repeated_str_;
-}
-
-#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
-
-// ===================================================================
-
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int SimpleMessage::kIdFieldNumber;
-const int SimpleMessage::kNumbersFieldNumber;
-#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
-
-SimpleMessage::SimpleMessage()
-  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    protobuf_protobuf_5ftests_2eproto::InitDefaults();
-  }
-  SharedCtor();
-  // @@protoc_insertion_point(constructor:tests.SimpleMessage)
-}
-SimpleMessage::SimpleMessage(const SimpleMessage& from)
-  : ::google::protobuf::Message(),
-      _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0),
-      numbers_(from.numbers_) {
-  _internal_metadata_.MergeFrom(from._internal_metadata_);
-  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  if (from.has_id()) {
-    id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
-  }
-  // @@protoc_insertion_point(copy_constructor:tests.SimpleMessage)
-}
-
-void SimpleMessage::SharedCtor() {
-  _cached_size_ = 0;
-  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-
-SimpleMessage::~SimpleMessage() {
-  // @@protoc_insertion_point(destructor:tests.SimpleMessage)
-  SharedDtor();
-}
-
-void SimpleMessage::SharedDtor() {
-  id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-
-void SimpleMessage::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
-}
-const ::google::protobuf::Descriptor* SimpleMessage::descriptor() {
-  protobuf_protobuf_5ftests_2eproto::protobuf_AssignDescriptorsOnce();
-  return protobuf_protobuf_5ftests_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
-const SimpleMessage& SimpleMessage::default_instance() {
-  protobuf_protobuf_5ftests_2eproto::InitDefaults();
-  return *internal_default_instance();
-}
-
-SimpleMessage* SimpleMessage::New(::google::protobuf::Arena* arena) const {
-  SimpleMessage* n = new SimpleMessage;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
-
-void SimpleMessage::Clear() {
-// @@protoc_insertion_point(message_clear_start:tests.SimpleMessage)
-  numbers_.Clear();
-  if (has_id()) {
-    GOOGLE_DCHECK(!id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-    (*id_.UnsafeRawStringPointer())->clear();
-  }
-  _has_bits_.Clear();
-  _internal_metadata_.Clear();
-}
-
-bool SimpleMessage::MergePartialFromCodedStream(
-    ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
-  ::google::protobuf::uint32 tag;
-  // @@protoc_insertion_point(parse_start:tests.SimpleMessage)
-  for (;;) {
-    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
-    tag = p.first;
-    if (!p.second) goto handle_unusual;
-    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
-      // required string id = 1;
-      case 1: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(10u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
-                input, this->mutable_id()));
-          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-            this->id().data(), this->id().length(),
-            ::google::protobuf::internal::WireFormat::PARSE,
-            "tests.SimpleMessage.id");
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated int32 numbers = 2;
-      case 2: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(16u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
-                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
-                 1, 16u, input, this->mutable_numbers())));
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(18u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
-                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
-                 input, this->mutable_numbers())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      default: {
-      handle_unusual:
-        if (tag == 0 ||
-            ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
-            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
-          goto success;
-        }
-        DO_(::google::protobuf::internal::WireFormat::SkipField(
-              input, tag, mutable_unknown_fields()));
-        break;
-      }
-    }
-  }
-success:
-  // @@protoc_insertion_point(parse_success:tests.SimpleMessage)
-  return true;
-failure:
-  // @@protoc_insertion_point(parse_failure:tests.SimpleMessage)
-  return false;
-#undef DO_
-}
-
-void SimpleMessage::SerializeWithCachedSizes(
-    ::google::protobuf::io::CodedOutputStream* output) const {
-  // @@protoc_insertion_point(serialize_start:tests.SimpleMessage)
-  ::google::protobuf::uint32 cached_has_bits = 0;
-  (void) cached_has_bits;
-
-  cached_has_bits = _has_bits_[0];
-  // required string id = 1;
-  if (cached_has_bits & 0x00000001u) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->id().data(), this->id().length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.SimpleMessage.id");
-    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
-      1, this->id(), output);
-  }
-
-  // repeated int32 numbers = 2;
-  for (int i = 0, n = this->numbers_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteInt32(
-      2, this->numbers(i), output);
-  }
-
-  if (_internal_metadata_.have_unknown_fields()) {
-    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
-        unknown_fields(), output);
-  }
-  // @@protoc_insertion_point(serialize_end:tests.SimpleMessage)
-}
-
-::google::protobuf::uint8* SimpleMessage::InternalSerializeWithCachedSizesToArray(
-    bool deterministic, ::google::protobuf::uint8* target) const {
-  // @@protoc_insertion_point(serialize_to_array_start:tests.SimpleMessage)
-  ::google::protobuf::uint32 cached_has_bits = 0;
-  (void) cached_has_bits;
-
-  cached_has_bits = _has_bits_[0];
-  // required string id = 1;
-  if (cached_has_bits & 0x00000001u) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->id().data(), this->id().length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.SimpleMessage.id");
-    target =
-      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
-        1, this->id(), target);
-  }
-
-  // repeated int32 numbers = 2;
-  target = ::google::protobuf::internal::WireFormatLite::
-    WriteInt32ToArray(2, this->numbers_, target);
-
-  if (_internal_metadata_.have_unknown_fields()) {
-    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
-        unknown_fields(), target);
-  }
-  // @@protoc_insertion_point(serialize_to_array_end:tests.SimpleMessage)
-  return target;
-}
-
-size_t SimpleMessage::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:tests.SimpleMessage)
-  size_t total_size = 0;
-
-  if (_internal_metadata_.have_unknown_fields()) {
-    total_size +=
-      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
-        unknown_fields());
-  }
-  // required string id = 1;
-  if (has_id()) {
-    total_size += 1 +
-      ::google::protobuf::internal::WireFormatLite::StringSize(
-        this->id());
-  }
-  // repeated int32 numbers = 2;
-  {
-    size_t data_size = ::google::protobuf::internal::WireFormatLite::
-      Int32Size(this->numbers_);
-    total_size += 1 *
-                  ::google::protobuf::internal::FromIntSize(this->numbers_size());
-    total_size += data_size;
-  }
-
-  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = cached_size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
-  return total_size;
-}
-
-void SimpleMessage::MergeFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:tests.SimpleMessage)
-  GOOGLE_DCHECK_NE(&from, this);
-  const SimpleMessage* source =
-      ::google::protobuf::internal::DynamicCastToGenerated<const SimpleMessage>(
-          &from);
-  if (source == NULL) {
-  // @@protoc_insertion_point(generalized_merge_from_cast_fail:tests.SimpleMessage)
-    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
-  } else {
-  // @@protoc_insertion_point(generalized_merge_from_cast_success:tests.SimpleMessage)
-    MergeFrom(*source);
-  }
-}
-
-void SimpleMessage::MergeFrom(const SimpleMessage& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:tests.SimpleMessage)
-  GOOGLE_DCHECK_NE(&from, this);
-  _internal_metadata_.MergeFrom(from._internal_metadata_);
-  ::google::protobuf::uint32 cached_has_bits = 0;
-  (void) cached_has_bits;
-
-  numbers_.MergeFrom(from.numbers_);
-  if (from.has_id()) {
-    set_has_id();
-    id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
-  }
-}
-
-void SimpleMessage::CopyFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:tests.SimpleMessage)
-  if (&from == this) return;
-  Clear();
-  MergeFrom(from);
-}
-
-void SimpleMessage::CopyFrom(const SimpleMessage& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:tests.SimpleMessage)
-  if (&from == this) return;
-  Clear();
-  MergeFrom(from);
-}
-
-bool SimpleMessage::IsInitialized() const {
-  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
-  return true;
-}
-
-void SimpleMessage::Swap(SimpleMessage* other) {
-  if (other == this) return;
-  InternalSwap(other);
-}
-void SimpleMessage::InternalSwap(SimpleMessage* other) {
-  numbers_.InternalSwap(&other->numbers_);
-  id_.Swap(&other->id_);
-  std::swap(_has_bits_[0], other->_has_bits_[0]);
-  _internal_metadata_.Swap(&other->_internal_metadata_);
-  std::swap(_cached_size_, other->_cached_size_);
-}
-
-::google::protobuf::Metadata SimpleMessage::GetMetadata() const {
-  protobuf_protobuf_5ftests_2eproto::protobuf_AssignDescriptorsOnce();
-  return protobuf_protobuf_5ftests_2eproto::file_level_metadata[kIndexInFileMessages];
-}
-
-#if PROTOBUF_INLINE_NOT_IN_HEADERS
-// SimpleMessage
-
-// required string id = 1;
-bool SimpleMessage::has_id() const {
-  return (_has_bits_[0] & 0x00000001u) != 0;
-}
-void SimpleMessage::set_has_id() {
-  _has_bits_[0] |= 0x00000001u;
-}
-void SimpleMessage::clear_has_id() {
-  _has_bits_[0] &= ~0x00000001u;
-}
-void SimpleMessage::clear_id() {
-  id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  clear_has_id();
-}
-const ::std::string& SimpleMessage::id() const {
-  // @@protoc_insertion_point(field_get:tests.SimpleMessage.id)
-  return id_.GetNoArena();
-}
-void SimpleMessage::set_id(const ::std::string& value) {
-  set_has_id();
-  id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
-  // @@protoc_insertion_point(field_set:tests.SimpleMessage.id)
-}
-#if LANG_CXX11
-void SimpleMessage::set_id(::std::string&& value) {
-  set_has_id();
-  id_.SetNoArena(
-    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
-  // @@protoc_insertion_point(field_set_rvalue:tests.SimpleMessage.id)
-}
-#endif
-void SimpleMessage::set_id(const char* value) {
-  GOOGLE_DCHECK(value != NULL);
-  set_has_id();
-  id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
-  // @@protoc_insertion_point(field_set_char:tests.SimpleMessage.id)
-}
-void SimpleMessage::set_id(const char* value, size_t size) {
-  set_has_id();
-  id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
-      ::std::string(reinterpret_cast<const char*>(value), size));
-  // @@protoc_insertion_point(field_set_pointer:tests.SimpleMessage.id)
-}
-::std::string* SimpleMessage::mutable_id() {
-  set_has_id();
-  // @@protoc_insertion_point(field_mutable:tests.SimpleMessage.id)
-  return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* SimpleMessage::release_id() {
-  // @@protoc_insertion_point(field_release:tests.SimpleMessage.id)
-  clear_has_id();
-  return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void SimpleMessage::set_allocated_id(::std::string* id) {
-  if (id != NULL) {
-    set_has_id();
-  } else {
-    clear_has_id();
-  }
-  id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id);
-  // @@protoc_insertion_point(field_set_allocated:tests.SimpleMessage.id)
-}
-
-// repeated int32 numbers = 2;
-int SimpleMessage::numbers_size() const {
-  return numbers_.size();
-}
-void SimpleMessage::clear_numbers() {
-  numbers_.Clear();
-}
-::google::protobuf::int32 SimpleMessage::numbers(int index) const {
-  // @@protoc_insertion_point(field_get:tests.SimpleMessage.numbers)
-  return numbers_.Get(index);
-}
-void SimpleMessage::set_numbers(int index, ::google::protobuf::int32 value) {
-  numbers_.Set(index, value);
-  // @@protoc_insertion_point(field_set:tests.SimpleMessage.numbers)
-}
-void SimpleMessage::add_numbers(::google::protobuf::int32 value) {
-  numbers_.Add(value);
-  // @@protoc_insertion_point(field_add:tests.SimpleMessage.numbers)
-}
-const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
-SimpleMessage::numbers() const {
-  // @@protoc_insertion_point(field_list:tests.SimpleMessage.numbers)
-  return numbers_;
-}
-::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
-SimpleMessage::mutable_numbers() {
-  // @@protoc_insertion_point(field_mutable_list:tests.SimpleMessage.numbers)
-  return &numbers_;
-}
-
-#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
-
-// ===================================================================
-
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int Message::kBFieldNumber;
-const int Message::kStrFieldNumber;
-const int Message::kBytesFieldNumber;
-const int Message::kInt32FieldNumber;
-const int Message::kInt64FieldNumber;
-const int Message::kUint32FieldNumber;
-const int Message::kUint64FieldNumber;
-const int Message::kSint32FieldNumber;
-const int Message::kSint64FieldNumber;
-const int Message::kFFieldNumber;
-const int Message::kDFieldNumber;
-const int Message::kEFieldNumber;
-const int Message::kNestedFieldNumber;
-const int Message::kRepeatedBoolFieldNumber;
-const int Message::kRepeatedStringFieldNumber;
-const int Message::kRepeatedBytesFieldNumber;
-const int Message::kRepeatedInt32FieldNumber;
-const int Message::kRepeatedInt64FieldNumber;
-const int Message::kRepeatedUint32FieldNumber;
-const int Message::kRepeatedUint64FieldNumber;
-const int Message::kRepeatedSint32FieldNumber;
-const int Message::kRepeatedSint64FieldNumber;
-const int Message::kRepeatedFloatFieldNumber;
-const int Message::kRepeatedDoubleFieldNumber;
-const int Message::kRepeatedEnumFieldNumber;
-const int Message::kRepeatedNestedFieldNumber;
-const int Message::kEmptyFieldNumber;
-const int Message::kOptionalDefaultFieldNumber;
-const int Message::kOptionalNoDefaultFieldNumber;
-#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
-
-Message::Message()
-  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
-  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
-    protobuf_protobuf_5ftests_2eproto::InitDefaults();
-  }
-  SharedCtor();
-  // @@protoc_insertion_point(constructor:tests.Message)
-}
-Message::Message(const Message& from)
-  : ::google::protobuf::Message(),
-      _internal_metadata_(NULL),
-      _has_bits_(from._has_bits_),
-      _cached_size_(0),
-      repeated_string_(from.repeated_string_),
-      repeated_bytes_(from.repeated_bytes_),
-      repeated_int32_(from.repeated_int32_),
-      repeated_int64_(from.repeated_int64_),
-      repeated_uint32_(from.repeated_uint32_),
-      repeated_uint64_(from.repeated_uint64_),
-      repeated_sint32_(from.repeated_sint32_),
-      repeated_sint64_(from.repeated_sint64_),
-      repeated_float_(from.repeated_float_),
-      repeated_double_(from.repeated_double_),
-      repeated_enum_(from.repeated_enum_),
-      repeated_nested_(from.repeated_nested_),
-      empty_(from.empty_),
-      repeated_bool_(from.repeated_bool_) {
-  _internal_metadata_.MergeFrom(from._internal_metadata_);
-  str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  if (from.has_str()) {
-    str_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.str_);
-  }
-  bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  if (from.has_bytes()) {
-    bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bytes_);
-  }
-  if (from.has_nested()) {
-    nested_ = new ::tests::Nested(*from.nested_);
-  } else {
-    nested_ = NULL;
-  }
-  ::memcpy(&int64_, &from.int64_,
-    reinterpret_cast<char*>(&optional_default_) -
-    reinterpret_cast<char*>(&int64_) + sizeof(optional_default_));
-  // @@protoc_insertion_point(copy_constructor:tests.Message)
-}
-
-void Message::SharedCtor() {
-  _cached_size_ = 0;
-  str_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  ::memset(&nested_, 0, reinterpret_cast<char*>(&b_) -
-    reinterpret_cast<char*>(&nested_) + sizeof(b_));
-  e_ = 1;
-  optional_default_ = 42;
-}
-
-Message::~Message() {
-  // @@protoc_insertion_point(destructor:tests.Message)
-  SharedDtor();
-}
-
-void Message::SharedDtor() {
-  str_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-  if (this != internal_default_instance()) {
-    delete nested_;
-  }
-}
-
-void Message::SetCachedSize(int size) const {
-  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
-  _cached_size_ = size;
-  GOOGLE_SAFE_CONCURRENT_WRITES_END();
-}
-const ::google::protobuf::Descriptor* Message::descriptor() {
-  protobuf_protobuf_5ftests_2eproto::protobuf_AssignDescriptorsOnce();
-  return protobuf_protobuf_5ftests_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
-const Message& Message::default_instance() {
-  protobuf_protobuf_5ftests_2eproto::InitDefaults();
-  return *internal_default_instance();
-}
-
-Message* Message::New(::google::protobuf::Arena* arena) const {
-  Message* n = new Message;
-  if (arena != NULL) {
-    arena->Own(n);
-  }
-  return n;
-}
-
-void Message::Clear() {
-// @@protoc_insertion_point(message_clear_start:tests.Message)
-  repeated_string_.Clear();
-  repeated_bytes_.Clear();
-  repeated_int32_.Clear();
-  repeated_int64_.Clear();
-  repeated_uint32_.Clear();
-  repeated_uint64_.Clear();
-  repeated_sint32_.Clear();
-  repeated_sint64_.Clear();
-  repeated_float_.Clear();
-  repeated_double_.Clear();
-  repeated_enum_.Clear();
-  repeated_nested_.Clear();
-  empty_.Clear();
-  repeated_bool_.Clear();
-  if (_has_bits_[0 / 32] & 7u) {
-    if (has_str()) {
-      GOOGLE_DCHECK(!str_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*str_.UnsafeRawStringPointer())->clear();
-    }
-    if (has_bytes()) {
-      GOOGLE_DCHECK(!bytes_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
-      (*bytes_.UnsafeRawStringPointer())->clear();
-    }
-    if (has_nested()) {
-      GOOGLE_DCHECK(nested_ != NULL);
-      nested_->::tests::Nested::Clear();
-    }
-  }
-  if (_has_bits_[0 / 32] & 248u) {
-    ::memset(&int64_, 0, reinterpret_cast<char*>(&sint64_) -
-      reinterpret_cast<char*>(&int64_) + sizeof(sint64_));
-  }
-  if (_has_bits_[8 / 32] & 32512u) {
-    ::memset(&sint32_, 0, reinterpret_cast<char*>(&b_) -
-      reinterpret_cast<char*>(&sint32_) + sizeof(b_));
-    e_ = 1;
-    optional_default_ = 42;
-  }
-  _has_bits_.Clear();
-  _internal_metadata_.Clear();
-}
-
-bool Message::MergePartialFromCodedStream(
-    ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
-  ::google::protobuf::uint32 tag;
-  // @@protoc_insertion_point(parse_start:tests.Message)
-  for (;;) {
-    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
-    tag = p.first;
-    if (!p.second) goto handle_unusual;
-    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
-      // required string str = 1;
-      case 1: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(10u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
-                input, this->mutable_str()));
-          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-            this->str().data(), this->str().length(),
-            ::google::protobuf::internal::WireFormat::PARSE,
-            "tests.Message.str");
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // required bytes bytes = 2;
-      case 2: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(18u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
-                input, this->mutable_bytes()));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // optional int32 int32 = 3;
-      case 3: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(24u)) {
-          set_has_int32();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
-                 input, &int32_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // optional int64 int64 = 4;
-      case 4: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(32u)) {
-          set_has_int64();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
-                 input, &int64_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // optional uint32 uint32 = 5;
-      case 5: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(40u)) {
-          set_has_uint32();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
-                 input, &uint32_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // optional uint64 uint64 = 6;
-      case 6: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(48u)) {
-          set_has_uint64();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
-                 input, &uint64_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // optional sint32 sint32 = 7;
-      case 7: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(56u)) {
-          set_has_sint32();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
-                 input, &sint32_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // optional sint64 sint64 = 8;
-      case 8: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(64u)) {
-          set_has_sint64();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
-                 input, &sint64_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // required float f = 9;
-      case 9: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(77u)) {
-          set_has_f();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
-                 input, &f_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // required double d = 10;
-      case 10: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(81u)) {
-          set_has_d();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
-                 input, &d_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // required .tests.Enum e = 11;
-      case 11: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(88u)) {
-          int value;
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
-                 input, &value)));
-          if (::tests::Enum_IsValid(value)) {
-            set_e(static_cast< ::tests::Enum >(value));
-          } else {
-            mutable_unknown_fields()->AddVarint(11, value);
-          }
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // required .tests.Nested nested = 12;
-      case 12: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(98u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
-               input, mutable_nested()));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated string repeated_string = 13;
-      case 13: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(106u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
-                input, this->add_repeated_string()));
-          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-            this->repeated_string(this->repeated_string_size() - 1).data(),
-            this->repeated_string(this->repeated_string_size() - 1).length(),
-            ::google::protobuf::internal::WireFormat::PARSE,
-            "tests.Message.repeated_string");
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated bytes repeated_bytes = 14;
-      case 14: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(114u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
-                input, this->add_repeated_bytes()));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated int32 repeated_int32 = 15;
-      case 15: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(120u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
-                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
-                 1, 120u, input, this->mutable_repeated_int32())));
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(122u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
-                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
-                 input, this->mutable_repeated_int32())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated int64 repeated_int64 = 16;
-      case 16: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(128u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
-                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
-                 2, 128u, input, this->mutable_repeated_int64())));
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(130u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
-                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
-                 input, this->mutable_repeated_int64())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated uint32 repeated_uint32 = 17;
-      case 17: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(136u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
-                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
-                 2, 136u, input, this->mutable_repeated_uint32())));
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(138u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
-                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
-                 input, this->mutable_repeated_uint32())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated uint64 repeated_uint64 = 18;
-      case 18: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(144u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
-                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
-                 2, 144u, input, this->mutable_repeated_uint64())));
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(146u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
-                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
-                 input, this->mutable_repeated_uint64())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated sint32 repeated_sint32 = 19;
-      case 19: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(152u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
-                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
-                 2, 152u, input, this->mutable_repeated_sint32())));
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(154u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
-                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
-                 input, this->mutable_repeated_sint32())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated sint64 repeated_sint64 = 20;
-      case 20: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(160u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
-                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
-                 2, 160u, input, this->mutable_repeated_sint64())));
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(162u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
-                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
-                 input, this->mutable_repeated_sint64())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated float repeated_float = 21;
-      case 21: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(173u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
-                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
-                 2, 173u, input, this->mutable_repeated_float())));
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(170u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
-                   float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
-                 input, this->mutable_repeated_float())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated double repeated_double = 22;
-      case 22: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(177u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
-                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
-                 2, 177u, input, this->mutable_repeated_double())));
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(178u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
-                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
-                 input, this->mutable_repeated_double())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated .tests.Enum repeated_enum = 23;
-      case 23: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(184u)) {
-          int value;
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
-                 input, &value)));
-          if (::tests::Enum_IsValid(value)) {
-            add_repeated_enum(static_cast< ::tests::Enum >(value));
-          } else {
-            mutable_unknown_fields()->AddVarint(23, value);
-          }
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(186u)) {
-          DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
-                 input,
-                 23,
-                 ::tests::Enum_IsValid,
-                 mutable_unknown_fields(),
-                 this->mutable_repeated_enum())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated .tests.Nested repeated_nested = 24;
-      case 24: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(194u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
-                input, add_repeated_nested()));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated string empty = 25;
-      case 25: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(202u)) {
-          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
-                input, this->add_empty()));
-          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-            this->empty(this->empty_size() - 1).data(),
-            this->empty(this->empty_size() - 1).length(),
-            ::google::protobuf::internal::WireFormat::PARSE,
-            "tests.Message.empty");
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // required bool b = 26;
-      case 26: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(208u)) {
-          set_has_b();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
-                 input, &b_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // repeated bool repeated_bool = 27;
-      case 27: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(216u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
-                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
-                 2, 216u, input, this->mutable_repeated_bool())));
-        } else if (static_cast< ::google::protobuf::uint8>(tag) ==
-                   static_cast< ::google::protobuf::uint8>(218u)) {
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
-                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
-                 input, this->mutable_repeated_bool())));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // optional double optional_default = 28 [default = 42];
-      case 28: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(225u)) {
-          set_has_optional_default();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
-                 input, &optional_default_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      // optional double optional_no_default = 29;
-      case 29: {
-        if (static_cast< ::google::protobuf::uint8>(tag) ==
-            static_cast< ::google::protobuf::uint8>(233u)) {
-          set_has_optional_no_default();
-          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
-                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
-                 input, &optional_no_default_)));
-        } else {
-          goto handle_unusual;
-        }
-        break;
-      }
-
-      default: {
-      handle_unusual:
-        if (tag == 0 ||
-            ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
-            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
-          goto success;
-        }
-        DO_(::google::protobuf::internal::WireFormat::SkipField(
-              input, tag, mutable_unknown_fields()));
-        break;
-      }
-    }
-  }
-success:
-  // @@protoc_insertion_point(parse_success:tests.Message)
-  return true;
-failure:
-  // @@protoc_insertion_point(parse_failure:tests.Message)
-  return false;
-#undef DO_
-}
-
-void Message::SerializeWithCachedSizes(
-    ::google::protobuf::io::CodedOutputStream* output) const {
-  // @@protoc_insertion_point(serialize_start:tests.Message)
-  ::google::protobuf::uint32 cached_has_bits = 0;
-  (void) cached_has_bits;
-
-  cached_has_bits = _has_bits_[0];
-  // required string str = 1;
-  if (cached_has_bits & 0x00000001u) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->str().data(), this->str().length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Message.str");
-    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
-      1, this->str(), output);
-  }
-
-  // required bytes bytes = 2;
-  if (cached_has_bits & 0x00000002u) {
-    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
-      2, this->bytes(), output);
-  }
-
-  // optional int32 int32 = 3;
-  if (cached_has_bits & 0x00000010u) {
-    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->int32(), output);
-  }
-
-  // optional int64 int64 = 4;
-  if (cached_has_bits & 0x00000008u) {
-    ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->int64(), output);
-  }
-
-  // optional uint32 uint32 = 5;
-  if (cached_has_bits & 0x00000020u) {
-    ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->uint32(), output);
-  }
-
-  // optional uint64 uint64 = 6;
-  if (cached_has_bits & 0x00000040u) {
-    ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->uint64(), output);
-  }
-
-  // optional sint32 sint32 = 7;
-  if (cached_has_bits & 0x00000100u) {
-    ::google::protobuf::internal::WireFormatLite::WriteSInt32(7, this->sint32(), output);
-  }
-
-  // optional sint64 sint64 = 8;
-  if (cached_has_bits & 0x00000080u) {
-    ::google::protobuf::internal::WireFormatLite::WriteSInt64(8, this->sint64(), output);
-  }
-
-  // required float f = 9;
-  if (cached_has_bits & 0x00000200u) {
-    ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->f(), output);
-  }
-
-  // required double d = 10;
-  if (cached_has_bits & 0x00000400u) {
-    ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->d(), output);
-  }
-
-  // required .tests.Enum e = 11;
-  if (cached_has_bits & 0x00002000u) {
-    ::google::protobuf::internal::WireFormatLite::WriteEnum(
-      11, this->e(), output);
-  }
-
-  // required .tests.Nested nested = 12;
-  if (cached_has_bits & 0x00000004u) {
-    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      12, *this->nested_, output);
-  }
-
-  // repeated string repeated_string = 13;
-  for (int i = 0, n = this->repeated_string_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->repeated_string(i).data(), this->repeated_string(i).length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Message.repeated_string");
-    ::google::protobuf::internal::WireFormatLite::WriteString(
-      13, this->repeated_string(i), output);
-  }
-
-  // repeated bytes repeated_bytes = 14;
-  for (int i = 0, n = this->repeated_bytes_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteBytes(
-      14, this->repeated_bytes(i), output);
-  }
-
-  // repeated int32 repeated_int32 = 15;
-  for (int i = 0, n = this->repeated_int32_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteInt32(
-      15, this->repeated_int32(i), output);
-  }
-
-  // repeated int64 repeated_int64 = 16;
-  for (int i = 0, n = this->repeated_int64_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteInt64(
-      16, this->repeated_int64(i), output);
-  }
-
-  // repeated uint32 repeated_uint32 = 17;
-  for (int i = 0, n = this->repeated_uint32_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteUInt32(
-      17, this->repeated_uint32(i), output);
-  }
-
-  // repeated uint64 repeated_uint64 = 18;
-  for (int i = 0, n = this->repeated_uint64_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteUInt64(
-      18, this->repeated_uint64(i), output);
-  }
-
-  // repeated sint32 repeated_sint32 = 19;
-  for (int i = 0, n = this->repeated_sint32_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteSInt32(
-      19, this->repeated_sint32(i), output);
-  }
-
-  // repeated sint64 repeated_sint64 = 20;
-  for (int i = 0, n = this->repeated_sint64_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteSInt64(
-      20, this->repeated_sint64(i), output);
-  }
-
-  // repeated float repeated_float = 21;
-  for (int i = 0, n = this->repeated_float_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteFloat(
-      21, this->repeated_float(i), output);
-  }
-
-  // repeated double repeated_double = 22;
-  for (int i = 0, n = this->repeated_double_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteDouble(
-      22, this->repeated_double(i), output);
-  }
-
-  // repeated .tests.Enum repeated_enum = 23;
-  for (int i = 0, n = this->repeated_enum_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteEnum(
-      23, this->repeated_enum(i), output);
-  }
-
-  // repeated .tests.Nested repeated_nested = 24;
-  for (unsigned int i = 0, n = this->repeated_nested_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
-      24, this->repeated_nested(i), output);
-  }
-
-  // repeated string empty = 25;
-  for (int i = 0, n = this->empty_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->empty(i).data(), this->empty(i).length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Message.empty");
-    ::google::protobuf::internal::WireFormatLite::WriteString(
-      25, this->empty(i), output);
-  }
-
-  // required bool b = 26;
-  if (cached_has_bits & 0x00001000u) {
-    ::google::protobuf::internal::WireFormatLite::WriteBool(26, this->b(), output);
-  }
-
-  // repeated bool repeated_bool = 27;
-  for (int i = 0, n = this->repeated_bool_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormatLite::WriteBool(
-      27, this->repeated_bool(i), output);
-  }
-
-  // optional double optional_default = 28 [default = 42];
-  if (cached_has_bits & 0x00004000u) {
-    ::google::protobuf::internal::WireFormatLite::WriteDouble(28, this->optional_default(), output);
-  }
-
-  // optional double optional_no_default = 29;
-  if (cached_has_bits & 0x00000800u) {
-    ::google::protobuf::internal::WireFormatLite::WriteDouble(29, this->optional_no_default(), output);
-  }
-
-  if (_internal_metadata_.have_unknown_fields()) {
-    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
-        unknown_fields(), output);
-  }
-  // @@protoc_insertion_point(serialize_end:tests.Message)
-}
-
-::google::protobuf::uint8* Message::InternalSerializeWithCachedSizesToArray(
-    bool deterministic, ::google::protobuf::uint8* target) const {
-  // @@protoc_insertion_point(serialize_to_array_start:tests.Message)
-  ::google::protobuf::uint32 cached_has_bits = 0;
-  (void) cached_has_bits;
-
-  cached_has_bits = _has_bits_[0];
-  // required string str = 1;
-  if (cached_has_bits & 0x00000001u) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->str().data(), this->str().length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Message.str");
-    target =
-      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
-        1, this->str(), target);
-  }
-
-  // required bytes bytes = 2;
-  if (cached_has_bits & 0x00000002u) {
-    target =
-      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
-        2, this->bytes(), target);
-  }
-
-  // optional int32 int32 = 3;
-  if (cached_has_bits & 0x00000010u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->int32(), target);
-  }
-
-  // optional int64 int64 = 4;
-  if (cached_has_bits & 0x00000008u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->int64(), target);
-  }
-
-  // optional uint32 uint32 = 5;
-  if (cached_has_bits & 0x00000020u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->uint32(), target);
-  }
-
-  // optional uint64 uint64 = 6;
-  if (cached_has_bits & 0x00000040u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->uint64(), target);
-  }
-
-  // optional sint32 sint32 = 7;
-  if (cached_has_bits & 0x00000100u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(7, this->sint32(), target);
-  }
-
-  // optional sint64 sint64 = 8;
-  if (cached_has_bits & 0x00000080u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(8, this->sint64(), target);
-  }
-
-  // required float f = 9;
-  if (cached_has_bits & 0x00000200u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->f(), target);
-  }
-
-  // required double d = 10;
-  if (cached_has_bits & 0x00000400u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->d(), target);
-  }
-
-  // required .tests.Enum e = 11;
-  if (cached_has_bits & 0x00002000u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
-      11, this->e(), target);
-  }
-
-  // required .tests.Nested nested = 12;
-  if (cached_has_bits & 0x00000004u) {
-    target = ::google::protobuf::internal::WireFormatLite::
-      InternalWriteMessageNoVirtualToArray(
-        12, *this->nested_, deterministic, target);
-  }
-
-  // repeated string repeated_string = 13;
-  for (int i = 0, n = this->repeated_string_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->repeated_string(i).data(), this->repeated_string(i).length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Message.repeated_string");
-    target = ::google::protobuf::internal::WireFormatLite::
-      WriteStringToArray(13, this->repeated_string(i), target);
-  }
-
-  // repeated bytes repeated_bytes = 14;
-  for (int i = 0, n = this->repeated_bytes_size(); i < n; i++) {
-    target = ::google::protobuf::internal::WireFormatLite::
-      WriteBytesToArray(14, this->repeated_bytes(i), target);
-  }
-
-  // repeated int32 repeated_int32 = 15;
-  target = ::google::protobuf::internal::WireFormatLite::
-    WriteInt32ToArray(15, this->repeated_int32_, target);
-
-  // repeated int64 repeated_int64 = 16;
-  target = ::google::protobuf::internal::WireFormatLite::
-    WriteInt64ToArray(16, this->repeated_int64_, target);
-
-  // repeated uint32 repeated_uint32 = 17;
-  target = ::google::protobuf::internal::WireFormatLite::
-    WriteUInt32ToArray(17, this->repeated_uint32_, target);
-
-  // repeated uint64 repeated_uint64 = 18;
-  target = ::google::protobuf::internal::WireFormatLite::
-    WriteUInt64ToArray(18, this->repeated_uint64_, target);
-
-  // repeated sint32 repeated_sint32 = 19;
-  target = ::google::protobuf::internal::WireFormatLite::
-    WriteSInt32ToArray(19, this->repeated_sint32_, target);
-
-  // repeated sint64 repeated_sint64 = 20;
-  target = ::google::protobuf::internal::WireFormatLite::
-    WriteSInt64ToArray(20, this->repeated_sint64_, target);
-
-  // repeated float repeated_float = 21;
-  target = ::google::protobuf::internal::WireFormatLite::
-    WriteFloatToArray(21, this->repeated_float_, target);
-
-  // repeated double repeated_double = 22;
-  target = ::google::protobuf::internal::WireFormatLite::
-    WriteDoubleToArray(22, this->repeated_double_, target);
-
-  // repeated .tests.Enum repeated_enum = 23;
-  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
-    23, this->repeated_enum_, target);
-
-  // repeated .tests.Nested repeated_nested = 24;
-  for (unsigned int i = 0, n = this->repeated_nested_size(); i < n; i++) {
-    target = ::google::protobuf::internal::WireFormatLite::
-      InternalWriteMessageNoVirtualToArray(
-        24, this->repeated_nested(i), deterministic, target);
-  }
-
-  // repeated string empty = 25;
-  for (int i = 0, n = this->empty_size(); i < n; i++) {
-    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
-      this->empty(i).data(), this->empty(i).length(),
-      ::google::protobuf::internal::WireFormat::SERIALIZE,
-      "tests.Message.empty");
-    target = ::google::protobuf::internal::WireFormatLite::
-      WriteStringToArray(25, this->empty(i), target);
-  }
-
-  // required bool b = 26;
-  if (cached_has_bits & 0x00001000u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(26, this->b(), target);
-  }
-
-  // repeated bool repeated_bool = 27;
-  target = ::google::protobuf::internal::WireFormatLite::
-    WriteBoolToArray(27, this->repeated_bool_, target);
-
-  // optional double optional_default = 28 [default = 42];
-  if (cached_has_bits & 0x00004000u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(28, this->optional_default(), target);
-  }
-
-  // optional double optional_no_default = 29;
-  if (cached_has_bits & 0x00000800u) {
-    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(29, this->optional_no_default(), target);
-  }
-
-  if (_internal_metadata_.have_unknown_fields()) {
-    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
-        unknown_fields(), target);
-  }
-  // @@protoc_insertion_point(serialize_to_array_end:tests.Message)
-  return target;
-}
-
-size_t Message::RequiredFieldsByteSizeFallback() const {
-// @@protoc_insertion_point(required_fields_byte_size_fallback_start:tests.Message)
-  size_t total_size = 0;
-
-  if (has_str()) {
-    // required string str = 1;
-    total_size += 1 +
-      ::google::protobuf::internal::WireFormatLite::StringSize(
-        this->str());
-  }
-
-  if (has_bytes()) {
-    // required bytes bytes = 2;
-    total_size += 1 +
-      ::google::protobuf::internal::WireFormatLite::BytesSize(
-        this->bytes());
-  }
-
-  if (has_nested()) {
-    // required .tests.Nested nested = 12;
-    total_size += 1 +
-      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
-        *this->nested_);
-  }
-
-  if (has_f()) {
-    // required float f = 9;
-    total_size += 1 + 4;
-  }
-
-  if (has_d()) {
-    // requ

<TRUNCATED>