|
@@ -0,0 +1,6594 @@
|
|
|
+// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
+// source: simpletest.proto
|
|
|
+
|
|
|
+#include "simpletest.pb.h"
|
|
|
+
|
|
|
+#include <algorithm>
|
|
|
+
|
|
|
+#include <google/protobuf/stubs/common.h>
|
|
|
+#include <google/protobuf/stubs/port.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>
|
|
|
+// This is a temporary google only hack
|
|
|
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
|
|
|
+#include "third_party/protobuf/version.h"
|
|
|
+#endif
|
|
|
+// @@protoc_insertion_point(includes)
|
|
|
+
|
|
|
+namespace protobuf_simpletest_2eproto {
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_simpletest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SimpleStringMessage;
|
|
|
+extern PROTOBUF_INTERNAL_EXPORT_protobuf_simpletest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComplexMessage;
|
|
|
+} // namespace protobuf_simpletest_2eproto
|
|
|
+namespace qtprotobufnamespace {
|
|
|
+namespace tests {
|
|
|
+class SimpleEnumMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleEnumMessage>
|
|
|
+ _instance;
|
|
|
+} _SimpleEnumMessage_default_instance_;
|
|
|
+class SimpleFileEnumMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleFileEnumMessage>
|
|
|
+ _instance;
|
|
|
+} _SimpleFileEnumMessage_default_instance_;
|
|
|
+class SimpleBoolMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleBoolMessage>
|
|
|
+ _instance;
|
|
|
+} _SimpleBoolMessage_default_instance_;
|
|
|
+class SimpleIntMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleIntMessage>
|
|
|
+ _instance;
|
|
|
+} _SimpleIntMessage_default_instance_;
|
|
|
+class SimpleSIntMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleSIntMessage>
|
|
|
+ _instance;
|
|
|
+} _SimpleSIntMessage_default_instance_;
|
|
|
+class SimpleUIntMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleUIntMessage>
|
|
|
+ _instance;
|
|
|
+} _SimpleUIntMessage_default_instance_;
|
|
|
+class SimpleInt64MessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleInt64Message>
|
|
|
+ _instance;
|
|
|
+} _SimpleInt64Message_default_instance_;
|
|
|
+class SimpleSInt64MessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleSInt64Message>
|
|
|
+ _instance;
|
|
|
+} _SimpleSInt64Message_default_instance_;
|
|
|
+class SimpleUInt64MessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleUInt64Message>
|
|
|
+ _instance;
|
|
|
+} _SimpleUInt64Message_default_instance_;
|
|
|
+class SimpleStringMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleStringMessage>
|
|
|
+ _instance;
|
|
|
+} _SimpleStringMessage_default_instance_;
|
|
|
+class SimpleFloatMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleFloatMessage>
|
|
|
+ _instance;
|
|
|
+} _SimpleFloatMessage_default_instance_;
|
|
|
+class SimpleDoubleMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleDoubleMessage>
|
|
|
+ _instance;
|
|
|
+} _SimpleDoubleMessage_default_instance_;
|
|
|
+class SimpleBytesMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleBytesMessage>
|
|
|
+ _instance;
|
|
|
+} _SimpleBytesMessage_default_instance_;
|
|
|
+class SimpleFixedInt32MessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleFixedInt32Message>
|
|
|
+ _instance;
|
|
|
+} _SimpleFixedInt32Message_default_instance_;
|
|
|
+class SimpleFixedInt64MessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleFixedInt64Message>
|
|
|
+ _instance;
|
|
|
+} _SimpleFixedInt64Message_default_instance_;
|
|
|
+class SimpleSFixedInt32MessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleSFixedInt32Message>
|
|
|
+ _instance;
|
|
|
+} _SimpleSFixedInt32Message_default_instance_;
|
|
|
+class SimpleSFixedInt64MessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<SimpleSFixedInt64Message>
|
|
|
+ _instance;
|
|
|
+} _SimpleSFixedInt64Message_default_instance_;
|
|
|
+class ComplexMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<ComplexMessage>
|
|
|
+ _instance;
|
|
|
+} _ComplexMessage_default_instance_;
|
|
|
+class RepeatedIntMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<RepeatedIntMessage>
|
|
|
+ _instance;
|
|
|
+} _RepeatedIntMessage_default_instance_;
|
|
|
+class RepeatedStringMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<RepeatedStringMessage>
|
|
|
+ _instance;
|
|
|
+} _RepeatedStringMessage_default_instance_;
|
|
|
+class RepeatedDoubleMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<RepeatedDoubleMessage>
|
|
|
+ _instance;
|
|
|
+} _RepeatedDoubleMessage_default_instance_;
|
|
|
+class RepeatedBytesMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<RepeatedBytesMessage>
|
|
|
+ _instance;
|
|
|
+} _RepeatedBytesMessage_default_instance_;
|
|
|
+class RepeatedFloatMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<RepeatedFloatMessage>
|
|
|
+ _instance;
|
|
|
+} _RepeatedFloatMessage_default_instance_;
|
|
|
+class RepeatedComplexMessageDefaultTypeInternal {
|
|
|
+ public:
|
|
|
+ ::google::protobuf::internal::ExplicitlyConstructed<RepeatedComplexMessage>
|
|
|
+ _instance;
|
|
|
+} _RepeatedComplexMessage_default_instance_;
|
|
|
+} // namespace tests
|
|
|
+} // namespace qtprotobufnamespace
|
|
|
+namespace protobuf_simpletest_2eproto {
|
|
|
+static void InitDefaultsSimpleEnumMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleEnumMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleEnumMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleEnumMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleEnumMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleEnumMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleFileEnumMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleFileEnumMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleFileEnumMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleFileEnumMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleFileEnumMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleFileEnumMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleBoolMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleBoolMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleBoolMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleBoolMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleBoolMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleBoolMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleIntMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleIntMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleIntMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleIntMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleIntMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleIntMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleSIntMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleSIntMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleSIntMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleSIntMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleSIntMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleSIntMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleUIntMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleUIntMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleUIntMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleUIntMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleUIntMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleUIntMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleInt64Message() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleInt64Message_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleInt64Message();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleInt64Message::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleInt64Message =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleInt64Message}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleSInt64Message() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleSInt64Message_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleSInt64Message();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleSInt64Message::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleSInt64Message =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleSInt64Message}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleUInt64Message() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleUInt64Message_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleUInt64Message();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleUInt64Message::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleUInt64Message =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleUInt64Message}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleStringMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleStringMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleStringMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleStringMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleStringMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleStringMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleFloatMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleFloatMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleFloatMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleFloatMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleFloatMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleFloatMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleDoubleMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleDoubleMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleDoubleMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleDoubleMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleDoubleMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleDoubleMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleBytesMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleBytesMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleBytesMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleBytesMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleBytesMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleBytesMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleFixedInt32Message() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleFixedInt32Message_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleFixedInt32Message();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleFixedInt32Message::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleFixedInt32Message =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleFixedInt32Message}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleFixedInt64Message() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleFixedInt64Message_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleFixedInt64Message();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleFixedInt64Message::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleFixedInt64Message =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleFixedInt64Message}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleSFixedInt32Message() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleSFixedInt32Message_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleSFixedInt32Message();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleSFixedInt32Message::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleSFixedInt32Message =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleSFixedInt32Message}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsSimpleSFixedInt64Message() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_SimpleSFixedInt64Message_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::SimpleSFixedInt64Message();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::SimpleSFixedInt64Message::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_SimpleSFixedInt64Message =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSimpleSFixedInt64Message}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsComplexMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_ComplexMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::ComplexMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::ComplexMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<1> scc_info_ComplexMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComplexMessage}, {
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleStringMessage.base,}};
|
|
|
+
|
|
|
+static void InitDefaultsRepeatedIntMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_RepeatedIntMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::RepeatedIntMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::RepeatedIntMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_RepeatedIntMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRepeatedIntMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsRepeatedStringMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_RepeatedStringMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::RepeatedStringMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::RepeatedStringMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_RepeatedStringMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRepeatedStringMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsRepeatedDoubleMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_RepeatedDoubleMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::RepeatedDoubleMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::RepeatedDoubleMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_RepeatedDoubleMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRepeatedDoubleMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsRepeatedBytesMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_RepeatedBytesMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::RepeatedBytesMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::RepeatedBytesMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_RepeatedBytesMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRepeatedBytesMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsRepeatedFloatMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_RepeatedFloatMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::RepeatedFloatMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::RepeatedFloatMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<0> scc_info_RepeatedFloatMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRepeatedFloatMessage}, {}};
|
|
|
+
|
|
|
+static void InitDefaultsRepeatedComplexMessage() {
|
|
|
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
+
|
|
|
+ {
|
|
|
+ void* ptr = &::qtprotobufnamespace::tests::_RepeatedComplexMessage_default_instance_;
|
|
|
+ new (ptr) ::qtprotobufnamespace::tests::RepeatedComplexMessage();
|
|
|
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
|
|
|
+ }
|
|
|
+ ::qtprotobufnamespace::tests::RepeatedComplexMessage::InitAsDefaultInstance();
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::internal::SCCInfo<1> scc_info_RepeatedComplexMessage =
|
|
|
+ {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRepeatedComplexMessage}, {
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_ComplexMessage.base,}};
|
|
|
+
|
|
|
+void InitDefaults() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleEnumMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleFileEnumMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleBoolMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleIntMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleSIntMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleUIntMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleInt64Message.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleSInt64Message.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleUInt64Message.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleStringMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleFloatMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleDoubleMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleBytesMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleFixedInt32Message.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleFixedInt64Message.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleSFixedInt32Message.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_SimpleSFixedInt64Message.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_ComplexMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_RepeatedIntMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_RepeatedStringMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_RepeatedDoubleMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_RepeatedBytesMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_RepeatedFloatMessage.base);
|
|
|
+ ::google::protobuf::internal::InitSCC(&scc_info_RepeatedComplexMessage.base);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata file_level_metadata[24];
|
|
|
+const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
|
|
|
+
|
|
|
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleEnumMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleEnumMessage, localenum_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleEnumMessage, localenumlist_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFileEnumMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFileEnumMessage, globalenum_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFileEnumMessage, globalenumlist_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleBoolMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleBoolMessage, testfieldbool_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleIntMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleIntMessage, testfieldint_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSIntMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSIntMessage, testfieldint_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleUIntMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleUIntMessage, testfieldint_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleInt64Message, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleInt64Message, testfieldint_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSInt64Message, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSInt64Message, testfieldint_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleUInt64Message, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleUInt64Message, testfieldint_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleStringMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleStringMessage, testfieldstring_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFloatMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFloatMessage, testfieldfloat_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleDoubleMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleDoubleMessage, testfielddouble_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleBytesMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleBytesMessage, testfieldbytes_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFixedInt32Message, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFixedInt32Message, testfieldfixedint32_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFixedInt64Message, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleFixedInt64Message, testfieldfixedint64_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSFixedInt32Message, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSFixedInt32Message, testfieldfixedint32_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSFixedInt64Message, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::SimpleSFixedInt64Message, testfieldfixedint64_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::ComplexMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::ComplexMessage, testfieldint_),
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::ComplexMessage, testcomplexfield_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedIntMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedIntMessage, testrepeatedint_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedStringMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedStringMessage, testrepeatedstring_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedDoubleMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedDoubleMessage, testrepeateddouble_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedBytesMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedBytesMessage, testrepeatedbytes_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedFloatMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedFloatMessage, testrepeatedfloat_),
|
|
|
+ ~0u, // no _has_bits_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedComplexMessage, _internal_metadata_),
|
|
|
+ ~0u, // no _extensions_
|
|
|
+ ~0u, // no _oneof_case_
|
|
|
+ ~0u, // no _weak_field_map_
|
|
|
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::qtprotobufnamespace::tests::RepeatedComplexMessage, testrepeatedcomplex_),
|
|
|
+};
|
|
|
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
+ { 0, -1, sizeof(::qtprotobufnamespace::tests::SimpleEnumMessage)},
|
|
|
+ { 7, -1, sizeof(::qtprotobufnamespace::tests::SimpleFileEnumMessage)},
|
|
|
+ { 14, -1, sizeof(::qtprotobufnamespace::tests::SimpleBoolMessage)},
|
|
|
+ { 20, -1, sizeof(::qtprotobufnamespace::tests::SimpleIntMessage)},
|
|
|
+ { 26, -1, sizeof(::qtprotobufnamespace::tests::SimpleSIntMessage)},
|
|
|
+ { 32, -1, sizeof(::qtprotobufnamespace::tests::SimpleUIntMessage)},
|
|
|
+ { 38, -1, sizeof(::qtprotobufnamespace::tests::SimpleInt64Message)},
|
|
|
+ { 44, -1, sizeof(::qtprotobufnamespace::tests::SimpleSInt64Message)},
|
|
|
+ { 50, -1, sizeof(::qtprotobufnamespace::tests::SimpleUInt64Message)},
|
|
|
+ { 56, -1, sizeof(::qtprotobufnamespace::tests::SimpleStringMessage)},
|
|
|
+ { 62, -1, sizeof(::qtprotobufnamespace::tests::SimpleFloatMessage)},
|
|
|
+ { 68, -1, sizeof(::qtprotobufnamespace::tests::SimpleDoubleMessage)},
|
|
|
+ { 74, -1, sizeof(::qtprotobufnamespace::tests::SimpleBytesMessage)},
|
|
|
+ { 80, -1, sizeof(::qtprotobufnamespace::tests::SimpleFixedInt32Message)},
|
|
|
+ { 86, -1, sizeof(::qtprotobufnamespace::tests::SimpleFixedInt64Message)},
|
|
|
+ { 92, -1, sizeof(::qtprotobufnamespace::tests::SimpleSFixedInt32Message)},
|
|
|
+ { 98, -1, sizeof(::qtprotobufnamespace::tests::SimpleSFixedInt64Message)},
|
|
|
+ { 104, -1, sizeof(::qtprotobufnamespace::tests::ComplexMessage)},
|
|
|
+ { 111, -1, sizeof(::qtprotobufnamespace::tests::RepeatedIntMessage)},
|
|
|
+ { 117, -1, sizeof(::qtprotobufnamespace::tests::RepeatedStringMessage)},
|
|
|
+ { 123, -1, sizeof(::qtprotobufnamespace::tests::RepeatedDoubleMessage)},
|
|
|
+ { 129, -1, sizeof(::qtprotobufnamespace::tests::RepeatedBytesMessage)},
|
|
|
+ { 135, -1, sizeof(::qtprotobufnamespace::tests::RepeatedFloatMessage)},
|
|
|
+ { 141, -1, sizeof(::qtprotobufnamespace::tests::RepeatedComplexMessage)},
|
|
|
+};
|
|
|
+
|
|
|
+static ::google::protobuf::Message const * const file_default_instances[] = {
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleEnumMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleFileEnumMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleBoolMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleIntMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleSIntMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleUIntMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleInt64Message_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleSInt64Message_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleUInt64Message_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleStringMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleFloatMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleDoubleMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleBytesMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleFixedInt32Message_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleFixedInt64Message_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleSFixedInt32Message_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_SimpleSFixedInt64Message_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_ComplexMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedIntMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedStringMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedDoubleMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedBytesMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedFloatMessage_default_instance_),
|
|
|
+ reinterpret_cast<const ::google::protobuf::Message*>(&::qtprotobufnamespace::tests::_RepeatedComplexMessage_default_instance_),
|
|
|
+};
|
|
|
+
|
|
|
+void protobuf_AssignDescriptors() {
|
|
|
+ AddDescriptors();
|
|
|
+ AssignDescriptors(
|
|
|
+ "simpletest.proto", schemas, file_default_instances, TableStruct::offsets,
|
|
|
+ file_level_metadata, file_level_enum_descriptors, NULL);
|
|
|
+}
|
|
|
+
|
|
|
+void protobuf_AssignDescriptorsOnce() {
|
|
|
+ static ::google::protobuf::internal::once_flag once;
|
|
|
+ ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
|
|
|
+}
|
|
|
+
|
|
|
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
|
|
|
+void protobuf_RegisterTypes(const ::std::string&) {
|
|
|
+ protobuf_AssignDescriptorsOnce();
|
|
|
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 24);
|
|
|
+}
|
|
|
+
|
|
|
+void AddDescriptorsImpl() {
|
|
|
+ InitDefaults();
|
|
|
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
|
|
|
+ "\n\020simpletest.proto\022\031qtprotobufnamespace."
|
|
|
+ "tests\"\226\002\n\021SimpleEnumMessage\022I\n\tlocalEnum"
|
|
|
+ "\030\001 \001(\01626.qtprotobufnamespace.tests.Simpl"
|
|
|
+ "eEnumMessage.LocalEnum\022M\n\rlocalEnumList\030"
|
|
|
+ "\002 \003(\01626.qtprotobufnamespace.tests.Simple"
|
|
|
+ "EnumMessage.LocalEnum\"g\n\tLocalEnum\022\025\n\021LO"
|
|
|
+ "CAL_ENUM_VALUE0\020\000\022\025\n\021LOCAL_ENUM_VALUE1\020\001"
|
|
|
+ "\022\025\n\021LOCAL_ENUM_VALUE2\020\002\022\025\n\021LOCAL_ENUM_VA"
|
|
|
+ "LUE3\020\003\"\215\001\n\025SimpleFileEnumMessage\0227\n\nglob"
|
|
|
+ "alEnum\030\001 \001(\0162#.qtprotobufnamespace.tests"
|
|
|
+ ".TestEnum\022;\n\016globalEnumList\030\002 \003(\0162#.qtpr"
|
|
|
+ "otobufnamespace.tests.TestEnum\"*\n\021Simple"
|
|
|
+ "BoolMessage\022\025\n\rtestFieldBool\030\001 \001(\010\"(\n\020Si"
|
|
|
+ "mpleIntMessage\022\024\n\014testFieldInt\030\001 \001(\005\")\n\021"
|
|
|
+ "SimpleSIntMessage\022\024\n\014testFieldInt\030\001 \001(\021\""
|
|
|
+ ")\n\021SimpleUIntMessage\022\024\n\014testFieldInt\030\001 \001"
|
|
|
+ "(\r\"*\n\022SimpleInt64Message\022\024\n\014testFieldInt"
|
|
|
+ "\030\001 \001(\003\"+\n\023SimpleSInt64Message\022\024\n\014testFie"
|
|
|
+ "ldInt\030\001 \001(\022\"+\n\023SimpleUInt64Message\022\024\n\014te"
|
|
|
+ "stFieldInt\030\001 \001(\004\".\n\023SimpleStringMessage\022"
|
|
|
+ "\027\n\017testFieldString\030\006 \001(\t\",\n\022SimpleFloatM"
|
|
|
+ "essage\022\026\n\016testFieldFloat\030\007 \001(\002\".\n\023Simple"
|
|
|
+ "DoubleMessage\022\027\n\017testFieldDouble\030\010 \001(\001\","
|
|
|
+ "\n\022SimpleBytesMessage\022\026\n\016testFieldBytes\030\001"
|
|
|
+ " \001(\014\"6\n\027SimpleFixedInt32Message\022\033\n\023testF"
|
|
|
+ "ieldFixedInt32\030\001 \001(\007\"6\n\027SimpleFixedInt64"
|
|
|
+ "Message\022\033\n\023testFieldFixedInt64\030\001 \001(\006\"7\n\030"
|
|
|
+ "SimpleSFixedInt32Message\022\033\n\023testFieldFix"
|
|
|
+ "edInt32\030\001 \001(\017\"7\n\030SimpleSFixedInt64Messag"
|
|
|
+ "e\022\033\n\023testFieldFixedInt64\030\001 \001(\020\"p\n\016Comple"
|
|
|
+ "xMessage\022\024\n\014testFieldInt\030\001 \001(\005\022H\n\020testCo"
|
|
|
+ "mplexField\030\002 \001(\0132..qtprotobufnamespace.t"
|
|
|
+ "ests.SimpleStringMessage\"-\n\022RepeatedIntM"
|
|
|
+ "essage\022\027\n\017testRepeatedInt\030\001 \003(\021\"3\n\025Repea"
|
|
|
+ "tedStringMessage\022\032\n\022testRepeatedString\030\001"
|
|
|
+ " \003(\t\"3\n\025RepeatedDoubleMessage\022\032\n\022testRep"
|
|
|
+ "eatedDouble\030\001 \003(\001\"1\n\024RepeatedBytesMessag"
|
|
|
+ "e\022\031\n\021testRepeatedBytes\030\001 \003(\014\"1\n\024Repeated"
|
|
|
+ "FloatMessage\022\031\n\021testRepeatedFloat\030\001 \003(\002\""
|
|
|
+ "`\n\026RepeatedComplexMessage\022F\n\023testRepeate"
|
|
|
+ "dComplex\030\001 \003(\0132).qtprotobufnamespace.tes"
|
|
|
+ "ts.ComplexMessage*x\n\010TestEnum\022\024\n\020TEST_EN"
|
|
|
+ "UM_VALUE0\020\000\022\024\n\020TEST_ENUM_VALUE1\020\001\022\024\n\020TES"
|
|
|
+ "T_ENUM_VALUE2\020\002\022\024\n\020TEST_ENUM_VALUE3\020\004\022\024\n"
|
|
|
+ "\020TEST_ENUM_VALUE4\020\003b\006proto3"
|
|
|
+ };
|
|
|
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
|
|
+ descriptor, 1787);
|
|
|
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
|
|
+ "simpletest.proto", &protobuf_RegisterTypes);
|
|
|
+}
|
|
|
+
|
|
|
+void AddDescriptors() {
|
|
|
+ static ::google::protobuf::internal::once_flag once;
|
|
|
+ ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
|
|
|
+}
|
|
|
+// Force AddDescriptors() to be called at dynamic initialization time.
|
|
|
+struct StaticDescriptorInitializer {
|
|
|
+ StaticDescriptorInitializer() {
|
|
|
+ AddDescriptors();
|
|
|
+ }
|
|
|
+} static_descriptor_initializer;
|
|
|
+} // namespace protobuf_simpletest_2eproto
|
|
|
+namespace qtprotobufnamespace {
|
|
|
+namespace tests {
|
|
|
+const ::google::protobuf::EnumDescriptor* SimpleEnumMessage_LocalEnum_descriptor() {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return protobuf_simpletest_2eproto::file_level_enum_descriptors[0];
|
|
|
+}
|
|
|
+bool SimpleEnumMessage_LocalEnum_IsValid(int value) {
|
|
|
+ switch (value) {
|
|
|
+ case 0:
|
|
|
+ case 1:
|
|
|
+ case 2:
|
|
|
+ case 3:
|
|
|
+ return true;
|
|
|
+ default:
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LOCAL_ENUM_VALUE0;
|
|
|
+const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LOCAL_ENUM_VALUE1;
|
|
|
+const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LOCAL_ENUM_VALUE2;
|
|
|
+const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LOCAL_ENUM_VALUE3;
|
|
|
+const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LocalEnum_MIN;
|
|
|
+const SimpleEnumMessage_LocalEnum SimpleEnumMessage::LocalEnum_MAX;
|
|
|
+const int SimpleEnumMessage::LocalEnum_ARRAYSIZE;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const ::google::protobuf::EnumDescriptor* TestEnum_descriptor() {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return protobuf_simpletest_2eproto::file_level_enum_descriptors[1];
|
|
|
+}
|
|
|
+bool TestEnum_IsValid(int value) {
|
|
|
+ switch (value) {
|
|
|
+ case 0:
|
|
|
+ case 1:
|
|
|
+ case 2:
|
|
|
+ case 3:
|
|
|
+ case 4:
|
|
|
+ return true;
|
|
|
+ default:
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleEnumMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleEnumMessage::kLocalEnumFieldNumber;
|
|
|
+const int SimpleEnumMessage::kLocalEnumListFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleEnumMessage::SimpleEnumMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleEnumMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+}
|
|
|
+SimpleEnumMessage::SimpleEnumMessage(const SimpleEnumMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ localenumlist_(from.localenumlist_) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ localenum_ = from.localenum_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleEnumMessage::SharedCtor() {
|
|
|
+ localenum_ = 0;
|
|
|
+}
|
|
|
+
|
|
|
+SimpleEnumMessage::~SimpleEnumMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleEnumMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleEnumMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleEnumMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleEnumMessage& SimpleEnumMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleEnumMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleEnumMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ localenumlist_.Clear();
|
|
|
+ localenum_ = 0;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleEnumMessage::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:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ 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)) {
|
|
|
+ // .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnum = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ set_localenum(static_cast< ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum >(value));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnumList = 2;
|
|
|
+ case 2: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
+ ::google::protobuf::uint32 length;
|
|
|
+ DO_(input->ReadVarint32(&length));
|
|
|
+ ::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(static_cast<int>(length));
|
|
|
+ while (input->BytesUntilLimit() > 0) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ add_localenumlist(static_cast< ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum >(value));
|
|
|
+ }
|
|
|
+ input->PopLimit(limit);
|
|
|
+ } else if (
|
|
|
+ static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ add_localenumlist(static_cast< ::qtprotobufnamespace::tests::SimpleEnumMessage_LocalEnum >(value));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleEnumMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnum = 1;
|
|
|
+ if (this->localenum() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
+ 1, this->localenum(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnumList = 2;
|
|
|
+ if (this->localenumlist_size() > 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteTag(
|
|
|
+ 2,
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
|
+ output);
|
|
|
+ output->WriteVarint32(
|
|
|
+ static_cast< ::google::protobuf::uint32>(_localenumlist_cached_byte_size_));
|
|
|
+ }
|
|
|
+ for (int i = 0, n = this->localenumlist_size(); i < n; i++) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteEnumNoTag(
|
|
|
+ this->localenumlist(i), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleEnumMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnum = 1;
|
|
|
+ if (this->localenum() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
+ 1, this->localenum(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnumList = 2;
|
|
|
+ if (this->localenumlist_size() > 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
|
|
|
+ 2,
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
|
+ target);
|
|
|
+ target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::uint32>(
|
|
|
+ _localenumlist_cached_byte_size_), target);
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray(
|
|
|
+ this->localenumlist_, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleEnumMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // repeated .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnumList = 2;
|
|
|
+ {
|
|
|
+ size_t data_size = 0;
|
|
|
+ unsigned int count = static_cast<unsigned int>(this->localenumlist_size());for (unsigned int i = 0; i < count; i++) {
|
|
|
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
|
|
|
+ this->localenumlist(static_cast<int>(i)));
|
|
|
+ }
|
|
|
+ if (data_size > 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ static_cast< ::google::protobuf::int32>(data_size));
|
|
|
+ }
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _localenumlist_cached_byte_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ total_size += data_size;
|
|
|
+ }
|
|
|
+
|
|
|
+ // .qtprotobufnamespace.tests.SimpleEnumMessage.LocalEnum localEnum = 1;
|
|
|
+ if (this->localenum() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->localenum());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleEnumMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleEnumMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleEnumMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleEnumMessage::MergeFrom(const SimpleEnumMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ localenumlist_.MergeFrom(from.localenumlist_);
|
|
|
+ if (from.localenum() != 0) {
|
|
|
+ set_localenum(from.localenum());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleEnumMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleEnumMessage::CopyFrom(const SimpleEnumMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleEnumMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleEnumMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleEnumMessage::Swap(SimpleEnumMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleEnumMessage::InternalSwap(SimpleEnumMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ localenumlist_.InternalSwap(&other->localenumlist_);
|
|
|
+ swap(localenum_, other->localenum_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleEnumMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleFileEnumMessage::kGlobalEnumFieldNumber;
|
|
|
+const int SimpleFileEnumMessage::kGlobalEnumListFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleFileEnumMessage::SimpleFileEnumMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleFileEnumMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+}
|
|
|
+SimpleFileEnumMessage::SimpleFileEnumMessage(const SimpleFileEnumMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ globalenumlist_(from.globalenumlist_) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ globalenum_ = from.globalenum_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::SharedCtor() {
|
|
|
+ globalenum_ = 0;
|
|
|
+}
|
|
|
+
|
|
|
+SimpleFileEnumMessage::~SimpleFileEnumMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleFileEnumMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleFileEnumMessage& SimpleFileEnumMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleFileEnumMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ globalenumlist_.Clear();
|
|
|
+ globalenum_ = 0;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleFileEnumMessage::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:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ 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)) {
|
|
|
+ // .qtprotobufnamespace.tests.TestEnum globalEnum = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ set_globalenum(static_cast< ::qtprotobufnamespace::tests::TestEnum >(value));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .qtprotobufnamespace.tests.TestEnum globalEnumList = 2;
|
|
|
+ case 2: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
+ ::google::protobuf::uint32 length;
|
|
|
+ DO_(input->ReadVarint32(&length));
|
|
|
+ ::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(static_cast<int>(length));
|
|
|
+ while (input->BytesUntilLimit() > 0) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ add_globalenumlist(static_cast< ::qtprotobufnamespace::tests::TestEnum >(value));
|
|
|
+ }
|
|
|
+ input->PopLimit(limit);
|
|
|
+ } else if (
|
|
|
+ static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
|
|
|
+ int value;
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
|
|
|
+ input, &value)));
|
|
|
+ add_globalenumlist(static_cast< ::qtprotobufnamespace::tests::TestEnum >(value));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // .qtprotobufnamespace.tests.TestEnum globalEnum = 1;
|
|
|
+ if (this->globalenum() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteEnum(
|
|
|
+ 1, this->globalenum(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .qtprotobufnamespace.tests.TestEnum globalEnumList = 2;
|
|
|
+ if (this->globalenumlist_size() > 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteTag(
|
|
|
+ 2,
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
|
+ output);
|
|
|
+ output->WriteVarint32(
|
|
|
+ static_cast< ::google::protobuf::uint32>(_globalenumlist_cached_byte_size_));
|
|
|
+ }
|
|
|
+ for (int i = 0, n = this->globalenumlist_size(); i < n; i++) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteEnumNoTag(
|
|
|
+ this->globalenumlist(i), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleFileEnumMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // .qtprotobufnamespace.tests.TestEnum globalEnum = 1;
|
|
|
+ if (this->globalenum() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
|
|
|
+ 1, this->globalenum(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // repeated .qtprotobufnamespace.tests.TestEnum globalEnumList = 2;
|
|
|
+ if (this->globalenumlist_size() > 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
|
|
|
+ 2,
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
|
+ target);
|
|
|
+ target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::uint32>(
|
|
|
+ _globalenumlist_cached_byte_size_), target);
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray(
|
|
|
+ this->globalenumlist_, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleFileEnumMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // repeated .qtprotobufnamespace.tests.TestEnum globalEnumList = 2;
|
|
|
+ {
|
|
|
+ size_t data_size = 0;
|
|
|
+ unsigned int count = static_cast<unsigned int>(this->globalenumlist_size());for (unsigned int i = 0; i < count; i++) {
|
|
|
+ data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
|
|
|
+ this->globalenumlist(static_cast<int>(i)));
|
|
|
+ }
|
|
|
+ if (data_size > 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ static_cast< ::google::protobuf::int32>(data_size));
|
|
|
+ }
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _globalenumlist_cached_byte_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ total_size += data_size;
|
|
|
+ }
|
|
|
+
|
|
|
+ // .qtprotobufnamespace.tests.TestEnum globalEnum = 1;
|
|
|
+ if (this->globalenum() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->globalenum());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleFileEnumMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleFileEnumMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::MergeFrom(const SimpleFileEnumMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ globalenumlist_.MergeFrom(from.globalenumlist_);
|
|
|
+ if (from.globalenum() != 0) {
|
|
|
+ set_globalenum(from.globalenum());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::CopyFrom(const SimpleFileEnumMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleFileEnumMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleFileEnumMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFileEnumMessage::Swap(SimpleFileEnumMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleFileEnumMessage::InternalSwap(SimpleFileEnumMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ globalenumlist_.InternalSwap(&other->globalenumlist_);
|
|
|
+ swap(globalenum_, other->globalenum_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleFileEnumMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleBoolMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleBoolMessage::kTestFieldBoolFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleBoolMessage::SimpleBoolMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleBoolMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+}
|
|
|
+SimpleBoolMessage::SimpleBoolMessage(const SimpleBoolMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldbool_ = from.testfieldbool_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBoolMessage::SharedCtor() {
|
|
|
+ testfieldbool_ = false;
|
|
|
+}
|
|
|
+
|
|
|
+SimpleBoolMessage::~SimpleBoolMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBoolMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBoolMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleBoolMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleBoolMessage& SimpleBoolMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleBoolMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleBoolMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldbool_ = false;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleBoolMessage::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:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ 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)) {
|
|
|
+ // bool testFieldBool = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
|
|
|
+ input, &testfieldbool_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBoolMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // bool testFieldBool = 1;
|
|
|
+ if (this->testfieldbool() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->testfieldbool(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleBoolMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // bool testFieldBool = 1;
|
|
|
+ if (this->testfieldbool() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->testfieldbool(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleBoolMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // bool testFieldBool = 1;
|
|
|
+ if (this->testfieldbool() != 0) {
|
|
|
+ total_size += 1 + 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBoolMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleBoolMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleBoolMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBoolMessage::MergeFrom(const SimpleBoolMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldbool() != 0) {
|
|
|
+ set_testfieldbool(from.testfieldbool());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBoolMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBoolMessage::CopyFrom(const SimpleBoolMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleBoolMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleBoolMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBoolMessage::Swap(SimpleBoolMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleBoolMessage::InternalSwap(SimpleBoolMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldbool_, other->testfieldbool_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleBoolMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleIntMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleIntMessage::kTestFieldIntFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleIntMessage::SimpleIntMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleIntMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+}
|
|
|
+SimpleIntMessage::SimpleIntMessage(const SimpleIntMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldint_ = from.testfieldint_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleIntMessage::SharedCtor() {
|
|
|
+ testfieldint_ = 0;
|
|
|
+}
|
|
|
+
|
|
|
+SimpleIntMessage::~SimpleIntMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleIntMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleIntMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleIntMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleIntMessage& SimpleIntMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleIntMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleIntMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldint_ = 0;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleIntMessage::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:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ 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)) {
|
|
|
+ // int32 testFieldInt = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
|
+ input, &testfieldint_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleIntMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // int32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->testfieldint(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleIntMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // int32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->testfieldint(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleIntMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // int32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ this->testfieldint());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleIntMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleIntMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleIntMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleIntMessage::MergeFrom(const SimpleIntMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldint() != 0) {
|
|
|
+ set_testfieldint(from.testfieldint());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleIntMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleIntMessage::CopyFrom(const SimpleIntMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleIntMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleIntMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleIntMessage::Swap(SimpleIntMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleIntMessage::InternalSwap(SimpleIntMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldint_, other->testfieldint_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleIntMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleSIntMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleSIntMessage::kTestFieldIntFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleSIntMessage::SimpleSIntMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleSIntMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+}
|
|
|
+SimpleSIntMessage::SimpleSIntMessage(const SimpleSIntMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldint_ = from.testfieldint_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSIntMessage::SharedCtor() {
|
|
|
+ testfieldint_ = 0;
|
|
|
+}
|
|
|
+
|
|
|
+SimpleSIntMessage::~SimpleSIntMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSIntMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSIntMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleSIntMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleSIntMessage& SimpleSIntMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleSIntMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleSIntMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldint_ = 0;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleSIntMessage::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:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ 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)) {
|
|
|
+ // sint32 testFieldInt = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
|
|
|
+ input, &testfieldint_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSIntMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // sint32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteSInt32(1, this->testfieldint(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleSIntMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // sint32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(1, this->testfieldint(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleSIntMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // sint32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::SInt32Size(
|
|
|
+ this->testfieldint());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSIntMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleSIntMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleSIntMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSIntMessage::MergeFrom(const SimpleSIntMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldint() != 0) {
|
|
|
+ set_testfieldint(from.testfieldint());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSIntMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSIntMessage::CopyFrom(const SimpleSIntMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleSIntMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleSIntMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSIntMessage::Swap(SimpleSIntMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleSIntMessage::InternalSwap(SimpleSIntMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldint_, other->testfieldint_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleSIntMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleUIntMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleUIntMessage::kTestFieldIntFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleUIntMessage::SimpleUIntMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleUIntMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+}
|
|
|
+SimpleUIntMessage::SimpleUIntMessage(const SimpleUIntMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldint_ = from.testfieldint_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUIntMessage::SharedCtor() {
|
|
|
+ testfieldint_ = 0u;
|
|
|
+}
|
|
|
+
|
|
|
+SimpleUIntMessage::~SimpleUIntMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUIntMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUIntMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleUIntMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleUIntMessage& SimpleUIntMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleUIntMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleUIntMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldint_ = 0u;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleUIntMessage::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:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ 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)) {
|
|
|
+ // uint32 testFieldInt = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
|
|
|
+ input, &testfieldint_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUIntMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // uint32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->testfieldint(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleUIntMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // uint32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->testfieldint(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleUIntMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // uint32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::UInt32Size(
|
|
|
+ this->testfieldint());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUIntMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleUIntMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleUIntMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUIntMessage::MergeFrom(const SimpleUIntMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldint() != 0) {
|
|
|
+ set_testfieldint(from.testfieldint());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUIntMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUIntMessage::CopyFrom(const SimpleUIntMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleUIntMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleUIntMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUIntMessage::Swap(SimpleUIntMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleUIntMessage::InternalSwap(SimpleUIntMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldint_, other->testfieldint_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleUIntMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleInt64Message::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleInt64Message::kTestFieldIntFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleInt64Message::SimpleInt64Message()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleInt64Message.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+}
|
|
|
+SimpleInt64Message::SimpleInt64Message(const SimpleInt64Message& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldint_ = from.testfieldint_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleInt64Message::SharedCtor() {
|
|
|
+ testfieldint_ = GOOGLE_LONGLONG(0);
|
|
|
+}
|
|
|
+
|
|
|
+SimpleInt64Message::~SimpleInt64Message() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleInt64Message::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleInt64Message::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleInt64Message::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleInt64Message& SimpleInt64Message::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleInt64Message.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleInt64Message::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldint_ = GOOGLE_LONGLONG(0);
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleInt64Message::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:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ 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)) {
|
|
|
+ // int64 testFieldInt = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
|
|
|
+ input, &testfieldint_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleInt64Message::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // int64 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->testfieldint(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleInt64Message::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // int64 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->testfieldint(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleInt64Message::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // int64 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int64Size(
|
|
|
+ this->testfieldint());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleInt64Message::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleInt64Message* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleInt64Message>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleInt64Message::MergeFrom(const SimpleInt64Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldint() != 0) {
|
|
|
+ set_testfieldint(from.testfieldint());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleInt64Message::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleInt64Message::CopyFrom(const SimpleInt64Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleInt64Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleInt64Message::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleInt64Message::Swap(SimpleInt64Message* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleInt64Message::InternalSwap(SimpleInt64Message* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldint_, other->testfieldint_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleInt64Message::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleSInt64Message::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleSInt64Message::kTestFieldIntFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleSInt64Message::SimpleSInt64Message()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleSInt64Message.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+}
|
|
|
+SimpleSInt64Message::SimpleSInt64Message(const SimpleSInt64Message& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldint_ = from.testfieldint_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSInt64Message::SharedCtor() {
|
|
|
+ testfieldint_ = GOOGLE_LONGLONG(0);
|
|
|
+}
|
|
|
+
|
|
|
+SimpleSInt64Message::~SimpleSInt64Message() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSInt64Message::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSInt64Message::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleSInt64Message::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleSInt64Message& SimpleSInt64Message::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleSInt64Message.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleSInt64Message::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldint_ = GOOGLE_LONGLONG(0);
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleSInt64Message::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:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ 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)) {
|
|
|
+ // sint64 testFieldInt = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
|
|
|
+ input, &testfieldint_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSInt64Message::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // sint64 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteSInt64(1, this->testfieldint(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleSInt64Message::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // sint64 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(1, this->testfieldint(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleSInt64Message::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // sint64 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::SInt64Size(
|
|
|
+ this->testfieldint());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSInt64Message::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleSInt64Message* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleSInt64Message>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSInt64Message::MergeFrom(const SimpleSInt64Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldint() != 0) {
|
|
|
+ set_testfieldint(from.testfieldint());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSInt64Message::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSInt64Message::CopyFrom(const SimpleSInt64Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleSInt64Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleSInt64Message::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSInt64Message::Swap(SimpleSInt64Message* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleSInt64Message::InternalSwap(SimpleSInt64Message* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldint_, other->testfieldint_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleSInt64Message::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleUInt64Message::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleUInt64Message::kTestFieldIntFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleUInt64Message::SimpleUInt64Message()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleUInt64Message.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+}
|
|
|
+SimpleUInt64Message::SimpleUInt64Message(const SimpleUInt64Message& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldint_ = from.testfieldint_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUInt64Message::SharedCtor() {
|
|
|
+ testfieldint_ = GOOGLE_ULONGLONG(0);
|
|
|
+}
|
|
|
+
|
|
|
+SimpleUInt64Message::~SimpleUInt64Message() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUInt64Message::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUInt64Message::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleUInt64Message::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleUInt64Message& SimpleUInt64Message::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleUInt64Message.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleUInt64Message::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldint_ = GOOGLE_ULONGLONG(0);
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleUInt64Message::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:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ 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)) {
|
|
|
+ // uint64 testFieldInt = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
|
|
|
+ input, &testfieldint_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUInt64Message::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // uint64 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->testfieldint(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleUInt64Message::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // uint64 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->testfieldint(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleUInt64Message::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // uint64 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::UInt64Size(
|
|
|
+ this->testfieldint());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUInt64Message::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleUInt64Message* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleUInt64Message>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUInt64Message::MergeFrom(const SimpleUInt64Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldint() != 0) {
|
|
|
+ set_testfieldint(from.testfieldint());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUInt64Message::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUInt64Message::CopyFrom(const SimpleUInt64Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleUInt64Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleUInt64Message::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleUInt64Message::Swap(SimpleUInt64Message* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleUInt64Message::InternalSwap(SimpleUInt64Message* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldint_, other->testfieldint_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleUInt64Message::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleStringMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleStringMessage::kTestFieldStringFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleStringMessage::SimpleStringMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleStringMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+}
|
|
|
+SimpleStringMessage::SimpleStringMessage(const SimpleStringMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldstring_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (from.testfieldstring().size() > 0) {
|
|
|
+ testfieldstring_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.testfieldstring_);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleStringMessage::SharedCtor() {
|
|
|
+ testfieldstring_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+}
|
|
|
+
|
|
|
+SimpleStringMessage::~SimpleStringMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleStringMessage::SharedDtor() {
|
|
|
+ testfieldstring_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleStringMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleStringMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleStringMessage& SimpleStringMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleStringMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleStringMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldstring_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleStringMessage::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:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ 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)) {
|
|
|
+ // string testFieldString = 6;
|
|
|
+ case 6: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
+ input, this->mutable_testfieldstring()));
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
+ this->testfieldstring().data(), static_cast<int>(this->testfieldstring().length()),
|
|
|
+ ::google::protobuf::internal::WireFormatLite::PARSE,
|
|
|
+ "qtprotobufnamespace.tests.SimpleStringMessage.testFieldString"));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleStringMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // string testFieldString = 6;
|
|
|
+ if (this->testfieldstring().size() > 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
+ this->testfieldstring().data(), static_cast<int>(this->testfieldstring().length()),
|
|
|
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
+ "qtprotobufnamespace.tests.SimpleStringMessage.testFieldString");
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
|
|
|
+ 6, this->testfieldstring(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleStringMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // string testFieldString = 6;
|
|
|
+ if (this->testfieldstring().size() > 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
+ this->testfieldstring().data(), static_cast<int>(this->testfieldstring().length()),
|
|
|
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
+ "qtprotobufnamespace.tests.SimpleStringMessage.testFieldString");
|
|
|
+ target =
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
|
|
+ 6, this->testfieldstring(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleStringMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // string testFieldString = 6;
|
|
|
+ if (this->testfieldstring().size() > 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
+ this->testfieldstring());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleStringMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleStringMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleStringMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleStringMessage::MergeFrom(const SimpleStringMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldstring().size() > 0) {
|
|
|
+
|
|
|
+ testfieldstring_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.testfieldstring_);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleStringMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleStringMessage::CopyFrom(const SimpleStringMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleStringMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleStringMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleStringMessage::Swap(SimpleStringMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleStringMessage::InternalSwap(SimpleStringMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ testfieldstring_.Swap(&other->testfieldstring_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleStringMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleFloatMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleFloatMessage::kTestFieldFloatFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleFloatMessage::SimpleFloatMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleFloatMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+}
|
|
|
+SimpleFloatMessage::SimpleFloatMessage(const SimpleFloatMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldfloat_ = from.testfieldfloat_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFloatMessage::SharedCtor() {
|
|
|
+ testfieldfloat_ = 0;
|
|
|
+}
|
|
|
+
|
|
|
+SimpleFloatMessage::~SimpleFloatMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFloatMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFloatMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleFloatMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleFloatMessage& SimpleFloatMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleFloatMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleFloatMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldfloat_ = 0;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleFloatMessage::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:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ 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)) {
|
|
|
+ // float testFieldFloat = 7;
|
|
|
+ case 7: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
|
+ input, &testfieldfloat_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFloatMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // float testFieldFloat = 7;
|
|
|
+ if (this->testfieldfloat() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->testfieldfloat(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleFloatMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // float testFieldFloat = 7;
|
|
|
+ if (this->testfieldfloat() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->testfieldfloat(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleFloatMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // float testFieldFloat = 7;
|
|
|
+ if (this->testfieldfloat() != 0) {
|
|
|
+ total_size += 1 + 4;
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFloatMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleFloatMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleFloatMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFloatMessage::MergeFrom(const SimpleFloatMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldfloat() != 0) {
|
|
|
+ set_testfieldfloat(from.testfieldfloat());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFloatMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFloatMessage::CopyFrom(const SimpleFloatMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleFloatMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleFloatMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFloatMessage::Swap(SimpleFloatMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleFloatMessage::InternalSwap(SimpleFloatMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldfloat_, other->testfieldfloat_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleFloatMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleDoubleMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleDoubleMessage::kTestFieldDoubleFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleDoubleMessage::SimpleDoubleMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleDoubleMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+}
|
|
|
+SimpleDoubleMessage::SimpleDoubleMessage(const SimpleDoubleMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfielddouble_ = from.testfielddouble_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleDoubleMessage::SharedCtor() {
|
|
|
+ testfielddouble_ = 0;
|
|
|
+}
|
|
|
+
|
|
|
+SimpleDoubleMessage::~SimpleDoubleMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleDoubleMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleDoubleMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleDoubleMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleDoubleMessage& SimpleDoubleMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleDoubleMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleDoubleMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfielddouble_ = 0;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleDoubleMessage::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:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ 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)) {
|
|
|
+ // double testFieldDouble = 8;
|
|
|
+ case 8: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
|
|
+ input, &testfielddouble_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleDoubleMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // double testFieldDouble = 8;
|
|
|
+ if (this->testfielddouble() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->testfielddouble(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleDoubleMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // double testFieldDouble = 8;
|
|
|
+ if (this->testfielddouble() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->testfielddouble(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleDoubleMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // double testFieldDouble = 8;
|
|
|
+ if (this->testfielddouble() != 0) {
|
|
|
+ total_size += 1 + 8;
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleDoubleMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleDoubleMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleDoubleMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleDoubleMessage::MergeFrom(const SimpleDoubleMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfielddouble() != 0) {
|
|
|
+ set_testfielddouble(from.testfielddouble());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleDoubleMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleDoubleMessage::CopyFrom(const SimpleDoubleMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleDoubleMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleDoubleMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleDoubleMessage::Swap(SimpleDoubleMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleDoubleMessage::InternalSwap(SimpleDoubleMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfielddouble_, other->testfielddouble_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleDoubleMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleBytesMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleBytesMessage::kTestFieldBytesFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleBytesMessage::SimpleBytesMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleBytesMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+}
|
|
|
+SimpleBytesMessage::SimpleBytesMessage(const SimpleBytesMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldbytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+ if (from.testfieldbytes().size() > 0) {
|
|
|
+ testfieldbytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.testfieldbytes_);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBytesMessage::SharedCtor() {
|
|
|
+ testfieldbytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+}
|
|
|
+
|
|
|
+SimpleBytesMessage::~SimpleBytesMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBytesMessage::SharedDtor() {
|
|
|
+ testfieldbytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBytesMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleBytesMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleBytesMessage& SimpleBytesMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleBytesMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleBytesMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldbytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleBytesMessage::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:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ 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)) {
|
|
|
+ // bytes testFieldBytes = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
|
+ input, this->mutable_testfieldbytes()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBytesMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // bytes testFieldBytes = 1;
|
|
|
+ if (this->testfieldbytes().size() > 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
|
|
|
+ 1, this->testfieldbytes(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleBytesMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // bytes testFieldBytes = 1;
|
|
|
+ if (this->testfieldbytes().size() > 0) {
|
|
|
+ target =
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
|
|
|
+ 1, this->testfieldbytes(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleBytesMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // bytes testFieldBytes = 1;
|
|
|
+ if (this->testfieldbytes().size() > 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
|
+ this->testfieldbytes());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBytesMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleBytesMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleBytesMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBytesMessage::MergeFrom(const SimpleBytesMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldbytes().size() > 0) {
|
|
|
+
|
|
|
+ testfieldbytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.testfieldbytes_);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBytesMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBytesMessage::CopyFrom(const SimpleBytesMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleBytesMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleBytesMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleBytesMessage::Swap(SimpleBytesMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleBytesMessage::InternalSwap(SimpleBytesMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ testfieldbytes_.Swap(&other->testfieldbytes_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
|
|
|
+ GetArenaNoVirtual());
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleBytesMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleFixedInt32Message::kTestFieldFixedInt32FieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleFixedInt32Message::SimpleFixedInt32Message()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleFixedInt32Message.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+}
|
|
|
+SimpleFixedInt32Message::SimpleFixedInt32Message(const SimpleFixedInt32Message& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldfixedint32_ = from.testfieldfixedint32_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::SharedCtor() {
|
|
|
+ testfieldfixedint32_ = 0u;
|
|
|
+}
|
|
|
+
|
|
|
+SimpleFixedInt32Message::~SimpleFixedInt32Message() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleFixedInt32Message::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleFixedInt32Message& SimpleFixedInt32Message::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleFixedInt32Message.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldfixedint32_ = 0u;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleFixedInt32Message::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:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ 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)) {
|
|
|
+ // fixed32 testFieldFixedInt32 = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
|
|
|
+ input, &testfieldfixedint32_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // fixed32 testFieldFixedInt32 = 1;
|
|
|
+ if (this->testfieldfixedint32() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->testfieldfixedint32(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleFixedInt32Message::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // fixed32 testFieldFixedInt32 = 1;
|
|
|
+ if (this->testfieldfixedint32() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->testfieldfixedint32(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleFixedInt32Message::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // fixed32 testFieldFixedInt32 = 1;
|
|
|
+ if (this->testfieldfixedint32() != 0) {
|
|
|
+ total_size += 1 + 4;
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleFixedInt32Message* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleFixedInt32Message>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::MergeFrom(const SimpleFixedInt32Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldfixedint32() != 0) {
|
|
|
+ set_testfieldfixedint32(from.testfieldfixedint32());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::CopyFrom(const SimpleFixedInt32Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleFixedInt32Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleFixedInt32Message::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt32Message::Swap(SimpleFixedInt32Message* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleFixedInt32Message::InternalSwap(SimpleFixedInt32Message* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldfixedint32_, other->testfieldfixedint32_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleFixedInt32Message::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleFixedInt64Message::kTestFieldFixedInt64FieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleFixedInt64Message::SimpleFixedInt64Message()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleFixedInt64Message.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+}
|
|
|
+SimpleFixedInt64Message::SimpleFixedInt64Message(const SimpleFixedInt64Message& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldfixedint64_ = from.testfieldfixedint64_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::SharedCtor() {
|
|
|
+ testfieldfixedint64_ = GOOGLE_ULONGLONG(0);
|
|
|
+}
|
|
|
+
|
|
|
+SimpleFixedInt64Message::~SimpleFixedInt64Message() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleFixedInt64Message::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleFixedInt64Message& SimpleFixedInt64Message::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleFixedInt64Message.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldfixedint64_ = GOOGLE_ULONGLONG(0);
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleFixedInt64Message::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:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ 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)) {
|
|
|
+ // fixed64 testFieldFixedInt64 = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
|
|
|
+ input, &testfieldfixedint64_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // fixed64 testFieldFixedInt64 = 1;
|
|
|
+ if (this->testfieldfixedint64() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->testfieldfixedint64(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleFixedInt64Message::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // fixed64 testFieldFixedInt64 = 1;
|
|
|
+ if (this->testfieldfixedint64() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->testfieldfixedint64(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleFixedInt64Message::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // fixed64 testFieldFixedInt64 = 1;
|
|
|
+ if (this->testfieldfixedint64() != 0) {
|
|
|
+ total_size += 1 + 8;
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleFixedInt64Message* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleFixedInt64Message>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::MergeFrom(const SimpleFixedInt64Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldfixedint64() != 0) {
|
|
|
+ set_testfieldfixedint64(from.testfieldfixedint64());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::CopyFrom(const SimpleFixedInt64Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleFixedInt64Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleFixedInt64Message::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleFixedInt64Message::Swap(SimpleFixedInt64Message* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleFixedInt64Message::InternalSwap(SimpleFixedInt64Message* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldfixedint64_, other->testfieldfixedint64_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleFixedInt64Message::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleSFixedInt32Message::kTestFieldFixedInt32FieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleSFixedInt32Message::SimpleSFixedInt32Message()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleSFixedInt32Message.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+}
|
|
|
+SimpleSFixedInt32Message::SimpleSFixedInt32Message(const SimpleSFixedInt32Message& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldfixedint32_ = from.testfieldfixedint32_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::SharedCtor() {
|
|
|
+ testfieldfixedint32_ = 0;
|
|
|
+}
|
|
|
+
|
|
|
+SimpleSFixedInt32Message::~SimpleSFixedInt32Message() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleSFixedInt32Message::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleSFixedInt32Message& SimpleSFixedInt32Message::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleSFixedInt32Message.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldfixedint32_ = 0;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleSFixedInt32Message::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:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ 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)) {
|
|
|
+ // sfixed32 testFieldFixedInt32 = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32>(
|
|
|
+ input, &testfieldfixedint32_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // sfixed32 testFieldFixedInt32 = 1;
|
|
|
+ if (this->testfieldfixedint32() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteSFixed32(1, this->testfieldfixedint32(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleSFixedInt32Message::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // sfixed32 testFieldFixedInt32 = 1;
|
|
|
+ if (this->testfieldfixedint32() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteSFixed32ToArray(1, this->testfieldfixedint32(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleSFixedInt32Message::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // sfixed32 testFieldFixedInt32 = 1;
|
|
|
+ if (this->testfieldfixedint32() != 0) {
|
|
|
+ total_size += 1 + 4;
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleSFixedInt32Message* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleSFixedInt32Message>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::MergeFrom(const SimpleSFixedInt32Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldfixedint32() != 0) {
|
|
|
+ set_testfieldfixedint32(from.testfieldfixedint32());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::CopyFrom(const SimpleSFixedInt32Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleSFixedInt32Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleSFixedInt32Message::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt32Message::Swap(SimpleSFixedInt32Message* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleSFixedInt32Message::InternalSwap(SimpleSFixedInt32Message* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldfixedint32_, other->testfieldfixedint32_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleSFixedInt32Message::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int SimpleSFixedInt64Message::kTestFieldFixedInt64FieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+SimpleSFixedInt64Message::SimpleSFixedInt64Message()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_SimpleSFixedInt64Message.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+}
|
|
|
+SimpleSFixedInt64Message::SimpleSFixedInt64Message(const SimpleSFixedInt64Message& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ testfieldfixedint64_ = from.testfieldfixedint64_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::SharedCtor() {
|
|
|
+ testfieldfixedint64_ = GOOGLE_LONGLONG(0);
|
|
|
+}
|
|
|
+
|
|
|
+SimpleSFixedInt64Message::~SimpleSFixedInt64Message() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* SimpleSFixedInt64Message::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const SimpleSFixedInt64Message& SimpleSFixedInt64Message::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_SimpleSFixedInt64Message.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testfieldfixedint64_ = GOOGLE_LONGLONG(0);
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleSFixedInt64Message::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:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ 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)) {
|
|
|
+ // sfixed64 testFieldFixedInt64 = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>(
|
|
|
+ input, &testfieldfixedint64_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // sfixed64 testFieldFixedInt64 = 1;
|
|
|
+ if (this->testfieldfixedint64() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteSFixed64(1, this->testfieldfixedint64(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* SimpleSFixedInt64Message::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // sfixed64 testFieldFixedInt64 = 1;
|
|
|
+ if (this->testfieldfixedint64() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(1, this->testfieldfixedint64(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t SimpleSFixedInt64Message::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // sfixed64 testFieldFixedInt64 = 1;
|
|
|
+ if (this->testfieldfixedint64() != 0) {
|
|
|
+ total_size += 1 + 8;
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const SimpleSFixedInt64Message* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const SimpleSFixedInt64Message>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::MergeFrom(const SimpleSFixedInt64Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.testfieldfixedint64() != 0) {
|
|
|
+ set_testfieldfixedint64(from.testfieldfixedint64());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::CopyFrom(const SimpleSFixedInt64Message& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.SimpleSFixedInt64Message)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool SimpleSFixedInt64Message::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void SimpleSFixedInt64Message::Swap(SimpleSFixedInt64Message* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void SimpleSFixedInt64Message::InternalSwap(SimpleSFixedInt64Message* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testfieldfixedint64_, other->testfieldfixedint64_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata SimpleSFixedInt64Message::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void ComplexMessage::InitAsDefaultInstance() {
|
|
|
+ ::qtprotobufnamespace::tests::_ComplexMessage_default_instance_._instance.get_mutable()->testcomplexfield_ = const_cast< ::qtprotobufnamespace::tests::SimpleStringMessage*>(
|
|
|
+ ::qtprotobufnamespace::tests::SimpleStringMessage::internal_default_instance());
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int ComplexMessage::kTestFieldIntFieldNumber;
|
|
|
+const int ComplexMessage::kTestComplexFieldFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+ComplexMessage::ComplexMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_ComplexMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+}
|
|
|
+ComplexMessage::ComplexMessage(const ComplexMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ if (from.has_testcomplexfield()) {
|
|
|
+ testcomplexfield_ = new ::qtprotobufnamespace::tests::SimpleStringMessage(*from.testcomplexfield_);
|
|
|
+ } else {
|
|
|
+ testcomplexfield_ = NULL;
|
|
|
+ }
|
|
|
+ testfieldint_ = from.testfieldint_;
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void ComplexMessage::SharedCtor() {
|
|
|
+ ::memset(&testcomplexfield_, 0, static_cast<size_t>(
|
|
|
+ reinterpret_cast<char*>(&testfieldint_) -
|
|
|
+ reinterpret_cast<char*>(&testcomplexfield_)) + sizeof(testfieldint_));
|
|
|
+}
|
|
|
+
|
|
|
+ComplexMessage::~ComplexMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void ComplexMessage::SharedDtor() {
|
|
|
+ if (this != internal_default_instance()) delete testcomplexfield_;
|
|
|
+}
|
|
|
+
|
|
|
+void ComplexMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* ComplexMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const ComplexMessage& ComplexMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_ComplexMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void ComplexMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (GetArenaNoVirtual() == NULL && testcomplexfield_ != NULL) {
|
|
|
+ delete testcomplexfield_;
|
|
|
+ }
|
|
|
+ testcomplexfield_ = NULL;
|
|
|
+ testfieldint_ = 0;
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool ComplexMessage::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:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ 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)) {
|
|
|
+ // int32 testFieldInt = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
|
|
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
|
|
+ input, &testfieldint_)));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ // .qtprotobufnamespace.tests.SimpleStringMessage testComplexField = 2;
|
|
|
+ case 2: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, mutable_testcomplexfield()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void ComplexMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // int32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->testfieldint(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ // .qtprotobufnamespace.tests.SimpleStringMessage testComplexField = 2;
|
|
|
+ if (this->has_testcomplexfield()) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 2, this->_internal_testcomplexfield(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* ComplexMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // int32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->testfieldint(), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ // .qtprotobufnamespace.tests.SimpleStringMessage testComplexField = 2;
|
|
|
+ if (this->has_testcomplexfield()) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 2, this->_internal_testcomplexfield(), deterministic, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t ComplexMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // .qtprotobufnamespace.tests.SimpleStringMessage testComplexField = 2;
|
|
|
+ if (this->has_testcomplexfield()) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ *testcomplexfield_);
|
|
|
+ }
|
|
|
+
|
|
|
+ // int32 testFieldInt = 1;
|
|
|
+ if (this->testfieldint() != 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ this->testfieldint());
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void ComplexMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const ComplexMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const ComplexMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void ComplexMessage::MergeFrom(const ComplexMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ if (from.has_testcomplexfield()) {
|
|
|
+ mutable_testcomplexfield()->::qtprotobufnamespace::tests::SimpleStringMessage::MergeFrom(from.testcomplexfield());
|
|
|
+ }
|
|
|
+ if (from.testfieldint() != 0) {
|
|
|
+ set_testfieldint(from.testfieldint());
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void ComplexMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void ComplexMessage::CopyFrom(const ComplexMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.ComplexMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool ComplexMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void ComplexMessage::Swap(ComplexMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void ComplexMessage::InternalSwap(ComplexMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ swap(testcomplexfield_, other->testcomplexfield_);
|
|
|
+ swap(testfieldint_, other->testfieldint_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata ComplexMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void RepeatedIntMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int RepeatedIntMessage::kTestRepeatedIntFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+RepeatedIntMessage::RepeatedIntMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_RepeatedIntMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+}
|
|
|
+RepeatedIntMessage::RepeatedIntMessage(const RepeatedIntMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ testrepeatedint_(from.testrepeatedint_) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedIntMessage::SharedCtor() {
|
|
|
+}
|
|
|
+
|
|
|
+RepeatedIntMessage::~RepeatedIntMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedIntMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedIntMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* RepeatedIntMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const RepeatedIntMessage& RepeatedIntMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedIntMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void RepeatedIntMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeatedint_.Clear();
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedIntMessage::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:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ 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)) {
|
|
|
+ // repeated sint32 testRepeatedInt = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
|
|
|
+ input, this->mutable_testrepeatedint())));
|
|
|
+ } else if (
|
|
|
+ static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
|
|
|
+ 1, 10u, input, this->mutable_testrepeatedint())));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedIntMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated sint32 testRepeatedInt = 1;
|
|
|
+ if (this->testrepeatedint_size() > 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
|
|
|
+ output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
|
|
|
+ _testrepeatedint_cached_byte_size_));
|
|
|
+ }
|
|
|
+ for (int i = 0, n = this->testrepeatedint_size(); i < n; i++) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteSInt32NoTag(
|
|
|
+ this->testrepeatedint(i), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* RepeatedIntMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated sint32 testRepeatedInt = 1;
|
|
|
+ if (this->testrepeatedint_size() > 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
|
|
|
+ 1,
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
|
+ target);
|
|
|
+ target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
|
|
|
+ static_cast< ::google::protobuf::int32>(
|
|
|
+ _testrepeatedint_cached_byte_size_), target);
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ WriteSInt32NoTagToArray(this->testrepeatedint_, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t RepeatedIntMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // repeated sint32 testRepeatedInt = 1;
|
|
|
+ {
|
|
|
+ size_t data_size = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ SInt32Size(this->testrepeatedint_);
|
|
|
+ if (data_size > 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ static_cast< ::google::protobuf::int32>(data_size));
|
|
|
+ }
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _testrepeatedint_cached_byte_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ total_size += data_size;
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedIntMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const RepeatedIntMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedIntMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedIntMessage::MergeFrom(const RepeatedIntMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeatedint_.MergeFrom(from.testrepeatedint_);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedIntMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedIntMessage::CopyFrom(const RepeatedIntMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedIntMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedIntMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedIntMessage::Swap(RepeatedIntMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void RepeatedIntMessage::InternalSwap(RepeatedIntMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ testrepeatedint_.InternalSwap(&other->testrepeatedint_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata RepeatedIntMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void RepeatedStringMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int RepeatedStringMessage::kTestRepeatedStringFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+RepeatedStringMessage::RepeatedStringMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_RepeatedStringMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+}
|
|
|
+RepeatedStringMessage::RepeatedStringMessage(const RepeatedStringMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ testrepeatedstring_(from.testrepeatedstring_) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedStringMessage::SharedCtor() {
|
|
|
+}
|
|
|
+
|
|
|
+RepeatedStringMessage::~RepeatedStringMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedStringMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedStringMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* RepeatedStringMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const RepeatedStringMessage& RepeatedStringMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedStringMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void RepeatedStringMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeatedstring_.Clear();
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedStringMessage::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:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ 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)) {
|
|
|
+ // repeated string testRepeatedString = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
|
|
+ input, this->add_testrepeatedstring()));
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
+ this->testrepeatedstring(this->testrepeatedstring_size() - 1).data(),
|
|
|
+ static_cast<int>(this->testrepeatedstring(this->testrepeatedstring_size() - 1).length()),
|
|
|
+ ::google::protobuf::internal::WireFormatLite::PARSE,
|
|
|
+ "qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString"));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedStringMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated string testRepeatedString = 1;
|
|
|
+ for (int i = 0, n = this->testrepeatedstring_size(); i < n; i++) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
+ this->testrepeatedstring(i).data(), static_cast<int>(this->testrepeatedstring(i).length()),
|
|
|
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
+ "qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString");
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteString(
|
|
|
+ 1, this->testrepeatedstring(i), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* RepeatedStringMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated string testRepeatedString = 1;
|
|
|
+ for (int i = 0, n = this->testrepeatedstring_size(); i < n; i++) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
|
|
|
+ this->testrepeatedstring(i).data(), static_cast<int>(this->testrepeatedstring(i).length()),
|
|
|
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
|
|
|
+ "qtprotobufnamespace.tests.RepeatedStringMessage.testRepeatedString");
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ WriteStringToArray(1, this->testrepeatedstring(i), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t RepeatedStringMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // repeated string testRepeatedString = 1;
|
|
|
+ total_size += 1 *
|
|
|
+ ::google::protobuf::internal::FromIntSize(this->testrepeatedstring_size());
|
|
|
+ for (int i = 0, n = this->testrepeatedstring_size(); i < n; i++) {
|
|
|
+ total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
|
|
|
+ this->testrepeatedstring(i));
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedStringMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const RepeatedStringMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedStringMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedStringMessage::MergeFrom(const RepeatedStringMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeatedstring_.MergeFrom(from.testrepeatedstring_);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedStringMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedStringMessage::CopyFrom(const RepeatedStringMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedStringMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedStringMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedStringMessage::Swap(RepeatedStringMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void RepeatedStringMessage::InternalSwap(RepeatedStringMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ testrepeatedstring_.InternalSwap(CastToBase(&other->testrepeatedstring_));
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata RepeatedStringMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int RepeatedDoubleMessage::kTestRepeatedDoubleFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+RepeatedDoubleMessage::RepeatedDoubleMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_RepeatedDoubleMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+}
|
|
|
+RepeatedDoubleMessage::RepeatedDoubleMessage(const RepeatedDoubleMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ testrepeateddouble_(from.testrepeateddouble_) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::SharedCtor() {
|
|
|
+}
|
|
|
+
|
|
|
+RepeatedDoubleMessage::~RepeatedDoubleMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* RepeatedDoubleMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const RepeatedDoubleMessage& RepeatedDoubleMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedDoubleMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeateddouble_.Clear();
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedDoubleMessage::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:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ 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)) {
|
|
|
+ // repeated double testRepeatedDouble = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
|
|
+ input, this->mutable_testrepeateddouble())));
|
|
|
+ } else if (
|
|
|
+ static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
|
|
+ 1, 10u, input, this->mutable_testrepeateddouble())));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated double testRepeatedDouble = 1;
|
|
|
+ if (this->testrepeateddouble_size() > 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
|
|
|
+ output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
|
|
|
+ _testrepeateddouble_cached_byte_size_));
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteDoubleArray(
|
|
|
+ this->testrepeateddouble().data(), this->testrepeateddouble_size(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* RepeatedDoubleMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated double testRepeatedDouble = 1;
|
|
|
+ if (this->testrepeateddouble_size() > 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
|
|
|
+ 1,
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
|
+ target);
|
|
|
+ target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
|
|
|
+ static_cast< ::google::protobuf::int32>(
|
|
|
+ _testrepeateddouble_cached_byte_size_), target);
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ WriteDoubleNoTagToArray(this->testrepeateddouble_, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t RepeatedDoubleMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // repeated double testRepeatedDouble = 1;
|
|
|
+ {
|
|
|
+ unsigned int count = static_cast<unsigned int>(this->testrepeateddouble_size());
|
|
|
+ size_t data_size = 8UL * count;
|
|
|
+ if (data_size > 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ static_cast< ::google::protobuf::int32>(data_size));
|
|
|
+ }
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _testrepeateddouble_cached_byte_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ total_size += data_size;
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const RepeatedDoubleMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedDoubleMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::MergeFrom(const RepeatedDoubleMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeateddouble_.MergeFrom(from.testrepeateddouble_);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::CopyFrom(const RepeatedDoubleMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedDoubleMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedDoubleMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedDoubleMessage::Swap(RepeatedDoubleMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void RepeatedDoubleMessage::InternalSwap(RepeatedDoubleMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ testrepeateddouble_.InternalSwap(&other->testrepeateddouble_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata RepeatedDoubleMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void RepeatedBytesMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int RepeatedBytesMessage::kTestRepeatedBytesFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+RepeatedBytesMessage::RepeatedBytesMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_RepeatedBytesMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+}
|
|
|
+RepeatedBytesMessage::RepeatedBytesMessage(const RepeatedBytesMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ testrepeatedbytes_(from.testrepeatedbytes_) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedBytesMessage::SharedCtor() {
|
|
|
+}
|
|
|
+
|
|
|
+RepeatedBytesMessage::~RepeatedBytesMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedBytesMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedBytesMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* RepeatedBytesMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const RepeatedBytesMessage& RepeatedBytesMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedBytesMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void RepeatedBytesMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeatedbytes_.Clear();
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedBytesMessage::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:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ 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)) {
|
|
|
+ // repeated bytes testRepeatedBytes = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
|
|
|
+ input, this->add_testrepeatedbytes()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedBytesMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated bytes testRepeatedBytes = 1;
|
|
|
+ for (int i = 0, n = this->testrepeatedbytes_size(); i < n; i++) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteBytes(
|
|
|
+ 1, this->testrepeatedbytes(i), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* RepeatedBytesMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated bytes testRepeatedBytes = 1;
|
|
|
+ for (int i = 0, n = this->testrepeatedbytes_size(); i < n; i++) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ WriteBytesToArray(1, this->testrepeatedbytes(i), target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t RepeatedBytesMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // repeated bytes testRepeatedBytes = 1;
|
|
|
+ total_size += 1 *
|
|
|
+ ::google::protobuf::internal::FromIntSize(this->testrepeatedbytes_size());
|
|
|
+ for (int i = 0, n = this->testrepeatedbytes_size(); i < n; i++) {
|
|
|
+ total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
|
+ this->testrepeatedbytes(i));
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedBytesMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const RepeatedBytesMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedBytesMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedBytesMessage::MergeFrom(const RepeatedBytesMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeatedbytes_.MergeFrom(from.testrepeatedbytes_);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedBytesMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedBytesMessage::CopyFrom(const RepeatedBytesMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedBytesMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedBytesMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedBytesMessage::Swap(RepeatedBytesMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void RepeatedBytesMessage::InternalSwap(RepeatedBytesMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ testrepeatedbytes_.InternalSwap(CastToBase(&other->testrepeatedbytes_));
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata RepeatedBytesMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void RepeatedFloatMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int RepeatedFloatMessage::kTestRepeatedFloatFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+RepeatedFloatMessage::RepeatedFloatMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_RepeatedFloatMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+}
|
|
|
+RepeatedFloatMessage::RepeatedFloatMessage(const RepeatedFloatMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ testrepeatedfloat_(from.testrepeatedfloat_) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedFloatMessage::SharedCtor() {
|
|
|
+}
|
|
|
+
|
|
|
+RepeatedFloatMessage::~RepeatedFloatMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedFloatMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedFloatMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* RepeatedFloatMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const RepeatedFloatMessage& RepeatedFloatMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedFloatMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void RepeatedFloatMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeatedfloat_.Clear();
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedFloatMessage::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:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ 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)) {
|
|
|
+ // repeated float testRepeatedFloat = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
|
|
|
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
|
+ input, this->mutable_testrepeatedfloat())));
|
|
|
+ } else if (
|
|
|
+ static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
|
|
|
+ DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
|
|
|
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
|
|
+ 1, 10u, input, this->mutable_testrepeatedfloat())));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedFloatMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated float testRepeatedFloat = 1;
|
|
|
+ if (this->testrepeatedfloat_size() > 0) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
|
|
|
+ output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
|
|
|
+ _testrepeatedfloat_cached_byte_size_));
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteFloatArray(
|
|
|
+ this->testrepeatedfloat().data(), this->testrepeatedfloat_size(), output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* RepeatedFloatMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated float testRepeatedFloat = 1;
|
|
|
+ if (this->testrepeatedfloat_size() > 0) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
|
|
|
+ 1,
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
|
|
|
+ target);
|
|
|
+ target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
|
|
|
+ static_cast< ::google::protobuf::int32>(
|
|
|
+ _testrepeatedfloat_cached_byte_size_), target);
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ WriteFloatNoTagToArray(this->testrepeatedfloat_, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t RepeatedFloatMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // repeated float testRepeatedFloat = 1;
|
|
|
+ {
|
|
|
+ unsigned int count = static_cast<unsigned int>(this->testrepeatedfloat_size());
|
|
|
+ size_t data_size = 4UL * count;
|
|
|
+ if (data_size > 0) {
|
|
|
+ total_size += 1 +
|
|
|
+ ::google::protobuf::internal::WireFormatLite::Int32Size(
|
|
|
+ static_cast< ::google::protobuf::int32>(data_size));
|
|
|
+ }
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
|
|
+ _testrepeatedfloat_cached_byte_size_ = cached_size;
|
|
|
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
|
|
+ total_size += data_size;
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedFloatMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const RepeatedFloatMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedFloatMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedFloatMessage::MergeFrom(const RepeatedFloatMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeatedfloat_.MergeFrom(from.testrepeatedfloat_);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedFloatMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedFloatMessage::CopyFrom(const RepeatedFloatMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedFloatMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedFloatMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedFloatMessage::Swap(RepeatedFloatMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void RepeatedFloatMessage::InternalSwap(RepeatedFloatMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ testrepeatedfloat_.InternalSwap(&other->testrepeatedfloat_);
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata RepeatedFloatMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// ===================================================================
|
|
|
+
|
|
|
+void RepeatedComplexMessage::InitAsDefaultInstance() {
|
|
|
+}
|
|
|
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+const int RepeatedComplexMessage::kTestRepeatedComplexFieldNumber;
|
|
|
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
|
|
|
+
|
|
|
+RepeatedComplexMessage::RepeatedComplexMessage()
|
|
|
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
|
|
|
+ ::google::protobuf::internal::InitSCC(
|
|
|
+ &protobuf_simpletest_2eproto::scc_info_RepeatedComplexMessage.base);
|
|
|
+ SharedCtor();
|
|
|
+ // @@protoc_insertion_point(constructor:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+}
|
|
|
+RepeatedComplexMessage::RepeatedComplexMessage(const RepeatedComplexMessage& from)
|
|
|
+ : ::google::protobuf::Message(),
|
|
|
+ _internal_metadata_(NULL),
|
|
|
+ testrepeatedcomplex_(from.testrepeatedcomplex_) {
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ // @@protoc_insertion_point(copy_constructor:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedComplexMessage::SharedCtor() {
|
|
|
+}
|
|
|
+
|
|
|
+RepeatedComplexMessage::~RepeatedComplexMessage() {
|
|
|
+ // @@protoc_insertion_point(destructor:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ SharedDtor();
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedComplexMessage::SharedDtor() {
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedComplexMessage::SetCachedSize(int size) const {
|
|
|
+ _cached_size_.Set(size);
|
|
|
+}
|
|
|
+const ::google::protobuf::Descriptor* RepeatedComplexMessage::descriptor() {
|
|
|
+ ::protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
|
|
|
+}
|
|
|
+
|
|
|
+const RepeatedComplexMessage& RepeatedComplexMessage::default_instance() {
|
|
|
+ ::google::protobuf::internal::InitSCC(&protobuf_simpletest_2eproto::scc_info_RepeatedComplexMessage.base);
|
|
|
+ return *internal_default_instance();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+void RepeatedComplexMessage::Clear() {
|
|
|
+// @@protoc_insertion_point(message_clear_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ // Prevent compiler warnings about cached_has_bits being unused
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeatedcomplex_.Clear();
|
|
|
+ _internal_metadata_.Clear();
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedComplexMessage::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:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ 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)) {
|
|
|
+ // repeated .qtprotobufnamespace.tests.ComplexMessage testRepeatedComplex = 1;
|
|
|
+ case 1: {
|
|
|
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
|
|
|
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
|
|
|
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
|
|
|
+ input, add_testrepeatedcomplex()));
|
|
|
+ } else {
|
|
|
+ goto handle_unusual;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ default: {
|
|
|
+ handle_unusual:
|
|
|
+ if (tag == 0) {
|
|
|
+ goto success;
|
|
|
+ }
|
|
|
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
|
|
|
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+success:
|
|
|
+ // @@protoc_insertion_point(parse_success:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ return true;
|
|
|
+failure:
|
|
|
+ // @@protoc_insertion_point(parse_failure:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ return false;
|
|
|
+#undef DO_
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedComplexMessage::SerializeWithCachedSizes(
|
|
|
+ ::google::protobuf::io::CodedOutputStream* output) const {
|
|
|
+ // @@protoc_insertion_point(serialize_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated .qtprotobufnamespace.tests.ComplexMessage testRepeatedComplex = 1;
|
|
|
+ for (unsigned int i = 0,
|
|
|
+ n = static_cast<unsigned int>(this->testrepeatedcomplex_size()); i < n; i++) {
|
|
|
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
|
|
+ 1,
|
|
|
+ this->testrepeatedcomplex(static_cast<int>(i)),
|
|
|
+ output);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_end:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::uint8* RepeatedComplexMessage::InternalSerializeWithCachedSizesToArray(
|
|
|
+ bool deterministic, ::google::protobuf::uint8* target) const {
|
|
|
+ (void)deterministic; // Unused
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ // repeated .qtprotobufnamespace.tests.ComplexMessage testRepeatedComplex = 1;
|
|
|
+ for (unsigned int i = 0,
|
|
|
+ n = static_cast<unsigned int>(this->testrepeatedcomplex_size()); i < n; i++) {
|
|
|
+ target = ::google::protobuf::internal::WireFormatLite::
|
|
|
+ InternalWriteMessageToArray(
|
|
|
+ 1, this->testrepeatedcomplex(static_cast<int>(i)), deterministic, target);
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
|
|
|
+ }
|
|
|
+ // @@protoc_insertion_point(serialize_to_array_end:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ return target;
|
|
|
+}
|
|
|
+
|
|
|
+size_t RepeatedComplexMessage::ByteSizeLong() const {
|
|
|
+// @@protoc_insertion_point(message_byte_size_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ size_t total_size = 0;
|
|
|
+
|
|
|
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
|
|
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
|
|
|
+ }
|
|
|
+ // repeated .qtprotobufnamespace.tests.ComplexMessage testRepeatedComplex = 1;
|
|
|
+ {
|
|
|
+ unsigned int count = static_cast<unsigned int>(this->testrepeatedcomplex_size());
|
|
|
+ total_size += 1UL * count;
|
|
|
+ for (unsigned int i = 0; i < count; i++) {
|
|
|
+ total_size +=
|
|
|
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
|
|
|
+ this->testrepeatedcomplex(static_cast<int>(i)));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
|
|
|
+ SetCachedSize(cached_size);
|
|
|
+ return total_size;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedComplexMessage::MergeFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_merge_from_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ const RepeatedComplexMessage* source =
|
|
|
+ ::google::protobuf::internal::DynamicCastToGenerated<const RepeatedComplexMessage>(
|
|
|
+ &from);
|
|
|
+ if (source == NULL) {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
|
|
+ } else {
|
|
|
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ MergeFrom(*source);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedComplexMessage::MergeFrom(const RepeatedComplexMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_merge_from_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ GOOGLE_DCHECK_NE(&from, this);
|
|
|
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
|
|
|
+ ::google::protobuf::uint32 cached_has_bits = 0;
|
|
|
+ (void) cached_has_bits;
|
|
|
+
|
|
|
+ testrepeatedcomplex_.MergeFrom(from.testrepeatedcomplex_);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedComplexMessage::CopyFrom(const ::google::protobuf::Message& from) {
|
|
|
+// @@protoc_insertion_point(generalized_copy_from_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedComplexMessage::CopyFrom(const RepeatedComplexMessage& from) {
|
|
|
+// @@protoc_insertion_point(class_specific_copy_from_start:qtprotobufnamespace.tests.RepeatedComplexMessage)
|
|
|
+ if (&from == this) return;
|
|
|
+ Clear();
|
|
|
+ MergeFrom(from);
|
|
|
+}
|
|
|
+
|
|
|
+bool RepeatedComplexMessage::IsInitialized() const {
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
+void RepeatedComplexMessage::Swap(RepeatedComplexMessage* other) {
|
|
|
+ if (other == this) return;
|
|
|
+ InternalSwap(other);
|
|
|
+}
|
|
|
+void RepeatedComplexMessage::InternalSwap(RepeatedComplexMessage* other) {
|
|
|
+ using std::swap;
|
|
|
+ CastToBase(&testrepeatedcomplex_)->InternalSwap(CastToBase(&other->testrepeatedcomplex_));
|
|
|
+ _internal_metadata_.Swap(&other->_internal_metadata_);
|
|
|
+}
|
|
|
+
|
|
|
+::google::protobuf::Metadata RepeatedComplexMessage::GetMetadata() const {
|
|
|
+ protobuf_simpletest_2eproto::protobuf_AssignDescriptorsOnce();
|
|
|
+ return ::protobuf_simpletest_2eproto::file_level_metadata[kIndexInFileMessages];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// @@protoc_insertion_point(namespace_scope)
|
|
|
+} // namespace tests
|
|
|
+} // namespace qtprotobufnamespace
|
|
|
+namespace google {
|
|
|
+namespace protobuf {
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleEnumMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleEnumMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleEnumMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleFileEnumMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleFileEnumMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleFileEnumMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleBoolMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleBoolMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleBoolMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleIntMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleIntMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleIntMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleSIntMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleSIntMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleSIntMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleUIntMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleUIntMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleUIntMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleInt64Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleInt64Message >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleInt64Message >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleSInt64Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleSInt64Message >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleSInt64Message >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleUInt64Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleUInt64Message >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleUInt64Message >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleStringMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleStringMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleStringMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleFloatMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleFloatMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleFloatMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleDoubleMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleDoubleMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleDoubleMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleBytesMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleBytesMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleBytesMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleFixedInt32Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleFixedInt32Message >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleFixedInt32Message >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleFixedInt64Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleFixedInt64Message >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleFixedInt64Message >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleSFixedInt32Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleSFixedInt32Message >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleSFixedInt32Message >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::SimpleSFixedInt64Message* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::SimpleSFixedInt64Message >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::SimpleSFixedInt64Message >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::ComplexMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::ComplexMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::ComplexMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedIntMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedIntMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedIntMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedStringMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedStringMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedStringMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedDoubleMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedDoubleMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedDoubleMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedBytesMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedBytesMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedBytesMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedFloatMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedFloatMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedFloatMessage >(arena);
|
|
|
+}
|
|
|
+template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::qtprotobufnamespace::tests::RepeatedComplexMessage* Arena::CreateMaybeMessage< ::qtprotobufnamespace::tests::RepeatedComplexMessage >(Arena* arena) {
|
|
|
+ return Arena::CreateInternal< ::qtprotobufnamespace::tests::RepeatedComplexMessage >(arena);
|
|
|
+}
|
|
|
+} // namespace protobuf
|
|
|
+} // namespace google
|
|
|
+
|
|
|
+// @@protoc_insertion_point(global_scope)
|