protobuf 2.2.5-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. data/.gitignore +17 -0
  2. data/.travis.yml +9 -0
  3. data/.yardopts +5 -0
  4. data/Gemfile +3 -0
  5. data/README.md +316 -0
  6. data/Rakefile +29 -0
  7. data/UPGRADING.md +60 -0
  8. data/bin/rpc_server +5 -0
  9. data/bin/rprotoc +62 -0
  10. data/examples/addressbook.pb.rb +55 -0
  11. data/examples/addressbook.proto +24 -0
  12. data/examples/reading_a_message.rb +32 -0
  13. data/examples/writing_a_message.rb +46 -0
  14. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/code_generator.h +142 -0
  15. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/command_line_interface.h +318 -0
  16. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_enum.h +99 -0
  17. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_enum_field.h +103 -0
  18. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_extension.h +85 -0
  19. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_field.h +167 -0
  20. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_file.h +98 -0
  21. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_generator.h +72 -0
  22. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_helpers.h +159 -0
  23. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_message.h +170 -0
  24. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_message_field.h +102 -0
  25. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_primitive_field.h +103 -0
  26. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_service.h +118 -0
  27. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_string_field.h +104 -0
  28. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h +2721 -0
  29. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/importer.h +303 -0
  30. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_enum.h +84 -0
  31. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_enum_field.h +121 -0
  32. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_extension.h +77 -0
  33. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_field.h +108 -0
  34. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_file.h +101 -0
  35. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_generator.h +72 -0
  36. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_helpers.h +213 -0
  37. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_message.h +109 -0
  38. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_message_field.h +134 -0
  39. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_primitive_field.h +121 -0
  40. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_service.h +113 -0
  41. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_string_field.h +120 -0
  42. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/mock_code_generator.h +113 -0
  43. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/package_info.h +64 -0
  44. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/parser.h +434 -0
  45. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/plugin.h +73 -0
  46. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/plugin.pb.h +790 -0
  47. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/python/python_generator.h +156 -0
  48. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/subprocess.h +108 -0
  49. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/zip_writer.h +93 -0
  50. data/ext/protobuf-2.4.1/src/google/protobuf/descriptor.h +1367 -0
  51. data/ext/protobuf-2.4.1/src/google/protobuf/descriptor.pb.h +5223 -0
  52. data/ext/protobuf-2.4.1/src/google/protobuf/descriptor_database.h +366 -0
  53. data/ext/protobuf-2.4.1/src/google/protobuf/dynamic_message.h +136 -0
  54. data/ext/protobuf-2.4.1/src/google/protobuf/extension_set.h +904 -0
  55. data/ext/protobuf-2.4.1/src/google/protobuf/generated_message_reflection.h +424 -0
  56. data/ext/protobuf-2.4.1/src/google/protobuf/generated_message_util.h +82 -0
  57. data/ext/protobuf-2.4.1/src/google/protobuf/io/coded_stream.h +1102 -0
  58. data/ext/protobuf-2.4.1/src/google/protobuf/io/coded_stream_inl.h +64 -0
  59. data/ext/protobuf-2.4.1/src/google/protobuf/io/gzip_stream.h +207 -0
  60. data/ext/protobuf-2.4.1/src/google/protobuf/io/package_info.h +54 -0
  61. data/ext/protobuf-2.4.1/src/google/protobuf/io/printer.h +136 -0
  62. data/ext/protobuf-2.4.1/src/google/protobuf/io/tokenizer.h +313 -0
  63. data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream.h +238 -0
  64. data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream_impl.h +357 -0
  65. data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream_impl_lite.h +340 -0
  66. data/ext/protobuf-2.4.1/src/google/protobuf/message.h +692 -0
  67. data/ext/protobuf-2.4.1/src/google/protobuf/message_lite.h +239 -0
  68. data/ext/protobuf-2.4.1/src/google/protobuf/package_info.h +64 -0
  69. data/ext/protobuf-2.4.1/src/google/protobuf/reflection_ops.h +80 -0
  70. data/ext/protobuf-2.4.1/src/google/protobuf/repeated_field.h +1295 -0
  71. data/ext/protobuf-2.4.1/src/google/protobuf/service.h +291 -0
  72. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/common.h +1211 -0
  73. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/hash.h +220 -0
  74. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/map-util.h +119 -0
  75. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/once.h +123 -0
  76. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/stl_util-inl.h +121 -0
  77. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/strutil.h +457 -0
  78. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/substitute.h +170 -0
  79. data/ext/protobuf-2.4.1/src/google/protobuf/test_util.h +174 -0
  80. data/ext/protobuf-2.4.1/src/google/protobuf/test_util_lite.h +101 -0
  81. data/ext/protobuf-2.4.1/src/google/protobuf/testing/file.h +83 -0
  82. data/ext/protobuf-2.4.1/src/google/protobuf/testing/googletest.h +98 -0
  83. data/ext/protobuf-2.4.1/src/google/protobuf/text_format.h +285 -0
  84. data/ext/protobuf-2.4.1/src/google/protobuf/unittest.pb.h +11915 -0
  85. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_custom_options.pb.h +2895 -0
  86. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_embed_optimize_for.pb.h +211 -0
  87. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_empty.pb.h +56 -0
  88. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_import.pb.h +188 -0
  89. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_import_lite.pb.h +151 -0
  90. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_lite.pb.h +4752 -0
  91. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_lite_imports_nonlite.pb.h +150 -0
  92. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_mset.pb.h +816 -0
  93. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_no_generic_services.pb.h +197 -0
  94. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_optimize_for.pb.h +403 -0
  95. data/ext/protobuf-2.4.1/src/google/protobuf/unknown_field_set.h +268 -0
  96. data/ext/protobuf-2.4.1/src/google/protobuf/wire_format.h +304 -0
  97. data/ext/protobuf-2.4.1/src/google/protobuf/wire_format_lite.h +620 -0
  98. data/ext/protobuf-2.4.1/src/google/protobuf/wire_format_lite_inl.h +774 -0
  99. data/ext/ruby_generator/Makefile +10 -0
  100. data/ext/ruby_generator/RubyGenerator.cpp +450 -0
  101. data/ext/ruby_generator/RubyGenerator.h +199 -0
  102. data/ext/ruby_generator/extconf.rb +36 -0
  103. data/ext/ruby_generator/protoc-ruby +0 -0
  104. data/lib/protobuf/cli.rb +188 -0
  105. data/lib/protobuf/enum.rb +58 -0
  106. data/lib/protobuf/enum_value.rb +59 -0
  107. data/lib/protobuf/evented.rb +22 -0
  108. data/lib/protobuf/exceptions.rb +11 -0
  109. data/lib/protobuf/ext/eventmachine.rb +14 -0
  110. data/lib/protobuf/field/base_field.rb +240 -0
  111. data/lib/protobuf/field/bool_field.rb +36 -0
  112. data/lib/protobuf/field/bytes_field.rb +38 -0
  113. data/lib/protobuf/field/double_field.rb +19 -0
  114. data/lib/protobuf/field/enum_field.rb +50 -0
  115. data/lib/protobuf/field/extension_fields.rb +32 -0
  116. data/lib/protobuf/field/field_array.rb +65 -0
  117. data/lib/protobuf/field/fixed32_field.rb +19 -0
  118. data/lib/protobuf/field/fixed64_field.rb +22 -0
  119. data/lib/protobuf/field/float_field.rb +31 -0
  120. data/lib/protobuf/field/int32_field.rb +12 -0
  121. data/lib/protobuf/field/int64_field.rb +12 -0
  122. data/lib/protobuf/field/integer_field.rb +19 -0
  123. data/lib/protobuf/field/message_field.rb +53 -0
  124. data/lib/protobuf/field/sfixed32_field.rb +21 -0
  125. data/lib/protobuf/field/sfixed64_field.rb +24 -0
  126. data/lib/protobuf/field/signed_integer_field.rb +23 -0
  127. data/lib/protobuf/field/sint32_field.rb +12 -0
  128. data/lib/protobuf/field/sint64_field.rb +12 -0
  129. data/lib/protobuf/field/string_field.rb +14 -0
  130. data/lib/protobuf/field/uint32_field.rb +12 -0
  131. data/lib/protobuf/field/uint64_field.rb +12 -0
  132. data/lib/protobuf/field/varint_field.rb +61 -0
  133. data/lib/protobuf/field.rb +57 -0
  134. data/lib/protobuf/logger.rb +86 -0
  135. data/lib/protobuf/message/decoder.rb +83 -0
  136. data/lib/protobuf/message/encoder.rb +48 -0
  137. data/lib/protobuf/message/extend.rb +8 -0
  138. data/lib/protobuf/message/message.rb +1 -0
  139. data/lib/protobuf/message.rb +320 -0
  140. data/lib/protobuf/rpc/buffer.rb +79 -0
  141. data/lib/protobuf/rpc/client.rb +166 -0
  142. data/lib/protobuf/rpc/connector.rb +19 -0
  143. data/lib/protobuf/rpc/connectors/base.rb +38 -0
  144. data/lib/protobuf/rpc/connectors/common.rb +156 -0
  145. data/lib/protobuf/rpc/connectors/em_client.rb +84 -0
  146. data/lib/protobuf/rpc/connectors/eventmachine.rb +87 -0
  147. data/lib/protobuf/rpc/connectors/socket.rb +73 -0
  148. data/lib/protobuf/rpc/connectors/zmq.rb +69 -0
  149. data/lib/protobuf/rpc/error/client_error.rb +31 -0
  150. data/lib/protobuf/rpc/error/server_error.rb +43 -0
  151. data/lib/protobuf/rpc/error.rb +25 -0
  152. data/lib/protobuf/rpc/rpc.pb.rb +118 -0
  153. data/lib/protobuf/rpc/server.rb +89 -0
  154. data/lib/protobuf/rpc/servers/evented/server.rb +41 -0
  155. data/lib/protobuf/rpc/servers/evented_runner.rb +21 -0
  156. data/lib/protobuf/rpc/servers/socket/server.rb +111 -0
  157. data/lib/protobuf/rpc/servers/socket/worker.rb +66 -0
  158. data/lib/protobuf/rpc/servers/socket_runner.rb +27 -0
  159. data/lib/protobuf/rpc/servers/zmq/broker.rb +87 -0
  160. data/lib/protobuf/rpc/servers/zmq/server.rb +50 -0
  161. data/lib/protobuf/rpc/servers/zmq/util.rb +27 -0
  162. data/lib/protobuf/rpc/servers/zmq/worker.rb +60 -0
  163. data/lib/protobuf/rpc/servers/zmq_runner.rb +25 -0
  164. data/lib/protobuf/rpc/service.rb +173 -0
  165. data/lib/protobuf/rpc/service_dispatcher.rb +130 -0
  166. data/lib/protobuf/rpc/service_filters.rb +267 -0
  167. data/lib/protobuf/rpc/stat.rb +83 -0
  168. data/lib/protobuf/socket.rb +22 -0
  169. data/lib/protobuf/version.rb +4 -0
  170. data/lib/protobuf/wire_type.rb +10 -0
  171. data/lib/protobuf/zmq.rb +21 -0
  172. data/lib/protobuf.rb +86 -0
  173. data/proto/rpc.pb.rb +48 -0
  174. data/proto/rpc.proto +73 -0
  175. data/protobuf.gemspec +44 -0
  176. data/spec/benchmark/tasks.rb +179 -0
  177. data/spec/functional/embedded_service_spec.rb +7 -0
  178. data/spec/functional/evented_server_spec.rb +64 -0
  179. data/spec/functional/socket_server_spec.rb +58 -0
  180. data/spec/functional/zmq_server_spec.rb +58 -0
  181. data/spec/lib/protobuf/cli_spec.rb +212 -0
  182. data/spec/lib/protobuf/enum_spec.rb +98 -0
  183. data/spec/lib/protobuf/enum_value_spec.rb +15 -0
  184. data/spec/lib/protobuf/logger_spec.rb +131 -0
  185. data/spec/lib/protobuf/message/encoder_spec.rb +19 -0
  186. data/spec/lib/protobuf/message_spec.rb +209 -0
  187. data/spec/lib/protobuf/rpc/client_spec.rb +158 -0
  188. data/spec/lib/protobuf/rpc/connector_spec.rb +32 -0
  189. data/spec/lib/protobuf/rpc/connectors/base_spec.rb +50 -0
  190. data/spec/lib/protobuf/rpc/connectors/common_spec.rb +128 -0
  191. data/spec/lib/protobuf/rpc/connectors/socket_spec.rb +36 -0
  192. data/spec/lib/protobuf/rpc/connectors/zmq_spec.rb +22 -0
  193. data/spec/lib/protobuf/rpc/servers/evented_server_spec.rb +18 -0
  194. data/spec/lib/protobuf/rpc/servers/socket_server_spec.rb +43 -0
  195. data/spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb +35 -0
  196. data/spec/lib/protobuf/rpc/servers/zmq/server_spec.rb +41 -0
  197. data/spec/lib/protobuf/rpc/servers/zmq/util_spec.rb +45 -0
  198. data/spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb +44 -0
  199. data/spec/lib/protobuf/rpc/service_dispatcher_spec.rb +116 -0
  200. data/spec/lib/protobuf/rpc/service_filters_spec.rb +451 -0
  201. data/spec/lib/protobuf/rpc/service_spec.rb +165 -0
  202. data/spec/lib/protobuf_spec.rb +62 -0
  203. data/spec/spec_helper.rb +51 -0
  204. data/spec/support/all.rb +6 -0
  205. data/spec/support/server.rb +101 -0
  206. data/spec/support/test/enum.pb.rb +34 -0
  207. data/spec/support/test/enum.proto +12 -0
  208. data/spec/support/test/resource.pb.rb +58 -0
  209. data/spec/support/test/resource.proto +31 -0
  210. data/spec/support/test/resource_service.rb +14 -0
  211. data/spec/support/test_app_file.rb +2 -0
  212. data/spec/support/tolerance_matcher.rb +40 -0
  213. data/test/data/data.bin +3 -0
  214. data/test/data/data_source.py +14 -0
  215. data/test/data/types.bin +0 -0
  216. data/test/data/types_source.py +22 -0
  217. data/test/data/unk.png +0 -0
  218. data/test/proto/addressbook.pb.rb +66 -0
  219. data/test/proto/addressbook.proto +33 -0
  220. data/test/proto/addressbook_base.pb.rb +58 -0
  221. data/test/proto/addressbook_base.proto +26 -0
  222. data/test/proto/addressbook_ext.pb.rb +20 -0
  223. data/test/proto/addressbook_ext.proto +6 -0
  224. data/test/proto/collision.pb.rb +17 -0
  225. data/test/proto/collision.proto +5 -0
  226. data/test/proto/ext_collision.pb.rb +24 -0
  227. data/test/proto/ext_collision.proto +8 -0
  228. data/test/proto/ext_range.pb.rb +22 -0
  229. data/test/proto/ext_range.proto +7 -0
  230. data/test/proto/float_default.proto +10 -0
  231. data/test/proto/lowercase.pb.rb +30 -0
  232. data/test/proto/lowercase.proto +9 -0
  233. data/test/proto/merge.pb.rb +39 -0
  234. data/test/proto/merge.proto +15 -0
  235. data/test/proto/nested.pb.rb +30 -0
  236. data/test/proto/nested.proto +9 -0
  237. data/test/proto/optional_field.pb.rb +35 -0
  238. data/test/proto/optional_field.proto +12 -0
  239. data/test/proto/packed.pb.rb +22 -0
  240. data/test/proto/packed.proto +6 -0
  241. data/test/proto/rpc.proto +6 -0
  242. data/test/proto/types.pb.rb +84 -0
  243. data/test/proto/types.proto +37 -0
  244. data/test/test_addressbook.rb +56 -0
  245. data/test/test_enum_value.rb +41 -0
  246. data/test/test_extension.rb +36 -0
  247. data/test/test_lowercase.rb +11 -0
  248. data/test/test_message.rb +128 -0
  249. data/test/test_optional_field.rb +103 -0
  250. data/test/test_packed_field.rb +40 -0
  251. data/test/test_parse.rb +15 -0
  252. data/test/test_repeated_types.rb +132 -0
  253. data/test/test_serialize.rb +61 -0
  254. data/test/test_standard_message.rb +96 -0
  255. data/test/test_types.rb +226 -0
  256. metadata +461 -0
@@ -0,0 +1,4752 @@
1
+ // Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ // source: google/protobuf/unittest_lite.proto
3
+
4
+ #ifndef PROTOBUF_google_2fprotobuf_2funittest_5flite_2eproto__INCLUDED
5
+ #define PROTOBUF_google_2fprotobuf_2funittest_5flite_2eproto__INCLUDED
6
+
7
+ #include <string>
8
+
9
+ #include <google/protobuf/stubs/common.h>
10
+
11
+ #if GOOGLE_PROTOBUF_VERSION < 2004000
12
+ #error This file was generated by a newer version of protoc which is
13
+ #error incompatible with your Protocol Buffer headers. Please update
14
+ #error your headers.
15
+ #endif
16
+ #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17
+ #error This file was generated by an older version of protoc which is
18
+ #error incompatible with your Protocol Buffer headers. Please
19
+ #error regenerate this file with a newer version of protoc.
20
+ #endif
21
+
22
+ #include <google/protobuf/generated_message_util.h>
23
+ #include <google/protobuf/repeated_field.h>
24
+ #include <google/protobuf/extension_set.h>
25
+ #include "google/protobuf/unittest_import_lite.pb.h"
26
+ // @@protoc_insertion_point(includes)
27
+
28
+ namespace protobuf_unittest {
29
+
30
+ // Internal implementation detail -- do not call these.
31
+ void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
32
+ void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
33
+ void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
34
+
35
+ class TestAllTypesLite;
36
+ class TestAllTypesLite_NestedMessage;
37
+ class TestAllTypesLite_OptionalGroup;
38
+ class TestAllTypesLite_RepeatedGroup;
39
+ class ForeignMessageLite;
40
+ class TestPackedTypesLite;
41
+ class TestAllExtensionsLite;
42
+ class OptionalGroup_extension_lite;
43
+ class RepeatedGroup_extension_lite;
44
+ class TestPackedExtensionsLite;
45
+ class TestNestedExtensionLite;
46
+ class TestDeprecatedLite;
47
+
48
+ enum TestAllTypesLite_NestedEnum {
49
+ TestAllTypesLite_NestedEnum_FOO = 1,
50
+ TestAllTypesLite_NestedEnum_BAR = 2,
51
+ TestAllTypesLite_NestedEnum_BAZ = 3
52
+ };
53
+ bool TestAllTypesLite_NestedEnum_IsValid(int value);
54
+ const TestAllTypesLite_NestedEnum TestAllTypesLite_NestedEnum_NestedEnum_MIN = TestAllTypesLite_NestedEnum_FOO;
55
+ const TestAllTypesLite_NestedEnum TestAllTypesLite_NestedEnum_NestedEnum_MAX = TestAllTypesLite_NestedEnum_BAZ;
56
+ const int TestAllTypesLite_NestedEnum_NestedEnum_ARRAYSIZE = TestAllTypesLite_NestedEnum_NestedEnum_MAX + 1;
57
+
58
+ enum ForeignEnumLite {
59
+ FOREIGN_LITE_FOO = 4,
60
+ FOREIGN_LITE_BAR = 5,
61
+ FOREIGN_LITE_BAZ = 6
62
+ };
63
+ bool ForeignEnumLite_IsValid(int value);
64
+ const ForeignEnumLite ForeignEnumLite_MIN = FOREIGN_LITE_FOO;
65
+ const ForeignEnumLite ForeignEnumLite_MAX = FOREIGN_LITE_BAZ;
66
+ const int ForeignEnumLite_ARRAYSIZE = ForeignEnumLite_MAX + 1;
67
+
68
+ // ===================================================================
69
+
70
+ class TestAllTypesLite_NestedMessage : public ::google::protobuf::MessageLite {
71
+ public:
72
+ TestAllTypesLite_NestedMessage();
73
+ virtual ~TestAllTypesLite_NestedMessage();
74
+
75
+ TestAllTypesLite_NestedMessage(const TestAllTypesLite_NestedMessage& from);
76
+
77
+ inline TestAllTypesLite_NestedMessage& operator=(const TestAllTypesLite_NestedMessage& from) {
78
+ CopyFrom(from);
79
+ return *this;
80
+ }
81
+
82
+ static const TestAllTypesLite_NestedMessage& default_instance();
83
+
84
+ void Swap(TestAllTypesLite_NestedMessage* other);
85
+
86
+ // implements Message ----------------------------------------------
87
+
88
+ TestAllTypesLite_NestedMessage* New() const;
89
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
90
+ void CopyFrom(const TestAllTypesLite_NestedMessage& from);
91
+ void MergeFrom(const TestAllTypesLite_NestedMessage& from);
92
+ void Clear();
93
+ bool IsInitialized() const;
94
+
95
+ int ByteSize() const;
96
+ bool MergePartialFromCodedStream(
97
+ ::google::protobuf::io::CodedInputStream* input);
98
+ void SerializeWithCachedSizes(
99
+ ::google::protobuf::io::CodedOutputStream* output) const;
100
+ int GetCachedSize() const { return _cached_size_; }
101
+ private:
102
+ void SharedCtor();
103
+ void SharedDtor();
104
+ void SetCachedSize(int size) const;
105
+ public:
106
+
107
+ ::std::string GetTypeName() const;
108
+
109
+ // nested types ----------------------------------------------------
110
+
111
+ // accessors -------------------------------------------------------
112
+
113
+ // optional int32 bb = 1;
114
+ inline bool has_bb() const;
115
+ inline void clear_bb();
116
+ static const int kBbFieldNumber = 1;
117
+ inline ::google::protobuf::int32 bb() const;
118
+ inline void set_bb(::google::protobuf::int32 value);
119
+
120
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite.NestedMessage)
121
+ private:
122
+ inline void set_has_bb();
123
+ inline void clear_has_bb();
124
+
125
+ ::google::protobuf::int32 bb_;
126
+
127
+ mutable int _cached_size_;
128
+ ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
129
+
130
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
131
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
132
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
133
+
134
+ void InitAsDefaultInstance();
135
+ static TestAllTypesLite_NestedMessage* default_instance_;
136
+ };
137
+ // -------------------------------------------------------------------
138
+
139
+ class TestAllTypesLite_OptionalGroup : public ::google::protobuf::MessageLite {
140
+ public:
141
+ TestAllTypesLite_OptionalGroup();
142
+ virtual ~TestAllTypesLite_OptionalGroup();
143
+
144
+ TestAllTypesLite_OptionalGroup(const TestAllTypesLite_OptionalGroup& from);
145
+
146
+ inline TestAllTypesLite_OptionalGroup& operator=(const TestAllTypesLite_OptionalGroup& from) {
147
+ CopyFrom(from);
148
+ return *this;
149
+ }
150
+
151
+ static const TestAllTypesLite_OptionalGroup& default_instance();
152
+
153
+ void Swap(TestAllTypesLite_OptionalGroup* other);
154
+
155
+ // implements Message ----------------------------------------------
156
+
157
+ TestAllTypesLite_OptionalGroup* New() const;
158
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
159
+ void CopyFrom(const TestAllTypesLite_OptionalGroup& from);
160
+ void MergeFrom(const TestAllTypesLite_OptionalGroup& from);
161
+ void Clear();
162
+ bool IsInitialized() const;
163
+
164
+ int ByteSize() const;
165
+ bool MergePartialFromCodedStream(
166
+ ::google::protobuf::io::CodedInputStream* input);
167
+ void SerializeWithCachedSizes(
168
+ ::google::protobuf::io::CodedOutputStream* output) const;
169
+ int GetCachedSize() const { return _cached_size_; }
170
+ private:
171
+ void SharedCtor();
172
+ void SharedDtor();
173
+ void SetCachedSize(int size) const;
174
+ public:
175
+
176
+ ::std::string GetTypeName() const;
177
+
178
+ // nested types ----------------------------------------------------
179
+
180
+ // accessors -------------------------------------------------------
181
+
182
+ // optional int32 a = 17;
183
+ inline bool has_a() const;
184
+ inline void clear_a();
185
+ static const int kAFieldNumber = 17;
186
+ inline ::google::protobuf::int32 a() const;
187
+ inline void set_a(::google::protobuf::int32 value);
188
+
189
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite.OptionalGroup)
190
+ private:
191
+ inline void set_has_a();
192
+ inline void clear_has_a();
193
+
194
+ ::google::protobuf::int32 a_;
195
+
196
+ mutable int _cached_size_;
197
+ ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
198
+
199
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
200
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
201
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
202
+
203
+ void InitAsDefaultInstance();
204
+ static TestAllTypesLite_OptionalGroup* default_instance_;
205
+ };
206
+ // -------------------------------------------------------------------
207
+
208
+ class TestAllTypesLite_RepeatedGroup : public ::google::protobuf::MessageLite {
209
+ public:
210
+ TestAllTypesLite_RepeatedGroup();
211
+ virtual ~TestAllTypesLite_RepeatedGroup();
212
+
213
+ TestAllTypesLite_RepeatedGroup(const TestAllTypesLite_RepeatedGroup& from);
214
+
215
+ inline TestAllTypesLite_RepeatedGroup& operator=(const TestAllTypesLite_RepeatedGroup& from) {
216
+ CopyFrom(from);
217
+ return *this;
218
+ }
219
+
220
+ static const TestAllTypesLite_RepeatedGroup& default_instance();
221
+
222
+ void Swap(TestAllTypesLite_RepeatedGroup* other);
223
+
224
+ // implements Message ----------------------------------------------
225
+
226
+ TestAllTypesLite_RepeatedGroup* New() const;
227
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
228
+ void CopyFrom(const TestAllTypesLite_RepeatedGroup& from);
229
+ void MergeFrom(const TestAllTypesLite_RepeatedGroup& from);
230
+ void Clear();
231
+ bool IsInitialized() const;
232
+
233
+ int ByteSize() const;
234
+ bool MergePartialFromCodedStream(
235
+ ::google::protobuf::io::CodedInputStream* input);
236
+ void SerializeWithCachedSizes(
237
+ ::google::protobuf::io::CodedOutputStream* output) const;
238
+ int GetCachedSize() const { return _cached_size_; }
239
+ private:
240
+ void SharedCtor();
241
+ void SharedDtor();
242
+ void SetCachedSize(int size) const;
243
+ public:
244
+
245
+ ::std::string GetTypeName() const;
246
+
247
+ // nested types ----------------------------------------------------
248
+
249
+ // accessors -------------------------------------------------------
250
+
251
+ // optional int32 a = 47;
252
+ inline bool has_a() const;
253
+ inline void clear_a();
254
+ static const int kAFieldNumber = 47;
255
+ inline ::google::protobuf::int32 a() const;
256
+ inline void set_a(::google::protobuf::int32 value);
257
+
258
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite.RepeatedGroup)
259
+ private:
260
+ inline void set_has_a();
261
+ inline void clear_has_a();
262
+
263
+ ::google::protobuf::int32 a_;
264
+
265
+ mutable int _cached_size_;
266
+ ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
267
+
268
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
269
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
270
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
271
+
272
+ void InitAsDefaultInstance();
273
+ static TestAllTypesLite_RepeatedGroup* default_instance_;
274
+ };
275
+ // -------------------------------------------------------------------
276
+
277
+ class TestAllTypesLite : public ::google::protobuf::MessageLite {
278
+ public:
279
+ TestAllTypesLite();
280
+ virtual ~TestAllTypesLite();
281
+
282
+ TestAllTypesLite(const TestAllTypesLite& from);
283
+
284
+ inline TestAllTypesLite& operator=(const TestAllTypesLite& from) {
285
+ CopyFrom(from);
286
+ return *this;
287
+ }
288
+
289
+ static const TestAllTypesLite& default_instance();
290
+
291
+ void Swap(TestAllTypesLite* other);
292
+
293
+ // implements Message ----------------------------------------------
294
+
295
+ TestAllTypesLite* New() const;
296
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
297
+ void CopyFrom(const TestAllTypesLite& from);
298
+ void MergeFrom(const TestAllTypesLite& from);
299
+ void Clear();
300
+ bool IsInitialized() const;
301
+
302
+ int ByteSize() const;
303
+ bool MergePartialFromCodedStream(
304
+ ::google::protobuf::io::CodedInputStream* input);
305
+ void SerializeWithCachedSizes(
306
+ ::google::protobuf::io::CodedOutputStream* output) const;
307
+ int GetCachedSize() const { return _cached_size_; }
308
+ private:
309
+ void SharedCtor();
310
+ void SharedDtor();
311
+ void SetCachedSize(int size) const;
312
+ public:
313
+
314
+ ::std::string GetTypeName() const;
315
+
316
+ // nested types ----------------------------------------------------
317
+
318
+ typedef TestAllTypesLite_NestedMessage NestedMessage;
319
+ typedef TestAllTypesLite_OptionalGroup OptionalGroup;
320
+ typedef TestAllTypesLite_RepeatedGroup RepeatedGroup;
321
+
322
+ typedef TestAllTypesLite_NestedEnum NestedEnum;
323
+ static const NestedEnum FOO = TestAllTypesLite_NestedEnum_FOO;
324
+ static const NestedEnum BAR = TestAllTypesLite_NestedEnum_BAR;
325
+ static const NestedEnum BAZ = TestAllTypesLite_NestedEnum_BAZ;
326
+ static inline bool NestedEnum_IsValid(int value) {
327
+ return TestAllTypesLite_NestedEnum_IsValid(value);
328
+ }
329
+ static const NestedEnum NestedEnum_MIN =
330
+ TestAllTypesLite_NestedEnum_NestedEnum_MIN;
331
+ static const NestedEnum NestedEnum_MAX =
332
+ TestAllTypesLite_NestedEnum_NestedEnum_MAX;
333
+ static const int NestedEnum_ARRAYSIZE =
334
+ TestAllTypesLite_NestedEnum_NestedEnum_ARRAYSIZE;
335
+
336
+ // accessors -------------------------------------------------------
337
+
338
+ // optional int32 optional_int32 = 1;
339
+ inline bool has_optional_int32() const;
340
+ inline void clear_optional_int32();
341
+ static const int kOptionalInt32FieldNumber = 1;
342
+ inline ::google::protobuf::int32 optional_int32() const;
343
+ inline void set_optional_int32(::google::protobuf::int32 value);
344
+
345
+ // optional int64 optional_int64 = 2;
346
+ inline bool has_optional_int64() const;
347
+ inline void clear_optional_int64();
348
+ static const int kOptionalInt64FieldNumber = 2;
349
+ inline ::google::protobuf::int64 optional_int64() const;
350
+ inline void set_optional_int64(::google::protobuf::int64 value);
351
+
352
+ // optional uint32 optional_uint32 = 3;
353
+ inline bool has_optional_uint32() const;
354
+ inline void clear_optional_uint32();
355
+ static const int kOptionalUint32FieldNumber = 3;
356
+ inline ::google::protobuf::uint32 optional_uint32() const;
357
+ inline void set_optional_uint32(::google::protobuf::uint32 value);
358
+
359
+ // optional uint64 optional_uint64 = 4;
360
+ inline bool has_optional_uint64() const;
361
+ inline void clear_optional_uint64();
362
+ static const int kOptionalUint64FieldNumber = 4;
363
+ inline ::google::protobuf::uint64 optional_uint64() const;
364
+ inline void set_optional_uint64(::google::protobuf::uint64 value);
365
+
366
+ // optional sint32 optional_sint32 = 5;
367
+ inline bool has_optional_sint32() const;
368
+ inline void clear_optional_sint32();
369
+ static const int kOptionalSint32FieldNumber = 5;
370
+ inline ::google::protobuf::int32 optional_sint32() const;
371
+ inline void set_optional_sint32(::google::protobuf::int32 value);
372
+
373
+ // optional sint64 optional_sint64 = 6;
374
+ inline bool has_optional_sint64() const;
375
+ inline void clear_optional_sint64();
376
+ static const int kOptionalSint64FieldNumber = 6;
377
+ inline ::google::protobuf::int64 optional_sint64() const;
378
+ inline void set_optional_sint64(::google::protobuf::int64 value);
379
+
380
+ // optional fixed32 optional_fixed32 = 7;
381
+ inline bool has_optional_fixed32() const;
382
+ inline void clear_optional_fixed32();
383
+ static const int kOptionalFixed32FieldNumber = 7;
384
+ inline ::google::protobuf::uint32 optional_fixed32() const;
385
+ inline void set_optional_fixed32(::google::protobuf::uint32 value);
386
+
387
+ // optional fixed64 optional_fixed64 = 8;
388
+ inline bool has_optional_fixed64() const;
389
+ inline void clear_optional_fixed64();
390
+ static const int kOptionalFixed64FieldNumber = 8;
391
+ inline ::google::protobuf::uint64 optional_fixed64() const;
392
+ inline void set_optional_fixed64(::google::protobuf::uint64 value);
393
+
394
+ // optional sfixed32 optional_sfixed32 = 9;
395
+ inline bool has_optional_sfixed32() const;
396
+ inline void clear_optional_sfixed32();
397
+ static const int kOptionalSfixed32FieldNumber = 9;
398
+ inline ::google::protobuf::int32 optional_sfixed32() const;
399
+ inline void set_optional_sfixed32(::google::protobuf::int32 value);
400
+
401
+ // optional sfixed64 optional_sfixed64 = 10;
402
+ inline bool has_optional_sfixed64() const;
403
+ inline void clear_optional_sfixed64();
404
+ static const int kOptionalSfixed64FieldNumber = 10;
405
+ inline ::google::protobuf::int64 optional_sfixed64() const;
406
+ inline void set_optional_sfixed64(::google::protobuf::int64 value);
407
+
408
+ // optional float optional_float = 11;
409
+ inline bool has_optional_float() const;
410
+ inline void clear_optional_float();
411
+ static const int kOptionalFloatFieldNumber = 11;
412
+ inline float optional_float() const;
413
+ inline void set_optional_float(float value);
414
+
415
+ // optional double optional_double = 12;
416
+ inline bool has_optional_double() const;
417
+ inline void clear_optional_double();
418
+ static const int kOptionalDoubleFieldNumber = 12;
419
+ inline double optional_double() const;
420
+ inline void set_optional_double(double value);
421
+
422
+ // optional bool optional_bool = 13;
423
+ inline bool has_optional_bool() const;
424
+ inline void clear_optional_bool();
425
+ static const int kOptionalBoolFieldNumber = 13;
426
+ inline bool optional_bool() const;
427
+ inline void set_optional_bool(bool value);
428
+
429
+ // optional string optional_string = 14;
430
+ inline bool has_optional_string() const;
431
+ inline void clear_optional_string();
432
+ static const int kOptionalStringFieldNumber = 14;
433
+ inline const ::std::string& optional_string() const;
434
+ inline void set_optional_string(const ::std::string& value);
435
+ inline void set_optional_string(const char* value);
436
+ inline void set_optional_string(const char* value, size_t size);
437
+ inline ::std::string* mutable_optional_string();
438
+ inline ::std::string* release_optional_string();
439
+
440
+ // optional bytes optional_bytes = 15;
441
+ inline bool has_optional_bytes() const;
442
+ inline void clear_optional_bytes();
443
+ static const int kOptionalBytesFieldNumber = 15;
444
+ inline const ::std::string& optional_bytes() const;
445
+ inline void set_optional_bytes(const ::std::string& value);
446
+ inline void set_optional_bytes(const char* value);
447
+ inline void set_optional_bytes(const void* value, size_t size);
448
+ inline ::std::string* mutable_optional_bytes();
449
+ inline ::std::string* release_optional_bytes();
450
+
451
+ // optional group OptionalGroup = 16 {
452
+ inline bool has_optionalgroup() const;
453
+ inline void clear_optionalgroup();
454
+ static const int kOptionalgroupFieldNumber = 16;
455
+ inline const ::protobuf_unittest::TestAllTypesLite_OptionalGroup& optionalgroup() const;
456
+ inline ::protobuf_unittest::TestAllTypesLite_OptionalGroup* mutable_optionalgroup();
457
+ inline ::protobuf_unittest::TestAllTypesLite_OptionalGroup* release_optionalgroup();
458
+
459
+ // optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
460
+ inline bool has_optional_nested_message() const;
461
+ inline void clear_optional_nested_message();
462
+ static const int kOptionalNestedMessageFieldNumber = 18;
463
+ inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& optional_nested_message() const;
464
+ inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* mutable_optional_nested_message();
465
+ inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* release_optional_nested_message();
466
+
467
+ // optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
468
+ inline bool has_optional_foreign_message() const;
469
+ inline void clear_optional_foreign_message();
470
+ static const int kOptionalForeignMessageFieldNumber = 19;
471
+ inline const ::protobuf_unittest::ForeignMessageLite& optional_foreign_message() const;
472
+ inline ::protobuf_unittest::ForeignMessageLite* mutable_optional_foreign_message();
473
+ inline ::protobuf_unittest::ForeignMessageLite* release_optional_foreign_message();
474
+
475
+ // optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
476
+ inline bool has_optional_import_message() const;
477
+ inline void clear_optional_import_message();
478
+ static const int kOptionalImportMessageFieldNumber = 20;
479
+ inline const ::protobuf_unittest_import::ImportMessageLite& optional_import_message() const;
480
+ inline ::protobuf_unittest_import::ImportMessageLite* mutable_optional_import_message();
481
+ inline ::protobuf_unittest_import::ImportMessageLite* release_optional_import_message();
482
+
483
+ // optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
484
+ inline bool has_optional_nested_enum() const;
485
+ inline void clear_optional_nested_enum();
486
+ static const int kOptionalNestedEnumFieldNumber = 21;
487
+ inline ::protobuf_unittest::TestAllTypesLite_NestedEnum optional_nested_enum() const;
488
+ inline void set_optional_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value);
489
+
490
+ // optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
491
+ inline bool has_optional_foreign_enum() const;
492
+ inline void clear_optional_foreign_enum();
493
+ static const int kOptionalForeignEnumFieldNumber = 22;
494
+ inline protobuf_unittest::ForeignEnumLite optional_foreign_enum() const;
495
+ inline void set_optional_foreign_enum(protobuf_unittest::ForeignEnumLite value);
496
+
497
+ // optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
498
+ inline bool has_optional_import_enum() const;
499
+ inline void clear_optional_import_enum();
500
+ static const int kOptionalImportEnumFieldNumber = 23;
501
+ inline protobuf_unittest_import::ImportEnumLite optional_import_enum() const;
502
+ inline void set_optional_import_enum(protobuf_unittest_import::ImportEnumLite value);
503
+
504
+ // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
505
+ inline bool has_optional_string_piece() const;
506
+ inline void clear_optional_string_piece();
507
+ static const int kOptionalStringPieceFieldNumber = 24;
508
+ private:
509
+ // Hidden due to unknown ctype option.
510
+ inline const ::std::string& optional_string_piece() const;
511
+ inline void set_optional_string_piece(const ::std::string& value);
512
+ inline void set_optional_string_piece(const char* value);
513
+ inline void set_optional_string_piece(const char* value, size_t size);
514
+ inline ::std::string* mutable_optional_string_piece();
515
+ inline ::std::string* release_optional_string_piece();
516
+ public:
517
+
518
+ // optional string optional_cord = 25 [ctype = CORD];
519
+ inline bool has_optional_cord() const;
520
+ inline void clear_optional_cord();
521
+ static const int kOptionalCordFieldNumber = 25;
522
+ private:
523
+ // Hidden due to unknown ctype option.
524
+ inline const ::std::string& optional_cord() const;
525
+ inline void set_optional_cord(const ::std::string& value);
526
+ inline void set_optional_cord(const char* value);
527
+ inline void set_optional_cord(const char* value, size_t size);
528
+ inline ::std::string* mutable_optional_cord();
529
+ inline ::std::string* release_optional_cord();
530
+ public:
531
+
532
+ // repeated int32 repeated_int32 = 31;
533
+ inline int repeated_int32_size() const;
534
+ inline void clear_repeated_int32();
535
+ static const int kRepeatedInt32FieldNumber = 31;
536
+ inline ::google::protobuf::int32 repeated_int32(int index) const;
537
+ inline void set_repeated_int32(int index, ::google::protobuf::int32 value);
538
+ inline void add_repeated_int32(::google::protobuf::int32 value);
539
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
540
+ repeated_int32() const;
541
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
542
+ mutable_repeated_int32();
543
+
544
+ // repeated int64 repeated_int64 = 32;
545
+ inline int repeated_int64_size() const;
546
+ inline void clear_repeated_int64();
547
+ static const int kRepeatedInt64FieldNumber = 32;
548
+ inline ::google::protobuf::int64 repeated_int64(int index) const;
549
+ inline void set_repeated_int64(int index, ::google::protobuf::int64 value);
550
+ inline void add_repeated_int64(::google::protobuf::int64 value);
551
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
552
+ repeated_int64() const;
553
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
554
+ mutable_repeated_int64();
555
+
556
+ // repeated uint32 repeated_uint32 = 33;
557
+ inline int repeated_uint32_size() const;
558
+ inline void clear_repeated_uint32();
559
+ static const int kRepeatedUint32FieldNumber = 33;
560
+ inline ::google::protobuf::uint32 repeated_uint32(int index) const;
561
+ inline void set_repeated_uint32(int index, ::google::protobuf::uint32 value);
562
+ inline void add_repeated_uint32(::google::protobuf::uint32 value);
563
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
564
+ repeated_uint32() const;
565
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
566
+ mutable_repeated_uint32();
567
+
568
+ // repeated uint64 repeated_uint64 = 34;
569
+ inline int repeated_uint64_size() const;
570
+ inline void clear_repeated_uint64();
571
+ static const int kRepeatedUint64FieldNumber = 34;
572
+ inline ::google::protobuf::uint64 repeated_uint64(int index) const;
573
+ inline void set_repeated_uint64(int index, ::google::protobuf::uint64 value);
574
+ inline void add_repeated_uint64(::google::protobuf::uint64 value);
575
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
576
+ repeated_uint64() const;
577
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
578
+ mutable_repeated_uint64();
579
+
580
+ // repeated sint32 repeated_sint32 = 35;
581
+ inline int repeated_sint32_size() const;
582
+ inline void clear_repeated_sint32();
583
+ static const int kRepeatedSint32FieldNumber = 35;
584
+ inline ::google::protobuf::int32 repeated_sint32(int index) const;
585
+ inline void set_repeated_sint32(int index, ::google::protobuf::int32 value);
586
+ inline void add_repeated_sint32(::google::protobuf::int32 value);
587
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
588
+ repeated_sint32() const;
589
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
590
+ mutable_repeated_sint32();
591
+
592
+ // repeated sint64 repeated_sint64 = 36;
593
+ inline int repeated_sint64_size() const;
594
+ inline void clear_repeated_sint64();
595
+ static const int kRepeatedSint64FieldNumber = 36;
596
+ inline ::google::protobuf::int64 repeated_sint64(int index) const;
597
+ inline void set_repeated_sint64(int index, ::google::protobuf::int64 value);
598
+ inline void add_repeated_sint64(::google::protobuf::int64 value);
599
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
600
+ repeated_sint64() const;
601
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
602
+ mutable_repeated_sint64();
603
+
604
+ // repeated fixed32 repeated_fixed32 = 37;
605
+ inline int repeated_fixed32_size() const;
606
+ inline void clear_repeated_fixed32();
607
+ static const int kRepeatedFixed32FieldNumber = 37;
608
+ inline ::google::protobuf::uint32 repeated_fixed32(int index) const;
609
+ inline void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
610
+ inline void add_repeated_fixed32(::google::protobuf::uint32 value);
611
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
612
+ repeated_fixed32() const;
613
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
614
+ mutable_repeated_fixed32();
615
+
616
+ // repeated fixed64 repeated_fixed64 = 38;
617
+ inline int repeated_fixed64_size() const;
618
+ inline void clear_repeated_fixed64();
619
+ static const int kRepeatedFixed64FieldNumber = 38;
620
+ inline ::google::protobuf::uint64 repeated_fixed64(int index) const;
621
+ inline void set_repeated_fixed64(int index, ::google::protobuf::uint64 value);
622
+ inline void add_repeated_fixed64(::google::protobuf::uint64 value);
623
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
624
+ repeated_fixed64() const;
625
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
626
+ mutable_repeated_fixed64();
627
+
628
+ // repeated sfixed32 repeated_sfixed32 = 39;
629
+ inline int repeated_sfixed32_size() const;
630
+ inline void clear_repeated_sfixed32();
631
+ static const int kRepeatedSfixed32FieldNumber = 39;
632
+ inline ::google::protobuf::int32 repeated_sfixed32(int index) const;
633
+ inline void set_repeated_sfixed32(int index, ::google::protobuf::int32 value);
634
+ inline void add_repeated_sfixed32(::google::protobuf::int32 value);
635
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
636
+ repeated_sfixed32() const;
637
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
638
+ mutable_repeated_sfixed32();
639
+
640
+ // repeated sfixed64 repeated_sfixed64 = 40;
641
+ inline int repeated_sfixed64_size() const;
642
+ inline void clear_repeated_sfixed64();
643
+ static const int kRepeatedSfixed64FieldNumber = 40;
644
+ inline ::google::protobuf::int64 repeated_sfixed64(int index) const;
645
+ inline void set_repeated_sfixed64(int index, ::google::protobuf::int64 value);
646
+ inline void add_repeated_sfixed64(::google::protobuf::int64 value);
647
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
648
+ repeated_sfixed64() const;
649
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
650
+ mutable_repeated_sfixed64();
651
+
652
+ // repeated float repeated_float = 41;
653
+ inline int repeated_float_size() const;
654
+ inline void clear_repeated_float();
655
+ static const int kRepeatedFloatFieldNumber = 41;
656
+ inline float repeated_float(int index) const;
657
+ inline void set_repeated_float(int index, float value);
658
+ inline void add_repeated_float(float value);
659
+ inline const ::google::protobuf::RepeatedField< float >&
660
+ repeated_float() const;
661
+ inline ::google::protobuf::RepeatedField< float >*
662
+ mutable_repeated_float();
663
+
664
+ // repeated double repeated_double = 42;
665
+ inline int repeated_double_size() const;
666
+ inline void clear_repeated_double();
667
+ static const int kRepeatedDoubleFieldNumber = 42;
668
+ inline double repeated_double(int index) const;
669
+ inline void set_repeated_double(int index, double value);
670
+ inline void add_repeated_double(double value);
671
+ inline const ::google::protobuf::RepeatedField< double >&
672
+ repeated_double() const;
673
+ inline ::google::protobuf::RepeatedField< double >*
674
+ mutable_repeated_double();
675
+
676
+ // repeated bool repeated_bool = 43;
677
+ inline int repeated_bool_size() const;
678
+ inline void clear_repeated_bool();
679
+ static const int kRepeatedBoolFieldNumber = 43;
680
+ inline bool repeated_bool(int index) const;
681
+ inline void set_repeated_bool(int index, bool value);
682
+ inline void add_repeated_bool(bool value);
683
+ inline const ::google::protobuf::RepeatedField< bool >&
684
+ repeated_bool() const;
685
+ inline ::google::protobuf::RepeatedField< bool >*
686
+ mutable_repeated_bool();
687
+
688
+ // repeated string repeated_string = 44;
689
+ inline int repeated_string_size() const;
690
+ inline void clear_repeated_string();
691
+ static const int kRepeatedStringFieldNumber = 44;
692
+ inline const ::std::string& repeated_string(int index) const;
693
+ inline ::std::string* mutable_repeated_string(int index);
694
+ inline void set_repeated_string(int index, const ::std::string& value);
695
+ inline void set_repeated_string(int index, const char* value);
696
+ inline void set_repeated_string(int index, const char* value, size_t size);
697
+ inline ::std::string* add_repeated_string();
698
+ inline void add_repeated_string(const ::std::string& value);
699
+ inline void add_repeated_string(const char* value);
700
+ inline void add_repeated_string(const char* value, size_t size);
701
+ inline const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string() const;
702
+ inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string();
703
+
704
+ // repeated bytes repeated_bytes = 45;
705
+ inline int repeated_bytes_size() const;
706
+ inline void clear_repeated_bytes();
707
+ static const int kRepeatedBytesFieldNumber = 45;
708
+ inline const ::std::string& repeated_bytes(int index) const;
709
+ inline ::std::string* mutable_repeated_bytes(int index);
710
+ inline void set_repeated_bytes(int index, const ::std::string& value);
711
+ inline void set_repeated_bytes(int index, const char* value);
712
+ inline void set_repeated_bytes(int index, const void* value, size_t size);
713
+ inline ::std::string* add_repeated_bytes();
714
+ inline void add_repeated_bytes(const ::std::string& value);
715
+ inline void add_repeated_bytes(const char* value);
716
+ inline void add_repeated_bytes(const void* value, size_t size);
717
+ inline const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_bytes() const;
718
+ inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_bytes();
719
+
720
+ // repeated group RepeatedGroup = 46 {
721
+ inline int repeatedgroup_size() const;
722
+ inline void clear_repeatedgroup();
723
+ static const int kRepeatedgroupFieldNumber = 46;
724
+ inline const ::protobuf_unittest::TestAllTypesLite_RepeatedGroup& repeatedgroup(int index) const;
725
+ inline ::protobuf_unittest::TestAllTypesLite_RepeatedGroup* mutable_repeatedgroup(int index);
726
+ inline ::protobuf_unittest::TestAllTypesLite_RepeatedGroup* add_repeatedgroup();
727
+ inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_RepeatedGroup >&
728
+ repeatedgroup() const;
729
+ inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_RepeatedGroup >*
730
+ mutable_repeatedgroup();
731
+
732
+ // repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
733
+ inline int repeated_nested_message_size() const;
734
+ inline void clear_repeated_nested_message();
735
+ static const int kRepeatedNestedMessageFieldNumber = 48;
736
+ inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& repeated_nested_message(int index) const;
737
+ inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* mutable_repeated_nested_message(int index);
738
+ inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* add_repeated_nested_message();
739
+ inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >&
740
+ repeated_nested_message() const;
741
+ inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >*
742
+ mutable_repeated_nested_message();
743
+
744
+ // repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
745
+ inline int repeated_foreign_message_size() const;
746
+ inline void clear_repeated_foreign_message();
747
+ static const int kRepeatedForeignMessageFieldNumber = 49;
748
+ inline const ::protobuf_unittest::ForeignMessageLite& repeated_foreign_message(int index) const;
749
+ inline ::protobuf_unittest::ForeignMessageLite* mutable_repeated_foreign_message(int index);
750
+ inline ::protobuf_unittest::ForeignMessageLite* add_repeated_foreign_message();
751
+ inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessageLite >&
752
+ repeated_foreign_message() const;
753
+ inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessageLite >*
754
+ mutable_repeated_foreign_message();
755
+
756
+ // repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
757
+ inline int repeated_import_message_size() const;
758
+ inline void clear_repeated_import_message();
759
+ static const int kRepeatedImportMessageFieldNumber = 50;
760
+ inline const ::protobuf_unittest_import::ImportMessageLite& repeated_import_message(int index) const;
761
+ inline ::protobuf_unittest_import::ImportMessageLite* mutable_repeated_import_message(int index);
762
+ inline ::protobuf_unittest_import::ImportMessageLite* add_repeated_import_message();
763
+ inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessageLite >&
764
+ repeated_import_message() const;
765
+ inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessageLite >*
766
+ mutable_repeated_import_message();
767
+
768
+ // repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
769
+ inline int repeated_nested_enum_size() const;
770
+ inline void clear_repeated_nested_enum();
771
+ static const int kRepeatedNestedEnumFieldNumber = 51;
772
+ inline ::protobuf_unittest::TestAllTypesLite_NestedEnum repeated_nested_enum(int index) const;
773
+ inline void set_repeated_nested_enum(int index, ::protobuf_unittest::TestAllTypesLite_NestedEnum value);
774
+ inline void add_repeated_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value);
775
+ inline const ::google::protobuf::RepeatedField<int>& repeated_nested_enum() const;
776
+ inline ::google::protobuf::RepeatedField<int>* mutable_repeated_nested_enum();
777
+
778
+ // repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
779
+ inline int repeated_foreign_enum_size() const;
780
+ inline void clear_repeated_foreign_enum();
781
+ static const int kRepeatedForeignEnumFieldNumber = 52;
782
+ inline protobuf_unittest::ForeignEnumLite repeated_foreign_enum(int index) const;
783
+ inline void set_repeated_foreign_enum(int index, protobuf_unittest::ForeignEnumLite value);
784
+ inline void add_repeated_foreign_enum(protobuf_unittest::ForeignEnumLite value);
785
+ inline const ::google::protobuf::RepeatedField<int>& repeated_foreign_enum() const;
786
+ inline ::google::protobuf::RepeatedField<int>* mutable_repeated_foreign_enum();
787
+
788
+ // repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
789
+ inline int repeated_import_enum_size() const;
790
+ inline void clear_repeated_import_enum();
791
+ static const int kRepeatedImportEnumFieldNumber = 53;
792
+ inline protobuf_unittest_import::ImportEnumLite repeated_import_enum(int index) const;
793
+ inline void set_repeated_import_enum(int index, protobuf_unittest_import::ImportEnumLite value);
794
+ inline void add_repeated_import_enum(protobuf_unittest_import::ImportEnumLite value);
795
+ inline const ::google::protobuf::RepeatedField<int>& repeated_import_enum() const;
796
+ inline ::google::protobuf::RepeatedField<int>* mutable_repeated_import_enum();
797
+
798
+ // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
799
+ inline int repeated_string_piece_size() const;
800
+ inline void clear_repeated_string_piece();
801
+ static const int kRepeatedStringPieceFieldNumber = 54;
802
+ private:
803
+ // Hidden due to unknown ctype option.
804
+ inline const ::std::string& repeated_string_piece(int index) const;
805
+ inline ::std::string* mutable_repeated_string_piece(int index);
806
+ inline void set_repeated_string_piece(int index, const ::std::string& value);
807
+ inline void set_repeated_string_piece(int index, const char* value);
808
+ inline void set_repeated_string_piece(int index, const char* value, size_t size);
809
+ inline ::std::string* add_repeated_string_piece();
810
+ inline void add_repeated_string_piece(const ::std::string& value);
811
+ inline void add_repeated_string_piece(const char* value);
812
+ inline void add_repeated_string_piece(const char* value, size_t size);
813
+ inline const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string_piece() const;
814
+ inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string_piece();
815
+ public:
816
+
817
+ // repeated string repeated_cord = 55 [ctype = CORD];
818
+ inline int repeated_cord_size() const;
819
+ inline void clear_repeated_cord();
820
+ static const int kRepeatedCordFieldNumber = 55;
821
+ private:
822
+ // Hidden due to unknown ctype option.
823
+ inline const ::std::string& repeated_cord(int index) const;
824
+ inline ::std::string* mutable_repeated_cord(int index);
825
+ inline void set_repeated_cord(int index, const ::std::string& value);
826
+ inline void set_repeated_cord(int index, const char* value);
827
+ inline void set_repeated_cord(int index, const char* value, size_t size);
828
+ inline ::std::string* add_repeated_cord();
829
+ inline void add_repeated_cord(const ::std::string& value);
830
+ inline void add_repeated_cord(const char* value);
831
+ inline void add_repeated_cord(const char* value, size_t size);
832
+ inline const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_cord() const;
833
+ inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_cord();
834
+ public:
835
+
836
+ // optional int32 default_int32 = 61 [default = 41];
837
+ inline bool has_default_int32() const;
838
+ inline void clear_default_int32();
839
+ static const int kDefaultInt32FieldNumber = 61;
840
+ inline ::google::protobuf::int32 default_int32() const;
841
+ inline void set_default_int32(::google::protobuf::int32 value);
842
+
843
+ // optional int64 default_int64 = 62 [default = 42];
844
+ inline bool has_default_int64() const;
845
+ inline void clear_default_int64();
846
+ static const int kDefaultInt64FieldNumber = 62;
847
+ inline ::google::protobuf::int64 default_int64() const;
848
+ inline void set_default_int64(::google::protobuf::int64 value);
849
+
850
+ // optional uint32 default_uint32 = 63 [default = 43];
851
+ inline bool has_default_uint32() const;
852
+ inline void clear_default_uint32();
853
+ static const int kDefaultUint32FieldNumber = 63;
854
+ inline ::google::protobuf::uint32 default_uint32() const;
855
+ inline void set_default_uint32(::google::protobuf::uint32 value);
856
+
857
+ // optional uint64 default_uint64 = 64 [default = 44];
858
+ inline bool has_default_uint64() const;
859
+ inline void clear_default_uint64();
860
+ static const int kDefaultUint64FieldNumber = 64;
861
+ inline ::google::protobuf::uint64 default_uint64() const;
862
+ inline void set_default_uint64(::google::protobuf::uint64 value);
863
+
864
+ // optional sint32 default_sint32 = 65 [default = -45];
865
+ inline bool has_default_sint32() const;
866
+ inline void clear_default_sint32();
867
+ static const int kDefaultSint32FieldNumber = 65;
868
+ inline ::google::protobuf::int32 default_sint32() const;
869
+ inline void set_default_sint32(::google::protobuf::int32 value);
870
+
871
+ // optional sint64 default_sint64 = 66 [default = 46];
872
+ inline bool has_default_sint64() const;
873
+ inline void clear_default_sint64();
874
+ static const int kDefaultSint64FieldNumber = 66;
875
+ inline ::google::protobuf::int64 default_sint64() const;
876
+ inline void set_default_sint64(::google::protobuf::int64 value);
877
+
878
+ // optional fixed32 default_fixed32 = 67 [default = 47];
879
+ inline bool has_default_fixed32() const;
880
+ inline void clear_default_fixed32();
881
+ static const int kDefaultFixed32FieldNumber = 67;
882
+ inline ::google::protobuf::uint32 default_fixed32() const;
883
+ inline void set_default_fixed32(::google::protobuf::uint32 value);
884
+
885
+ // optional fixed64 default_fixed64 = 68 [default = 48];
886
+ inline bool has_default_fixed64() const;
887
+ inline void clear_default_fixed64();
888
+ static const int kDefaultFixed64FieldNumber = 68;
889
+ inline ::google::protobuf::uint64 default_fixed64() const;
890
+ inline void set_default_fixed64(::google::protobuf::uint64 value);
891
+
892
+ // optional sfixed32 default_sfixed32 = 69 [default = 49];
893
+ inline bool has_default_sfixed32() const;
894
+ inline void clear_default_sfixed32();
895
+ static const int kDefaultSfixed32FieldNumber = 69;
896
+ inline ::google::protobuf::int32 default_sfixed32() const;
897
+ inline void set_default_sfixed32(::google::protobuf::int32 value);
898
+
899
+ // optional sfixed64 default_sfixed64 = 70 [default = -50];
900
+ inline bool has_default_sfixed64() const;
901
+ inline void clear_default_sfixed64();
902
+ static const int kDefaultSfixed64FieldNumber = 70;
903
+ inline ::google::protobuf::int64 default_sfixed64() const;
904
+ inline void set_default_sfixed64(::google::protobuf::int64 value);
905
+
906
+ // optional float default_float = 71 [default = 51.5];
907
+ inline bool has_default_float() const;
908
+ inline void clear_default_float();
909
+ static const int kDefaultFloatFieldNumber = 71;
910
+ inline float default_float() const;
911
+ inline void set_default_float(float value);
912
+
913
+ // optional double default_double = 72 [default = 52000];
914
+ inline bool has_default_double() const;
915
+ inline void clear_default_double();
916
+ static const int kDefaultDoubleFieldNumber = 72;
917
+ inline double default_double() const;
918
+ inline void set_default_double(double value);
919
+
920
+ // optional bool default_bool = 73 [default = true];
921
+ inline bool has_default_bool() const;
922
+ inline void clear_default_bool();
923
+ static const int kDefaultBoolFieldNumber = 73;
924
+ inline bool default_bool() const;
925
+ inline void set_default_bool(bool value);
926
+
927
+ // optional string default_string = 74 [default = "hello"];
928
+ inline bool has_default_string() const;
929
+ inline void clear_default_string();
930
+ static const int kDefaultStringFieldNumber = 74;
931
+ inline const ::std::string& default_string() const;
932
+ inline void set_default_string(const ::std::string& value);
933
+ inline void set_default_string(const char* value);
934
+ inline void set_default_string(const char* value, size_t size);
935
+ inline ::std::string* mutable_default_string();
936
+ inline ::std::string* release_default_string();
937
+
938
+ // optional bytes default_bytes = 75 [default = "world"];
939
+ inline bool has_default_bytes() const;
940
+ inline void clear_default_bytes();
941
+ static const int kDefaultBytesFieldNumber = 75;
942
+ inline const ::std::string& default_bytes() const;
943
+ inline void set_default_bytes(const ::std::string& value);
944
+ inline void set_default_bytes(const char* value);
945
+ inline void set_default_bytes(const void* value, size_t size);
946
+ inline ::std::string* mutable_default_bytes();
947
+ inline ::std::string* release_default_bytes();
948
+
949
+ // optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
950
+ inline bool has_default_nested_enum() const;
951
+ inline void clear_default_nested_enum();
952
+ static const int kDefaultNestedEnumFieldNumber = 81;
953
+ inline ::protobuf_unittest::TestAllTypesLite_NestedEnum default_nested_enum() const;
954
+ inline void set_default_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value);
955
+
956
+ // optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
957
+ inline bool has_default_foreign_enum() const;
958
+ inline void clear_default_foreign_enum();
959
+ static const int kDefaultForeignEnumFieldNumber = 82;
960
+ inline protobuf_unittest::ForeignEnumLite default_foreign_enum() const;
961
+ inline void set_default_foreign_enum(protobuf_unittest::ForeignEnumLite value);
962
+
963
+ // optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
964
+ inline bool has_default_import_enum() const;
965
+ inline void clear_default_import_enum();
966
+ static const int kDefaultImportEnumFieldNumber = 83;
967
+ inline protobuf_unittest_import::ImportEnumLite default_import_enum() const;
968
+ inline void set_default_import_enum(protobuf_unittest_import::ImportEnumLite value);
969
+
970
+ // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
971
+ inline bool has_default_string_piece() const;
972
+ inline void clear_default_string_piece();
973
+ static const int kDefaultStringPieceFieldNumber = 84;
974
+ private:
975
+ // Hidden due to unknown ctype option.
976
+ inline const ::std::string& default_string_piece() const;
977
+ inline void set_default_string_piece(const ::std::string& value);
978
+ inline void set_default_string_piece(const char* value);
979
+ inline void set_default_string_piece(const char* value, size_t size);
980
+ inline ::std::string* mutable_default_string_piece();
981
+ inline ::std::string* release_default_string_piece();
982
+ public:
983
+
984
+ // optional string default_cord = 85 [default = "123", ctype = CORD];
985
+ inline bool has_default_cord() const;
986
+ inline void clear_default_cord();
987
+ static const int kDefaultCordFieldNumber = 85;
988
+ private:
989
+ // Hidden due to unknown ctype option.
990
+ inline const ::std::string& default_cord() const;
991
+ inline void set_default_cord(const ::std::string& value);
992
+ inline void set_default_cord(const char* value);
993
+ inline void set_default_cord(const char* value, size_t size);
994
+ inline ::std::string* mutable_default_cord();
995
+ inline ::std::string* release_default_cord();
996
+ public:
997
+
998
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite)
999
+ private:
1000
+ inline void set_has_optional_int32();
1001
+ inline void clear_has_optional_int32();
1002
+ inline void set_has_optional_int64();
1003
+ inline void clear_has_optional_int64();
1004
+ inline void set_has_optional_uint32();
1005
+ inline void clear_has_optional_uint32();
1006
+ inline void set_has_optional_uint64();
1007
+ inline void clear_has_optional_uint64();
1008
+ inline void set_has_optional_sint32();
1009
+ inline void clear_has_optional_sint32();
1010
+ inline void set_has_optional_sint64();
1011
+ inline void clear_has_optional_sint64();
1012
+ inline void set_has_optional_fixed32();
1013
+ inline void clear_has_optional_fixed32();
1014
+ inline void set_has_optional_fixed64();
1015
+ inline void clear_has_optional_fixed64();
1016
+ inline void set_has_optional_sfixed32();
1017
+ inline void clear_has_optional_sfixed32();
1018
+ inline void set_has_optional_sfixed64();
1019
+ inline void clear_has_optional_sfixed64();
1020
+ inline void set_has_optional_float();
1021
+ inline void clear_has_optional_float();
1022
+ inline void set_has_optional_double();
1023
+ inline void clear_has_optional_double();
1024
+ inline void set_has_optional_bool();
1025
+ inline void clear_has_optional_bool();
1026
+ inline void set_has_optional_string();
1027
+ inline void clear_has_optional_string();
1028
+ inline void set_has_optional_bytes();
1029
+ inline void clear_has_optional_bytes();
1030
+ inline void set_has_optionalgroup();
1031
+ inline void clear_has_optionalgroup();
1032
+ inline void set_has_optional_nested_message();
1033
+ inline void clear_has_optional_nested_message();
1034
+ inline void set_has_optional_foreign_message();
1035
+ inline void clear_has_optional_foreign_message();
1036
+ inline void set_has_optional_import_message();
1037
+ inline void clear_has_optional_import_message();
1038
+ inline void set_has_optional_nested_enum();
1039
+ inline void clear_has_optional_nested_enum();
1040
+ inline void set_has_optional_foreign_enum();
1041
+ inline void clear_has_optional_foreign_enum();
1042
+ inline void set_has_optional_import_enum();
1043
+ inline void clear_has_optional_import_enum();
1044
+ inline void set_has_optional_string_piece();
1045
+ inline void clear_has_optional_string_piece();
1046
+ inline void set_has_optional_cord();
1047
+ inline void clear_has_optional_cord();
1048
+ inline void set_has_default_int32();
1049
+ inline void clear_has_default_int32();
1050
+ inline void set_has_default_int64();
1051
+ inline void clear_has_default_int64();
1052
+ inline void set_has_default_uint32();
1053
+ inline void clear_has_default_uint32();
1054
+ inline void set_has_default_uint64();
1055
+ inline void clear_has_default_uint64();
1056
+ inline void set_has_default_sint32();
1057
+ inline void clear_has_default_sint32();
1058
+ inline void set_has_default_sint64();
1059
+ inline void clear_has_default_sint64();
1060
+ inline void set_has_default_fixed32();
1061
+ inline void clear_has_default_fixed32();
1062
+ inline void set_has_default_fixed64();
1063
+ inline void clear_has_default_fixed64();
1064
+ inline void set_has_default_sfixed32();
1065
+ inline void clear_has_default_sfixed32();
1066
+ inline void set_has_default_sfixed64();
1067
+ inline void clear_has_default_sfixed64();
1068
+ inline void set_has_default_float();
1069
+ inline void clear_has_default_float();
1070
+ inline void set_has_default_double();
1071
+ inline void clear_has_default_double();
1072
+ inline void set_has_default_bool();
1073
+ inline void clear_has_default_bool();
1074
+ inline void set_has_default_string();
1075
+ inline void clear_has_default_string();
1076
+ inline void set_has_default_bytes();
1077
+ inline void clear_has_default_bytes();
1078
+ inline void set_has_default_nested_enum();
1079
+ inline void clear_has_default_nested_enum();
1080
+ inline void set_has_default_foreign_enum();
1081
+ inline void clear_has_default_foreign_enum();
1082
+ inline void set_has_default_import_enum();
1083
+ inline void clear_has_default_import_enum();
1084
+ inline void set_has_default_string_piece();
1085
+ inline void clear_has_default_string_piece();
1086
+ inline void set_has_default_cord();
1087
+ inline void clear_has_default_cord();
1088
+
1089
+ ::google::protobuf::int32 optional_int32_;
1090
+ ::google::protobuf::uint32 optional_uint32_;
1091
+ ::google::protobuf::int64 optional_int64_;
1092
+ ::google::protobuf::uint64 optional_uint64_;
1093
+ ::google::protobuf::int32 optional_sint32_;
1094
+ ::google::protobuf::uint32 optional_fixed32_;
1095
+ ::google::protobuf::int64 optional_sint64_;
1096
+ ::google::protobuf::uint64 optional_fixed64_;
1097
+ ::google::protobuf::int32 optional_sfixed32_;
1098
+ float optional_float_;
1099
+ ::google::protobuf::int64 optional_sfixed64_;
1100
+ double optional_double_;
1101
+ ::std::string* optional_string_;
1102
+ ::std::string* optional_bytes_;
1103
+ ::protobuf_unittest::TestAllTypesLite_OptionalGroup* optionalgroup_;
1104
+ ::protobuf_unittest::TestAllTypesLite_NestedMessage* optional_nested_message_;
1105
+ ::protobuf_unittest::ForeignMessageLite* optional_foreign_message_;
1106
+ ::protobuf_unittest_import::ImportMessageLite* optional_import_message_;
1107
+ int optional_nested_enum_;
1108
+ int optional_foreign_enum_;
1109
+ ::std::string* optional_string_piece_;
1110
+ ::std::string* optional_cord_;
1111
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
1112
+ ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_;
1113
+ ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_uint32_;
1114
+ ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_;
1115
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sint32_;
1116
+ ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sint64_;
1117
+ ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
1118
+ ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_fixed64_;
1119
+ int optional_import_enum_;
1120
+ bool optional_bool_;
1121
+ bool default_bool_;
1122
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sfixed32_;
1123
+ ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sfixed64_;
1124
+ ::google::protobuf::RepeatedField< float > repeated_float_;
1125
+ ::google::protobuf::RepeatedField< double > repeated_double_;
1126
+ ::google::protobuf::RepeatedField< bool > repeated_bool_;
1127
+ ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_;
1128
+ ::google::protobuf::RepeatedPtrField< ::std::string> repeated_bytes_;
1129
+ ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_RepeatedGroup > repeatedgroup_;
1130
+ ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage > repeated_nested_message_;
1131
+ ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessageLite > repeated_foreign_message_;
1132
+ ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessageLite > repeated_import_message_;
1133
+ ::google::protobuf::RepeatedField<int> repeated_nested_enum_;
1134
+ ::google::protobuf::RepeatedField<int> repeated_foreign_enum_;
1135
+ ::google::protobuf::RepeatedField<int> repeated_import_enum_;
1136
+ ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_piece_;
1137
+ ::google::protobuf::RepeatedPtrField< ::std::string> repeated_cord_;
1138
+ ::google::protobuf::int64 default_int64_;
1139
+ ::google::protobuf::int32 default_int32_;
1140
+ ::google::protobuf::uint32 default_uint32_;
1141
+ ::google::protobuf::uint64 default_uint64_;
1142
+ ::google::protobuf::int32 default_sint32_;
1143
+ ::google::protobuf::uint32 default_fixed32_;
1144
+ ::google::protobuf::int64 default_sint64_;
1145
+ ::google::protobuf::uint64 default_fixed64_;
1146
+ ::google::protobuf::int32 default_sfixed32_;
1147
+ float default_float_;
1148
+ ::google::protobuf::int64 default_sfixed64_;
1149
+ double default_double_;
1150
+ ::std::string* default_string_;
1151
+ static const ::std::string _default_default_string_;
1152
+ ::std::string* default_bytes_;
1153
+ static const ::std::string _default_default_bytes_;
1154
+ int default_nested_enum_;
1155
+ int default_foreign_enum_;
1156
+ ::std::string* default_string_piece_;
1157
+ static const ::std::string _default_default_string_piece_;
1158
+ ::std::string* default_cord_;
1159
+ static const ::std::string _default_default_cord_;
1160
+ int default_import_enum_;
1161
+
1162
+ mutable int _cached_size_;
1163
+ ::google::protobuf::uint32 _has_bits_[(68 + 31) / 32];
1164
+
1165
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1166
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1167
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
1168
+
1169
+ void InitAsDefaultInstance();
1170
+ static TestAllTypesLite* default_instance_;
1171
+ };
1172
+ // -------------------------------------------------------------------
1173
+
1174
+ class ForeignMessageLite : public ::google::protobuf::MessageLite {
1175
+ public:
1176
+ ForeignMessageLite();
1177
+ virtual ~ForeignMessageLite();
1178
+
1179
+ ForeignMessageLite(const ForeignMessageLite& from);
1180
+
1181
+ inline ForeignMessageLite& operator=(const ForeignMessageLite& from) {
1182
+ CopyFrom(from);
1183
+ return *this;
1184
+ }
1185
+
1186
+ static const ForeignMessageLite& default_instance();
1187
+
1188
+ void Swap(ForeignMessageLite* other);
1189
+
1190
+ // implements Message ----------------------------------------------
1191
+
1192
+ ForeignMessageLite* New() const;
1193
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1194
+ void CopyFrom(const ForeignMessageLite& from);
1195
+ void MergeFrom(const ForeignMessageLite& from);
1196
+ void Clear();
1197
+ bool IsInitialized() const;
1198
+
1199
+ int ByteSize() const;
1200
+ bool MergePartialFromCodedStream(
1201
+ ::google::protobuf::io::CodedInputStream* input);
1202
+ void SerializeWithCachedSizes(
1203
+ ::google::protobuf::io::CodedOutputStream* output) const;
1204
+ int GetCachedSize() const { return _cached_size_; }
1205
+ private:
1206
+ void SharedCtor();
1207
+ void SharedDtor();
1208
+ void SetCachedSize(int size) const;
1209
+ public:
1210
+
1211
+ ::std::string GetTypeName() const;
1212
+
1213
+ // nested types ----------------------------------------------------
1214
+
1215
+ // accessors -------------------------------------------------------
1216
+
1217
+ // optional int32 c = 1;
1218
+ inline bool has_c() const;
1219
+ inline void clear_c();
1220
+ static const int kCFieldNumber = 1;
1221
+ inline ::google::protobuf::int32 c() const;
1222
+ inline void set_c(::google::protobuf::int32 value);
1223
+
1224
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.ForeignMessageLite)
1225
+ private:
1226
+ inline void set_has_c();
1227
+ inline void clear_has_c();
1228
+
1229
+ ::google::protobuf::int32 c_;
1230
+
1231
+ mutable int _cached_size_;
1232
+ ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1233
+
1234
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1235
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1236
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
1237
+
1238
+ void InitAsDefaultInstance();
1239
+ static ForeignMessageLite* default_instance_;
1240
+ };
1241
+ // -------------------------------------------------------------------
1242
+
1243
+ class TestPackedTypesLite : public ::google::protobuf::MessageLite {
1244
+ public:
1245
+ TestPackedTypesLite();
1246
+ virtual ~TestPackedTypesLite();
1247
+
1248
+ TestPackedTypesLite(const TestPackedTypesLite& from);
1249
+
1250
+ inline TestPackedTypesLite& operator=(const TestPackedTypesLite& from) {
1251
+ CopyFrom(from);
1252
+ return *this;
1253
+ }
1254
+
1255
+ static const TestPackedTypesLite& default_instance();
1256
+
1257
+ void Swap(TestPackedTypesLite* other);
1258
+
1259
+ // implements Message ----------------------------------------------
1260
+
1261
+ TestPackedTypesLite* New() const;
1262
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1263
+ void CopyFrom(const TestPackedTypesLite& from);
1264
+ void MergeFrom(const TestPackedTypesLite& from);
1265
+ void Clear();
1266
+ bool IsInitialized() const;
1267
+
1268
+ int ByteSize() const;
1269
+ bool MergePartialFromCodedStream(
1270
+ ::google::protobuf::io::CodedInputStream* input);
1271
+ void SerializeWithCachedSizes(
1272
+ ::google::protobuf::io::CodedOutputStream* output) const;
1273
+ int GetCachedSize() const { return _cached_size_; }
1274
+ private:
1275
+ void SharedCtor();
1276
+ void SharedDtor();
1277
+ void SetCachedSize(int size) const;
1278
+ public:
1279
+
1280
+ ::std::string GetTypeName() const;
1281
+
1282
+ // nested types ----------------------------------------------------
1283
+
1284
+ // accessors -------------------------------------------------------
1285
+
1286
+ // repeated int32 packed_int32 = 90 [packed = true];
1287
+ inline int packed_int32_size() const;
1288
+ inline void clear_packed_int32();
1289
+ static const int kPackedInt32FieldNumber = 90;
1290
+ inline ::google::protobuf::int32 packed_int32(int index) const;
1291
+ inline void set_packed_int32(int index, ::google::protobuf::int32 value);
1292
+ inline void add_packed_int32(::google::protobuf::int32 value);
1293
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1294
+ packed_int32() const;
1295
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1296
+ mutable_packed_int32();
1297
+
1298
+ // repeated int64 packed_int64 = 91 [packed = true];
1299
+ inline int packed_int64_size() const;
1300
+ inline void clear_packed_int64();
1301
+ static const int kPackedInt64FieldNumber = 91;
1302
+ inline ::google::protobuf::int64 packed_int64(int index) const;
1303
+ inline void set_packed_int64(int index, ::google::protobuf::int64 value);
1304
+ inline void add_packed_int64(::google::protobuf::int64 value);
1305
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1306
+ packed_int64() const;
1307
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1308
+ mutable_packed_int64();
1309
+
1310
+ // repeated uint32 packed_uint32 = 92 [packed = true];
1311
+ inline int packed_uint32_size() const;
1312
+ inline void clear_packed_uint32();
1313
+ static const int kPackedUint32FieldNumber = 92;
1314
+ inline ::google::protobuf::uint32 packed_uint32(int index) const;
1315
+ inline void set_packed_uint32(int index, ::google::protobuf::uint32 value);
1316
+ inline void add_packed_uint32(::google::protobuf::uint32 value);
1317
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1318
+ packed_uint32() const;
1319
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1320
+ mutable_packed_uint32();
1321
+
1322
+ // repeated uint64 packed_uint64 = 93 [packed = true];
1323
+ inline int packed_uint64_size() const;
1324
+ inline void clear_packed_uint64();
1325
+ static const int kPackedUint64FieldNumber = 93;
1326
+ inline ::google::protobuf::uint64 packed_uint64(int index) const;
1327
+ inline void set_packed_uint64(int index, ::google::protobuf::uint64 value);
1328
+ inline void add_packed_uint64(::google::protobuf::uint64 value);
1329
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
1330
+ packed_uint64() const;
1331
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
1332
+ mutable_packed_uint64();
1333
+
1334
+ // repeated sint32 packed_sint32 = 94 [packed = true];
1335
+ inline int packed_sint32_size() const;
1336
+ inline void clear_packed_sint32();
1337
+ static const int kPackedSint32FieldNumber = 94;
1338
+ inline ::google::protobuf::int32 packed_sint32(int index) const;
1339
+ inline void set_packed_sint32(int index, ::google::protobuf::int32 value);
1340
+ inline void add_packed_sint32(::google::protobuf::int32 value);
1341
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1342
+ packed_sint32() const;
1343
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1344
+ mutable_packed_sint32();
1345
+
1346
+ // repeated sint64 packed_sint64 = 95 [packed = true];
1347
+ inline int packed_sint64_size() const;
1348
+ inline void clear_packed_sint64();
1349
+ static const int kPackedSint64FieldNumber = 95;
1350
+ inline ::google::protobuf::int64 packed_sint64(int index) const;
1351
+ inline void set_packed_sint64(int index, ::google::protobuf::int64 value);
1352
+ inline void add_packed_sint64(::google::protobuf::int64 value);
1353
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1354
+ packed_sint64() const;
1355
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1356
+ mutable_packed_sint64();
1357
+
1358
+ // repeated fixed32 packed_fixed32 = 96 [packed = true];
1359
+ inline int packed_fixed32_size() const;
1360
+ inline void clear_packed_fixed32();
1361
+ static const int kPackedFixed32FieldNumber = 96;
1362
+ inline ::google::protobuf::uint32 packed_fixed32(int index) const;
1363
+ inline void set_packed_fixed32(int index, ::google::protobuf::uint32 value);
1364
+ inline void add_packed_fixed32(::google::protobuf::uint32 value);
1365
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1366
+ packed_fixed32() const;
1367
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1368
+ mutable_packed_fixed32();
1369
+
1370
+ // repeated fixed64 packed_fixed64 = 97 [packed = true];
1371
+ inline int packed_fixed64_size() const;
1372
+ inline void clear_packed_fixed64();
1373
+ static const int kPackedFixed64FieldNumber = 97;
1374
+ inline ::google::protobuf::uint64 packed_fixed64(int index) const;
1375
+ inline void set_packed_fixed64(int index, ::google::protobuf::uint64 value);
1376
+ inline void add_packed_fixed64(::google::protobuf::uint64 value);
1377
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
1378
+ packed_fixed64() const;
1379
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
1380
+ mutable_packed_fixed64();
1381
+
1382
+ // repeated sfixed32 packed_sfixed32 = 98 [packed = true];
1383
+ inline int packed_sfixed32_size() const;
1384
+ inline void clear_packed_sfixed32();
1385
+ static const int kPackedSfixed32FieldNumber = 98;
1386
+ inline ::google::protobuf::int32 packed_sfixed32(int index) const;
1387
+ inline void set_packed_sfixed32(int index, ::google::protobuf::int32 value);
1388
+ inline void add_packed_sfixed32(::google::protobuf::int32 value);
1389
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1390
+ packed_sfixed32() const;
1391
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1392
+ mutable_packed_sfixed32();
1393
+
1394
+ // repeated sfixed64 packed_sfixed64 = 99 [packed = true];
1395
+ inline int packed_sfixed64_size() const;
1396
+ inline void clear_packed_sfixed64();
1397
+ static const int kPackedSfixed64FieldNumber = 99;
1398
+ inline ::google::protobuf::int64 packed_sfixed64(int index) const;
1399
+ inline void set_packed_sfixed64(int index, ::google::protobuf::int64 value);
1400
+ inline void add_packed_sfixed64(::google::protobuf::int64 value);
1401
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1402
+ packed_sfixed64() const;
1403
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1404
+ mutable_packed_sfixed64();
1405
+
1406
+ // repeated float packed_float = 100 [packed = true];
1407
+ inline int packed_float_size() const;
1408
+ inline void clear_packed_float();
1409
+ static const int kPackedFloatFieldNumber = 100;
1410
+ inline float packed_float(int index) const;
1411
+ inline void set_packed_float(int index, float value);
1412
+ inline void add_packed_float(float value);
1413
+ inline const ::google::protobuf::RepeatedField< float >&
1414
+ packed_float() const;
1415
+ inline ::google::protobuf::RepeatedField< float >*
1416
+ mutable_packed_float();
1417
+
1418
+ // repeated double packed_double = 101 [packed = true];
1419
+ inline int packed_double_size() const;
1420
+ inline void clear_packed_double();
1421
+ static const int kPackedDoubleFieldNumber = 101;
1422
+ inline double packed_double(int index) const;
1423
+ inline void set_packed_double(int index, double value);
1424
+ inline void add_packed_double(double value);
1425
+ inline const ::google::protobuf::RepeatedField< double >&
1426
+ packed_double() const;
1427
+ inline ::google::protobuf::RepeatedField< double >*
1428
+ mutable_packed_double();
1429
+
1430
+ // repeated bool packed_bool = 102 [packed = true];
1431
+ inline int packed_bool_size() const;
1432
+ inline void clear_packed_bool();
1433
+ static const int kPackedBoolFieldNumber = 102;
1434
+ inline bool packed_bool(int index) const;
1435
+ inline void set_packed_bool(int index, bool value);
1436
+ inline void add_packed_bool(bool value);
1437
+ inline const ::google::protobuf::RepeatedField< bool >&
1438
+ packed_bool() const;
1439
+ inline ::google::protobuf::RepeatedField< bool >*
1440
+ mutable_packed_bool();
1441
+
1442
+ // repeated .protobuf_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
1443
+ inline int packed_enum_size() const;
1444
+ inline void clear_packed_enum();
1445
+ static const int kPackedEnumFieldNumber = 103;
1446
+ inline protobuf_unittest::ForeignEnumLite packed_enum(int index) const;
1447
+ inline void set_packed_enum(int index, protobuf_unittest::ForeignEnumLite value);
1448
+ inline void add_packed_enum(protobuf_unittest::ForeignEnumLite value);
1449
+ inline const ::google::protobuf::RepeatedField<int>& packed_enum() const;
1450
+ inline ::google::protobuf::RepeatedField<int>* mutable_packed_enum();
1451
+
1452
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.TestPackedTypesLite)
1453
+ private:
1454
+
1455
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_int32_;
1456
+ mutable int _packed_int32_cached_byte_size_;
1457
+ ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_int64_;
1458
+ mutable int _packed_int64_cached_byte_size_;
1459
+ ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > packed_uint32_;
1460
+ mutable int _packed_uint32_cached_byte_size_;
1461
+ ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > packed_uint64_;
1462
+ mutable int _packed_uint64_cached_byte_size_;
1463
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_sint32_;
1464
+ mutable int _packed_sint32_cached_byte_size_;
1465
+ ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_sint64_;
1466
+ mutable int _packed_sint64_cached_byte_size_;
1467
+ ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > packed_fixed32_;
1468
+ mutable int _packed_fixed32_cached_byte_size_;
1469
+ ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > packed_fixed64_;
1470
+ mutable int _packed_fixed64_cached_byte_size_;
1471
+ ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_sfixed32_;
1472
+ mutable int _packed_sfixed32_cached_byte_size_;
1473
+ ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_sfixed64_;
1474
+ mutable int _packed_sfixed64_cached_byte_size_;
1475
+ ::google::protobuf::RepeatedField< float > packed_float_;
1476
+ mutable int _packed_float_cached_byte_size_;
1477
+ ::google::protobuf::RepeatedField< double > packed_double_;
1478
+ mutable int _packed_double_cached_byte_size_;
1479
+ ::google::protobuf::RepeatedField< bool > packed_bool_;
1480
+ mutable int _packed_bool_cached_byte_size_;
1481
+ ::google::protobuf::RepeatedField<int> packed_enum_;
1482
+ mutable int _packed_enum_cached_byte_size_;
1483
+
1484
+ mutable int _cached_size_;
1485
+ ::google::protobuf::uint32 _has_bits_[(14 + 31) / 32];
1486
+
1487
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1488
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1489
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
1490
+
1491
+ void InitAsDefaultInstance();
1492
+ static TestPackedTypesLite* default_instance_;
1493
+ };
1494
+ // -------------------------------------------------------------------
1495
+
1496
+ class TestAllExtensionsLite : public ::google::protobuf::MessageLite {
1497
+ public:
1498
+ TestAllExtensionsLite();
1499
+ virtual ~TestAllExtensionsLite();
1500
+
1501
+ TestAllExtensionsLite(const TestAllExtensionsLite& from);
1502
+
1503
+ inline TestAllExtensionsLite& operator=(const TestAllExtensionsLite& from) {
1504
+ CopyFrom(from);
1505
+ return *this;
1506
+ }
1507
+
1508
+ static const TestAllExtensionsLite& default_instance();
1509
+
1510
+ void Swap(TestAllExtensionsLite* other);
1511
+
1512
+ // implements Message ----------------------------------------------
1513
+
1514
+ TestAllExtensionsLite* New() const;
1515
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1516
+ void CopyFrom(const TestAllExtensionsLite& from);
1517
+ void MergeFrom(const TestAllExtensionsLite& from);
1518
+ void Clear();
1519
+ bool IsInitialized() const;
1520
+
1521
+ int ByteSize() const;
1522
+ bool MergePartialFromCodedStream(
1523
+ ::google::protobuf::io::CodedInputStream* input);
1524
+ void SerializeWithCachedSizes(
1525
+ ::google::protobuf::io::CodedOutputStream* output) const;
1526
+ int GetCachedSize() const { return _cached_size_; }
1527
+ private:
1528
+ void SharedCtor();
1529
+ void SharedDtor();
1530
+ void SetCachedSize(int size) const;
1531
+ public:
1532
+
1533
+ ::std::string GetTypeName() const;
1534
+
1535
+ // nested types ----------------------------------------------------
1536
+
1537
+ // accessors -------------------------------------------------------
1538
+
1539
+ GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestAllExtensionsLite)
1540
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllExtensionsLite)
1541
+ private:
1542
+
1543
+ ::google::protobuf::internal::ExtensionSet _extensions_;
1544
+
1545
+
1546
+ mutable int _cached_size_;
1547
+ ::google::protobuf::uint32 _has_bits_[1];
1548
+
1549
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1550
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1551
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
1552
+
1553
+ void InitAsDefaultInstance();
1554
+ static TestAllExtensionsLite* default_instance_;
1555
+ };
1556
+ // -------------------------------------------------------------------
1557
+
1558
+ class OptionalGroup_extension_lite : public ::google::protobuf::MessageLite {
1559
+ public:
1560
+ OptionalGroup_extension_lite();
1561
+ virtual ~OptionalGroup_extension_lite();
1562
+
1563
+ OptionalGroup_extension_lite(const OptionalGroup_extension_lite& from);
1564
+
1565
+ inline OptionalGroup_extension_lite& operator=(const OptionalGroup_extension_lite& from) {
1566
+ CopyFrom(from);
1567
+ return *this;
1568
+ }
1569
+
1570
+ static const OptionalGroup_extension_lite& default_instance();
1571
+
1572
+ void Swap(OptionalGroup_extension_lite* other);
1573
+
1574
+ // implements Message ----------------------------------------------
1575
+
1576
+ OptionalGroup_extension_lite* New() const;
1577
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1578
+ void CopyFrom(const OptionalGroup_extension_lite& from);
1579
+ void MergeFrom(const OptionalGroup_extension_lite& from);
1580
+ void Clear();
1581
+ bool IsInitialized() const;
1582
+
1583
+ int ByteSize() const;
1584
+ bool MergePartialFromCodedStream(
1585
+ ::google::protobuf::io::CodedInputStream* input);
1586
+ void SerializeWithCachedSizes(
1587
+ ::google::protobuf::io::CodedOutputStream* output) const;
1588
+ int GetCachedSize() const { return _cached_size_; }
1589
+ private:
1590
+ void SharedCtor();
1591
+ void SharedDtor();
1592
+ void SetCachedSize(int size) const;
1593
+ public:
1594
+
1595
+ ::std::string GetTypeName() const;
1596
+
1597
+ // nested types ----------------------------------------------------
1598
+
1599
+ // accessors -------------------------------------------------------
1600
+
1601
+ // optional int32 a = 17;
1602
+ inline bool has_a() const;
1603
+ inline void clear_a();
1604
+ static const int kAFieldNumber = 17;
1605
+ inline ::google::protobuf::int32 a() const;
1606
+ inline void set_a(::google::protobuf::int32 value);
1607
+
1608
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.OptionalGroup_extension_lite)
1609
+ private:
1610
+ inline void set_has_a();
1611
+ inline void clear_has_a();
1612
+
1613
+ ::google::protobuf::int32 a_;
1614
+
1615
+ mutable int _cached_size_;
1616
+ ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1617
+
1618
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1619
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1620
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
1621
+
1622
+ void InitAsDefaultInstance();
1623
+ static OptionalGroup_extension_lite* default_instance_;
1624
+ };
1625
+ // -------------------------------------------------------------------
1626
+
1627
+ class RepeatedGroup_extension_lite : public ::google::protobuf::MessageLite {
1628
+ public:
1629
+ RepeatedGroup_extension_lite();
1630
+ virtual ~RepeatedGroup_extension_lite();
1631
+
1632
+ RepeatedGroup_extension_lite(const RepeatedGroup_extension_lite& from);
1633
+
1634
+ inline RepeatedGroup_extension_lite& operator=(const RepeatedGroup_extension_lite& from) {
1635
+ CopyFrom(from);
1636
+ return *this;
1637
+ }
1638
+
1639
+ static const RepeatedGroup_extension_lite& default_instance();
1640
+
1641
+ void Swap(RepeatedGroup_extension_lite* other);
1642
+
1643
+ // implements Message ----------------------------------------------
1644
+
1645
+ RepeatedGroup_extension_lite* New() const;
1646
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1647
+ void CopyFrom(const RepeatedGroup_extension_lite& from);
1648
+ void MergeFrom(const RepeatedGroup_extension_lite& from);
1649
+ void Clear();
1650
+ bool IsInitialized() const;
1651
+
1652
+ int ByteSize() const;
1653
+ bool MergePartialFromCodedStream(
1654
+ ::google::protobuf::io::CodedInputStream* input);
1655
+ void SerializeWithCachedSizes(
1656
+ ::google::protobuf::io::CodedOutputStream* output) const;
1657
+ int GetCachedSize() const { return _cached_size_; }
1658
+ private:
1659
+ void SharedCtor();
1660
+ void SharedDtor();
1661
+ void SetCachedSize(int size) const;
1662
+ public:
1663
+
1664
+ ::std::string GetTypeName() const;
1665
+
1666
+ // nested types ----------------------------------------------------
1667
+
1668
+ // accessors -------------------------------------------------------
1669
+
1670
+ // optional int32 a = 47;
1671
+ inline bool has_a() const;
1672
+ inline void clear_a();
1673
+ static const int kAFieldNumber = 47;
1674
+ inline ::google::protobuf::int32 a() const;
1675
+ inline void set_a(::google::protobuf::int32 value);
1676
+
1677
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.RepeatedGroup_extension_lite)
1678
+ private:
1679
+ inline void set_has_a();
1680
+ inline void clear_has_a();
1681
+
1682
+ ::google::protobuf::int32 a_;
1683
+
1684
+ mutable int _cached_size_;
1685
+ ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1686
+
1687
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1688
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1689
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
1690
+
1691
+ void InitAsDefaultInstance();
1692
+ static RepeatedGroup_extension_lite* default_instance_;
1693
+ };
1694
+ // -------------------------------------------------------------------
1695
+
1696
+ class TestPackedExtensionsLite : public ::google::protobuf::MessageLite {
1697
+ public:
1698
+ TestPackedExtensionsLite();
1699
+ virtual ~TestPackedExtensionsLite();
1700
+
1701
+ TestPackedExtensionsLite(const TestPackedExtensionsLite& from);
1702
+
1703
+ inline TestPackedExtensionsLite& operator=(const TestPackedExtensionsLite& from) {
1704
+ CopyFrom(from);
1705
+ return *this;
1706
+ }
1707
+
1708
+ static const TestPackedExtensionsLite& default_instance();
1709
+
1710
+ void Swap(TestPackedExtensionsLite* other);
1711
+
1712
+ // implements Message ----------------------------------------------
1713
+
1714
+ TestPackedExtensionsLite* New() const;
1715
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1716
+ void CopyFrom(const TestPackedExtensionsLite& from);
1717
+ void MergeFrom(const TestPackedExtensionsLite& from);
1718
+ void Clear();
1719
+ bool IsInitialized() const;
1720
+
1721
+ int ByteSize() const;
1722
+ bool MergePartialFromCodedStream(
1723
+ ::google::protobuf::io::CodedInputStream* input);
1724
+ void SerializeWithCachedSizes(
1725
+ ::google::protobuf::io::CodedOutputStream* output) const;
1726
+ int GetCachedSize() const { return _cached_size_; }
1727
+ private:
1728
+ void SharedCtor();
1729
+ void SharedDtor();
1730
+ void SetCachedSize(int size) const;
1731
+ public:
1732
+
1733
+ ::std::string GetTypeName() const;
1734
+
1735
+ // nested types ----------------------------------------------------
1736
+
1737
+ // accessors -------------------------------------------------------
1738
+
1739
+ GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestPackedExtensionsLite)
1740
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.TestPackedExtensionsLite)
1741
+ private:
1742
+
1743
+ ::google::protobuf::internal::ExtensionSet _extensions_;
1744
+
1745
+
1746
+ mutable int _cached_size_;
1747
+ ::google::protobuf::uint32 _has_bits_[1];
1748
+
1749
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1750
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1751
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
1752
+
1753
+ void InitAsDefaultInstance();
1754
+ static TestPackedExtensionsLite* default_instance_;
1755
+ };
1756
+ // -------------------------------------------------------------------
1757
+
1758
+ class TestNestedExtensionLite : public ::google::protobuf::MessageLite {
1759
+ public:
1760
+ TestNestedExtensionLite();
1761
+ virtual ~TestNestedExtensionLite();
1762
+
1763
+ TestNestedExtensionLite(const TestNestedExtensionLite& from);
1764
+
1765
+ inline TestNestedExtensionLite& operator=(const TestNestedExtensionLite& from) {
1766
+ CopyFrom(from);
1767
+ return *this;
1768
+ }
1769
+
1770
+ static const TestNestedExtensionLite& default_instance();
1771
+
1772
+ void Swap(TestNestedExtensionLite* other);
1773
+
1774
+ // implements Message ----------------------------------------------
1775
+
1776
+ TestNestedExtensionLite* New() const;
1777
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1778
+ void CopyFrom(const TestNestedExtensionLite& from);
1779
+ void MergeFrom(const TestNestedExtensionLite& from);
1780
+ void Clear();
1781
+ bool IsInitialized() const;
1782
+
1783
+ int ByteSize() const;
1784
+ bool MergePartialFromCodedStream(
1785
+ ::google::protobuf::io::CodedInputStream* input);
1786
+ void SerializeWithCachedSizes(
1787
+ ::google::protobuf::io::CodedOutputStream* output) const;
1788
+ int GetCachedSize() const { return _cached_size_; }
1789
+ private:
1790
+ void SharedCtor();
1791
+ void SharedDtor();
1792
+ void SetCachedSize(int size) const;
1793
+ public:
1794
+
1795
+ ::std::string GetTypeName() const;
1796
+
1797
+ // nested types ----------------------------------------------------
1798
+
1799
+ // accessors -------------------------------------------------------
1800
+
1801
+ static const int kNestedExtensionFieldNumber = 12345;
1802
+ static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1803
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
1804
+ nested_extension;
1805
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedExtensionLite)
1806
+ private:
1807
+
1808
+
1809
+ mutable int _cached_size_;
1810
+ ::google::protobuf::uint32 _has_bits_[1];
1811
+
1812
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1813
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1814
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
1815
+
1816
+ void InitAsDefaultInstance();
1817
+ static TestNestedExtensionLite* default_instance_;
1818
+ };
1819
+ // -------------------------------------------------------------------
1820
+
1821
+ class TestDeprecatedLite : public ::google::protobuf::MessageLite {
1822
+ public:
1823
+ TestDeprecatedLite();
1824
+ virtual ~TestDeprecatedLite();
1825
+
1826
+ TestDeprecatedLite(const TestDeprecatedLite& from);
1827
+
1828
+ inline TestDeprecatedLite& operator=(const TestDeprecatedLite& from) {
1829
+ CopyFrom(from);
1830
+ return *this;
1831
+ }
1832
+
1833
+ static const TestDeprecatedLite& default_instance();
1834
+
1835
+ void Swap(TestDeprecatedLite* other);
1836
+
1837
+ // implements Message ----------------------------------------------
1838
+
1839
+ TestDeprecatedLite* New() const;
1840
+ void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
1841
+ void CopyFrom(const TestDeprecatedLite& from);
1842
+ void MergeFrom(const TestDeprecatedLite& from);
1843
+ void Clear();
1844
+ bool IsInitialized() const;
1845
+
1846
+ int ByteSize() const;
1847
+ bool MergePartialFromCodedStream(
1848
+ ::google::protobuf::io::CodedInputStream* input);
1849
+ void SerializeWithCachedSizes(
1850
+ ::google::protobuf::io::CodedOutputStream* output) const;
1851
+ int GetCachedSize() const { return _cached_size_; }
1852
+ private:
1853
+ void SharedCtor();
1854
+ void SharedDtor();
1855
+ void SetCachedSize(int size) const;
1856
+ public:
1857
+
1858
+ ::std::string GetTypeName() const;
1859
+
1860
+ // nested types ----------------------------------------------------
1861
+
1862
+ // accessors -------------------------------------------------------
1863
+
1864
+ // optional int32 deprecated_field = 1 [deprecated = true];
1865
+ inline bool has_deprecated_field() const PROTOBUF_DEPRECATED;
1866
+ inline void clear_deprecated_field() PROTOBUF_DEPRECATED;
1867
+ static const int kDeprecatedFieldFieldNumber = 1;
1868
+ inline ::google::protobuf::int32 deprecated_field() const PROTOBUF_DEPRECATED;
1869
+ inline void set_deprecated_field(::google::protobuf::int32 value) PROTOBUF_DEPRECATED;
1870
+
1871
+ // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDeprecatedLite)
1872
+ private:
1873
+ inline void set_has_deprecated_field();
1874
+ inline void clear_has_deprecated_field();
1875
+
1876
+ ::google::protobuf::int32 deprecated_field_;
1877
+
1878
+ mutable int _cached_size_;
1879
+ ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1880
+
1881
+ friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1882
+ friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5flite_2eproto();
1883
+ friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5flite_2eproto();
1884
+
1885
+ void InitAsDefaultInstance();
1886
+ static TestDeprecatedLite* default_instance_;
1887
+ };
1888
+ // ===================================================================
1889
+
1890
+ static const int kOptionalInt32ExtensionLiteFieldNumber = 1;
1891
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1892
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
1893
+ optional_int32_extension_lite;
1894
+ static const int kOptionalInt64ExtensionLiteFieldNumber = 2;
1895
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1896
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
1897
+ optional_int64_extension_lite;
1898
+ static const int kOptionalUint32ExtensionLiteFieldNumber = 3;
1899
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1900
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
1901
+ optional_uint32_extension_lite;
1902
+ static const int kOptionalUint64ExtensionLiteFieldNumber = 4;
1903
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1904
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
1905
+ optional_uint64_extension_lite;
1906
+ static const int kOptionalSint32ExtensionLiteFieldNumber = 5;
1907
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1908
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
1909
+ optional_sint32_extension_lite;
1910
+ static const int kOptionalSint64ExtensionLiteFieldNumber = 6;
1911
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1912
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
1913
+ optional_sint64_extension_lite;
1914
+ static const int kOptionalFixed32ExtensionLiteFieldNumber = 7;
1915
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1916
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
1917
+ optional_fixed32_extension_lite;
1918
+ static const int kOptionalFixed64ExtensionLiteFieldNumber = 8;
1919
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1920
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
1921
+ optional_fixed64_extension_lite;
1922
+ static const int kOptionalSfixed32ExtensionLiteFieldNumber = 9;
1923
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1924
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
1925
+ optional_sfixed32_extension_lite;
1926
+ static const int kOptionalSfixed64ExtensionLiteFieldNumber = 10;
1927
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1928
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
1929
+ optional_sfixed64_extension_lite;
1930
+ static const int kOptionalFloatExtensionLiteFieldNumber = 11;
1931
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1932
+ ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
1933
+ optional_float_extension_lite;
1934
+ static const int kOptionalDoubleExtensionLiteFieldNumber = 12;
1935
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1936
+ ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
1937
+ optional_double_extension_lite;
1938
+ static const int kOptionalBoolExtensionLiteFieldNumber = 13;
1939
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1940
+ ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
1941
+ optional_bool_extension_lite;
1942
+ static const int kOptionalStringExtensionLiteFieldNumber = 14;
1943
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1944
+ ::google::protobuf::internal::StringTypeTraits, 9, false >
1945
+ optional_string_extension_lite;
1946
+ static const int kOptionalBytesExtensionLiteFieldNumber = 15;
1947
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1948
+ ::google::protobuf::internal::StringTypeTraits, 12, false >
1949
+ optional_bytes_extension_lite;
1950
+ static const int kOptionalgroupExtensionLiteFieldNumber = 16;
1951
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1952
+ ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::OptionalGroup_extension_lite >, 10, false >
1953
+ optionalgroup_extension_lite;
1954
+ static const int kOptionalNestedMessageExtensionLiteFieldNumber = 18;
1955
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1956
+ ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedMessage >, 11, false >
1957
+ optional_nested_message_extension_lite;
1958
+ static const int kOptionalForeignMessageExtensionLiteFieldNumber = 19;
1959
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1960
+ ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ForeignMessageLite >, 11, false >
1961
+ optional_foreign_message_extension_lite;
1962
+ static const int kOptionalImportMessageExtensionLiteFieldNumber = 20;
1963
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1964
+ ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest_import::ImportMessageLite >, 11, false >
1965
+ optional_import_message_extension_lite;
1966
+ static const int kOptionalNestedEnumExtensionLiteFieldNumber = 21;
1967
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1968
+ ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedEnum, ::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid>, 14, false >
1969
+ optional_nested_enum_extension_lite;
1970
+ static const int kOptionalForeignEnumExtensionLiteFieldNumber = 22;
1971
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1972
+ ::google::protobuf::internal::EnumTypeTraits< protobuf_unittest::ForeignEnumLite, protobuf_unittest::ForeignEnumLite_IsValid>, 14, false >
1973
+ optional_foreign_enum_extension_lite;
1974
+ static const int kOptionalImportEnumExtensionLiteFieldNumber = 23;
1975
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1976
+ ::google::protobuf::internal::EnumTypeTraits< protobuf_unittest_import::ImportEnumLite, protobuf_unittest_import::ImportEnumLite_IsValid>, 14, false >
1977
+ optional_import_enum_extension_lite;
1978
+ static const int kOptionalStringPieceExtensionLiteFieldNumber = 24;
1979
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1980
+ ::google::protobuf::internal::StringTypeTraits, 9, false >
1981
+ optional_string_piece_extension_lite;
1982
+ static const int kOptionalCordExtensionLiteFieldNumber = 25;
1983
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1984
+ ::google::protobuf::internal::StringTypeTraits, 9, false >
1985
+ optional_cord_extension_lite;
1986
+ static const int kRepeatedInt32ExtensionLiteFieldNumber = 31;
1987
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1988
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
1989
+ repeated_int32_extension_lite;
1990
+ static const int kRepeatedInt64ExtensionLiteFieldNumber = 32;
1991
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1992
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
1993
+ repeated_int64_extension_lite;
1994
+ static const int kRepeatedUint32ExtensionLiteFieldNumber = 33;
1995
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
1996
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
1997
+ repeated_uint32_extension_lite;
1998
+ static const int kRepeatedUint64ExtensionLiteFieldNumber = 34;
1999
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2000
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
2001
+ repeated_uint64_extension_lite;
2002
+ static const int kRepeatedSint32ExtensionLiteFieldNumber = 35;
2003
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2004
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
2005
+ repeated_sint32_extension_lite;
2006
+ static const int kRepeatedSint64ExtensionLiteFieldNumber = 36;
2007
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2008
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
2009
+ repeated_sint64_extension_lite;
2010
+ static const int kRepeatedFixed32ExtensionLiteFieldNumber = 37;
2011
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2012
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
2013
+ repeated_fixed32_extension_lite;
2014
+ static const int kRepeatedFixed64ExtensionLiteFieldNumber = 38;
2015
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2016
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
2017
+ repeated_fixed64_extension_lite;
2018
+ static const int kRepeatedSfixed32ExtensionLiteFieldNumber = 39;
2019
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2020
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
2021
+ repeated_sfixed32_extension_lite;
2022
+ static const int kRepeatedSfixed64ExtensionLiteFieldNumber = 40;
2023
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2024
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
2025
+ repeated_sfixed64_extension_lite;
2026
+ static const int kRepeatedFloatExtensionLiteFieldNumber = 41;
2027
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2028
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< float >, 2, false >
2029
+ repeated_float_extension_lite;
2030
+ static const int kRepeatedDoubleExtensionLiteFieldNumber = 42;
2031
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2032
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< double >, 1, false >
2033
+ repeated_double_extension_lite;
2034
+ static const int kRepeatedBoolExtensionLiteFieldNumber = 43;
2035
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2036
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< bool >, 8, false >
2037
+ repeated_bool_extension_lite;
2038
+ static const int kRepeatedStringExtensionLiteFieldNumber = 44;
2039
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2040
+ ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
2041
+ repeated_string_extension_lite;
2042
+ static const int kRepeatedBytesExtensionLiteFieldNumber = 45;
2043
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2044
+ ::google::protobuf::internal::RepeatedStringTypeTraits, 12, false >
2045
+ repeated_bytes_extension_lite;
2046
+ static const int kRepeatedgroupExtensionLiteFieldNumber = 46;
2047
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2048
+ ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::RepeatedGroup_extension_lite >, 10, false >
2049
+ repeatedgroup_extension_lite;
2050
+ static const int kRepeatedNestedMessageExtensionLiteFieldNumber = 48;
2051
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2052
+ ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedMessage >, 11, false >
2053
+ repeated_nested_message_extension_lite;
2054
+ static const int kRepeatedForeignMessageExtensionLiteFieldNumber = 49;
2055
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2056
+ ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::ForeignMessageLite >, 11, false >
2057
+ repeated_foreign_message_extension_lite;
2058
+ static const int kRepeatedImportMessageExtensionLiteFieldNumber = 50;
2059
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2060
+ ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest_import::ImportMessageLite >, 11, false >
2061
+ repeated_import_message_extension_lite;
2062
+ static const int kRepeatedNestedEnumExtensionLiteFieldNumber = 51;
2063
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2064
+ ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedEnum, ::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid>, 14, false >
2065
+ repeated_nested_enum_extension_lite;
2066
+ static const int kRepeatedForeignEnumExtensionLiteFieldNumber = 52;
2067
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2068
+ ::google::protobuf::internal::RepeatedEnumTypeTraits< protobuf_unittest::ForeignEnumLite, protobuf_unittest::ForeignEnumLite_IsValid>, 14, false >
2069
+ repeated_foreign_enum_extension_lite;
2070
+ static const int kRepeatedImportEnumExtensionLiteFieldNumber = 53;
2071
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2072
+ ::google::protobuf::internal::RepeatedEnumTypeTraits< protobuf_unittest_import::ImportEnumLite, protobuf_unittest_import::ImportEnumLite_IsValid>, 14, false >
2073
+ repeated_import_enum_extension_lite;
2074
+ static const int kRepeatedStringPieceExtensionLiteFieldNumber = 54;
2075
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2076
+ ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
2077
+ repeated_string_piece_extension_lite;
2078
+ static const int kRepeatedCordExtensionLiteFieldNumber = 55;
2079
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2080
+ ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
2081
+ repeated_cord_extension_lite;
2082
+ static const int kDefaultInt32ExtensionLiteFieldNumber = 61;
2083
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2084
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
2085
+ default_int32_extension_lite;
2086
+ static const int kDefaultInt64ExtensionLiteFieldNumber = 62;
2087
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2088
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
2089
+ default_int64_extension_lite;
2090
+ static const int kDefaultUint32ExtensionLiteFieldNumber = 63;
2091
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2092
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
2093
+ default_uint32_extension_lite;
2094
+ static const int kDefaultUint64ExtensionLiteFieldNumber = 64;
2095
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2096
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
2097
+ default_uint64_extension_lite;
2098
+ static const int kDefaultSint32ExtensionLiteFieldNumber = 65;
2099
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2100
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
2101
+ default_sint32_extension_lite;
2102
+ static const int kDefaultSint64ExtensionLiteFieldNumber = 66;
2103
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2104
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
2105
+ default_sint64_extension_lite;
2106
+ static const int kDefaultFixed32ExtensionLiteFieldNumber = 67;
2107
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2108
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
2109
+ default_fixed32_extension_lite;
2110
+ static const int kDefaultFixed64ExtensionLiteFieldNumber = 68;
2111
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2112
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
2113
+ default_fixed64_extension_lite;
2114
+ static const int kDefaultSfixed32ExtensionLiteFieldNumber = 69;
2115
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2116
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
2117
+ default_sfixed32_extension_lite;
2118
+ static const int kDefaultSfixed64ExtensionLiteFieldNumber = 70;
2119
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2120
+ ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
2121
+ default_sfixed64_extension_lite;
2122
+ static const int kDefaultFloatExtensionLiteFieldNumber = 71;
2123
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2124
+ ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
2125
+ default_float_extension_lite;
2126
+ static const int kDefaultDoubleExtensionLiteFieldNumber = 72;
2127
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2128
+ ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
2129
+ default_double_extension_lite;
2130
+ static const int kDefaultBoolExtensionLiteFieldNumber = 73;
2131
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2132
+ ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
2133
+ default_bool_extension_lite;
2134
+ static const int kDefaultStringExtensionLiteFieldNumber = 74;
2135
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2136
+ ::google::protobuf::internal::StringTypeTraits, 9, false >
2137
+ default_string_extension_lite;
2138
+ static const int kDefaultBytesExtensionLiteFieldNumber = 75;
2139
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2140
+ ::google::protobuf::internal::StringTypeTraits, 12, false >
2141
+ default_bytes_extension_lite;
2142
+ static const int kDefaultNestedEnumExtensionLiteFieldNumber = 81;
2143
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2144
+ ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedEnum, ::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid>, 14, false >
2145
+ default_nested_enum_extension_lite;
2146
+ static const int kDefaultForeignEnumExtensionLiteFieldNumber = 82;
2147
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2148
+ ::google::protobuf::internal::EnumTypeTraits< protobuf_unittest::ForeignEnumLite, protobuf_unittest::ForeignEnumLite_IsValid>, 14, false >
2149
+ default_foreign_enum_extension_lite;
2150
+ static const int kDefaultImportEnumExtensionLiteFieldNumber = 83;
2151
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2152
+ ::google::protobuf::internal::EnumTypeTraits< protobuf_unittest_import::ImportEnumLite, protobuf_unittest_import::ImportEnumLite_IsValid>, 14, false >
2153
+ default_import_enum_extension_lite;
2154
+ static const int kDefaultStringPieceExtensionLiteFieldNumber = 84;
2155
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2156
+ ::google::protobuf::internal::StringTypeTraits, 9, false >
2157
+ default_string_piece_extension_lite;
2158
+ static const int kDefaultCordExtensionLiteFieldNumber = 85;
2159
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
2160
+ ::google::protobuf::internal::StringTypeTraits, 9, false >
2161
+ default_cord_extension_lite;
2162
+ static const int kPackedInt32ExtensionLiteFieldNumber = 90;
2163
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2164
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5, true >
2165
+ packed_int32_extension_lite;
2166
+ static const int kPackedInt64ExtensionLiteFieldNumber = 91;
2167
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2168
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 3, true >
2169
+ packed_int64_extension_lite;
2170
+ static const int kPackedUint32ExtensionLiteFieldNumber = 92;
2171
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2172
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, true >
2173
+ packed_uint32_extension_lite;
2174
+ static const int kPackedUint64ExtensionLiteFieldNumber = 93;
2175
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2176
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, true >
2177
+ packed_uint64_extension_lite;
2178
+ static const int kPackedSint32ExtensionLiteFieldNumber = 94;
2179
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2180
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 17, true >
2181
+ packed_sint32_extension_lite;
2182
+ static const int kPackedSint64ExtensionLiteFieldNumber = 95;
2183
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2184
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 18, true >
2185
+ packed_sint64_extension_lite;
2186
+ static const int kPackedFixed32ExtensionLiteFieldNumber = 96;
2187
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2188
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, true >
2189
+ packed_fixed32_extension_lite;
2190
+ static const int kPackedFixed64ExtensionLiteFieldNumber = 97;
2191
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2192
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, true >
2193
+ packed_fixed64_extension_lite;
2194
+ static const int kPackedSfixed32ExtensionLiteFieldNumber = 98;
2195
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2196
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 15, true >
2197
+ packed_sfixed32_extension_lite;
2198
+ static const int kPackedSfixed64ExtensionLiteFieldNumber = 99;
2199
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2200
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 16, true >
2201
+ packed_sfixed64_extension_lite;
2202
+ static const int kPackedFloatExtensionLiteFieldNumber = 100;
2203
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2204
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< float >, 2, true >
2205
+ packed_float_extension_lite;
2206
+ static const int kPackedDoubleExtensionLiteFieldNumber = 101;
2207
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2208
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< double >, 1, true >
2209
+ packed_double_extension_lite;
2210
+ static const int kPackedBoolExtensionLiteFieldNumber = 102;
2211
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2212
+ ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< bool >, 8, true >
2213
+ packed_bool_extension_lite;
2214
+ static const int kPackedEnumExtensionLiteFieldNumber = 103;
2215
+ extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
2216
+ ::google::protobuf::internal::RepeatedEnumTypeTraits< protobuf_unittest::ForeignEnumLite, protobuf_unittest::ForeignEnumLite_IsValid>, 14, true >
2217
+ packed_enum_extension_lite;
2218
+
2219
+ // ===================================================================
2220
+
2221
+ // TestAllTypesLite_NestedMessage
2222
+
2223
+ // optional int32 bb = 1;
2224
+ inline bool TestAllTypesLite_NestedMessage::has_bb() const {
2225
+ return (_has_bits_[0] & 0x00000001u) != 0;
2226
+ }
2227
+ inline void TestAllTypesLite_NestedMessage::set_has_bb() {
2228
+ _has_bits_[0] |= 0x00000001u;
2229
+ }
2230
+ inline void TestAllTypesLite_NestedMessage::clear_has_bb() {
2231
+ _has_bits_[0] &= ~0x00000001u;
2232
+ }
2233
+ inline void TestAllTypesLite_NestedMessage::clear_bb() {
2234
+ bb_ = 0;
2235
+ clear_has_bb();
2236
+ }
2237
+ inline ::google::protobuf::int32 TestAllTypesLite_NestedMessage::bb() const {
2238
+ return bb_;
2239
+ }
2240
+ inline void TestAllTypesLite_NestedMessage::set_bb(::google::protobuf::int32 value) {
2241
+ set_has_bb();
2242
+ bb_ = value;
2243
+ }
2244
+
2245
+ // -------------------------------------------------------------------
2246
+
2247
+ // TestAllTypesLite_OptionalGroup
2248
+
2249
+ // optional int32 a = 17;
2250
+ inline bool TestAllTypesLite_OptionalGroup::has_a() const {
2251
+ return (_has_bits_[0] & 0x00000001u) != 0;
2252
+ }
2253
+ inline void TestAllTypesLite_OptionalGroup::set_has_a() {
2254
+ _has_bits_[0] |= 0x00000001u;
2255
+ }
2256
+ inline void TestAllTypesLite_OptionalGroup::clear_has_a() {
2257
+ _has_bits_[0] &= ~0x00000001u;
2258
+ }
2259
+ inline void TestAllTypesLite_OptionalGroup::clear_a() {
2260
+ a_ = 0;
2261
+ clear_has_a();
2262
+ }
2263
+ inline ::google::protobuf::int32 TestAllTypesLite_OptionalGroup::a() const {
2264
+ return a_;
2265
+ }
2266
+ inline void TestAllTypesLite_OptionalGroup::set_a(::google::protobuf::int32 value) {
2267
+ set_has_a();
2268
+ a_ = value;
2269
+ }
2270
+
2271
+ // -------------------------------------------------------------------
2272
+
2273
+ // TestAllTypesLite_RepeatedGroup
2274
+
2275
+ // optional int32 a = 47;
2276
+ inline bool TestAllTypesLite_RepeatedGroup::has_a() const {
2277
+ return (_has_bits_[0] & 0x00000001u) != 0;
2278
+ }
2279
+ inline void TestAllTypesLite_RepeatedGroup::set_has_a() {
2280
+ _has_bits_[0] |= 0x00000001u;
2281
+ }
2282
+ inline void TestAllTypesLite_RepeatedGroup::clear_has_a() {
2283
+ _has_bits_[0] &= ~0x00000001u;
2284
+ }
2285
+ inline void TestAllTypesLite_RepeatedGroup::clear_a() {
2286
+ a_ = 0;
2287
+ clear_has_a();
2288
+ }
2289
+ inline ::google::protobuf::int32 TestAllTypesLite_RepeatedGroup::a() const {
2290
+ return a_;
2291
+ }
2292
+ inline void TestAllTypesLite_RepeatedGroup::set_a(::google::protobuf::int32 value) {
2293
+ set_has_a();
2294
+ a_ = value;
2295
+ }
2296
+
2297
+ // -------------------------------------------------------------------
2298
+
2299
+ // TestAllTypesLite
2300
+
2301
+ // optional int32 optional_int32 = 1;
2302
+ inline bool TestAllTypesLite::has_optional_int32() const {
2303
+ return (_has_bits_[0] & 0x00000001u) != 0;
2304
+ }
2305
+ inline void TestAllTypesLite::set_has_optional_int32() {
2306
+ _has_bits_[0] |= 0x00000001u;
2307
+ }
2308
+ inline void TestAllTypesLite::clear_has_optional_int32() {
2309
+ _has_bits_[0] &= ~0x00000001u;
2310
+ }
2311
+ inline void TestAllTypesLite::clear_optional_int32() {
2312
+ optional_int32_ = 0;
2313
+ clear_has_optional_int32();
2314
+ }
2315
+ inline ::google::protobuf::int32 TestAllTypesLite::optional_int32() const {
2316
+ return optional_int32_;
2317
+ }
2318
+ inline void TestAllTypesLite::set_optional_int32(::google::protobuf::int32 value) {
2319
+ set_has_optional_int32();
2320
+ optional_int32_ = value;
2321
+ }
2322
+
2323
+ // optional int64 optional_int64 = 2;
2324
+ inline bool TestAllTypesLite::has_optional_int64() const {
2325
+ return (_has_bits_[0] & 0x00000002u) != 0;
2326
+ }
2327
+ inline void TestAllTypesLite::set_has_optional_int64() {
2328
+ _has_bits_[0] |= 0x00000002u;
2329
+ }
2330
+ inline void TestAllTypesLite::clear_has_optional_int64() {
2331
+ _has_bits_[0] &= ~0x00000002u;
2332
+ }
2333
+ inline void TestAllTypesLite::clear_optional_int64() {
2334
+ optional_int64_ = GOOGLE_LONGLONG(0);
2335
+ clear_has_optional_int64();
2336
+ }
2337
+ inline ::google::protobuf::int64 TestAllTypesLite::optional_int64() const {
2338
+ return optional_int64_;
2339
+ }
2340
+ inline void TestAllTypesLite::set_optional_int64(::google::protobuf::int64 value) {
2341
+ set_has_optional_int64();
2342
+ optional_int64_ = value;
2343
+ }
2344
+
2345
+ // optional uint32 optional_uint32 = 3;
2346
+ inline bool TestAllTypesLite::has_optional_uint32() const {
2347
+ return (_has_bits_[0] & 0x00000004u) != 0;
2348
+ }
2349
+ inline void TestAllTypesLite::set_has_optional_uint32() {
2350
+ _has_bits_[0] |= 0x00000004u;
2351
+ }
2352
+ inline void TestAllTypesLite::clear_has_optional_uint32() {
2353
+ _has_bits_[0] &= ~0x00000004u;
2354
+ }
2355
+ inline void TestAllTypesLite::clear_optional_uint32() {
2356
+ optional_uint32_ = 0u;
2357
+ clear_has_optional_uint32();
2358
+ }
2359
+ inline ::google::protobuf::uint32 TestAllTypesLite::optional_uint32() const {
2360
+ return optional_uint32_;
2361
+ }
2362
+ inline void TestAllTypesLite::set_optional_uint32(::google::protobuf::uint32 value) {
2363
+ set_has_optional_uint32();
2364
+ optional_uint32_ = value;
2365
+ }
2366
+
2367
+ // optional uint64 optional_uint64 = 4;
2368
+ inline bool TestAllTypesLite::has_optional_uint64() const {
2369
+ return (_has_bits_[0] & 0x00000008u) != 0;
2370
+ }
2371
+ inline void TestAllTypesLite::set_has_optional_uint64() {
2372
+ _has_bits_[0] |= 0x00000008u;
2373
+ }
2374
+ inline void TestAllTypesLite::clear_has_optional_uint64() {
2375
+ _has_bits_[0] &= ~0x00000008u;
2376
+ }
2377
+ inline void TestAllTypesLite::clear_optional_uint64() {
2378
+ optional_uint64_ = GOOGLE_ULONGLONG(0);
2379
+ clear_has_optional_uint64();
2380
+ }
2381
+ inline ::google::protobuf::uint64 TestAllTypesLite::optional_uint64() const {
2382
+ return optional_uint64_;
2383
+ }
2384
+ inline void TestAllTypesLite::set_optional_uint64(::google::protobuf::uint64 value) {
2385
+ set_has_optional_uint64();
2386
+ optional_uint64_ = value;
2387
+ }
2388
+
2389
+ // optional sint32 optional_sint32 = 5;
2390
+ inline bool TestAllTypesLite::has_optional_sint32() const {
2391
+ return (_has_bits_[0] & 0x00000010u) != 0;
2392
+ }
2393
+ inline void TestAllTypesLite::set_has_optional_sint32() {
2394
+ _has_bits_[0] |= 0x00000010u;
2395
+ }
2396
+ inline void TestAllTypesLite::clear_has_optional_sint32() {
2397
+ _has_bits_[0] &= ~0x00000010u;
2398
+ }
2399
+ inline void TestAllTypesLite::clear_optional_sint32() {
2400
+ optional_sint32_ = 0;
2401
+ clear_has_optional_sint32();
2402
+ }
2403
+ inline ::google::protobuf::int32 TestAllTypesLite::optional_sint32() const {
2404
+ return optional_sint32_;
2405
+ }
2406
+ inline void TestAllTypesLite::set_optional_sint32(::google::protobuf::int32 value) {
2407
+ set_has_optional_sint32();
2408
+ optional_sint32_ = value;
2409
+ }
2410
+
2411
+ // optional sint64 optional_sint64 = 6;
2412
+ inline bool TestAllTypesLite::has_optional_sint64() const {
2413
+ return (_has_bits_[0] & 0x00000020u) != 0;
2414
+ }
2415
+ inline void TestAllTypesLite::set_has_optional_sint64() {
2416
+ _has_bits_[0] |= 0x00000020u;
2417
+ }
2418
+ inline void TestAllTypesLite::clear_has_optional_sint64() {
2419
+ _has_bits_[0] &= ~0x00000020u;
2420
+ }
2421
+ inline void TestAllTypesLite::clear_optional_sint64() {
2422
+ optional_sint64_ = GOOGLE_LONGLONG(0);
2423
+ clear_has_optional_sint64();
2424
+ }
2425
+ inline ::google::protobuf::int64 TestAllTypesLite::optional_sint64() const {
2426
+ return optional_sint64_;
2427
+ }
2428
+ inline void TestAllTypesLite::set_optional_sint64(::google::protobuf::int64 value) {
2429
+ set_has_optional_sint64();
2430
+ optional_sint64_ = value;
2431
+ }
2432
+
2433
+ // optional fixed32 optional_fixed32 = 7;
2434
+ inline bool TestAllTypesLite::has_optional_fixed32() const {
2435
+ return (_has_bits_[0] & 0x00000040u) != 0;
2436
+ }
2437
+ inline void TestAllTypesLite::set_has_optional_fixed32() {
2438
+ _has_bits_[0] |= 0x00000040u;
2439
+ }
2440
+ inline void TestAllTypesLite::clear_has_optional_fixed32() {
2441
+ _has_bits_[0] &= ~0x00000040u;
2442
+ }
2443
+ inline void TestAllTypesLite::clear_optional_fixed32() {
2444
+ optional_fixed32_ = 0u;
2445
+ clear_has_optional_fixed32();
2446
+ }
2447
+ inline ::google::protobuf::uint32 TestAllTypesLite::optional_fixed32() const {
2448
+ return optional_fixed32_;
2449
+ }
2450
+ inline void TestAllTypesLite::set_optional_fixed32(::google::protobuf::uint32 value) {
2451
+ set_has_optional_fixed32();
2452
+ optional_fixed32_ = value;
2453
+ }
2454
+
2455
+ // optional fixed64 optional_fixed64 = 8;
2456
+ inline bool TestAllTypesLite::has_optional_fixed64() const {
2457
+ return (_has_bits_[0] & 0x00000080u) != 0;
2458
+ }
2459
+ inline void TestAllTypesLite::set_has_optional_fixed64() {
2460
+ _has_bits_[0] |= 0x00000080u;
2461
+ }
2462
+ inline void TestAllTypesLite::clear_has_optional_fixed64() {
2463
+ _has_bits_[0] &= ~0x00000080u;
2464
+ }
2465
+ inline void TestAllTypesLite::clear_optional_fixed64() {
2466
+ optional_fixed64_ = GOOGLE_ULONGLONG(0);
2467
+ clear_has_optional_fixed64();
2468
+ }
2469
+ inline ::google::protobuf::uint64 TestAllTypesLite::optional_fixed64() const {
2470
+ return optional_fixed64_;
2471
+ }
2472
+ inline void TestAllTypesLite::set_optional_fixed64(::google::protobuf::uint64 value) {
2473
+ set_has_optional_fixed64();
2474
+ optional_fixed64_ = value;
2475
+ }
2476
+
2477
+ // optional sfixed32 optional_sfixed32 = 9;
2478
+ inline bool TestAllTypesLite::has_optional_sfixed32() const {
2479
+ return (_has_bits_[0] & 0x00000100u) != 0;
2480
+ }
2481
+ inline void TestAllTypesLite::set_has_optional_sfixed32() {
2482
+ _has_bits_[0] |= 0x00000100u;
2483
+ }
2484
+ inline void TestAllTypesLite::clear_has_optional_sfixed32() {
2485
+ _has_bits_[0] &= ~0x00000100u;
2486
+ }
2487
+ inline void TestAllTypesLite::clear_optional_sfixed32() {
2488
+ optional_sfixed32_ = 0;
2489
+ clear_has_optional_sfixed32();
2490
+ }
2491
+ inline ::google::protobuf::int32 TestAllTypesLite::optional_sfixed32() const {
2492
+ return optional_sfixed32_;
2493
+ }
2494
+ inline void TestAllTypesLite::set_optional_sfixed32(::google::protobuf::int32 value) {
2495
+ set_has_optional_sfixed32();
2496
+ optional_sfixed32_ = value;
2497
+ }
2498
+
2499
+ // optional sfixed64 optional_sfixed64 = 10;
2500
+ inline bool TestAllTypesLite::has_optional_sfixed64() const {
2501
+ return (_has_bits_[0] & 0x00000200u) != 0;
2502
+ }
2503
+ inline void TestAllTypesLite::set_has_optional_sfixed64() {
2504
+ _has_bits_[0] |= 0x00000200u;
2505
+ }
2506
+ inline void TestAllTypesLite::clear_has_optional_sfixed64() {
2507
+ _has_bits_[0] &= ~0x00000200u;
2508
+ }
2509
+ inline void TestAllTypesLite::clear_optional_sfixed64() {
2510
+ optional_sfixed64_ = GOOGLE_LONGLONG(0);
2511
+ clear_has_optional_sfixed64();
2512
+ }
2513
+ inline ::google::protobuf::int64 TestAllTypesLite::optional_sfixed64() const {
2514
+ return optional_sfixed64_;
2515
+ }
2516
+ inline void TestAllTypesLite::set_optional_sfixed64(::google::protobuf::int64 value) {
2517
+ set_has_optional_sfixed64();
2518
+ optional_sfixed64_ = value;
2519
+ }
2520
+
2521
+ // optional float optional_float = 11;
2522
+ inline bool TestAllTypesLite::has_optional_float() const {
2523
+ return (_has_bits_[0] & 0x00000400u) != 0;
2524
+ }
2525
+ inline void TestAllTypesLite::set_has_optional_float() {
2526
+ _has_bits_[0] |= 0x00000400u;
2527
+ }
2528
+ inline void TestAllTypesLite::clear_has_optional_float() {
2529
+ _has_bits_[0] &= ~0x00000400u;
2530
+ }
2531
+ inline void TestAllTypesLite::clear_optional_float() {
2532
+ optional_float_ = 0;
2533
+ clear_has_optional_float();
2534
+ }
2535
+ inline float TestAllTypesLite::optional_float() const {
2536
+ return optional_float_;
2537
+ }
2538
+ inline void TestAllTypesLite::set_optional_float(float value) {
2539
+ set_has_optional_float();
2540
+ optional_float_ = value;
2541
+ }
2542
+
2543
+ // optional double optional_double = 12;
2544
+ inline bool TestAllTypesLite::has_optional_double() const {
2545
+ return (_has_bits_[0] & 0x00000800u) != 0;
2546
+ }
2547
+ inline void TestAllTypesLite::set_has_optional_double() {
2548
+ _has_bits_[0] |= 0x00000800u;
2549
+ }
2550
+ inline void TestAllTypesLite::clear_has_optional_double() {
2551
+ _has_bits_[0] &= ~0x00000800u;
2552
+ }
2553
+ inline void TestAllTypesLite::clear_optional_double() {
2554
+ optional_double_ = 0;
2555
+ clear_has_optional_double();
2556
+ }
2557
+ inline double TestAllTypesLite::optional_double() const {
2558
+ return optional_double_;
2559
+ }
2560
+ inline void TestAllTypesLite::set_optional_double(double value) {
2561
+ set_has_optional_double();
2562
+ optional_double_ = value;
2563
+ }
2564
+
2565
+ // optional bool optional_bool = 13;
2566
+ inline bool TestAllTypesLite::has_optional_bool() const {
2567
+ return (_has_bits_[0] & 0x00001000u) != 0;
2568
+ }
2569
+ inline void TestAllTypesLite::set_has_optional_bool() {
2570
+ _has_bits_[0] |= 0x00001000u;
2571
+ }
2572
+ inline void TestAllTypesLite::clear_has_optional_bool() {
2573
+ _has_bits_[0] &= ~0x00001000u;
2574
+ }
2575
+ inline void TestAllTypesLite::clear_optional_bool() {
2576
+ optional_bool_ = false;
2577
+ clear_has_optional_bool();
2578
+ }
2579
+ inline bool TestAllTypesLite::optional_bool() const {
2580
+ return optional_bool_;
2581
+ }
2582
+ inline void TestAllTypesLite::set_optional_bool(bool value) {
2583
+ set_has_optional_bool();
2584
+ optional_bool_ = value;
2585
+ }
2586
+
2587
+ // optional string optional_string = 14;
2588
+ inline bool TestAllTypesLite::has_optional_string() const {
2589
+ return (_has_bits_[0] & 0x00002000u) != 0;
2590
+ }
2591
+ inline void TestAllTypesLite::set_has_optional_string() {
2592
+ _has_bits_[0] |= 0x00002000u;
2593
+ }
2594
+ inline void TestAllTypesLite::clear_has_optional_string() {
2595
+ _has_bits_[0] &= ~0x00002000u;
2596
+ }
2597
+ inline void TestAllTypesLite::clear_optional_string() {
2598
+ if (optional_string_ != &::google::protobuf::internal::kEmptyString) {
2599
+ optional_string_->clear();
2600
+ }
2601
+ clear_has_optional_string();
2602
+ }
2603
+ inline const ::std::string& TestAllTypesLite::optional_string() const {
2604
+ return *optional_string_;
2605
+ }
2606
+ inline void TestAllTypesLite::set_optional_string(const ::std::string& value) {
2607
+ set_has_optional_string();
2608
+ if (optional_string_ == &::google::protobuf::internal::kEmptyString) {
2609
+ optional_string_ = new ::std::string;
2610
+ }
2611
+ optional_string_->assign(value);
2612
+ }
2613
+ inline void TestAllTypesLite::set_optional_string(const char* value) {
2614
+ set_has_optional_string();
2615
+ if (optional_string_ == &::google::protobuf::internal::kEmptyString) {
2616
+ optional_string_ = new ::std::string;
2617
+ }
2618
+ optional_string_->assign(value);
2619
+ }
2620
+ inline void TestAllTypesLite::set_optional_string(const char* value, size_t size) {
2621
+ set_has_optional_string();
2622
+ if (optional_string_ == &::google::protobuf::internal::kEmptyString) {
2623
+ optional_string_ = new ::std::string;
2624
+ }
2625
+ optional_string_->assign(reinterpret_cast<const char*>(value), size);
2626
+ }
2627
+ inline ::std::string* TestAllTypesLite::mutable_optional_string() {
2628
+ set_has_optional_string();
2629
+ if (optional_string_ == &::google::protobuf::internal::kEmptyString) {
2630
+ optional_string_ = new ::std::string;
2631
+ }
2632
+ return optional_string_;
2633
+ }
2634
+ inline ::std::string* TestAllTypesLite::release_optional_string() {
2635
+ clear_has_optional_string();
2636
+ if (optional_string_ == &::google::protobuf::internal::kEmptyString) {
2637
+ return NULL;
2638
+ } else {
2639
+ ::std::string* temp = optional_string_;
2640
+ optional_string_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
2641
+ return temp;
2642
+ }
2643
+ }
2644
+
2645
+ // optional bytes optional_bytes = 15;
2646
+ inline bool TestAllTypesLite::has_optional_bytes() const {
2647
+ return (_has_bits_[0] & 0x00004000u) != 0;
2648
+ }
2649
+ inline void TestAllTypesLite::set_has_optional_bytes() {
2650
+ _has_bits_[0] |= 0x00004000u;
2651
+ }
2652
+ inline void TestAllTypesLite::clear_has_optional_bytes() {
2653
+ _has_bits_[0] &= ~0x00004000u;
2654
+ }
2655
+ inline void TestAllTypesLite::clear_optional_bytes() {
2656
+ if (optional_bytes_ != &::google::protobuf::internal::kEmptyString) {
2657
+ optional_bytes_->clear();
2658
+ }
2659
+ clear_has_optional_bytes();
2660
+ }
2661
+ inline const ::std::string& TestAllTypesLite::optional_bytes() const {
2662
+ return *optional_bytes_;
2663
+ }
2664
+ inline void TestAllTypesLite::set_optional_bytes(const ::std::string& value) {
2665
+ set_has_optional_bytes();
2666
+ if (optional_bytes_ == &::google::protobuf::internal::kEmptyString) {
2667
+ optional_bytes_ = new ::std::string;
2668
+ }
2669
+ optional_bytes_->assign(value);
2670
+ }
2671
+ inline void TestAllTypesLite::set_optional_bytes(const char* value) {
2672
+ set_has_optional_bytes();
2673
+ if (optional_bytes_ == &::google::protobuf::internal::kEmptyString) {
2674
+ optional_bytes_ = new ::std::string;
2675
+ }
2676
+ optional_bytes_->assign(value);
2677
+ }
2678
+ inline void TestAllTypesLite::set_optional_bytes(const void* value, size_t size) {
2679
+ set_has_optional_bytes();
2680
+ if (optional_bytes_ == &::google::protobuf::internal::kEmptyString) {
2681
+ optional_bytes_ = new ::std::string;
2682
+ }
2683
+ optional_bytes_->assign(reinterpret_cast<const char*>(value), size);
2684
+ }
2685
+ inline ::std::string* TestAllTypesLite::mutable_optional_bytes() {
2686
+ set_has_optional_bytes();
2687
+ if (optional_bytes_ == &::google::protobuf::internal::kEmptyString) {
2688
+ optional_bytes_ = new ::std::string;
2689
+ }
2690
+ return optional_bytes_;
2691
+ }
2692
+ inline ::std::string* TestAllTypesLite::release_optional_bytes() {
2693
+ clear_has_optional_bytes();
2694
+ if (optional_bytes_ == &::google::protobuf::internal::kEmptyString) {
2695
+ return NULL;
2696
+ } else {
2697
+ ::std::string* temp = optional_bytes_;
2698
+ optional_bytes_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
2699
+ return temp;
2700
+ }
2701
+ }
2702
+
2703
+ // optional group OptionalGroup = 16 {
2704
+ inline bool TestAllTypesLite::has_optionalgroup() const {
2705
+ return (_has_bits_[0] & 0x00008000u) != 0;
2706
+ }
2707
+ inline void TestAllTypesLite::set_has_optionalgroup() {
2708
+ _has_bits_[0] |= 0x00008000u;
2709
+ }
2710
+ inline void TestAllTypesLite::clear_has_optionalgroup() {
2711
+ _has_bits_[0] &= ~0x00008000u;
2712
+ }
2713
+ inline void TestAllTypesLite::clear_optionalgroup() {
2714
+ if (optionalgroup_ != NULL) optionalgroup_->::protobuf_unittest::TestAllTypesLite_OptionalGroup::Clear();
2715
+ clear_has_optionalgroup();
2716
+ }
2717
+ inline const ::protobuf_unittest::TestAllTypesLite_OptionalGroup& TestAllTypesLite::optionalgroup() const {
2718
+ return optionalgroup_ != NULL ? *optionalgroup_ : *default_instance_->optionalgroup_;
2719
+ }
2720
+ inline ::protobuf_unittest::TestAllTypesLite_OptionalGroup* TestAllTypesLite::mutable_optionalgroup() {
2721
+ set_has_optionalgroup();
2722
+ if (optionalgroup_ == NULL) optionalgroup_ = new ::protobuf_unittest::TestAllTypesLite_OptionalGroup;
2723
+ return optionalgroup_;
2724
+ }
2725
+ inline ::protobuf_unittest::TestAllTypesLite_OptionalGroup* TestAllTypesLite::release_optionalgroup() {
2726
+ clear_has_optionalgroup();
2727
+ ::protobuf_unittest::TestAllTypesLite_OptionalGroup* temp = optionalgroup_;
2728
+ optionalgroup_ = NULL;
2729
+ return temp;
2730
+ }
2731
+
2732
+ // optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
2733
+ inline bool TestAllTypesLite::has_optional_nested_message() const {
2734
+ return (_has_bits_[0] & 0x00010000u) != 0;
2735
+ }
2736
+ inline void TestAllTypesLite::set_has_optional_nested_message() {
2737
+ _has_bits_[0] |= 0x00010000u;
2738
+ }
2739
+ inline void TestAllTypesLite::clear_has_optional_nested_message() {
2740
+ _has_bits_[0] &= ~0x00010000u;
2741
+ }
2742
+ inline void TestAllTypesLite::clear_optional_nested_message() {
2743
+ if (optional_nested_message_ != NULL) optional_nested_message_->::protobuf_unittest::TestAllTypesLite_NestedMessage::Clear();
2744
+ clear_has_optional_nested_message();
2745
+ }
2746
+ inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::optional_nested_message() const {
2747
+ return optional_nested_message_ != NULL ? *optional_nested_message_ : *default_instance_->optional_nested_message_;
2748
+ }
2749
+ inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::mutable_optional_nested_message() {
2750
+ set_has_optional_nested_message();
2751
+ if (optional_nested_message_ == NULL) optional_nested_message_ = new ::protobuf_unittest::TestAllTypesLite_NestedMessage;
2752
+ return optional_nested_message_;
2753
+ }
2754
+ inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::release_optional_nested_message() {
2755
+ clear_has_optional_nested_message();
2756
+ ::protobuf_unittest::TestAllTypesLite_NestedMessage* temp = optional_nested_message_;
2757
+ optional_nested_message_ = NULL;
2758
+ return temp;
2759
+ }
2760
+
2761
+ // optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
2762
+ inline bool TestAllTypesLite::has_optional_foreign_message() const {
2763
+ return (_has_bits_[0] & 0x00020000u) != 0;
2764
+ }
2765
+ inline void TestAllTypesLite::set_has_optional_foreign_message() {
2766
+ _has_bits_[0] |= 0x00020000u;
2767
+ }
2768
+ inline void TestAllTypesLite::clear_has_optional_foreign_message() {
2769
+ _has_bits_[0] &= ~0x00020000u;
2770
+ }
2771
+ inline void TestAllTypesLite::clear_optional_foreign_message() {
2772
+ if (optional_foreign_message_ != NULL) optional_foreign_message_->::protobuf_unittest::ForeignMessageLite::Clear();
2773
+ clear_has_optional_foreign_message();
2774
+ }
2775
+ inline const ::protobuf_unittest::ForeignMessageLite& TestAllTypesLite::optional_foreign_message() const {
2776
+ return optional_foreign_message_ != NULL ? *optional_foreign_message_ : *default_instance_->optional_foreign_message_;
2777
+ }
2778
+ inline ::protobuf_unittest::ForeignMessageLite* TestAllTypesLite::mutable_optional_foreign_message() {
2779
+ set_has_optional_foreign_message();
2780
+ if (optional_foreign_message_ == NULL) optional_foreign_message_ = new ::protobuf_unittest::ForeignMessageLite;
2781
+ return optional_foreign_message_;
2782
+ }
2783
+ inline ::protobuf_unittest::ForeignMessageLite* TestAllTypesLite::release_optional_foreign_message() {
2784
+ clear_has_optional_foreign_message();
2785
+ ::protobuf_unittest::ForeignMessageLite* temp = optional_foreign_message_;
2786
+ optional_foreign_message_ = NULL;
2787
+ return temp;
2788
+ }
2789
+
2790
+ // optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
2791
+ inline bool TestAllTypesLite::has_optional_import_message() const {
2792
+ return (_has_bits_[0] & 0x00040000u) != 0;
2793
+ }
2794
+ inline void TestAllTypesLite::set_has_optional_import_message() {
2795
+ _has_bits_[0] |= 0x00040000u;
2796
+ }
2797
+ inline void TestAllTypesLite::clear_has_optional_import_message() {
2798
+ _has_bits_[0] &= ~0x00040000u;
2799
+ }
2800
+ inline void TestAllTypesLite::clear_optional_import_message() {
2801
+ if (optional_import_message_ != NULL) optional_import_message_->::protobuf_unittest_import::ImportMessageLite::Clear();
2802
+ clear_has_optional_import_message();
2803
+ }
2804
+ inline const ::protobuf_unittest_import::ImportMessageLite& TestAllTypesLite::optional_import_message() const {
2805
+ return optional_import_message_ != NULL ? *optional_import_message_ : *default_instance_->optional_import_message_;
2806
+ }
2807
+ inline ::protobuf_unittest_import::ImportMessageLite* TestAllTypesLite::mutable_optional_import_message() {
2808
+ set_has_optional_import_message();
2809
+ if (optional_import_message_ == NULL) optional_import_message_ = new ::protobuf_unittest_import::ImportMessageLite;
2810
+ return optional_import_message_;
2811
+ }
2812
+ inline ::protobuf_unittest_import::ImportMessageLite* TestAllTypesLite::release_optional_import_message() {
2813
+ clear_has_optional_import_message();
2814
+ ::protobuf_unittest_import::ImportMessageLite* temp = optional_import_message_;
2815
+ optional_import_message_ = NULL;
2816
+ return temp;
2817
+ }
2818
+
2819
+ // optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
2820
+ inline bool TestAllTypesLite::has_optional_nested_enum() const {
2821
+ return (_has_bits_[0] & 0x00080000u) != 0;
2822
+ }
2823
+ inline void TestAllTypesLite::set_has_optional_nested_enum() {
2824
+ _has_bits_[0] |= 0x00080000u;
2825
+ }
2826
+ inline void TestAllTypesLite::clear_has_optional_nested_enum() {
2827
+ _has_bits_[0] &= ~0x00080000u;
2828
+ }
2829
+ inline void TestAllTypesLite::clear_optional_nested_enum() {
2830
+ optional_nested_enum_ = 1;
2831
+ clear_has_optional_nested_enum();
2832
+ }
2833
+ inline ::protobuf_unittest::TestAllTypesLite_NestedEnum TestAllTypesLite::optional_nested_enum() const {
2834
+ return static_cast< ::protobuf_unittest::TestAllTypesLite_NestedEnum >(optional_nested_enum_);
2835
+ }
2836
+ inline void TestAllTypesLite::set_optional_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value) {
2837
+ GOOGLE_DCHECK(::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid(value));
2838
+ set_has_optional_nested_enum();
2839
+ optional_nested_enum_ = value;
2840
+ }
2841
+
2842
+ // optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
2843
+ inline bool TestAllTypesLite::has_optional_foreign_enum() const {
2844
+ return (_has_bits_[0] & 0x00100000u) != 0;
2845
+ }
2846
+ inline void TestAllTypesLite::set_has_optional_foreign_enum() {
2847
+ _has_bits_[0] |= 0x00100000u;
2848
+ }
2849
+ inline void TestAllTypesLite::clear_has_optional_foreign_enum() {
2850
+ _has_bits_[0] &= ~0x00100000u;
2851
+ }
2852
+ inline void TestAllTypesLite::clear_optional_foreign_enum() {
2853
+ optional_foreign_enum_ = 4;
2854
+ clear_has_optional_foreign_enum();
2855
+ }
2856
+ inline protobuf_unittest::ForeignEnumLite TestAllTypesLite::optional_foreign_enum() const {
2857
+ return static_cast< protobuf_unittest::ForeignEnumLite >(optional_foreign_enum_);
2858
+ }
2859
+ inline void TestAllTypesLite::set_optional_foreign_enum(protobuf_unittest::ForeignEnumLite value) {
2860
+ GOOGLE_DCHECK(protobuf_unittest::ForeignEnumLite_IsValid(value));
2861
+ set_has_optional_foreign_enum();
2862
+ optional_foreign_enum_ = value;
2863
+ }
2864
+
2865
+ // optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
2866
+ inline bool TestAllTypesLite::has_optional_import_enum() const {
2867
+ return (_has_bits_[0] & 0x00200000u) != 0;
2868
+ }
2869
+ inline void TestAllTypesLite::set_has_optional_import_enum() {
2870
+ _has_bits_[0] |= 0x00200000u;
2871
+ }
2872
+ inline void TestAllTypesLite::clear_has_optional_import_enum() {
2873
+ _has_bits_[0] &= ~0x00200000u;
2874
+ }
2875
+ inline void TestAllTypesLite::clear_optional_import_enum() {
2876
+ optional_import_enum_ = 7;
2877
+ clear_has_optional_import_enum();
2878
+ }
2879
+ inline protobuf_unittest_import::ImportEnumLite TestAllTypesLite::optional_import_enum() const {
2880
+ return static_cast< protobuf_unittest_import::ImportEnumLite >(optional_import_enum_);
2881
+ }
2882
+ inline void TestAllTypesLite::set_optional_import_enum(protobuf_unittest_import::ImportEnumLite value) {
2883
+ GOOGLE_DCHECK(protobuf_unittest_import::ImportEnumLite_IsValid(value));
2884
+ set_has_optional_import_enum();
2885
+ optional_import_enum_ = value;
2886
+ }
2887
+
2888
+ // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
2889
+ inline bool TestAllTypesLite::has_optional_string_piece() const {
2890
+ return (_has_bits_[0] & 0x00400000u) != 0;
2891
+ }
2892
+ inline void TestAllTypesLite::set_has_optional_string_piece() {
2893
+ _has_bits_[0] |= 0x00400000u;
2894
+ }
2895
+ inline void TestAllTypesLite::clear_has_optional_string_piece() {
2896
+ _has_bits_[0] &= ~0x00400000u;
2897
+ }
2898
+ inline void TestAllTypesLite::clear_optional_string_piece() {
2899
+ if (optional_string_piece_ != &::google::protobuf::internal::kEmptyString) {
2900
+ optional_string_piece_->clear();
2901
+ }
2902
+ clear_has_optional_string_piece();
2903
+ }
2904
+ inline const ::std::string& TestAllTypesLite::optional_string_piece() const {
2905
+ return *optional_string_piece_;
2906
+ }
2907
+ inline void TestAllTypesLite::set_optional_string_piece(const ::std::string& value) {
2908
+ set_has_optional_string_piece();
2909
+ if (optional_string_piece_ == &::google::protobuf::internal::kEmptyString) {
2910
+ optional_string_piece_ = new ::std::string;
2911
+ }
2912
+ optional_string_piece_->assign(value);
2913
+ }
2914
+ inline void TestAllTypesLite::set_optional_string_piece(const char* value) {
2915
+ set_has_optional_string_piece();
2916
+ if (optional_string_piece_ == &::google::protobuf::internal::kEmptyString) {
2917
+ optional_string_piece_ = new ::std::string;
2918
+ }
2919
+ optional_string_piece_->assign(value);
2920
+ }
2921
+ inline void TestAllTypesLite::set_optional_string_piece(const char* value, size_t size) {
2922
+ set_has_optional_string_piece();
2923
+ if (optional_string_piece_ == &::google::protobuf::internal::kEmptyString) {
2924
+ optional_string_piece_ = new ::std::string;
2925
+ }
2926
+ optional_string_piece_->assign(reinterpret_cast<const char*>(value), size);
2927
+ }
2928
+ inline ::std::string* TestAllTypesLite::mutable_optional_string_piece() {
2929
+ set_has_optional_string_piece();
2930
+ if (optional_string_piece_ == &::google::protobuf::internal::kEmptyString) {
2931
+ optional_string_piece_ = new ::std::string;
2932
+ }
2933
+ return optional_string_piece_;
2934
+ }
2935
+ inline ::std::string* TestAllTypesLite::release_optional_string_piece() {
2936
+ clear_has_optional_string_piece();
2937
+ if (optional_string_piece_ == &::google::protobuf::internal::kEmptyString) {
2938
+ return NULL;
2939
+ } else {
2940
+ ::std::string* temp = optional_string_piece_;
2941
+ optional_string_piece_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
2942
+ return temp;
2943
+ }
2944
+ }
2945
+
2946
+ // optional string optional_cord = 25 [ctype = CORD];
2947
+ inline bool TestAllTypesLite::has_optional_cord() const {
2948
+ return (_has_bits_[0] & 0x00800000u) != 0;
2949
+ }
2950
+ inline void TestAllTypesLite::set_has_optional_cord() {
2951
+ _has_bits_[0] |= 0x00800000u;
2952
+ }
2953
+ inline void TestAllTypesLite::clear_has_optional_cord() {
2954
+ _has_bits_[0] &= ~0x00800000u;
2955
+ }
2956
+ inline void TestAllTypesLite::clear_optional_cord() {
2957
+ if (optional_cord_ != &::google::protobuf::internal::kEmptyString) {
2958
+ optional_cord_->clear();
2959
+ }
2960
+ clear_has_optional_cord();
2961
+ }
2962
+ inline const ::std::string& TestAllTypesLite::optional_cord() const {
2963
+ return *optional_cord_;
2964
+ }
2965
+ inline void TestAllTypesLite::set_optional_cord(const ::std::string& value) {
2966
+ set_has_optional_cord();
2967
+ if (optional_cord_ == &::google::protobuf::internal::kEmptyString) {
2968
+ optional_cord_ = new ::std::string;
2969
+ }
2970
+ optional_cord_->assign(value);
2971
+ }
2972
+ inline void TestAllTypesLite::set_optional_cord(const char* value) {
2973
+ set_has_optional_cord();
2974
+ if (optional_cord_ == &::google::protobuf::internal::kEmptyString) {
2975
+ optional_cord_ = new ::std::string;
2976
+ }
2977
+ optional_cord_->assign(value);
2978
+ }
2979
+ inline void TestAllTypesLite::set_optional_cord(const char* value, size_t size) {
2980
+ set_has_optional_cord();
2981
+ if (optional_cord_ == &::google::protobuf::internal::kEmptyString) {
2982
+ optional_cord_ = new ::std::string;
2983
+ }
2984
+ optional_cord_->assign(reinterpret_cast<const char*>(value), size);
2985
+ }
2986
+ inline ::std::string* TestAllTypesLite::mutable_optional_cord() {
2987
+ set_has_optional_cord();
2988
+ if (optional_cord_ == &::google::protobuf::internal::kEmptyString) {
2989
+ optional_cord_ = new ::std::string;
2990
+ }
2991
+ return optional_cord_;
2992
+ }
2993
+ inline ::std::string* TestAllTypesLite::release_optional_cord() {
2994
+ clear_has_optional_cord();
2995
+ if (optional_cord_ == &::google::protobuf::internal::kEmptyString) {
2996
+ return NULL;
2997
+ } else {
2998
+ ::std::string* temp = optional_cord_;
2999
+ optional_cord_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
3000
+ return temp;
3001
+ }
3002
+ }
3003
+
3004
+ // repeated int32 repeated_int32 = 31;
3005
+ inline int TestAllTypesLite::repeated_int32_size() const {
3006
+ return repeated_int32_.size();
3007
+ }
3008
+ inline void TestAllTypesLite::clear_repeated_int32() {
3009
+ repeated_int32_.Clear();
3010
+ }
3011
+ inline ::google::protobuf::int32 TestAllTypesLite::repeated_int32(int index) const {
3012
+ return repeated_int32_.Get(index);
3013
+ }
3014
+ inline void TestAllTypesLite::set_repeated_int32(int index, ::google::protobuf::int32 value) {
3015
+ repeated_int32_.Set(index, value);
3016
+ }
3017
+ inline void TestAllTypesLite::add_repeated_int32(::google::protobuf::int32 value) {
3018
+ repeated_int32_.Add(value);
3019
+ }
3020
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
3021
+ TestAllTypesLite::repeated_int32() const {
3022
+ return repeated_int32_;
3023
+ }
3024
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
3025
+ TestAllTypesLite::mutable_repeated_int32() {
3026
+ return &repeated_int32_;
3027
+ }
3028
+
3029
+ // repeated int64 repeated_int64 = 32;
3030
+ inline int TestAllTypesLite::repeated_int64_size() const {
3031
+ return repeated_int64_.size();
3032
+ }
3033
+ inline void TestAllTypesLite::clear_repeated_int64() {
3034
+ repeated_int64_.Clear();
3035
+ }
3036
+ inline ::google::protobuf::int64 TestAllTypesLite::repeated_int64(int index) const {
3037
+ return repeated_int64_.Get(index);
3038
+ }
3039
+ inline void TestAllTypesLite::set_repeated_int64(int index, ::google::protobuf::int64 value) {
3040
+ repeated_int64_.Set(index, value);
3041
+ }
3042
+ inline void TestAllTypesLite::add_repeated_int64(::google::protobuf::int64 value) {
3043
+ repeated_int64_.Add(value);
3044
+ }
3045
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
3046
+ TestAllTypesLite::repeated_int64() const {
3047
+ return repeated_int64_;
3048
+ }
3049
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
3050
+ TestAllTypesLite::mutable_repeated_int64() {
3051
+ return &repeated_int64_;
3052
+ }
3053
+
3054
+ // repeated uint32 repeated_uint32 = 33;
3055
+ inline int TestAllTypesLite::repeated_uint32_size() const {
3056
+ return repeated_uint32_.size();
3057
+ }
3058
+ inline void TestAllTypesLite::clear_repeated_uint32() {
3059
+ repeated_uint32_.Clear();
3060
+ }
3061
+ inline ::google::protobuf::uint32 TestAllTypesLite::repeated_uint32(int index) const {
3062
+ return repeated_uint32_.Get(index);
3063
+ }
3064
+ inline void TestAllTypesLite::set_repeated_uint32(int index, ::google::protobuf::uint32 value) {
3065
+ repeated_uint32_.Set(index, value);
3066
+ }
3067
+ inline void TestAllTypesLite::add_repeated_uint32(::google::protobuf::uint32 value) {
3068
+ repeated_uint32_.Add(value);
3069
+ }
3070
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
3071
+ TestAllTypesLite::repeated_uint32() const {
3072
+ return repeated_uint32_;
3073
+ }
3074
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
3075
+ TestAllTypesLite::mutable_repeated_uint32() {
3076
+ return &repeated_uint32_;
3077
+ }
3078
+
3079
+ // repeated uint64 repeated_uint64 = 34;
3080
+ inline int TestAllTypesLite::repeated_uint64_size() const {
3081
+ return repeated_uint64_.size();
3082
+ }
3083
+ inline void TestAllTypesLite::clear_repeated_uint64() {
3084
+ repeated_uint64_.Clear();
3085
+ }
3086
+ inline ::google::protobuf::uint64 TestAllTypesLite::repeated_uint64(int index) const {
3087
+ return repeated_uint64_.Get(index);
3088
+ }
3089
+ inline void TestAllTypesLite::set_repeated_uint64(int index, ::google::protobuf::uint64 value) {
3090
+ repeated_uint64_.Set(index, value);
3091
+ }
3092
+ inline void TestAllTypesLite::add_repeated_uint64(::google::protobuf::uint64 value) {
3093
+ repeated_uint64_.Add(value);
3094
+ }
3095
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
3096
+ TestAllTypesLite::repeated_uint64() const {
3097
+ return repeated_uint64_;
3098
+ }
3099
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
3100
+ TestAllTypesLite::mutable_repeated_uint64() {
3101
+ return &repeated_uint64_;
3102
+ }
3103
+
3104
+ // repeated sint32 repeated_sint32 = 35;
3105
+ inline int TestAllTypesLite::repeated_sint32_size() const {
3106
+ return repeated_sint32_.size();
3107
+ }
3108
+ inline void TestAllTypesLite::clear_repeated_sint32() {
3109
+ repeated_sint32_.Clear();
3110
+ }
3111
+ inline ::google::protobuf::int32 TestAllTypesLite::repeated_sint32(int index) const {
3112
+ return repeated_sint32_.Get(index);
3113
+ }
3114
+ inline void TestAllTypesLite::set_repeated_sint32(int index, ::google::protobuf::int32 value) {
3115
+ repeated_sint32_.Set(index, value);
3116
+ }
3117
+ inline void TestAllTypesLite::add_repeated_sint32(::google::protobuf::int32 value) {
3118
+ repeated_sint32_.Add(value);
3119
+ }
3120
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
3121
+ TestAllTypesLite::repeated_sint32() const {
3122
+ return repeated_sint32_;
3123
+ }
3124
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
3125
+ TestAllTypesLite::mutable_repeated_sint32() {
3126
+ return &repeated_sint32_;
3127
+ }
3128
+
3129
+ // repeated sint64 repeated_sint64 = 36;
3130
+ inline int TestAllTypesLite::repeated_sint64_size() const {
3131
+ return repeated_sint64_.size();
3132
+ }
3133
+ inline void TestAllTypesLite::clear_repeated_sint64() {
3134
+ repeated_sint64_.Clear();
3135
+ }
3136
+ inline ::google::protobuf::int64 TestAllTypesLite::repeated_sint64(int index) const {
3137
+ return repeated_sint64_.Get(index);
3138
+ }
3139
+ inline void TestAllTypesLite::set_repeated_sint64(int index, ::google::protobuf::int64 value) {
3140
+ repeated_sint64_.Set(index, value);
3141
+ }
3142
+ inline void TestAllTypesLite::add_repeated_sint64(::google::protobuf::int64 value) {
3143
+ repeated_sint64_.Add(value);
3144
+ }
3145
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
3146
+ TestAllTypesLite::repeated_sint64() const {
3147
+ return repeated_sint64_;
3148
+ }
3149
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
3150
+ TestAllTypesLite::mutable_repeated_sint64() {
3151
+ return &repeated_sint64_;
3152
+ }
3153
+
3154
+ // repeated fixed32 repeated_fixed32 = 37;
3155
+ inline int TestAllTypesLite::repeated_fixed32_size() const {
3156
+ return repeated_fixed32_.size();
3157
+ }
3158
+ inline void TestAllTypesLite::clear_repeated_fixed32() {
3159
+ repeated_fixed32_.Clear();
3160
+ }
3161
+ inline ::google::protobuf::uint32 TestAllTypesLite::repeated_fixed32(int index) const {
3162
+ return repeated_fixed32_.Get(index);
3163
+ }
3164
+ inline void TestAllTypesLite::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
3165
+ repeated_fixed32_.Set(index, value);
3166
+ }
3167
+ inline void TestAllTypesLite::add_repeated_fixed32(::google::protobuf::uint32 value) {
3168
+ repeated_fixed32_.Add(value);
3169
+ }
3170
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
3171
+ TestAllTypesLite::repeated_fixed32() const {
3172
+ return repeated_fixed32_;
3173
+ }
3174
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
3175
+ TestAllTypesLite::mutable_repeated_fixed32() {
3176
+ return &repeated_fixed32_;
3177
+ }
3178
+
3179
+ // repeated fixed64 repeated_fixed64 = 38;
3180
+ inline int TestAllTypesLite::repeated_fixed64_size() const {
3181
+ return repeated_fixed64_.size();
3182
+ }
3183
+ inline void TestAllTypesLite::clear_repeated_fixed64() {
3184
+ repeated_fixed64_.Clear();
3185
+ }
3186
+ inline ::google::protobuf::uint64 TestAllTypesLite::repeated_fixed64(int index) const {
3187
+ return repeated_fixed64_.Get(index);
3188
+ }
3189
+ inline void TestAllTypesLite::set_repeated_fixed64(int index, ::google::protobuf::uint64 value) {
3190
+ repeated_fixed64_.Set(index, value);
3191
+ }
3192
+ inline void TestAllTypesLite::add_repeated_fixed64(::google::protobuf::uint64 value) {
3193
+ repeated_fixed64_.Add(value);
3194
+ }
3195
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
3196
+ TestAllTypesLite::repeated_fixed64() const {
3197
+ return repeated_fixed64_;
3198
+ }
3199
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
3200
+ TestAllTypesLite::mutable_repeated_fixed64() {
3201
+ return &repeated_fixed64_;
3202
+ }
3203
+
3204
+ // repeated sfixed32 repeated_sfixed32 = 39;
3205
+ inline int TestAllTypesLite::repeated_sfixed32_size() const {
3206
+ return repeated_sfixed32_.size();
3207
+ }
3208
+ inline void TestAllTypesLite::clear_repeated_sfixed32() {
3209
+ repeated_sfixed32_.Clear();
3210
+ }
3211
+ inline ::google::protobuf::int32 TestAllTypesLite::repeated_sfixed32(int index) const {
3212
+ return repeated_sfixed32_.Get(index);
3213
+ }
3214
+ inline void TestAllTypesLite::set_repeated_sfixed32(int index, ::google::protobuf::int32 value) {
3215
+ repeated_sfixed32_.Set(index, value);
3216
+ }
3217
+ inline void TestAllTypesLite::add_repeated_sfixed32(::google::protobuf::int32 value) {
3218
+ repeated_sfixed32_.Add(value);
3219
+ }
3220
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
3221
+ TestAllTypesLite::repeated_sfixed32() const {
3222
+ return repeated_sfixed32_;
3223
+ }
3224
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
3225
+ TestAllTypesLite::mutable_repeated_sfixed32() {
3226
+ return &repeated_sfixed32_;
3227
+ }
3228
+
3229
+ // repeated sfixed64 repeated_sfixed64 = 40;
3230
+ inline int TestAllTypesLite::repeated_sfixed64_size() const {
3231
+ return repeated_sfixed64_.size();
3232
+ }
3233
+ inline void TestAllTypesLite::clear_repeated_sfixed64() {
3234
+ repeated_sfixed64_.Clear();
3235
+ }
3236
+ inline ::google::protobuf::int64 TestAllTypesLite::repeated_sfixed64(int index) const {
3237
+ return repeated_sfixed64_.Get(index);
3238
+ }
3239
+ inline void TestAllTypesLite::set_repeated_sfixed64(int index, ::google::protobuf::int64 value) {
3240
+ repeated_sfixed64_.Set(index, value);
3241
+ }
3242
+ inline void TestAllTypesLite::add_repeated_sfixed64(::google::protobuf::int64 value) {
3243
+ repeated_sfixed64_.Add(value);
3244
+ }
3245
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
3246
+ TestAllTypesLite::repeated_sfixed64() const {
3247
+ return repeated_sfixed64_;
3248
+ }
3249
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
3250
+ TestAllTypesLite::mutable_repeated_sfixed64() {
3251
+ return &repeated_sfixed64_;
3252
+ }
3253
+
3254
+ // repeated float repeated_float = 41;
3255
+ inline int TestAllTypesLite::repeated_float_size() const {
3256
+ return repeated_float_.size();
3257
+ }
3258
+ inline void TestAllTypesLite::clear_repeated_float() {
3259
+ repeated_float_.Clear();
3260
+ }
3261
+ inline float TestAllTypesLite::repeated_float(int index) const {
3262
+ return repeated_float_.Get(index);
3263
+ }
3264
+ inline void TestAllTypesLite::set_repeated_float(int index, float value) {
3265
+ repeated_float_.Set(index, value);
3266
+ }
3267
+ inline void TestAllTypesLite::add_repeated_float(float value) {
3268
+ repeated_float_.Add(value);
3269
+ }
3270
+ inline const ::google::protobuf::RepeatedField< float >&
3271
+ TestAllTypesLite::repeated_float() const {
3272
+ return repeated_float_;
3273
+ }
3274
+ inline ::google::protobuf::RepeatedField< float >*
3275
+ TestAllTypesLite::mutable_repeated_float() {
3276
+ return &repeated_float_;
3277
+ }
3278
+
3279
+ // repeated double repeated_double = 42;
3280
+ inline int TestAllTypesLite::repeated_double_size() const {
3281
+ return repeated_double_.size();
3282
+ }
3283
+ inline void TestAllTypesLite::clear_repeated_double() {
3284
+ repeated_double_.Clear();
3285
+ }
3286
+ inline double TestAllTypesLite::repeated_double(int index) const {
3287
+ return repeated_double_.Get(index);
3288
+ }
3289
+ inline void TestAllTypesLite::set_repeated_double(int index, double value) {
3290
+ repeated_double_.Set(index, value);
3291
+ }
3292
+ inline void TestAllTypesLite::add_repeated_double(double value) {
3293
+ repeated_double_.Add(value);
3294
+ }
3295
+ inline const ::google::protobuf::RepeatedField< double >&
3296
+ TestAllTypesLite::repeated_double() const {
3297
+ return repeated_double_;
3298
+ }
3299
+ inline ::google::protobuf::RepeatedField< double >*
3300
+ TestAllTypesLite::mutable_repeated_double() {
3301
+ return &repeated_double_;
3302
+ }
3303
+
3304
+ // repeated bool repeated_bool = 43;
3305
+ inline int TestAllTypesLite::repeated_bool_size() const {
3306
+ return repeated_bool_.size();
3307
+ }
3308
+ inline void TestAllTypesLite::clear_repeated_bool() {
3309
+ repeated_bool_.Clear();
3310
+ }
3311
+ inline bool TestAllTypesLite::repeated_bool(int index) const {
3312
+ return repeated_bool_.Get(index);
3313
+ }
3314
+ inline void TestAllTypesLite::set_repeated_bool(int index, bool value) {
3315
+ repeated_bool_.Set(index, value);
3316
+ }
3317
+ inline void TestAllTypesLite::add_repeated_bool(bool value) {
3318
+ repeated_bool_.Add(value);
3319
+ }
3320
+ inline const ::google::protobuf::RepeatedField< bool >&
3321
+ TestAllTypesLite::repeated_bool() const {
3322
+ return repeated_bool_;
3323
+ }
3324
+ inline ::google::protobuf::RepeatedField< bool >*
3325
+ TestAllTypesLite::mutable_repeated_bool() {
3326
+ return &repeated_bool_;
3327
+ }
3328
+
3329
+ // repeated string repeated_string = 44;
3330
+ inline int TestAllTypesLite::repeated_string_size() const {
3331
+ return repeated_string_.size();
3332
+ }
3333
+ inline void TestAllTypesLite::clear_repeated_string() {
3334
+ repeated_string_.Clear();
3335
+ }
3336
+ inline const ::std::string& TestAllTypesLite::repeated_string(int index) const {
3337
+ return repeated_string_.Get(index);
3338
+ }
3339
+ inline ::std::string* TestAllTypesLite::mutable_repeated_string(int index) {
3340
+ return repeated_string_.Mutable(index);
3341
+ }
3342
+ inline void TestAllTypesLite::set_repeated_string(int index, const ::std::string& value) {
3343
+ repeated_string_.Mutable(index)->assign(value);
3344
+ }
3345
+ inline void TestAllTypesLite::set_repeated_string(int index, const char* value) {
3346
+ repeated_string_.Mutable(index)->assign(value);
3347
+ }
3348
+ inline void TestAllTypesLite::set_repeated_string(int index, const char* value, size_t size) {
3349
+ repeated_string_.Mutable(index)->assign(
3350
+ reinterpret_cast<const char*>(value), size);
3351
+ }
3352
+ inline ::std::string* TestAllTypesLite::add_repeated_string() {
3353
+ return repeated_string_.Add();
3354
+ }
3355
+ inline void TestAllTypesLite::add_repeated_string(const ::std::string& value) {
3356
+ repeated_string_.Add()->assign(value);
3357
+ }
3358
+ inline void TestAllTypesLite::add_repeated_string(const char* value) {
3359
+ repeated_string_.Add()->assign(value);
3360
+ }
3361
+ inline void TestAllTypesLite::add_repeated_string(const char* value, size_t size) {
3362
+ repeated_string_.Add()->assign(reinterpret_cast<const char*>(value), size);
3363
+ }
3364
+ inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
3365
+ TestAllTypesLite::repeated_string() const {
3366
+ return repeated_string_;
3367
+ }
3368
+ inline ::google::protobuf::RepeatedPtrField< ::std::string>*
3369
+ TestAllTypesLite::mutable_repeated_string() {
3370
+ return &repeated_string_;
3371
+ }
3372
+
3373
+ // repeated bytes repeated_bytes = 45;
3374
+ inline int TestAllTypesLite::repeated_bytes_size() const {
3375
+ return repeated_bytes_.size();
3376
+ }
3377
+ inline void TestAllTypesLite::clear_repeated_bytes() {
3378
+ repeated_bytes_.Clear();
3379
+ }
3380
+ inline const ::std::string& TestAllTypesLite::repeated_bytes(int index) const {
3381
+ return repeated_bytes_.Get(index);
3382
+ }
3383
+ inline ::std::string* TestAllTypesLite::mutable_repeated_bytes(int index) {
3384
+ return repeated_bytes_.Mutable(index);
3385
+ }
3386
+ inline void TestAllTypesLite::set_repeated_bytes(int index, const ::std::string& value) {
3387
+ repeated_bytes_.Mutable(index)->assign(value);
3388
+ }
3389
+ inline void TestAllTypesLite::set_repeated_bytes(int index, const char* value) {
3390
+ repeated_bytes_.Mutable(index)->assign(value);
3391
+ }
3392
+ inline void TestAllTypesLite::set_repeated_bytes(int index, const void* value, size_t size) {
3393
+ repeated_bytes_.Mutable(index)->assign(
3394
+ reinterpret_cast<const char*>(value), size);
3395
+ }
3396
+ inline ::std::string* TestAllTypesLite::add_repeated_bytes() {
3397
+ return repeated_bytes_.Add();
3398
+ }
3399
+ inline void TestAllTypesLite::add_repeated_bytes(const ::std::string& value) {
3400
+ repeated_bytes_.Add()->assign(value);
3401
+ }
3402
+ inline void TestAllTypesLite::add_repeated_bytes(const char* value) {
3403
+ repeated_bytes_.Add()->assign(value);
3404
+ }
3405
+ inline void TestAllTypesLite::add_repeated_bytes(const void* value, size_t size) {
3406
+ repeated_bytes_.Add()->assign(reinterpret_cast<const char*>(value), size);
3407
+ }
3408
+ inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
3409
+ TestAllTypesLite::repeated_bytes() const {
3410
+ return repeated_bytes_;
3411
+ }
3412
+ inline ::google::protobuf::RepeatedPtrField< ::std::string>*
3413
+ TestAllTypesLite::mutable_repeated_bytes() {
3414
+ return &repeated_bytes_;
3415
+ }
3416
+
3417
+ // repeated group RepeatedGroup = 46 {
3418
+ inline int TestAllTypesLite::repeatedgroup_size() const {
3419
+ return repeatedgroup_.size();
3420
+ }
3421
+ inline void TestAllTypesLite::clear_repeatedgroup() {
3422
+ repeatedgroup_.Clear();
3423
+ }
3424
+ inline const ::protobuf_unittest::TestAllTypesLite_RepeatedGroup& TestAllTypesLite::repeatedgroup(int index) const {
3425
+ return repeatedgroup_.Get(index);
3426
+ }
3427
+ inline ::protobuf_unittest::TestAllTypesLite_RepeatedGroup* TestAllTypesLite::mutable_repeatedgroup(int index) {
3428
+ return repeatedgroup_.Mutable(index);
3429
+ }
3430
+ inline ::protobuf_unittest::TestAllTypesLite_RepeatedGroup* TestAllTypesLite::add_repeatedgroup() {
3431
+ return repeatedgroup_.Add();
3432
+ }
3433
+ inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_RepeatedGroup >&
3434
+ TestAllTypesLite::repeatedgroup() const {
3435
+ return repeatedgroup_;
3436
+ }
3437
+ inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_RepeatedGroup >*
3438
+ TestAllTypesLite::mutable_repeatedgroup() {
3439
+ return &repeatedgroup_;
3440
+ }
3441
+
3442
+ // repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
3443
+ inline int TestAllTypesLite::repeated_nested_message_size() const {
3444
+ return repeated_nested_message_.size();
3445
+ }
3446
+ inline void TestAllTypesLite::clear_repeated_nested_message() {
3447
+ repeated_nested_message_.Clear();
3448
+ }
3449
+ inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::repeated_nested_message(int index) const {
3450
+ return repeated_nested_message_.Get(index);
3451
+ }
3452
+ inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::mutable_repeated_nested_message(int index) {
3453
+ return repeated_nested_message_.Mutable(index);
3454
+ }
3455
+ inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::add_repeated_nested_message() {
3456
+ return repeated_nested_message_.Add();
3457
+ }
3458
+ inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >&
3459
+ TestAllTypesLite::repeated_nested_message() const {
3460
+ return repeated_nested_message_;
3461
+ }
3462
+ inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >*
3463
+ TestAllTypesLite::mutable_repeated_nested_message() {
3464
+ return &repeated_nested_message_;
3465
+ }
3466
+
3467
+ // repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
3468
+ inline int TestAllTypesLite::repeated_foreign_message_size() const {
3469
+ return repeated_foreign_message_.size();
3470
+ }
3471
+ inline void TestAllTypesLite::clear_repeated_foreign_message() {
3472
+ repeated_foreign_message_.Clear();
3473
+ }
3474
+ inline const ::protobuf_unittest::ForeignMessageLite& TestAllTypesLite::repeated_foreign_message(int index) const {
3475
+ return repeated_foreign_message_.Get(index);
3476
+ }
3477
+ inline ::protobuf_unittest::ForeignMessageLite* TestAllTypesLite::mutable_repeated_foreign_message(int index) {
3478
+ return repeated_foreign_message_.Mutable(index);
3479
+ }
3480
+ inline ::protobuf_unittest::ForeignMessageLite* TestAllTypesLite::add_repeated_foreign_message() {
3481
+ return repeated_foreign_message_.Add();
3482
+ }
3483
+ inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessageLite >&
3484
+ TestAllTypesLite::repeated_foreign_message() const {
3485
+ return repeated_foreign_message_;
3486
+ }
3487
+ inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessageLite >*
3488
+ TestAllTypesLite::mutable_repeated_foreign_message() {
3489
+ return &repeated_foreign_message_;
3490
+ }
3491
+
3492
+ // repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
3493
+ inline int TestAllTypesLite::repeated_import_message_size() const {
3494
+ return repeated_import_message_.size();
3495
+ }
3496
+ inline void TestAllTypesLite::clear_repeated_import_message() {
3497
+ repeated_import_message_.Clear();
3498
+ }
3499
+ inline const ::protobuf_unittest_import::ImportMessageLite& TestAllTypesLite::repeated_import_message(int index) const {
3500
+ return repeated_import_message_.Get(index);
3501
+ }
3502
+ inline ::protobuf_unittest_import::ImportMessageLite* TestAllTypesLite::mutable_repeated_import_message(int index) {
3503
+ return repeated_import_message_.Mutable(index);
3504
+ }
3505
+ inline ::protobuf_unittest_import::ImportMessageLite* TestAllTypesLite::add_repeated_import_message() {
3506
+ return repeated_import_message_.Add();
3507
+ }
3508
+ inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessageLite >&
3509
+ TestAllTypesLite::repeated_import_message() const {
3510
+ return repeated_import_message_;
3511
+ }
3512
+ inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessageLite >*
3513
+ TestAllTypesLite::mutable_repeated_import_message() {
3514
+ return &repeated_import_message_;
3515
+ }
3516
+
3517
+ // repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
3518
+ inline int TestAllTypesLite::repeated_nested_enum_size() const {
3519
+ return repeated_nested_enum_.size();
3520
+ }
3521
+ inline void TestAllTypesLite::clear_repeated_nested_enum() {
3522
+ repeated_nested_enum_.Clear();
3523
+ }
3524
+ inline ::protobuf_unittest::TestAllTypesLite_NestedEnum TestAllTypesLite::repeated_nested_enum(int index) const {
3525
+ return static_cast< ::protobuf_unittest::TestAllTypesLite_NestedEnum >(repeated_nested_enum_.Get(index));
3526
+ }
3527
+ inline void TestAllTypesLite::set_repeated_nested_enum(int index, ::protobuf_unittest::TestAllTypesLite_NestedEnum value) {
3528
+ GOOGLE_DCHECK(::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid(value));
3529
+ repeated_nested_enum_.Set(index, value);
3530
+ }
3531
+ inline void TestAllTypesLite::add_repeated_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value) {
3532
+ GOOGLE_DCHECK(::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid(value));
3533
+ repeated_nested_enum_.Add(value);
3534
+ }
3535
+ inline const ::google::protobuf::RepeatedField<int>&
3536
+ TestAllTypesLite::repeated_nested_enum() const {
3537
+ return repeated_nested_enum_;
3538
+ }
3539
+ inline ::google::protobuf::RepeatedField<int>*
3540
+ TestAllTypesLite::mutable_repeated_nested_enum() {
3541
+ return &repeated_nested_enum_;
3542
+ }
3543
+
3544
+ // repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
3545
+ inline int TestAllTypesLite::repeated_foreign_enum_size() const {
3546
+ return repeated_foreign_enum_.size();
3547
+ }
3548
+ inline void TestAllTypesLite::clear_repeated_foreign_enum() {
3549
+ repeated_foreign_enum_.Clear();
3550
+ }
3551
+ inline protobuf_unittest::ForeignEnumLite TestAllTypesLite::repeated_foreign_enum(int index) const {
3552
+ return static_cast< protobuf_unittest::ForeignEnumLite >(repeated_foreign_enum_.Get(index));
3553
+ }
3554
+ inline void TestAllTypesLite::set_repeated_foreign_enum(int index, protobuf_unittest::ForeignEnumLite value) {
3555
+ GOOGLE_DCHECK(protobuf_unittest::ForeignEnumLite_IsValid(value));
3556
+ repeated_foreign_enum_.Set(index, value);
3557
+ }
3558
+ inline void TestAllTypesLite::add_repeated_foreign_enum(protobuf_unittest::ForeignEnumLite value) {
3559
+ GOOGLE_DCHECK(protobuf_unittest::ForeignEnumLite_IsValid(value));
3560
+ repeated_foreign_enum_.Add(value);
3561
+ }
3562
+ inline const ::google::protobuf::RepeatedField<int>&
3563
+ TestAllTypesLite::repeated_foreign_enum() const {
3564
+ return repeated_foreign_enum_;
3565
+ }
3566
+ inline ::google::protobuf::RepeatedField<int>*
3567
+ TestAllTypesLite::mutable_repeated_foreign_enum() {
3568
+ return &repeated_foreign_enum_;
3569
+ }
3570
+
3571
+ // repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
3572
+ inline int TestAllTypesLite::repeated_import_enum_size() const {
3573
+ return repeated_import_enum_.size();
3574
+ }
3575
+ inline void TestAllTypesLite::clear_repeated_import_enum() {
3576
+ repeated_import_enum_.Clear();
3577
+ }
3578
+ inline protobuf_unittest_import::ImportEnumLite TestAllTypesLite::repeated_import_enum(int index) const {
3579
+ return static_cast< protobuf_unittest_import::ImportEnumLite >(repeated_import_enum_.Get(index));
3580
+ }
3581
+ inline void TestAllTypesLite::set_repeated_import_enum(int index, protobuf_unittest_import::ImportEnumLite value) {
3582
+ GOOGLE_DCHECK(protobuf_unittest_import::ImportEnumLite_IsValid(value));
3583
+ repeated_import_enum_.Set(index, value);
3584
+ }
3585
+ inline void TestAllTypesLite::add_repeated_import_enum(protobuf_unittest_import::ImportEnumLite value) {
3586
+ GOOGLE_DCHECK(protobuf_unittest_import::ImportEnumLite_IsValid(value));
3587
+ repeated_import_enum_.Add(value);
3588
+ }
3589
+ inline const ::google::protobuf::RepeatedField<int>&
3590
+ TestAllTypesLite::repeated_import_enum() const {
3591
+ return repeated_import_enum_;
3592
+ }
3593
+ inline ::google::protobuf::RepeatedField<int>*
3594
+ TestAllTypesLite::mutable_repeated_import_enum() {
3595
+ return &repeated_import_enum_;
3596
+ }
3597
+
3598
+ // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
3599
+ inline int TestAllTypesLite::repeated_string_piece_size() const {
3600
+ return repeated_string_piece_.size();
3601
+ }
3602
+ inline void TestAllTypesLite::clear_repeated_string_piece() {
3603
+ repeated_string_piece_.Clear();
3604
+ }
3605
+ inline const ::std::string& TestAllTypesLite::repeated_string_piece(int index) const {
3606
+ return repeated_string_piece_.Get(index);
3607
+ }
3608
+ inline ::std::string* TestAllTypesLite::mutable_repeated_string_piece(int index) {
3609
+ return repeated_string_piece_.Mutable(index);
3610
+ }
3611
+ inline void TestAllTypesLite::set_repeated_string_piece(int index, const ::std::string& value) {
3612
+ repeated_string_piece_.Mutable(index)->assign(value);
3613
+ }
3614
+ inline void TestAllTypesLite::set_repeated_string_piece(int index, const char* value) {
3615
+ repeated_string_piece_.Mutable(index)->assign(value);
3616
+ }
3617
+ inline void TestAllTypesLite::set_repeated_string_piece(int index, const char* value, size_t size) {
3618
+ repeated_string_piece_.Mutable(index)->assign(
3619
+ reinterpret_cast<const char*>(value), size);
3620
+ }
3621
+ inline ::std::string* TestAllTypesLite::add_repeated_string_piece() {
3622
+ return repeated_string_piece_.Add();
3623
+ }
3624
+ inline void TestAllTypesLite::add_repeated_string_piece(const ::std::string& value) {
3625
+ repeated_string_piece_.Add()->assign(value);
3626
+ }
3627
+ inline void TestAllTypesLite::add_repeated_string_piece(const char* value) {
3628
+ repeated_string_piece_.Add()->assign(value);
3629
+ }
3630
+ inline void TestAllTypesLite::add_repeated_string_piece(const char* value, size_t size) {
3631
+ repeated_string_piece_.Add()->assign(reinterpret_cast<const char*>(value), size);
3632
+ }
3633
+ inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
3634
+ TestAllTypesLite::repeated_string_piece() const {
3635
+ return repeated_string_piece_;
3636
+ }
3637
+ inline ::google::protobuf::RepeatedPtrField< ::std::string>*
3638
+ TestAllTypesLite::mutable_repeated_string_piece() {
3639
+ return &repeated_string_piece_;
3640
+ }
3641
+
3642
+ // repeated string repeated_cord = 55 [ctype = CORD];
3643
+ inline int TestAllTypesLite::repeated_cord_size() const {
3644
+ return repeated_cord_.size();
3645
+ }
3646
+ inline void TestAllTypesLite::clear_repeated_cord() {
3647
+ repeated_cord_.Clear();
3648
+ }
3649
+ inline const ::std::string& TestAllTypesLite::repeated_cord(int index) const {
3650
+ return repeated_cord_.Get(index);
3651
+ }
3652
+ inline ::std::string* TestAllTypesLite::mutable_repeated_cord(int index) {
3653
+ return repeated_cord_.Mutable(index);
3654
+ }
3655
+ inline void TestAllTypesLite::set_repeated_cord(int index, const ::std::string& value) {
3656
+ repeated_cord_.Mutable(index)->assign(value);
3657
+ }
3658
+ inline void TestAllTypesLite::set_repeated_cord(int index, const char* value) {
3659
+ repeated_cord_.Mutable(index)->assign(value);
3660
+ }
3661
+ inline void TestAllTypesLite::set_repeated_cord(int index, const char* value, size_t size) {
3662
+ repeated_cord_.Mutable(index)->assign(
3663
+ reinterpret_cast<const char*>(value), size);
3664
+ }
3665
+ inline ::std::string* TestAllTypesLite::add_repeated_cord() {
3666
+ return repeated_cord_.Add();
3667
+ }
3668
+ inline void TestAllTypesLite::add_repeated_cord(const ::std::string& value) {
3669
+ repeated_cord_.Add()->assign(value);
3670
+ }
3671
+ inline void TestAllTypesLite::add_repeated_cord(const char* value) {
3672
+ repeated_cord_.Add()->assign(value);
3673
+ }
3674
+ inline void TestAllTypesLite::add_repeated_cord(const char* value, size_t size) {
3675
+ repeated_cord_.Add()->assign(reinterpret_cast<const char*>(value), size);
3676
+ }
3677
+ inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
3678
+ TestAllTypesLite::repeated_cord() const {
3679
+ return repeated_cord_;
3680
+ }
3681
+ inline ::google::protobuf::RepeatedPtrField< ::std::string>*
3682
+ TestAllTypesLite::mutable_repeated_cord() {
3683
+ return &repeated_cord_;
3684
+ }
3685
+
3686
+ // optional int32 default_int32 = 61 [default = 41];
3687
+ inline bool TestAllTypesLite::has_default_int32() const {
3688
+ return (_has_bits_[1] & 0x00010000u) != 0;
3689
+ }
3690
+ inline void TestAllTypesLite::set_has_default_int32() {
3691
+ _has_bits_[1] |= 0x00010000u;
3692
+ }
3693
+ inline void TestAllTypesLite::clear_has_default_int32() {
3694
+ _has_bits_[1] &= ~0x00010000u;
3695
+ }
3696
+ inline void TestAllTypesLite::clear_default_int32() {
3697
+ default_int32_ = 41;
3698
+ clear_has_default_int32();
3699
+ }
3700
+ inline ::google::protobuf::int32 TestAllTypesLite::default_int32() const {
3701
+ return default_int32_;
3702
+ }
3703
+ inline void TestAllTypesLite::set_default_int32(::google::protobuf::int32 value) {
3704
+ set_has_default_int32();
3705
+ default_int32_ = value;
3706
+ }
3707
+
3708
+ // optional int64 default_int64 = 62 [default = 42];
3709
+ inline bool TestAllTypesLite::has_default_int64() const {
3710
+ return (_has_bits_[1] & 0x00020000u) != 0;
3711
+ }
3712
+ inline void TestAllTypesLite::set_has_default_int64() {
3713
+ _has_bits_[1] |= 0x00020000u;
3714
+ }
3715
+ inline void TestAllTypesLite::clear_has_default_int64() {
3716
+ _has_bits_[1] &= ~0x00020000u;
3717
+ }
3718
+ inline void TestAllTypesLite::clear_default_int64() {
3719
+ default_int64_ = GOOGLE_LONGLONG(42);
3720
+ clear_has_default_int64();
3721
+ }
3722
+ inline ::google::protobuf::int64 TestAllTypesLite::default_int64() const {
3723
+ return default_int64_;
3724
+ }
3725
+ inline void TestAllTypesLite::set_default_int64(::google::protobuf::int64 value) {
3726
+ set_has_default_int64();
3727
+ default_int64_ = value;
3728
+ }
3729
+
3730
+ // optional uint32 default_uint32 = 63 [default = 43];
3731
+ inline bool TestAllTypesLite::has_default_uint32() const {
3732
+ return (_has_bits_[1] & 0x00040000u) != 0;
3733
+ }
3734
+ inline void TestAllTypesLite::set_has_default_uint32() {
3735
+ _has_bits_[1] |= 0x00040000u;
3736
+ }
3737
+ inline void TestAllTypesLite::clear_has_default_uint32() {
3738
+ _has_bits_[1] &= ~0x00040000u;
3739
+ }
3740
+ inline void TestAllTypesLite::clear_default_uint32() {
3741
+ default_uint32_ = 43u;
3742
+ clear_has_default_uint32();
3743
+ }
3744
+ inline ::google::protobuf::uint32 TestAllTypesLite::default_uint32() const {
3745
+ return default_uint32_;
3746
+ }
3747
+ inline void TestAllTypesLite::set_default_uint32(::google::protobuf::uint32 value) {
3748
+ set_has_default_uint32();
3749
+ default_uint32_ = value;
3750
+ }
3751
+
3752
+ // optional uint64 default_uint64 = 64 [default = 44];
3753
+ inline bool TestAllTypesLite::has_default_uint64() const {
3754
+ return (_has_bits_[1] & 0x00080000u) != 0;
3755
+ }
3756
+ inline void TestAllTypesLite::set_has_default_uint64() {
3757
+ _has_bits_[1] |= 0x00080000u;
3758
+ }
3759
+ inline void TestAllTypesLite::clear_has_default_uint64() {
3760
+ _has_bits_[1] &= ~0x00080000u;
3761
+ }
3762
+ inline void TestAllTypesLite::clear_default_uint64() {
3763
+ default_uint64_ = GOOGLE_ULONGLONG(44);
3764
+ clear_has_default_uint64();
3765
+ }
3766
+ inline ::google::protobuf::uint64 TestAllTypesLite::default_uint64() const {
3767
+ return default_uint64_;
3768
+ }
3769
+ inline void TestAllTypesLite::set_default_uint64(::google::protobuf::uint64 value) {
3770
+ set_has_default_uint64();
3771
+ default_uint64_ = value;
3772
+ }
3773
+
3774
+ // optional sint32 default_sint32 = 65 [default = -45];
3775
+ inline bool TestAllTypesLite::has_default_sint32() const {
3776
+ return (_has_bits_[1] & 0x00100000u) != 0;
3777
+ }
3778
+ inline void TestAllTypesLite::set_has_default_sint32() {
3779
+ _has_bits_[1] |= 0x00100000u;
3780
+ }
3781
+ inline void TestAllTypesLite::clear_has_default_sint32() {
3782
+ _has_bits_[1] &= ~0x00100000u;
3783
+ }
3784
+ inline void TestAllTypesLite::clear_default_sint32() {
3785
+ default_sint32_ = -45;
3786
+ clear_has_default_sint32();
3787
+ }
3788
+ inline ::google::protobuf::int32 TestAllTypesLite::default_sint32() const {
3789
+ return default_sint32_;
3790
+ }
3791
+ inline void TestAllTypesLite::set_default_sint32(::google::protobuf::int32 value) {
3792
+ set_has_default_sint32();
3793
+ default_sint32_ = value;
3794
+ }
3795
+
3796
+ // optional sint64 default_sint64 = 66 [default = 46];
3797
+ inline bool TestAllTypesLite::has_default_sint64() const {
3798
+ return (_has_bits_[1] & 0x00200000u) != 0;
3799
+ }
3800
+ inline void TestAllTypesLite::set_has_default_sint64() {
3801
+ _has_bits_[1] |= 0x00200000u;
3802
+ }
3803
+ inline void TestAllTypesLite::clear_has_default_sint64() {
3804
+ _has_bits_[1] &= ~0x00200000u;
3805
+ }
3806
+ inline void TestAllTypesLite::clear_default_sint64() {
3807
+ default_sint64_ = GOOGLE_LONGLONG(46);
3808
+ clear_has_default_sint64();
3809
+ }
3810
+ inline ::google::protobuf::int64 TestAllTypesLite::default_sint64() const {
3811
+ return default_sint64_;
3812
+ }
3813
+ inline void TestAllTypesLite::set_default_sint64(::google::protobuf::int64 value) {
3814
+ set_has_default_sint64();
3815
+ default_sint64_ = value;
3816
+ }
3817
+
3818
+ // optional fixed32 default_fixed32 = 67 [default = 47];
3819
+ inline bool TestAllTypesLite::has_default_fixed32() const {
3820
+ return (_has_bits_[1] & 0x00400000u) != 0;
3821
+ }
3822
+ inline void TestAllTypesLite::set_has_default_fixed32() {
3823
+ _has_bits_[1] |= 0x00400000u;
3824
+ }
3825
+ inline void TestAllTypesLite::clear_has_default_fixed32() {
3826
+ _has_bits_[1] &= ~0x00400000u;
3827
+ }
3828
+ inline void TestAllTypesLite::clear_default_fixed32() {
3829
+ default_fixed32_ = 47u;
3830
+ clear_has_default_fixed32();
3831
+ }
3832
+ inline ::google::protobuf::uint32 TestAllTypesLite::default_fixed32() const {
3833
+ return default_fixed32_;
3834
+ }
3835
+ inline void TestAllTypesLite::set_default_fixed32(::google::protobuf::uint32 value) {
3836
+ set_has_default_fixed32();
3837
+ default_fixed32_ = value;
3838
+ }
3839
+
3840
+ // optional fixed64 default_fixed64 = 68 [default = 48];
3841
+ inline bool TestAllTypesLite::has_default_fixed64() const {
3842
+ return (_has_bits_[1] & 0x00800000u) != 0;
3843
+ }
3844
+ inline void TestAllTypesLite::set_has_default_fixed64() {
3845
+ _has_bits_[1] |= 0x00800000u;
3846
+ }
3847
+ inline void TestAllTypesLite::clear_has_default_fixed64() {
3848
+ _has_bits_[1] &= ~0x00800000u;
3849
+ }
3850
+ inline void TestAllTypesLite::clear_default_fixed64() {
3851
+ default_fixed64_ = GOOGLE_ULONGLONG(48);
3852
+ clear_has_default_fixed64();
3853
+ }
3854
+ inline ::google::protobuf::uint64 TestAllTypesLite::default_fixed64() const {
3855
+ return default_fixed64_;
3856
+ }
3857
+ inline void TestAllTypesLite::set_default_fixed64(::google::protobuf::uint64 value) {
3858
+ set_has_default_fixed64();
3859
+ default_fixed64_ = value;
3860
+ }
3861
+
3862
+ // optional sfixed32 default_sfixed32 = 69 [default = 49];
3863
+ inline bool TestAllTypesLite::has_default_sfixed32() const {
3864
+ return (_has_bits_[1] & 0x01000000u) != 0;
3865
+ }
3866
+ inline void TestAllTypesLite::set_has_default_sfixed32() {
3867
+ _has_bits_[1] |= 0x01000000u;
3868
+ }
3869
+ inline void TestAllTypesLite::clear_has_default_sfixed32() {
3870
+ _has_bits_[1] &= ~0x01000000u;
3871
+ }
3872
+ inline void TestAllTypesLite::clear_default_sfixed32() {
3873
+ default_sfixed32_ = 49;
3874
+ clear_has_default_sfixed32();
3875
+ }
3876
+ inline ::google::protobuf::int32 TestAllTypesLite::default_sfixed32() const {
3877
+ return default_sfixed32_;
3878
+ }
3879
+ inline void TestAllTypesLite::set_default_sfixed32(::google::protobuf::int32 value) {
3880
+ set_has_default_sfixed32();
3881
+ default_sfixed32_ = value;
3882
+ }
3883
+
3884
+ // optional sfixed64 default_sfixed64 = 70 [default = -50];
3885
+ inline bool TestAllTypesLite::has_default_sfixed64() const {
3886
+ return (_has_bits_[1] & 0x02000000u) != 0;
3887
+ }
3888
+ inline void TestAllTypesLite::set_has_default_sfixed64() {
3889
+ _has_bits_[1] |= 0x02000000u;
3890
+ }
3891
+ inline void TestAllTypesLite::clear_has_default_sfixed64() {
3892
+ _has_bits_[1] &= ~0x02000000u;
3893
+ }
3894
+ inline void TestAllTypesLite::clear_default_sfixed64() {
3895
+ default_sfixed64_ = GOOGLE_LONGLONG(-50);
3896
+ clear_has_default_sfixed64();
3897
+ }
3898
+ inline ::google::protobuf::int64 TestAllTypesLite::default_sfixed64() const {
3899
+ return default_sfixed64_;
3900
+ }
3901
+ inline void TestAllTypesLite::set_default_sfixed64(::google::protobuf::int64 value) {
3902
+ set_has_default_sfixed64();
3903
+ default_sfixed64_ = value;
3904
+ }
3905
+
3906
+ // optional float default_float = 71 [default = 51.5];
3907
+ inline bool TestAllTypesLite::has_default_float() const {
3908
+ return (_has_bits_[1] & 0x04000000u) != 0;
3909
+ }
3910
+ inline void TestAllTypesLite::set_has_default_float() {
3911
+ _has_bits_[1] |= 0x04000000u;
3912
+ }
3913
+ inline void TestAllTypesLite::clear_has_default_float() {
3914
+ _has_bits_[1] &= ~0x04000000u;
3915
+ }
3916
+ inline void TestAllTypesLite::clear_default_float() {
3917
+ default_float_ = 51.5f;
3918
+ clear_has_default_float();
3919
+ }
3920
+ inline float TestAllTypesLite::default_float() const {
3921
+ return default_float_;
3922
+ }
3923
+ inline void TestAllTypesLite::set_default_float(float value) {
3924
+ set_has_default_float();
3925
+ default_float_ = value;
3926
+ }
3927
+
3928
+ // optional double default_double = 72 [default = 52000];
3929
+ inline bool TestAllTypesLite::has_default_double() const {
3930
+ return (_has_bits_[1] & 0x08000000u) != 0;
3931
+ }
3932
+ inline void TestAllTypesLite::set_has_default_double() {
3933
+ _has_bits_[1] |= 0x08000000u;
3934
+ }
3935
+ inline void TestAllTypesLite::clear_has_default_double() {
3936
+ _has_bits_[1] &= ~0x08000000u;
3937
+ }
3938
+ inline void TestAllTypesLite::clear_default_double() {
3939
+ default_double_ = 52000;
3940
+ clear_has_default_double();
3941
+ }
3942
+ inline double TestAllTypesLite::default_double() const {
3943
+ return default_double_;
3944
+ }
3945
+ inline void TestAllTypesLite::set_default_double(double value) {
3946
+ set_has_default_double();
3947
+ default_double_ = value;
3948
+ }
3949
+
3950
+ // optional bool default_bool = 73 [default = true];
3951
+ inline bool TestAllTypesLite::has_default_bool() const {
3952
+ return (_has_bits_[1] & 0x10000000u) != 0;
3953
+ }
3954
+ inline void TestAllTypesLite::set_has_default_bool() {
3955
+ _has_bits_[1] |= 0x10000000u;
3956
+ }
3957
+ inline void TestAllTypesLite::clear_has_default_bool() {
3958
+ _has_bits_[1] &= ~0x10000000u;
3959
+ }
3960
+ inline void TestAllTypesLite::clear_default_bool() {
3961
+ default_bool_ = true;
3962
+ clear_has_default_bool();
3963
+ }
3964
+ inline bool TestAllTypesLite::default_bool() const {
3965
+ return default_bool_;
3966
+ }
3967
+ inline void TestAllTypesLite::set_default_bool(bool value) {
3968
+ set_has_default_bool();
3969
+ default_bool_ = value;
3970
+ }
3971
+
3972
+ // optional string default_string = 74 [default = "hello"];
3973
+ inline bool TestAllTypesLite::has_default_string() const {
3974
+ return (_has_bits_[1] & 0x20000000u) != 0;
3975
+ }
3976
+ inline void TestAllTypesLite::set_has_default_string() {
3977
+ _has_bits_[1] |= 0x20000000u;
3978
+ }
3979
+ inline void TestAllTypesLite::clear_has_default_string() {
3980
+ _has_bits_[1] &= ~0x20000000u;
3981
+ }
3982
+ inline void TestAllTypesLite::clear_default_string() {
3983
+ if (default_string_ != &_default_default_string_) {
3984
+ default_string_->assign(_default_default_string_);
3985
+ }
3986
+ clear_has_default_string();
3987
+ }
3988
+ inline const ::std::string& TestAllTypesLite::default_string() const {
3989
+ return *default_string_;
3990
+ }
3991
+ inline void TestAllTypesLite::set_default_string(const ::std::string& value) {
3992
+ set_has_default_string();
3993
+ if (default_string_ == &_default_default_string_) {
3994
+ default_string_ = new ::std::string;
3995
+ }
3996
+ default_string_->assign(value);
3997
+ }
3998
+ inline void TestAllTypesLite::set_default_string(const char* value) {
3999
+ set_has_default_string();
4000
+ if (default_string_ == &_default_default_string_) {
4001
+ default_string_ = new ::std::string;
4002
+ }
4003
+ default_string_->assign(value);
4004
+ }
4005
+ inline void TestAllTypesLite::set_default_string(const char* value, size_t size) {
4006
+ set_has_default_string();
4007
+ if (default_string_ == &_default_default_string_) {
4008
+ default_string_ = new ::std::string;
4009
+ }
4010
+ default_string_->assign(reinterpret_cast<const char*>(value), size);
4011
+ }
4012
+ inline ::std::string* TestAllTypesLite::mutable_default_string() {
4013
+ set_has_default_string();
4014
+ if (default_string_ == &_default_default_string_) {
4015
+ default_string_ = new ::std::string(_default_default_string_);
4016
+ }
4017
+ return default_string_;
4018
+ }
4019
+ inline ::std::string* TestAllTypesLite::release_default_string() {
4020
+ clear_has_default_string();
4021
+ if (default_string_ == &_default_default_string_) {
4022
+ return NULL;
4023
+ } else {
4024
+ ::std::string* temp = default_string_;
4025
+ default_string_ = const_cast< ::std::string*>(&_default_default_string_);
4026
+ return temp;
4027
+ }
4028
+ }
4029
+
4030
+ // optional bytes default_bytes = 75 [default = "world"];
4031
+ inline bool TestAllTypesLite::has_default_bytes() const {
4032
+ return (_has_bits_[1] & 0x40000000u) != 0;
4033
+ }
4034
+ inline void TestAllTypesLite::set_has_default_bytes() {
4035
+ _has_bits_[1] |= 0x40000000u;
4036
+ }
4037
+ inline void TestAllTypesLite::clear_has_default_bytes() {
4038
+ _has_bits_[1] &= ~0x40000000u;
4039
+ }
4040
+ inline void TestAllTypesLite::clear_default_bytes() {
4041
+ if (default_bytes_ != &_default_default_bytes_) {
4042
+ default_bytes_->assign(_default_default_bytes_);
4043
+ }
4044
+ clear_has_default_bytes();
4045
+ }
4046
+ inline const ::std::string& TestAllTypesLite::default_bytes() const {
4047
+ return *default_bytes_;
4048
+ }
4049
+ inline void TestAllTypesLite::set_default_bytes(const ::std::string& value) {
4050
+ set_has_default_bytes();
4051
+ if (default_bytes_ == &_default_default_bytes_) {
4052
+ default_bytes_ = new ::std::string;
4053
+ }
4054
+ default_bytes_->assign(value);
4055
+ }
4056
+ inline void TestAllTypesLite::set_default_bytes(const char* value) {
4057
+ set_has_default_bytes();
4058
+ if (default_bytes_ == &_default_default_bytes_) {
4059
+ default_bytes_ = new ::std::string;
4060
+ }
4061
+ default_bytes_->assign(value);
4062
+ }
4063
+ inline void TestAllTypesLite::set_default_bytes(const void* value, size_t size) {
4064
+ set_has_default_bytes();
4065
+ if (default_bytes_ == &_default_default_bytes_) {
4066
+ default_bytes_ = new ::std::string;
4067
+ }
4068
+ default_bytes_->assign(reinterpret_cast<const char*>(value), size);
4069
+ }
4070
+ inline ::std::string* TestAllTypesLite::mutable_default_bytes() {
4071
+ set_has_default_bytes();
4072
+ if (default_bytes_ == &_default_default_bytes_) {
4073
+ default_bytes_ = new ::std::string(_default_default_bytes_);
4074
+ }
4075
+ return default_bytes_;
4076
+ }
4077
+ inline ::std::string* TestAllTypesLite::release_default_bytes() {
4078
+ clear_has_default_bytes();
4079
+ if (default_bytes_ == &_default_default_bytes_) {
4080
+ return NULL;
4081
+ } else {
4082
+ ::std::string* temp = default_bytes_;
4083
+ default_bytes_ = const_cast< ::std::string*>(&_default_default_bytes_);
4084
+ return temp;
4085
+ }
4086
+ }
4087
+
4088
+ // optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
4089
+ inline bool TestAllTypesLite::has_default_nested_enum() const {
4090
+ return (_has_bits_[1] & 0x80000000u) != 0;
4091
+ }
4092
+ inline void TestAllTypesLite::set_has_default_nested_enum() {
4093
+ _has_bits_[1] |= 0x80000000u;
4094
+ }
4095
+ inline void TestAllTypesLite::clear_has_default_nested_enum() {
4096
+ _has_bits_[1] &= ~0x80000000u;
4097
+ }
4098
+ inline void TestAllTypesLite::clear_default_nested_enum() {
4099
+ default_nested_enum_ = 2;
4100
+ clear_has_default_nested_enum();
4101
+ }
4102
+ inline ::protobuf_unittest::TestAllTypesLite_NestedEnum TestAllTypesLite::default_nested_enum() const {
4103
+ return static_cast< ::protobuf_unittest::TestAllTypesLite_NestedEnum >(default_nested_enum_);
4104
+ }
4105
+ inline void TestAllTypesLite::set_default_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value) {
4106
+ GOOGLE_DCHECK(::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid(value));
4107
+ set_has_default_nested_enum();
4108
+ default_nested_enum_ = value;
4109
+ }
4110
+
4111
+ // optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
4112
+ inline bool TestAllTypesLite::has_default_foreign_enum() const {
4113
+ return (_has_bits_[2] & 0x00000001u) != 0;
4114
+ }
4115
+ inline void TestAllTypesLite::set_has_default_foreign_enum() {
4116
+ _has_bits_[2] |= 0x00000001u;
4117
+ }
4118
+ inline void TestAllTypesLite::clear_has_default_foreign_enum() {
4119
+ _has_bits_[2] &= ~0x00000001u;
4120
+ }
4121
+ inline void TestAllTypesLite::clear_default_foreign_enum() {
4122
+ default_foreign_enum_ = 5;
4123
+ clear_has_default_foreign_enum();
4124
+ }
4125
+ inline protobuf_unittest::ForeignEnumLite TestAllTypesLite::default_foreign_enum() const {
4126
+ return static_cast< protobuf_unittest::ForeignEnumLite >(default_foreign_enum_);
4127
+ }
4128
+ inline void TestAllTypesLite::set_default_foreign_enum(protobuf_unittest::ForeignEnumLite value) {
4129
+ GOOGLE_DCHECK(protobuf_unittest::ForeignEnumLite_IsValid(value));
4130
+ set_has_default_foreign_enum();
4131
+ default_foreign_enum_ = value;
4132
+ }
4133
+
4134
+ // optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
4135
+ inline bool TestAllTypesLite::has_default_import_enum() const {
4136
+ return (_has_bits_[2] & 0x00000002u) != 0;
4137
+ }
4138
+ inline void TestAllTypesLite::set_has_default_import_enum() {
4139
+ _has_bits_[2] |= 0x00000002u;
4140
+ }
4141
+ inline void TestAllTypesLite::clear_has_default_import_enum() {
4142
+ _has_bits_[2] &= ~0x00000002u;
4143
+ }
4144
+ inline void TestAllTypesLite::clear_default_import_enum() {
4145
+ default_import_enum_ = 8;
4146
+ clear_has_default_import_enum();
4147
+ }
4148
+ inline protobuf_unittest_import::ImportEnumLite TestAllTypesLite::default_import_enum() const {
4149
+ return static_cast< protobuf_unittest_import::ImportEnumLite >(default_import_enum_);
4150
+ }
4151
+ inline void TestAllTypesLite::set_default_import_enum(protobuf_unittest_import::ImportEnumLite value) {
4152
+ GOOGLE_DCHECK(protobuf_unittest_import::ImportEnumLite_IsValid(value));
4153
+ set_has_default_import_enum();
4154
+ default_import_enum_ = value;
4155
+ }
4156
+
4157
+ // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
4158
+ inline bool TestAllTypesLite::has_default_string_piece() const {
4159
+ return (_has_bits_[2] & 0x00000004u) != 0;
4160
+ }
4161
+ inline void TestAllTypesLite::set_has_default_string_piece() {
4162
+ _has_bits_[2] |= 0x00000004u;
4163
+ }
4164
+ inline void TestAllTypesLite::clear_has_default_string_piece() {
4165
+ _has_bits_[2] &= ~0x00000004u;
4166
+ }
4167
+ inline void TestAllTypesLite::clear_default_string_piece() {
4168
+ if (default_string_piece_ != &_default_default_string_piece_) {
4169
+ default_string_piece_->assign(_default_default_string_piece_);
4170
+ }
4171
+ clear_has_default_string_piece();
4172
+ }
4173
+ inline const ::std::string& TestAllTypesLite::default_string_piece() const {
4174
+ return *default_string_piece_;
4175
+ }
4176
+ inline void TestAllTypesLite::set_default_string_piece(const ::std::string& value) {
4177
+ set_has_default_string_piece();
4178
+ if (default_string_piece_ == &_default_default_string_piece_) {
4179
+ default_string_piece_ = new ::std::string;
4180
+ }
4181
+ default_string_piece_->assign(value);
4182
+ }
4183
+ inline void TestAllTypesLite::set_default_string_piece(const char* value) {
4184
+ set_has_default_string_piece();
4185
+ if (default_string_piece_ == &_default_default_string_piece_) {
4186
+ default_string_piece_ = new ::std::string;
4187
+ }
4188
+ default_string_piece_->assign(value);
4189
+ }
4190
+ inline void TestAllTypesLite::set_default_string_piece(const char* value, size_t size) {
4191
+ set_has_default_string_piece();
4192
+ if (default_string_piece_ == &_default_default_string_piece_) {
4193
+ default_string_piece_ = new ::std::string;
4194
+ }
4195
+ default_string_piece_->assign(reinterpret_cast<const char*>(value), size);
4196
+ }
4197
+ inline ::std::string* TestAllTypesLite::mutable_default_string_piece() {
4198
+ set_has_default_string_piece();
4199
+ if (default_string_piece_ == &_default_default_string_piece_) {
4200
+ default_string_piece_ = new ::std::string(_default_default_string_piece_);
4201
+ }
4202
+ return default_string_piece_;
4203
+ }
4204
+ inline ::std::string* TestAllTypesLite::release_default_string_piece() {
4205
+ clear_has_default_string_piece();
4206
+ if (default_string_piece_ == &_default_default_string_piece_) {
4207
+ return NULL;
4208
+ } else {
4209
+ ::std::string* temp = default_string_piece_;
4210
+ default_string_piece_ = const_cast< ::std::string*>(&_default_default_string_piece_);
4211
+ return temp;
4212
+ }
4213
+ }
4214
+
4215
+ // optional string default_cord = 85 [default = "123", ctype = CORD];
4216
+ inline bool TestAllTypesLite::has_default_cord() const {
4217
+ return (_has_bits_[2] & 0x00000008u) != 0;
4218
+ }
4219
+ inline void TestAllTypesLite::set_has_default_cord() {
4220
+ _has_bits_[2] |= 0x00000008u;
4221
+ }
4222
+ inline void TestAllTypesLite::clear_has_default_cord() {
4223
+ _has_bits_[2] &= ~0x00000008u;
4224
+ }
4225
+ inline void TestAllTypesLite::clear_default_cord() {
4226
+ if (default_cord_ != &_default_default_cord_) {
4227
+ default_cord_->assign(_default_default_cord_);
4228
+ }
4229
+ clear_has_default_cord();
4230
+ }
4231
+ inline const ::std::string& TestAllTypesLite::default_cord() const {
4232
+ return *default_cord_;
4233
+ }
4234
+ inline void TestAllTypesLite::set_default_cord(const ::std::string& value) {
4235
+ set_has_default_cord();
4236
+ if (default_cord_ == &_default_default_cord_) {
4237
+ default_cord_ = new ::std::string;
4238
+ }
4239
+ default_cord_->assign(value);
4240
+ }
4241
+ inline void TestAllTypesLite::set_default_cord(const char* value) {
4242
+ set_has_default_cord();
4243
+ if (default_cord_ == &_default_default_cord_) {
4244
+ default_cord_ = new ::std::string;
4245
+ }
4246
+ default_cord_->assign(value);
4247
+ }
4248
+ inline void TestAllTypesLite::set_default_cord(const char* value, size_t size) {
4249
+ set_has_default_cord();
4250
+ if (default_cord_ == &_default_default_cord_) {
4251
+ default_cord_ = new ::std::string;
4252
+ }
4253
+ default_cord_->assign(reinterpret_cast<const char*>(value), size);
4254
+ }
4255
+ inline ::std::string* TestAllTypesLite::mutable_default_cord() {
4256
+ set_has_default_cord();
4257
+ if (default_cord_ == &_default_default_cord_) {
4258
+ default_cord_ = new ::std::string(_default_default_cord_);
4259
+ }
4260
+ return default_cord_;
4261
+ }
4262
+ inline ::std::string* TestAllTypesLite::release_default_cord() {
4263
+ clear_has_default_cord();
4264
+ if (default_cord_ == &_default_default_cord_) {
4265
+ return NULL;
4266
+ } else {
4267
+ ::std::string* temp = default_cord_;
4268
+ default_cord_ = const_cast< ::std::string*>(&_default_default_cord_);
4269
+ return temp;
4270
+ }
4271
+ }
4272
+
4273
+ // -------------------------------------------------------------------
4274
+
4275
+ // ForeignMessageLite
4276
+
4277
+ // optional int32 c = 1;
4278
+ inline bool ForeignMessageLite::has_c() const {
4279
+ return (_has_bits_[0] & 0x00000001u) != 0;
4280
+ }
4281
+ inline void ForeignMessageLite::set_has_c() {
4282
+ _has_bits_[0] |= 0x00000001u;
4283
+ }
4284
+ inline void ForeignMessageLite::clear_has_c() {
4285
+ _has_bits_[0] &= ~0x00000001u;
4286
+ }
4287
+ inline void ForeignMessageLite::clear_c() {
4288
+ c_ = 0;
4289
+ clear_has_c();
4290
+ }
4291
+ inline ::google::protobuf::int32 ForeignMessageLite::c() const {
4292
+ return c_;
4293
+ }
4294
+ inline void ForeignMessageLite::set_c(::google::protobuf::int32 value) {
4295
+ set_has_c();
4296
+ c_ = value;
4297
+ }
4298
+
4299
+ // -------------------------------------------------------------------
4300
+
4301
+ // TestPackedTypesLite
4302
+
4303
+ // repeated int32 packed_int32 = 90 [packed = true];
4304
+ inline int TestPackedTypesLite::packed_int32_size() const {
4305
+ return packed_int32_.size();
4306
+ }
4307
+ inline void TestPackedTypesLite::clear_packed_int32() {
4308
+ packed_int32_.Clear();
4309
+ }
4310
+ inline ::google::protobuf::int32 TestPackedTypesLite::packed_int32(int index) const {
4311
+ return packed_int32_.Get(index);
4312
+ }
4313
+ inline void TestPackedTypesLite::set_packed_int32(int index, ::google::protobuf::int32 value) {
4314
+ packed_int32_.Set(index, value);
4315
+ }
4316
+ inline void TestPackedTypesLite::add_packed_int32(::google::protobuf::int32 value) {
4317
+ packed_int32_.Add(value);
4318
+ }
4319
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
4320
+ TestPackedTypesLite::packed_int32() const {
4321
+ return packed_int32_;
4322
+ }
4323
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
4324
+ TestPackedTypesLite::mutable_packed_int32() {
4325
+ return &packed_int32_;
4326
+ }
4327
+
4328
+ // repeated int64 packed_int64 = 91 [packed = true];
4329
+ inline int TestPackedTypesLite::packed_int64_size() const {
4330
+ return packed_int64_.size();
4331
+ }
4332
+ inline void TestPackedTypesLite::clear_packed_int64() {
4333
+ packed_int64_.Clear();
4334
+ }
4335
+ inline ::google::protobuf::int64 TestPackedTypesLite::packed_int64(int index) const {
4336
+ return packed_int64_.Get(index);
4337
+ }
4338
+ inline void TestPackedTypesLite::set_packed_int64(int index, ::google::protobuf::int64 value) {
4339
+ packed_int64_.Set(index, value);
4340
+ }
4341
+ inline void TestPackedTypesLite::add_packed_int64(::google::protobuf::int64 value) {
4342
+ packed_int64_.Add(value);
4343
+ }
4344
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
4345
+ TestPackedTypesLite::packed_int64() const {
4346
+ return packed_int64_;
4347
+ }
4348
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
4349
+ TestPackedTypesLite::mutable_packed_int64() {
4350
+ return &packed_int64_;
4351
+ }
4352
+
4353
+ // repeated uint32 packed_uint32 = 92 [packed = true];
4354
+ inline int TestPackedTypesLite::packed_uint32_size() const {
4355
+ return packed_uint32_.size();
4356
+ }
4357
+ inline void TestPackedTypesLite::clear_packed_uint32() {
4358
+ packed_uint32_.Clear();
4359
+ }
4360
+ inline ::google::protobuf::uint32 TestPackedTypesLite::packed_uint32(int index) const {
4361
+ return packed_uint32_.Get(index);
4362
+ }
4363
+ inline void TestPackedTypesLite::set_packed_uint32(int index, ::google::protobuf::uint32 value) {
4364
+ packed_uint32_.Set(index, value);
4365
+ }
4366
+ inline void TestPackedTypesLite::add_packed_uint32(::google::protobuf::uint32 value) {
4367
+ packed_uint32_.Add(value);
4368
+ }
4369
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
4370
+ TestPackedTypesLite::packed_uint32() const {
4371
+ return packed_uint32_;
4372
+ }
4373
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
4374
+ TestPackedTypesLite::mutable_packed_uint32() {
4375
+ return &packed_uint32_;
4376
+ }
4377
+
4378
+ // repeated uint64 packed_uint64 = 93 [packed = true];
4379
+ inline int TestPackedTypesLite::packed_uint64_size() const {
4380
+ return packed_uint64_.size();
4381
+ }
4382
+ inline void TestPackedTypesLite::clear_packed_uint64() {
4383
+ packed_uint64_.Clear();
4384
+ }
4385
+ inline ::google::protobuf::uint64 TestPackedTypesLite::packed_uint64(int index) const {
4386
+ return packed_uint64_.Get(index);
4387
+ }
4388
+ inline void TestPackedTypesLite::set_packed_uint64(int index, ::google::protobuf::uint64 value) {
4389
+ packed_uint64_.Set(index, value);
4390
+ }
4391
+ inline void TestPackedTypesLite::add_packed_uint64(::google::protobuf::uint64 value) {
4392
+ packed_uint64_.Add(value);
4393
+ }
4394
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
4395
+ TestPackedTypesLite::packed_uint64() const {
4396
+ return packed_uint64_;
4397
+ }
4398
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
4399
+ TestPackedTypesLite::mutable_packed_uint64() {
4400
+ return &packed_uint64_;
4401
+ }
4402
+
4403
+ // repeated sint32 packed_sint32 = 94 [packed = true];
4404
+ inline int TestPackedTypesLite::packed_sint32_size() const {
4405
+ return packed_sint32_.size();
4406
+ }
4407
+ inline void TestPackedTypesLite::clear_packed_sint32() {
4408
+ packed_sint32_.Clear();
4409
+ }
4410
+ inline ::google::protobuf::int32 TestPackedTypesLite::packed_sint32(int index) const {
4411
+ return packed_sint32_.Get(index);
4412
+ }
4413
+ inline void TestPackedTypesLite::set_packed_sint32(int index, ::google::protobuf::int32 value) {
4414
+ packed_sint32_.Set(index, value);
4415
+ }
4416
+ inline void TestPackedTypesLite::add_packed_sint32(::google::protobuf::int32 value) {
4417
+ packed_sint32_.Add(value);
4418
+ }
4419
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
4420
+ TestPackedTypesLite::packed_sint32() const {
4421
+ return packed_sint32_;
4422
+ }
4423
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
4424
+ TestPackedTypesLite::mutable_packed_sint32() {
4425
+ return &packed_sint32_;
4426
+ }
4427
+
4428
+ // repeated sint64 packed_sint64 = 95 [packed = true];
4429
+ inline int TestPackedTypesLite::packed_sint64_size() const {
4430
+ return packed_sint64_.size();
4431
+ }
4432
+ inline void TestPackedTypesLite::clear_packed_sint64() {
4433
+ packed_sint64_.Clear();
4434
+ }
4435
+ inline ::google::protobuf::int64 TestPackedTypesLite::packed_sint64(int index) const {
4436
+ return packed_sint64_.Get(index);
4437
+ }
4438
+ inline void TestPackedTypesLite::set_packed_sint64(int index, ::google::protobuf::int64 value) {
4439
+ packed_sint64_.Set(index, value);
4440
+ }
4441
+ inline void TestPackedTypesLite::add_packed_sint64(::google::protobuf::int64 value) {
4442
+ packed_sint64_.Add(value);
4443
+ }
4444
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
4445
+ TestPackedTypesLite::packed_sint64() const {
4446
+ return packed_sint64_;
4447
+ }
4448
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
4449
+ TestPackedTypesLite::mutable_packed_sint64() {
4450
+ return &packed_sint64_;
4451
+ }
4452
+
4453
+ // repeated fixed32 packed_fixed32 = 96 [packed = true];
4454
+ inline int TestPackedTypesLite::packed_fixed32_size() const {
4455
+ return packed_fixed32_.size();
4456
+ }
4457
+ inline void TestPackedTypesLite::clear_packed_fixed32() {
4458
+ packed_fixed32_.Clear();
4459
+ }
4460
+ inline ::google::protobuf::uint32 TestPackedTypesLite::packed_fixed32(int index) const {
4461
+ return packed_fixed32_.Get(index);
4462
+ }
4463
+ inline void TestPackedTypesLite::set_packed_fixed32(int index, ::google::protobuf::uint32 value) {
4464
+ packed_fixed32_.Set(index, value);
4465
+ }
4466
+ inline void TestPackedTypesLite::add_packed_fixed32(::google::protobuf::uint32 value) {
4467
+ packed_fixed32_.Add(value);
4468
+ }
4469
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
4470
+ TestPackedTypesLite::packed_fixed32() const {
4471
+ return packed_fixed32_;
4472
+ }
4473
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
4474
+ TestPackedTypesLite::mutable_packed_fixed32() {
4475
+ return &packed_fixed32_;
4476
+ }
4477
+
4478
+ // repeated fixed64 packed_fixed64 = 97 [packed = true];
4479
+ inline int TestPackedTypesLite::packed_fixed64_size() const {
4480
+ return packed_fixed64_.size();
4481
+ }
4482
+ inline void TestPackedTypesLite::clear_packed_fixed64() {
4483
+ packed_fixed64_.Clear();
4484
+ }
4485
+ inline ::google::protobuf::uint64 TestPackedTypesLite::packed_fixed64(int index) const {
4486
+ return packed_fixed64_.Get(index);
4487
+ }
4488
+ inline void TestPackedTypesLite::set_packed_fixed64(int index, ::google::protobuf::uint64 value) {
4489
+ packed_fixed64_.Set(index, value);
4490
+ }
4491
+ inline void TestPackedTypesLite::add_packed_fixed64(::google::protobuf::uint64 value) {
4492
+ packed_fixed64_.Add(value);
4493
+ }
4494
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
4495
+ TestPackedTypesLite::packed_fixed64() const {
4496
+ return packed_fixed64_;
4497
+ }
4498
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
4499
+ TestPackedTypesLite::mutable_packed_fixed64() {
4500
+ return &packed_fixed64_;
4501
+ }
4502
+
4503
+ // repeated sfixed32 packed_sfixed32 = 98 [packed = true];
4504
+ inline int TestPackedTypesLite::packed_sfixed32_size() const {
4505
+ return packed_sfixed32_.size();
4506
+ }
4507
+ inline void TestPackedTypesLite::clear_packed_sfixed32() {
4508
+ packed_sfixed32_.Clear();
4509
+ }
4510
+ inline ::google::protobuf::int32 TestPackedTypesLite::packed_sfixed32(int index) const {
4511
+ return packed_sfixed32_.Get(index);
4512
+ }
4513
+ inline void TestPackedTypesLite::set_packed_sfixed32(int index, ::google::protobuf::int32 value) {
4514
+ packed_sfixed32_.Set(index, value);
4515
+ }
4516
+ inline void TestPackedTypesLite::add_packed_sfixed32(::google::protobuf::int32 value) {
4517
+ packed_sfixed32_.Add(value);
4518
+ }
4519
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
4520
+ TestPackedTypesLite::packed_sfixed32() const {
4521
+ return packed_sfixed32_;
4522
+ }
4523
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
4524
+ TestPackedTypesLite::mutable_packed_sfixed32() {
4525
+ return &packed_sfixed32_;
4526
+ }
4527
+
4528
+ // repeated sfixed64 packed_sfixed64 = 99 [packed = true];
4529
+ inline int TestPackedTypesLite::packed_sfixed64_size() const {
4530
+ return packed_sfixed64_.size();
4531
+ }
4532
+ inline void TestPackedTypesLite::clear_packed_sfixed64() {
4533
+ packed_sfixed64_.Clear();
4534
+ }
4535
+ inline ::google::protobuf::int64 TestPackedTypesLite::packed_sfixed64(int index) const {
4536
+ return packed_sfixed64_.Get(index);
4537
+ }
4538
+ inline void TestPackedTypesLite::set_packed_sfixed64(int index, ::google::protobuf::int64 value) {
4539
+ packed_sfixed64_.Set(index, value);
4540
+ }
4541
+ inline void TestPackedTypesLite::add_packed_sfixed64(::google::protobuf::int64 value) {
4542
+ packed_sfixed64_.Add(value);
4543
+ }
4544
+ inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
4545
+ TestPackedTypesLite::packed_sfixed64() const {
4546
+ return packed_sfixed64_;
4547
+ }
4548
+ inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
4549
+ TestPackedTypesLite::mutable_packed_sfixed64() {
4550
+ return &packed_sfixed64_;
4551
+ }
4552
+
4553
+ // repeated float packed_float = 100 [packed = true];
4554
+ inline int TestPackedTypesLite::packed_float_size() const {
4555
+ return packed_float_.size();
4556
+ }
4557
+ inline void TestPackedTypesLite::clear_packed_float() {
4558
+ packed_float_.Clear();
4559
+ }
4560
+ inline float TestPackedTypesLite::packed_float(int index) const {
4561
+ return packed_float_.Get(index);
4562
+ }
4563
+ inline void TestPackedTypesLite::set_packed_float(int index, float value) {
4564
+ packed_float_.Set(index, value);
4565
+ }
4566
+ inline void TestPackedTypesLite::add_packed_float(float value) {
4567
+ packed_float_.Add(value);
4568
+ }
4569
+ inline const ::google::protobuf::RepeatedField< float >&
4570
+ TestPackedTypesLite::packed_float() const {
4571
+ return packed_float_;
4572
+ }
4573
+ inline ::google::protobuf::RepeatedField< float >*
4574
+ TestPackedTypesLite::mutable_packed_float() {
4575
+ return &packed_float_;
4576
+ }
4577
+
4578
+ // repeated double packed_double = 101 [packed = true];
4579
+ inline int TestPackedTypesLite::packed_double_size() const {
4580
+ return packed_double_.size();
4581
+ }
4582
+ inline void TestPackedTypesLite::clear_packed_double() {
4583
+ packed_double_.Clear();
4584
+ }
4585
+ inline double TestPackedTypesLite::packed_double(int index) const {
4586
+ return packed_double_.Get(index);
4587
+ }
4588
+ inline void TestPackedTypesLite::set_packed_double(int index, double value) {
4589
+ packed_double_.Set(index, value);
4590
+ }
4591
+ inline void TestPackedTypesLite::add_packed_double(double value) {
4592
+ packed_double_.Add(value);
4593
+ }
4594
+ inline const ::google::protobuf::RepeatedField< double >&
4595
+ TestPackedTypesLite::packed_double() const {
4596
+ return packed_double_;
4597
+ }
4598
+ inline ::google::protobuf::RepeatedField< double >*
4599
+ TestPackedTypesLite::mutable_packed_double() {
4600
+ return &packed_double_;
4601
+ }
4602
+
4603
+ // repeated bool packed_bool = 102 [packed = true];
4604
+ inline int TestPackedTypesLite::packed_bool_size() const {
4605
+ return packed_bool_.size();
4606
+ }
4607
+ inline void TestPackedTypesLite::clear_packed_bool() {
4608
+ packed_bool_.Clear();
4609
+ }
4610
+ inline bool TestPackedTypesLite::packed_bool(int index) const {
4611
+ return packed_bool_.Get(index);
4612
+ }
4613
+ inline void TestPackedTypesLite::set_packed_bool(int index, bool value) {
4614
+ packed_bool_.Set(index, value);
4615
+ }
4616
+ inline void TestPackedTypesLite::add_packed_bool(bool value) {
4617
+ packed_bool_.Add(value);
4618
+ }
4619
+ inline const ::google::protobuf::RepeatedField< bool >&
4620
+ TestPackedTypesLite::packed_bool() const {
4621
+ return packed_bool_;
4622
+ }
4623
+ inline ::google::protobuf::RepeatedField< bool >*
4624
+ TestPackedTypesLite::mutable_packed_bool() {
4625
+ return &packed_bool_;
4626
+ }
4627
+
4628
+ // repeated .protobuf_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
4629
+ inline int TestPackedTypesLite::packed_enum_size() const {
4630
+ return packed_enum_.size();
4631
+ }
4632
+ inline void TestPackedTypesLite::clear_packed_enum() {
4633
+ packed_enum_.Clear();
4634
+ }
4635
+ inline protobuf_unittest::ForeignEnumLite TestPackedTypesLite::packed_enum(int index) const {
4636
+ return static_cast< protobuf_unittest::ForeignEnumLite >(packed_enum_.Get(index));
4637
+ }
4638
+ inline void TestPackedTypesLite::set_packed_enum(int index, protobuf_unittest::ForeignEnumLite value) {
4639
+ GOOGLE_DCHECK(protobuf_unittest::ForeignEnumLite_IsValid(value));
4640
+ packed_enum_.Set(index, value);
4641
+ }
4642
+ inline void TestPackedTypesLite::add_packed_enum(protobuf_unittest::ForeignEnumLite value) {
4643
+ GOOGLE_DCHECK(protobuf_unittest::ForeignEnumLite_IsValid(value));
4644
+ packed_enum_.Add(value);
4645
+ }
4646
+ inline const ::google::protobuf::RepeatedField<int>&
4647
+ TestPackedTypesLite::packed_enum() const {
4648
+ return packed_enum_;
4649
+ }
4650
+ inline ::google::protobuf::RepeatedField<int>*
4651
+ TestPackedTypesLite::mutable_packed_enum() {
4652
+ return &packed_enum_;
4653
+ }
4654
+
4655
+ // -------------------------------------------------------------------
4656
+
4657
+ // TestAllExtensionsLite
4658
+
4659
+ // -------------------------------------------------------------------
4660
+
4661
+ // OptionalGroup_extension_lite
4662
+
4663
+ // optional int32 a = 17;
4664
+ inline bool OptionalGroup_extension_lite::has_a() const {
4665
+ return (_has_bits_[0] & 0x00000001u) != 0;
4666
+ }
4667
+ inline void OptionalGroup_extension_lite::set_has_a() {
4668
+ _has_bits_[0] |= 0x00000001u;
4669
+ }
4670
+ inline void OptionalGroup_extension_lite::clear_has_a() {
4671
+ _has_bits_[0] &= ~0x00000001u;
4672
+ }
4673
+ inline void OptionalGroup_extension_lite::clear_a() {
4674
+ a_ = 0;
4675
+ clear_has_a();
4676
+ }
4677
+ inline ::google::protobuf::int32 OptionalGroup_extension_lite::a() const {
4678
+ return a_;
4679
+ }
4680
+ inline void OptionalGroup_extension_lite::set_a(::google::protobuf::int32 value) {
4681
+ set_has_a();
4682
+ a_ = value;
4683
+ }
4684
+
4685
+ // -------------------------------------------------------------------
4686
+
4687
+ // RepeatedGroup_extension_lite
4688
+
4689
+ // optional int32 a = 47;
4690
+ inline bool RepeatedGroup_extension_lite::has_a() const {
4691
+ return (_has_bits_[0] & 0x00000001u) != 0;
4692
+ }
4693
+ inline void RepeatedGroup_extension_lite::set_has_a() {
4694
+ _has_bits_[0] |= 0x00000001u;
4695
+ }
4696
+ inline void RepeatedGroup_extension_lite::clear_has_a() {
4697
+ _has_bits_[0] &= ~0x00000001u;
4698
+ }
4699
+ inline void RepeatedGroup_extension_lite::clear_a() {
4700
+ a_ = 0;
4701
+ clear_has_a();
4702
+ }
4703
+ inline ::google::protobuf::int32 RepeatedGroup_extension_lite::a() const {
4704
+ return a_;
4705
+ }
4706
+ inline void RepeatedGroup_extension_lite::set_a(::google::protobuf::int32 value) {
4707
+ set_has_a();
4708
+ a_ = value;
4709
+ }
4710
+
4711
+ // -------------------------------------------------------------------
4712
+
4713
+ // TestPackedExtensionsLite
4714
+
4715
+ // -------------------------------------------------------------------
4716
+
4717
+ // TestNestedExtensionLite
4718
+
4719
+ // -------------------------------------------------------------------
4720
+
4721
+ // TestDeprecatedLite
4722
+
4723
+ // optional int32 deprecated_field = 1 [deprecated = true];
4724
+ inline bool TestDeprecatedLite::has_deprecated_field() const {
4725
+ return (_has_bits_[0] & 0x00000001u) != 0;
4726
+ }
4727
+ inline void TestDeprecatedLite::set_has_deprecated_field() {
4728
+ _has_bits_[0] |= 0x00000001u;
4729
+ }
4730
+ inline void TestDeprecatedLite::clear_has_deprecated_field() {
4731
+ _has_bits_[0] &= ~0x00000001u;
4732
+ }
4733
+ inline void TestDeprecatedLite::clear_deprecated_field() {
4734
+ deprecated_field_ = 0;
4735
+ clear_has_deprecated_field();
4736
+ }
4737
+ inline ::google::protobuf::int32 TestDeprecatedLite::deprecated_field() const {
4738
+ return deprecated_field_;
4739
+ }
4740
+ inline void TestDeprecatedLite::set_deprecated_field(::google::protobuf::int32 value) {
4741
+ set_has_deprecated_field();
4742
+ deprecated_field_ = value;
4743
+ }
4744
+
4745
+
4746
+ // @@protoc_insertion_point(namespace_scope)
4747
+
4748
+ } // namespace protobuf_unittest
4749
+
4750
+ // @@protoc_insertion_point(global_scope)
4751
+
4752
+ #endif // PROTOBUF_google_2fprotobuf_2funittest_5flite_2eproto__INCLUDED