protobuf 2.8.0.beta9 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +0 -1
  3. data/{UPGRADING.md → CHANGES.md} +20 -12
  4. data/LICENSE.txt +14 -0
  5. data/README.md +60 -74
  6. data/bin/protoc-gen-ruby +26 -0
  7. data/bin/rprotoc +4 -58
  8. data/lib/protobuf.rb +15 -13
  9. data/lib/protobuf/code_generator.rb +41 -0
  10. data/lib/protobuf/descriptors/google/protobuf/compiler/plugin.pb.rb +51 -0
  11. data/lib/protobuf/descriptors/google/protobuf/descriptor.pb.rb +248 -0
  12. data/lib/protobuf/field/base_field.rb +0 -1
  13. data/lib/protobuf/field/bytes_field.rb +1 -1
  14. data/lib/protobuf/field/message_field.rb +2 -4
  15. data/lib/protobuf/field/varint_field.rb +4 -7
  16. data/lib/protobuf/generators/base.rb +71 -0
  17. data/lib/protobuf/generators/enum_generator.rb +31 -0
  18. data/lib/protobuf/generators/extension_generator.rb +28 -0
  19. data/lib/protobuf/generators/field_generator.rb +132 -0
  20. data/lib/protobuf/generators/file_generator.rb +140 -0
  21. data/lib/protobuf/generators/group_generator.rb +113 -0
  22. data/lib/protobuf/generators/message_generator.rb +99 -0
  23. data/lib/protobuf/generators/printable.rb +161 -0
  24. data/lib/protobuf/generators/service_generator.rb +27 -0
  25. data/lib/protobuf/lifecycle.rb +7 -3
  26. data/lib/protobuf/message.rb +51 -34
  27. data/lib/protobuf/rpc/connectors/common.rb +4 -6
  28. data/lib/protobuf/rpc/server.rb +1 -1
  29. data/lib/protobuf/rpc/servers/zmq/server.rb +2 -2
  30. data/lib/protobuf/rpc/servers/zmq/worker.rb +2 -2
  31. data/lib/protobuf/rpc/service.rb +3 -3
  32. data/lib/protobuf/rpc/service_directory.rb +24 -12
  33. data/lib/protobuf/version.rb +1 -1
  34. data/proto/google/protobuf/compiler/plugin.proto +147 -0
  35. data/proto/google/protobuf/descriptor.proto +620 -0
  36. data/protobuf.gemspec +12 -21
  37. data/spec/bin/protoc-gen-ruby_spec.rb +18 -0
  38. data/spec/data/data.bin +3 -0
  39. data/{test/data/unk.png → spec/data/types.bin} +0 -0
  40. data/spec/encoding/all_types_spec.rb +91 -0
  41. data/spec/encoding/extreme_values_spec.rb +0 -0
  42. data/spec/lib/protobuf/code_generator_spec.rb +60 -0
  43. data/spec/lib/protobuf/generators/base_spec.rb +87 -0
  44. data/spec/lib/protobuf/generators/enum_generator_spec.rb +45 -0
  45. data/spec/lib/protobuf/generators/extension_generator_spec.rb +43 -0
  46. data/spec/lib/protobuf/generators/field_generator_spec.rb +99 -0
  47. data/spec/lib/protobuf/generators/file_generator_spec.rb +29 -0
  48. data/spec/lib/protobuf/generators/message_generator_spec.rb +0 -0
  49. data/spec/lib/protobuf/generators/service_generator_spec.rb +43 -0
  50. data/spec/lib/protobuf/lifecycle_spec.rb +31 -1
  51. data/spec/lib/protobuf/logger_spec.rb +5 -0
  52. data/spec/lib/protobuf/message_spec.rb +22 -8
  53. data/spec/lib/protobuf/rpc/connectors/common_spec.rb +1 -1
  54. data/spec/lib/protobuf/rpc/service_directory_spec.rb +45 -7
  55. data/spec/lib/protobuf/rpc/service_spec.rb +3 -3
  56. data/spec/spec_helper.rb +15 -16
  57. data/spec/support/test/all_types.data.bin +0 -0
  58. data/spec/support/test/all_types.data.txt +119 -0
  59. data/spec/support/test/defaults.pb.rb +25 -0
  60. data/spec/support/test/defaults.proto +9 -0
  61. data/spec/support/test/enum.pb.rb +10 -8
  62. data/spec/support/test/extended.pb.rb +5 -3
  63. data/spec/support/test/extreme_values.data.bin +0 -0
  64. data/spec/support/test/google_unittest.pb.rb +543 -0
  65. data/spec/support/test/google_unittest.proto +713 -0
  66. data/spec/support/test/google_unittest_import.pb.rb +37 -0
  67. data/{ext/protobuf-2.4.1/src/google/protobuf/io/package_info.h → spec/support/test/google_unittest_import.proto} +27 -17
  68. data/spec/support/test/google_unittest_import_public.pb.rb +8 -0
  69. data/{ext/protobuf-2.4.1/src/google/protobuf/io/coded_stream_inl.h → spec/support/test/google_unittest_import_public.proto} +5 -31
  70. data/spec/support/test/multi_field_extensions.pb.rb +29 -7
  71. data/spec/support/test/multi_field_extensions.proto +12 -2
  72. data/spec/support/test/resource.pb.rb +20 -16
  73. metadata +149 -236
  74. data/examples/addressbook.pb.rb +0 -55
  75. data/examples/addressbook.proto +0 -24
  76. data/examples/reading_a_message.rb +0 -32
  77. data/examples/writing_a_message.rb +0 -46
  78. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/code_generator.h +0 -142
  79. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/command_line_interface.h +0 -318
  80. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_enum.h +0 -99
  81. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_enum_field.h +0 -103
  82. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_extension.h +0 -85
  83. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_field.h +0 -167
  84. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_file.h +0 -98
  85. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_generator.h +0 -72
  86. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_helpers.h +0 -159
  87. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_message.h +0 -170
  88. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_message_field.h +0 -102
  89. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_primitive_field.h +0 -103
  90. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_service.h +0 -118
  91. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_string_field.h +0 -104
  92. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/cpp/cpp_test_bad_identifiers.pb.h +0 -2721
  93. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/importer.h +0 -303
  94. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_enum.h +0 -84
  95. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_enum_field.h +0 -121
  96. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_extension.h +0 -77
  97. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_field.h +0 -108
  98. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_file.h +0 -101
  99. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_generator.h +0 -72
  100. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_helpers.h +0 -213
  101. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_message.h +0 -109
  102. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_message_field.h +0 -134
  103. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_primitive_field.h +0 -121
  104. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_service.h +0 -113
  105. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/java/java_string_field.h +0 -120
  106. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/mock_code_generator.h +0 -113
  107. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/package_info.h +0 -64
  108. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/parser.h +0 -434
  109. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/plugin.h +0 -73
  110. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/plugin.pb.h +0 -790
  111. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/python/python_generator.h +0 -156
  112. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/subprocess.h +0 -108
  113. data/ext/protobuf-2.4.1/src/google/protobuf/compiler/zip_writer.h +0 -93
  114. data/ext/protobuf-2.4.1/src/google/protobuf/descriptor.h +0 -1367
  115. data/ext/protobuf-2.4.1/src/google/protobuf/descriptor.pb.h +0 -5223
  116. data/ext/protobuf-2.4.1/src/google/protobuf/descriptor_database.h +0 -366
  117. data/ext/protobuf-2.4.1/src/google/protobuf/dynamic_message.h +0 -136
  118. data/ext/protobuf-2.4.1/src/google/protobuf/extension_set.h +0 -904
  119. data/ext/protobuf-2.4.1/src/google/protobuf/generated_message_reflection.h +0 -424
  120. data/ext/protobuf-2.4.1/src/google/protobuf/generated_message_util.h +0 -82
  121. data/ext/protobuf-2.4.1/src/google/protobuf/io/coded_stream.h +0 -1102
  122. data/ext/protobuf-2.4.1/src/google/protobuf/io/gzip_stream.h +0 -207
  123. data/ext/protobuf-2.4.1/src/google/protobuf/io/printer.h +0 -136
  124. data/ext/protobuf-2.4.1/src/google/protobuf/io/tokenizer.h +0 -313
  125. data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream.h +0 -238
  126. data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream_impl.h +0 -357
  127. data/ext/protobuf-2.4.1/src/google/protobuf/io/zero_copy_stream_impl_lite.h +0 -340
  128. data/ext/protobuf-2.4.1/src/google/protobuf/message.h +0 -692
  129. data/ext/protobuf-2.4.1/src/google/protobuf/message_lite.h +0 -239
  130. data/ext/protobuf-2.4.1/src/google/protobuf/package_info.h +0 -64
  131. data/ext/protobuf-2.4.1/src/google/protobuf/reflection_ops.h +0 -80
  132. data/ext/protobuf-2.4.1/src/google/protobuf/repeated_field.h +0 -1295
  133. data/ext/protobuf-2.4.1/src/google/protobuf/service.h +0 -291
  134. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/common.h +0 -1211
  135. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/hash.h +0 -220
  136. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/map-util.h +0 -119
  137. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/once.h +0 -123
  138. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/stl_util-inl.h +0 -121
  139. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/strutil.h +0 -457
  140. data/ext/protobuf-2.4.1/src/google/protobuf/stubs/substitute.h +0 -170
  141. data/ext/protobuf-2.4.1/src/google/protobuf/test_util.h +0 -174
  142. data/ext/protobuf-2.4.1/src/google/protobuf/test_util_lite.h +0 -101
  143. data/ext/protobuf-2.4.1/src/google/protobuf/testing/file.h +0 -83
  144. data/ext/protobuf-2.4.1/src/google/protobuf/testing/googletest.h +0 -98
  145. data/ext/protobuf-2.4.1/src/google/protobuf/text_format.h +0 -285
  146. data/ext/protobuf-2.4.1/src/google/protobuf/unittest.pb.h +0 -11915
  147. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_custom_options.pb.h +0 -2895
  148. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_embed_optimize_for.pb.h +0 -211
  149. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_empty.pb.h +0 -56
  150. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_import.pb.h +0 -188
  151. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_import_lite.pb.h +0 -151
  152. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_lite.pb.h +0 -4752
  153. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_lite_imports_nonlite.pb.h +0 -150
  154. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_mset.pb.h +0 -816
  155. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_no_generic_services.pb.h +0 -197
  156. data/ext/protobuf-2.4.1/src/google/protobuf/unittest_optimize_for.pb.h +0 -403
  157. data/ext/protobuf-2.4.1/src/google/protobuf/unknown_field_set.h +0 -268
  158. data/ext/protobuf-2.4.1/src/google/protobuf/wire_format.h +0 -304
  159. data/ext/protobuf-2.4.1/src/google/protobuf/wire_format_lite.h +0 -620
  160. data/ext/protobuf-2.4.1/src/google/protobuf/wire_format_lite_inl.h +0 -774
  161. data/ext/ruby_generator/Makefile +0 -10
  162. data/ext/ruby_generator/RubyGenerator.cpp +0 -544
  163. data/ext/ruby_generator/RubyGenerator.h +0 -206
  164. data/ext/ruby_generator/extconf.rb +0 -35
  165. data/test/data/data_source.py +0 -14
  166. data/test/data/types_source.py +0 -22
  167. data/test/proto/addressbook.pb.rb +0 -66
  168. data/test/proto/addressbook.proto +0 -33
  169. data/test/proto/addressbook_base.pb.rb +0 -58
  170. data/test/proto/addressbook_base.proto +0 -26
  171. data/test/proto/addressbook_ext.pb.rb +0 -20
  172. data/test/proto/addressbook_ext.proto +0 -6
  173. data/test/proto/collision.pb.rb +0 -17
  174. data/test/proto/collision.proto +0 -5
  175. data/test/proto/ext_collision.pb.rb +0 -24
  176. data/test/proto/ext_collision.proto +0 -8
  177. data/test/proto/ext_range.pb.rb +0 -22
  178. data/test/proto/ext_range.proto +0 -7
  179. data/test/proto/float_default.proto +0 -10
  180. data/test/proto/lowercase.pb.rb +0 -30
  181. data/test/proto/lowercase.proto +0 -9
  182. data/test/proto/merge.pb.rb +0 -39
  183. data/test/proto/merge.proto +0 -15
  184. data/test/proto/nested.pb.rb +0 -30
  185. data/test/proto/nested.proto +0 -9
  186. data/test/proto/optional_field.pb.rb +0 -35
  187. data/test/proto/optional_field.proto +0 -12
  188. data/test/proto/packed.pb.rb +0 -22
  189. data/test/proto/packed.proto +0 -6
  190. data/test/proto/rpc.proto +0 -6
  191. data/test/proto/types.pb.rb +0 -84
  192. data/test/proto/types.proto +0 -37
  193. data/test/test_addressbook.rb +0 -56
  194. data/test/test_enum_value.rb +0 -41
  195. data/test/test_extension.rb +0 -36
  196. data/test/test_lowercase.rb +0 -11
  197. data/test/test_message.rb +0 -128
  198. data/test/test_optional_field.rb +0 -103
  199. data/test/test_packed_field.rb +0 -40
  200. data/test/test_parse.rb +0 -15
  201. data/test/test_repeated_types.rb +0 -132
  202. data/test/test_serialize.rb +0 -61
  203. data/test/test_standard_message.rb +0 -96
  204. data/test/test_types.rb +0 -226
@@ -1,2895 +0,0 @@
1
- // Generated by the protocol buffer compiler. DO NOT EDIT!
2
- // source: google/protobuf/unittest_custom_options.proto
3
-
4
- #ifndef PROTOBUF_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto__INCLUDED
5
- #define PROTOBUF_google_2fprotobuf_2funittest_5fcustom_5foptions_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/generated_message_reflection.h>
26
- #include <google/protobuf/service.h>
27
- #include "google/protobuf/descriptor.pb.h"
28
- // @@protoc_insertion_point(includes)
29
-
30
- namespace protobuf_unittest {
31
-
32
- // Internal implementation detail -- do not call these.
33
- void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
34
- void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
35
- void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
36
-
37
- class TestMessageWithCustomOptions;
38
- class CustomOptionFooRequest;
39
- class CustomOptionFooResponse;
40
- class DummyMessageContainingEnum;
41
- class DummyMessageInvalidAsOptionType;
42
- class CustomOptionMinIntegerValues;
43
- class CustomOptionMaxIntegerValues;
44
- class CustomOptionOtherValues;
45
- class SettingRealsFromPositiveInts;
46
- class SettingRealsFromNegativeInts;
47
- class ComplexOptionType1;
48
- class ComplexOptionType2;
49
- class ComplexOptionType2_ComplexOptionType4;
50
- class ComplexOptionType3;
51
- class ComplexOptionType3_ComplexOptionType5;
52
- class ComplexOpt6;
53
- class VariousComplexOptions;
54
- class AggregateMessageSet;
55
- class AggregateMessageSetElement;
56
- class Aggregate;
57
- class AggregateMessage;
58
-
59
- enum TestMessageWithCustomOptions_AnEnum {
60
- TestMessageWithCustomOptions_AnEnum_ANENUM_VAL1 = 1,
61
- TestMessageWithCustomOptions_AnEnum_ANENUM_VAL2 = 2
62
- };
63
- bool TestMessageWithCustomOptions_AnEnum_IsValid(int value);
64
- const TestMessageWithCustomOptions_AnEnum TestMessageWithCustomOptions_AnEnum_AnEnum_MIN = TestMessageWithCustomOptions_AnEnum_ANENUM_VAL1;
65
- const TestMessageWithCustomOptions_AnEnum TestMessageWithCustomOptions_AnEnum_AnEnum_MAX = TestMessageWithCustomOptions_AnEnum_ANENUM_VAL2;
66
- const int TestMessageWithCustomOptions_AnEnum_AnEnum_ARRAYSIZE = TestMessageWithCustomOptions_AnEnum_AnEnum_MAX + 1;
67
-
68
- const ::google::protobuf::EnumDescriptor* TestMessageWithCustomOptions_AnEnum_descriptor();
69
- inline const ::std::string& TestMessageWithCustomOptions_AnEnum_Name(TestMessageWithCustomOptions_AnEnum value) {
70
- return ::google::protobuf::internal::NameOfEnum(
71
- TestMessageWithCustomOptions_AnEnum_descriptor(), value);
72
- }
73
- inline bool TestMessageWithCustomOptions_AnEnum_Parse(
74
- const ::std::string& name, TestMessageWithCustomOptions_AnEnum* value) {
75
- return ::google::protobuf::internal::ParseNamedEnum<TestMessageWithCustomOptions_AnEnum>(
76
- TestMessageWithCustomOptions_AnEnum_descriptor(), name, value);
77
- }
78
- enum DummyMessageContainingEnum_TestEnumType {
79
- DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE1 = 22,
80
- DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE2 = -23
81
- };
82
- bool DummyMessageContainingEnum_TestEnumType_IsValid(int value);
83
- const DummyMessageContainingEnum_TestEnumType DummyMessageContainingEnum_TestEnumType_TestEnumType_MIN = DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE2;
84
- const DummyMessageContainingEnum_TestEnumType DummyMessageContainingEnum_TestEnumType_TestEnumType_MAX = DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE1;
85
- const int DummyMessageContainingEnum_TestEnumType_TestEnumType_ARRAYSIZE = DummyMessageContainingEnum_TestEnumType_TestEnumType_MAX + 1;
86
-
87
- const ::google::protobuf::EnumDescriptor* DummyMessageContainingEnum_TestEnumType_descriptor();
88
- inline const ::std::string& DummyMessageContainingEnum_TestEnumType_Name(DummyMessageContainingEnum_TestEnumType value) {
89
- return ::google::protobuf::internal::NameOfEnum(
90
- DummyMessageContainingEnum_TestEnumType_descriptor(), value);
91
- }
92
- inline bool DummyMessageContainingEnum_TestEnumType_Parse(
93
- const ::std::string& name, DummyMessageContainingEnum_TestEnumType* value) {
94
- return ::google::protobuf::internal::ParseNamedEnum<DummyMessageContainingEnum_TestEnumType>(
95
- DummyMessageContainingEnum_TestEnumType_descriptor(), name, value);
96
- }
97
- enum MethodOpt1 {
98
- METHODOPT1_VAL1 = 1,
99
- METHODOPT1_VAL2 = 2
100
- };
101
- bool MethodOpt1_IsValid(int value);
102
- const MethodOpt1 MethodOpt1_MIN = METHODOPT1_VAL1;
103
- const MethodOpt1 MethodOpt1_MAX = METHODOPT1_VAL2;
104
- const int MethodOpt1_ARRAYSIZE = MethodOpt1_MAX + 1;
105
-
106
- const ::google::protobuf::EnumDescriptor* MethodOpt1_descriptor();
107
- inline const ::std::string& MethodOpt1_Name(MethodOpt1 value) {
108
- return ::google::protobuf::internal::NameOfEnum(
109
- MethodOpt1_descriptor(), value);
110
- }
111
- inline bool MethodOpt1_Parse(
112
- const ::std::string& name, MethodOpt1* value) {
113
- return ::google::protobuf::internal::ParseNamedEnum<MethodOpt1>(
114
- MethodOpt1_descriptor(), name, value);
115
- }
116
- enum AggregateEnum {
117
- VALUE = 1
118
- };
119
- bool AggregateEnum_IsValid(int value);
120
- const AggregateEnum AggregateEnum_MIN = VALUE;
121
- const AggregateEnum AggregateEnum_MAX = VALUE;
122
- const int AggregateEnum_ARRAYSIZE = AggregateEnum_MAX + 1;
123
-
124
- const ::google::protobuf::EnumDescriptor* AggregateEnum_descriptor();
125
- inline const ::std::string& AggregateEnum_Name(AggregateEnum value) {
126
- return ::google::protobuf::internal::NameOfEnum(
127
- AggregateEnum_descriptor(), value);
128
- }
129
- inline bool AggregateEnum_Parse(
130
- const ::std::string& name, AggregateEnum* value) {
131
- return ::google::protobuf::internal::ParseNamedEnum<AggregateEnum>(
132
- AggregateEnum_descriptor(), name, value);
133
- }
134
- // ===================================================================
135
-
136
- class TestMessageWithCustomOptions : public ::google::protobuf::Message {
137
- public:
138
- TestMessageWithCustomOptions();
139
- virtual ~TestMessageWithCustomOptions();
140
-
141
- TestMessageWithCustomOptions(const TestMessageWithCustomOptions& from);
142
-
143
- inline TestMessageWithCustomOptions& operator=(const TestMessageWithCustomOptions& from) {
144
- CopyFrom(from);
145
- return *this;
146
- }
147
-
148
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
149
- return _unknown_fields_;
150
- }
151
-
152
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
153
- return &_unknown_fields_;
154
- }
155
-
156
- static const ::google::protobuf::Descriptor* descriptor();
157
- static const TestMessageWithCustomOptions& default_instance();
158
-
159
- void Swap(TestMessageWithCustomOptions* other);
160
-
161
- // implements Message ----------------------------------------------
162
-
163
- TestMessageWithCustomOptions* New() const;
164
- void CopyFrom(const ::google::protobuf::Message& from);
165
- void MergeFrom(const ::google::protobuf::Message& from);
166
- void CopyFrom(const TestMessageWithCustomOptions& from);
167
- void MergeFrom(const TestMessageWithCustomOptions& from);
168
- void Clear();
169
- bool IsInitialized() const;
170
-
171
- int ByteSize() const;
172
- bool MergePartialFromCodedStream(
173
- ::google::protobuf::io::CodedInputStream* input);
174
- void SerializeWithCachedSizes(
175
- ::google::protobuf::io::CodedOutputStream* output) const;
176
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
177
- int GetCachedSize() const { return _cached_size_; }
178
- private:
179
- void SharedCtor();
180
- void SharedDtor();
181
- void SetCachedSize(int size) const;
182
- public:
183
-
184
- ::google::protobuf::Metadata GetMetadata() const;
185
-
186
- // nested types ----------------------------------------------------
187
-
188
- typedef TestMessageWithCustomOptions_AnEnum AnEnum;
189
- static const AnEnum ANENUM_VAL1 = TestMessageWithCustomOptions_AnEnum_ANENUM_VAL1;
190
- static const AnEnum ANENUM_VAL2 = TestMessageWithCustomOptions_AnEnum_ANENUM_VAL2;
191
- static inline bool AnEnum_IsValid(int value) {
192
- return TestMessageWithCustomOptions_AnEnum_IsValid(value);
193
- }
194
- static const AnEnum AnEnum_MIN =
195
- TestMessageWithCustomOptions_AnEnum_AnEnum_MIN;
196
- static const AnEnum AnEnum_MAX =
197
- TestMessageWithCustomOptions_AnEnum_AnEnum_MAX;
198
- static const int AnEnum_ARRAYSIZE =
199
- TestMessageWithCustomOptions_AnEnum_AnEnum_ARRAYSIZE;
200
- static inline const ::google::protobuf::EnumDescriptor*
201
- AnEnum_descriptor() {
202
- return TestMessageWithCustomOptions_AnEnum_descriptor();
203
- }
204
- static inline const ::std::string& AnEnum_Name(AnEnum value) {
205
- return TestMessageWithCustomOptions_AnEnum_Name(value);
206
- }
207
- static inline bool AnEnum_Parse(const ::std::string& name,
208
- AnEnum* value) {
209
- return TestMessageWithCustomOptions_AnEnum_Parse(name, value);
210
- }
211
-
212
- // accessors -------------------------------------------------------
213
-
214
- // optional string field1 = 1 [ctype = CORD];
215
- inline bool has_field1() const;
216
- inline void clear_field1();
217
- static const int kField1FieldNumber = 1;
218
- private:
219
- // Hidden due to unknown ctype option.
220
- inline const ::std::string& field1() const;
221
- inline void set_field1(const ::std::string& value);
222
- inline void set_field1(const char* value);
223
- inline void set_field1(const char* value, size_t size);
224
- inline ::std::string* mutable_field1();
225
- inline ::std::string* release_field1();
226
- public:
227
-
228
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMessageWithCustomOptions)
229
- private:
230
- inline void set_has_field1();
231
- inline void clear_has_field1();
232
-
233
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
234
-
235
- ::std::string* field1_;
236
-
237
- mutable int _cached_size_;
238
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
239
-
240
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
241
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
242
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
243
-
244
- void InitAsDefaultInstance();
245
- static TestMessageWithCustomOptions* default_instance_;
246
- };
247
- // -------------------------------------------------------------------
248
-
249
- class CustomOptionFooRequest : public ::google::protobuf::Message {
250
- public:
251
- CustomOptionFooRequest();
252
- virtual ~CustomOptionFooRequest();
253
-
254
- CustomOptionFooRequest(const CustomOptionFooRequest& from);
255
-
256
- inline CustomOptionFooRequest& operator=(const CustomOptionFooRequest& from) {
257
- CopyFrom(from);
258
- return *this;
259
- }
260
-
261
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
262
- return _unknown_fields_;
263
- }
264
-
265
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
266
- return &_unknown_fields_;
267
- }
268
-
269
- static const ::google::protobuf::Descriptor* descriptor();
270
- static const CustomOptionFooRequest& default_instance();
271
-
272
- void Swap(CustomOptionFooRequest* other);
273
-
274
- // implements Message ----------------------------------------------
275
-
276
- CustomOptionFooRequest* New() const;
277
- void CopyFrom(const ::google::protobuf::Message& from);
278
- void MergeFrom(const ::google::protobuf::Message& from);
279
- void CopyFrom(const CustomOptionFooRequest& from);
280
- void MergeFrom(const CustomOptionFooRequest& from);
281
- void Clear();
282
- bool IsInitialized() const;
283
-
284
- int ByteSize() const;
285
- bool MergePartialFromCodedStream(
286
- ::google::protobuf::io::CodedInputStream* input);
287
- void SerializeWithCachedSizes(
288
- ::google::protobuf::io::CodedOutputStream* output) const;
289
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
290
- int GetCachedSize() const { return _cached_size_; }
291
- private:
292
- void SharedCtor();
293
- void SharedDtor();
294
- void SetCachedSize(int size) const;
295
- public:
296
-
297
- ::google::protobuf::Metadata GetMetadata() const;
298
-
299
- // nested types ----------------------------------------------------
300
-
301
- // accessors -------------------------------------------------------
302
-
303
- // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionFooRequest)
304
- private:
305
-
306
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
307
-
308
-
309
- mutable int _cached_size_;
310
- ::google::protobuf::uint32 _has_bits_[1];
311
-
312
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
313
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
314
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
315
-
316
- void InitAsDefaultInstance();
317
- static CustomOptionFooRequest* default_instance_;
318
- };
319
- // -------------------------------------------------------------------
320
-
321
- class CustomOptionFooResponse : public ::google::protobuf::Message {
322
- public:
323
- CustomOptionFooResponse();
324
- virtual ~CustomOptionFooResponse();
325
-
326
- CustomOptionFooResponse(const CustomOptionFooResponse& from);
327
-
328
- inline CustomOptionFooResponse& operator=(const CustomOptionFooResponse& from) {
329
- CopyFrom(from);
330
- return *this;
331
- }
332
-
333
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
334
- return _unknown_fields_;
335
- }
336
-
337
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
338
- return &_unknown_fields_;
339
- }
340
-
341
- static const ::google::protobuf::Descriptor* descriptor();
342
- static const CustomOptionFooResponse& default_instance();
343
-
344
- void Swap(CustomOptionFooResponse* other);
345
-
346
- // implements Message ----------------------------------------------
347
-
348
- CustomOptionFooResponse* New() const;
349
- void CopyFrom(const ::google::protobuf::Message& from);
350
- void MergeFrom(const ::google::protobuf::Message& from);
351
- void CopyFrom(const CustomOptionFooResponse& from);
352
- void MergeFrom(const CustomOptionFooResponse& from);
353
- void Clear();
354
- bool IsInitialized() const;
355
-
356
- int ByteSize() const;
357
- bool MergePartialFromCodedStream(
358
- ::google::protobuf::io::CodedInputStream* input);
359
- void SerializeWithCachedSizes(
360
- ::google::protobuf::io::CodedOutputStream* output) const;
361
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
362
- int GetCachedSize() const { return _cached_size_; }
363
- private:
364
- void SharedCtor();
365
- void SharedDtor();
366
- void SetCachedSize(int size) const;
367
- public:
368
-
369
- ::google::protobuf::Metadata GetMetadata() const;
370
-
371
- // nested types ----------------------------------------------------
372
-
373
- // accessors -------------------------------------------------------
374
-
375
- // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionFooResponse)
376
- private:
377
-
378
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
379
-
380
-
381
- mutable int _cached_size_;
382
- ::google::protobuf::uint32 _has_bits_[1];
383
-
384
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
385
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
386
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
387
-
388
- void InitAsDefaultInstance();
389
- static CustomOptionFooResponse* default_instance_;
390
- };
391
- // -------------------------------------------------------------------
392
-
393
- class DummyMessageContainingEnum : public ::google::protobuf::Message {
394
- public:
395
- DummyMessageContainingEnum();
396
- virtual ~DummyMessageContainingEnum();
397
-
398
- DummyMessageContainingEnum(const DummyMessageContainingEnum& from);
399
-
400
- inline DummyMessageContainingEnum& operator=(const DummyMessageContainingEnum& from) {
401
- CopyFrom(from);
402
- return *this;
403
- }
404
-
405
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
406
- return _unknown_fields_;
407
- }
408
-
409
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
410
- return &_unknown_fields_;
411
- }
412
-
413
- static const ::google::protobuf::Descriptor* descriptor();
414
- static const DummyMessageContainingEnum& default_instance();
415
-
416
- void Swap(DummyMessageContainingEnum* other);
417
-
418
- // implements Message ----------------------------------------------
419
-
420
- DummyMessageContainingEnum* New() const;
421
- void CopyFrom(const ::google::protobuf::Message& from);
422
- void MergeFrom(const ::google::protobuf::Message& from);
423
- void CopyFrom(const DummyMessageContainingEnum& from);
424
- void MergeFrom(const DummyMessageContainingEnum& from);
425
- void Clear();
426
- bool IsInitialized() const;
427
-
428
- int ByteSize() const;
429
- bool MergePartialFromCodedStream(
430
- ::google::protobuf::io::CodedInputStream* input);
431
- void SerializeWithCachedSizes(
432
- ::google::protobuf::io::CodedOutputStream* output) const;
433
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
434
- int GetCachedSize() const { return _cached_size_; }
435
- private:
436
- void SharedCtor();
437
- void SharedDtor();
438
- void SetCachedSize(int size) const;
439
- public:
440
-
441
- ::google::protobuf::Metadata GetMetadata() const;
442
-
443
- // nested types ----------------------------------------------------
444
-
445
- typedef DummyMessageContainingEnum_TestEnumType TestEnumType;
446
- static const TestEnumType TEST_OPTION_ENUM_TYPE1 = DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE1;
447
- static const TestEnumType TEST_OPTION_ENUM_TYPE2 = DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE2;
448
- static inline bool TestEnumType_IsValid(int value) {
449
- return DummyMessageContainingEnum_TestEnumType_IsValid(value);
450
- }
451
- static const TestEnumType TestEnumType_MIN =
452
- DummyMessageContainingEnum_TestEnumType_TestEnumType_MIN;
453
- static const TestEnumType TestEnumType_MAX =
454
- DummyMessageContainingEnum_TestEnumType_TestEnumType_MAX;
455
- static const int TestEnumType_ARRAYSIZE =
456
- DummyMessageContainingEnum_TestEnumType_TestEnumType_ARRAYSIZE;
457
- static inline const ::google::protobuf::EnumDescriptor*
458
- TestEnumType_descriptor() {
459
- return DummyMessageContainingEnum_TestEnumType_descriptor();
460
- }
461
- static inline const ::std::string& TestEnumType_Name(TestEnumType value) {
462
- return DummyMessageContainingEnum_TestEnumType_Name(value);
463
- }
464
- static inline bool TestEnumType_Parse(const ::std::string& name,
465
- TestEnumType* value) {
466
- return DummyMessageContainingEnum_TestEnumType_Parse(name, value);
467
- }
468
-
469
- // accessors -------------------------------------------------------
470
-
471
- // @@protoc_insertion_point(class_scope:protobuf_unittest.DummyMessageContainingEnum)
472
- private:
473
-
474
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
475
-
476
-
477
- mutable int _cached_size_;
478
- ::google::protobuf::uint32 _has_bits_[1];
479
-
480
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
481
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
482
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
483
-
484
- void InitAsDefaultInstance();
485
- static DummyMessageContainingEnum* default_instance_;
486
- };
487
- // -------------------------------------------------------------------
488
-
489
- class DummyMessageInvalidAsOptionType : public ::google::protobuf::Message {
490
- public:
491
- DummyMessageInvalidAsOptionType();
492
- virtual ~DummyMessageInvalidAsOptionType();
493
-
494
- DummyMessageInvalidAsOptionType(const DummyMessageInvalidAsOptionType& from);
495
-
496
- inline DummyMessageInvalidAsOptionType& operator=(const DummyMessageInvalidAsOptionType& from) {
497
- CopyFrom(from);
498
- return *this;
499
- }
500
-
501
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
502
- return _unknown_fields_;
503
- }
504
-
505
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
506
- return &_unknown_fields_;
507
- }
508
-
509
- static const ::google::protobuf::Descriptor* descriptor();
510
- static const DummyMessageInvalidAsOptionType& default_instance();
511
-
512
- void Swap(DummyMessageInvalidAsOptionType* other);
513
-
514
- // implements Message ----------------------------------------------
515
-
516
- DummyMessageInvalidAsOptionType* New() const;
517
- void CopyFrom(const ::google::protobuf::Message& from);
518
- void MergeFrom(const ::google::protobuf::Message& from);
519
- void CopyFrom(const DummyMessageInvalidAsOptionType& from);
520
- void MergeFrom(const DummyMessageInvalidAsOptionType& from);
521
- void Clear();
522
- bool IsInitialized() const;
523
-
524
- int ByteSize() const;
525
- bool MergePartialFromCodedStream(
526
- ::google::protobuf::io::CodedInputStream* input);
527
- void SerializeWithCachedSizes(
528
- ::google::protobuf::io::CodedOutputStream* output) const;
529
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
530
- int GetCachedSize() const { return _cached_size_; }
531
- private:
532
- void SharedCtor();
533
- void SharedDtor();
534
- void SetCachedSize(int size) const;
535
- public:
536
-
537
- ::google::protobuf::Metadata GetMetadata() const;
538
-
539
- // nested types ----------------------------------------------------
540
-
541
- // accessors -------------------------------------------------------
542
-
543
- // @@protoc_insertion_point(class_scope:protobuf_unittest.DummyMessageInvalidAsOptionType)
544
- private:
545
-
546
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
547
-
548
-
549
- mutable int _cached_size_;
550
- ::google::protobuf::uint32 _has_bits_[1];
551
-
552
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
553
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
554
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
555
-
556
- void InitAsDefaultInstance();
557
- static DummyMessageInvalidAsOptionType* default_instance_;
558
- };
559
- // -------------------------------------------------------------------
560
-
561
- class CustomOptionMinIntegerValues : public ::google::protobuf::Message {
562
- public:
563
- CustomOptionMinIntegerValues();
564
- virtual ~CustomOptionMinIntegerValues();
565
-
566
- CustomOptionMinIntegerValues(const CustomOptionMinIntegerValues& from);
567
-
568
- inline CustomOptionMinIntegerValues& operator=(const CustomOptionMinIntegerValues& from) {
569
- CopyFrom(from);
570
- return *this;
571
- }
572
-
573
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
574
- return _unknown_fields_;
575
- }
576
-
577
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
578
- return &_unknown_fields_;
579
- }
580
-
581
- static const ::google::protobuf::Descriptor* descriptor();
582
- static const CustomOptionMinIntegerValues& default_instance();
583
-
584
- void Swap(CustomOptionMinIntegerValues* other);
585
-
586
- // implements Message ----------------------------------------------
587
-
588
- CustomOptionMinIntegerValues* New() const;
589
- void CopyFrom(const ::google::protobuf::Message& from);
590
- void MergeFrom(const ::google::protobuf::Message& from);
591
- void CopyFrom(const CustomOptionMinIntegerValues& from);
592
- void MergeFrom(const CustomOptionMinIntegerValues& from);
593
- void Clear();
594
- bool IsInitialized() const;
595
-
596
- int ByteSize() const;
597
- bool MergePartialFromCodedStream(
598
- ::google::protobuf::io::CodedInputStream* input);
599
- void SerializeWithCachedSizes(
600
- ::google::protobuf::io::CodedOutputStream* output) const;
601
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
602
- int GetCachedSize() const { return _cached_size_; }
603
- private:
604
- void SharedCtor();
605
- void SharedDtor();
606
- void SetCachedSize(int size) const;
607
- public:
608
-
609
- ::google::protobuf::Metadata GetMetadata() const;
610
-
611
- // nested types ----------------------------------------------------
612
-
613
- // accessors -------------------------------------------------------
614
-
615
- // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionMinIntegerValues)
616
- private:
617
-
618
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
619
-
620
-
621
- mutable int _cached_size_;
622
- ::google::protobuf::uint32 _has_bits_[1];
623
-
624
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
625
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
626
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
627
-
628
- void InitAsDefaultInstance();
629
- static CustomOptionMinIntegerValues* default_instance_;
630
- };
631
- // -------------------------------------------------------------------
632
-
633
- class CustomOptionMaxIntegerValues : public ::google::protobuf::Message {
634
- public:
635
- CustomOptionMaxIntegerValues();
636
- virtual ~CustomOptionMaxIntegerValues();
637
-
638
- CustomOptionMaxIntegerValues(const CustomOptionMaxIntegerValues& from);
639
-
640
- inline CustomOptionMaxIntegerValues& operator=(const CustomOptionMaxIntegerValues& from) {
641
- CopyFrom(from);
642
- return *this;
643
- }
644
-
645
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
646
- return _unknown_fields_;
647
- }
648
-
649
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
650
- return &_unknown_fields_;
651
- }
652
-
653
- static const ::google::protobuf::Descriptor* descriptor();
654
- static const CustomOptionMaxIntegerValues& default_instance();
655
-
656
- void Swap(CustomOptionMaxIntegerValues* other);
657
-
658
- // implements Message ----------------------------------------------
659
-
660
- CustomOptionMaxIntegerValues* New() const;
661
- void CopyFrom(const ::google::protobuf::Message& from);
662
- void MergeFrom(const ::google::protobuf::Message& from);
663
- void CopyFrom(const CustomOptionMaxIntegerValues& from);
664
- void MergeFrom(const CustomOptionMaxIntegerValues& from);
665
- void Clear();
666
- bool IsInitialized() const;
667
-
668
- int ByteSize() const;
669
- bool MergePartialFromCodedStream(
670
- ::google::protobuf::io::CodedInputStream* input);
671
- void SerializeWithCachedSizes(
672
- ::google::protobuf::io::CodedOutputStream* output) const;
673
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
674
- int GetCachedSize() const { return _cached_size_; }
675
- private:
676
- void SharedCtor();
677
- void SharedDtor();
678
- void SetCachedSize(int size) const;
679
- public:
680
-
681
- ::google::protobuf::Metadata GetMetadata() const;
682
-
683
- // nested types ----------------------------------------------------
684
-
685
- // accessors -------------------------------------------------------
686
-
687
- // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionMaxIntegerValues)
688
- private:
689
-
690
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
691
-
692
-
693
- mutable int _cached_size_;
694
- ::google::protobuf::uint32 _has_bits_[1];
695
-
696
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
697
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
698
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
699
-
700
- void InitAsDefaultInstance();
701
- static CustomOptionMaxIntegerValues* default_instance_;
702
- };
703
- // -------------------------------------------------------------------
704
-
705
- class CustomOptionOtherValues : public ::google::protobuf::Message {
706
- public:
707
- CustomOptionOtherValues();
708
- virtual ~CustomOptionOtherValues();
709
-
710
- CustomOptionOtherValues(const CustomOptionOtherValues& from);
711
-
712
- inline CustomOptionOtherValues& operator=(const CustomOptionOtherValues& from) {
713
- CopyFrom(from);
714
- return *this;
715
- }
716
-
717
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
718
- return _unknown_fields_;
719
- }
720
-
721
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
722
- return &_unknown_fields_;
723
- }
724
-
725
- static const ::google::protobuf::Descriptor* descriptor();
726
- static const CustomOptionOtherValues& default_instance();
727
-
728
- void Swap(CustomOptionOtherValues* other);
729
-
730
- // implements Message ----------------------------------------------
731
-
732
- CustomOptionOtherValues* New() const;
733
- void CopyFrom(const ::google::protobuf::Message& from);
734
- void MergeFrom(const ::google::protobuf::Message& from);
735
- void CopyFrom(const CustomOptionOtherValues& from);
736
- void MergeFrom(const CustomOptionOtherValues& from);
737
- void Clear();
738
- bool IsInitialized() const;
739
-
740
- int ByteSize() const;
741
- bool MergePartialFromCodedStream(
742
- ::google::protobuf::io::CodedInputStream* input);
743
- void SerializeWithCachedSizes(
744
- ::google::protobuf::io::CodedOutputStream* output) const;
745
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
746
- int GetCachedSize() const { return _cached_size_; }
747
- private:
748
- void SharedCtor();
749
- void SharedDtor();
750
- void SetCachedSize(int size) const;
751
- public:
752
-
753
- ::google::protobuf::Metadata GetMetadata() const;
754
-
755
- // nested types ----------------------------------------------------
756
-
757
- // accessors -------------------------------------------------------
758
-
759
- // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionOtherValues)
760
- private:
761
-
762
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
763
-
764
-
765
- mutable int _cached_size_;
766
- ::google::protobuf::uint32 _has_bits_[1];
767
-
768
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
769
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
770
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
771
-
772
- void InitAsDefaultInstance();
773
- static CustomOptionOtherValues* default_instance_;
774
- };
775
- // -------------------------------------------------------------------
776
-
777
- class SettingRealsFromPositiveInts : public ::google::protobuf::Message {
778
- public:
779
- SettingRealsFromPositiveInts();
780
- virtual ~SettingRealsFromPositiveInts();
781
-
782
- SettingRealsFromPositiveInts(const SettingRealsFromPositiveInts& from);
783
-
784
- inline SettingRealsFromPositiveInts& operator=(const SettingRealsFromPositiveInts& from) {
785
- CopyFrom(from);
786
- return *this;
787
- }
788
-
789
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
790
- return _unknown_fields_;
791
- }
792
-
793
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
794
- return &_unknown_fields_;
795
- }
796
-
797
- static const ::google::protobuf::Descriptor* descriptor();
798
- static const SettingRealsFromPositiveInts& default_instance();
799
-
800
- void Swap(SettingRealsFromPositiveInts* other);
801
-
802
- // implements Message ----------------------------------------------
803
-
804
- SettingRealsFromPositiveInts* New() const;
805
- void CopyFrom(const ::google::protobuf::Message& from);
806
- void MergeFrom(const ::google::protobuf::Message& from);
807
- void CopyFrom(const SettingRealsFromPositiveInts& from);
808
- void MergeFrom(const SettingRealsFromPositiveInts& from);
809
- void Clear();
810
- bool IsInitialized() const;
811
-
812
- int ByteSize() const;
813
- bool MergePartialFromCodedStream(
814
- ::google::protobuf::io::CodedInputStream* input);
815
- void SerializeWithCachedSizes(
816
- ::google::protobuf::io::CodedOutputStream* output) const;
817
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
818
- int GetCachedSize() const { return _cached_size_; }
819
- private:
820
- void SharedCtor();
821
- void SharedDtor();
822
- void SetCachedSize(int size) const;
823
- public:
824
-
825
- ::google::protobuf::Metadata GetMetadata() const;
826
-
827
- // nested types ----------------------------------------------------
828
-
829
- // accessors -------------------------------------------------------
830
-
831
- // @@protoc_insertion_point(class_scope:protobuf_unittest.SettingRealsFromPositiveInts)
832
- private:
833
-
834
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
835
-
836
-
837
- mutable int _cached_size_;
838
- ::google::protobuf::uint32 _has_bits_[1];
839
-
840
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
841
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
842
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
843
-
844
- void InitAsDefaultInstance();
845
- static SettingRealsFromPositiveInts* default_instance_;
846
- };
847
- // -------------------------------------------------------------------
848
-
849
- class SettingRealsFromNegativeInts : public ::google::protobuf::Message {
850
- public:
851
- SettingRealsFromNegativeInts();
852
- virtual ~SettingRealsFromNegativeInts();
853
-
854
- SettingRealsFromNegativeInts(const SettingRealsFromNegativeInts& from);
855
-
856
- inline SettingRealsFromNegativeInts& operator=(const SettingRealsFromNegativeInts& from) {
857
- CopyFrom(from);
858
- return *this;
859
- }
860
-
861
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
862
- return _unknown_fields_;
863
- }
864
-
865
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
866
- return &_unknown_fields_;
867
- }
868
-
869
- static const ::google::protobuf::Descriptor* descriptor();
870
- static const SettingRealsFromNegativeInts& default_instance();
871
-
872
- void Swap(SettingRealsFromNegativeInts* other);
873
-
874
- // implements Message ----------------------------------------------
875
-
876
- SettingRealsFromNegativeInts* New() const;
877
- void CopyFrom(const ::google::protobuf::Message& from);
878
- void MergeFrom(const ::google::protobuf::Message& from);
879
- void CopyFrom(const SettingRealsFromNegativeInts& from);
880
- void MergeFrom(const SettingRealsFromNegativeInts& from);
881
- void Clear();
882
- bool IsInitialized() const;
883
-
884
- int ByteSize() const;
885
- bool MergePartialFromCodedStream(
886
- ::google::protobuf::io::CodedInputStream* input);
887
- void SerializeWithCachedSizes(
888
- ::google::protobuf::io::CodedOutputStream* output) const;
889
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
890
- int GetCachedSize() const { return _cached_size_; }
891
- private:
892
- void SharedCtor();
893
- void SharedDtor();
894
- void SetCachedSize(int size) const;
895
- public:
896
-
897
- ::google::protobuf::Metadata GetMetadata() const;
898
-
899
- // nested types ----------------------------------------------------
900
-
901
- // accessors -------------------------------------------------------
902
-
903
- // @@protoc_insertion_point(class_scope:protobuf_unittest.SettingRealsFromNegativeInts)
904
- private:
905
-
906
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
907
-
908
-
909
- mutable int _cached_size_;
910
- ::google::protobuf::uint32 _has_bits_[1];
911
-
912
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
913
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
914
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
915
-
916
- void InitAsDefaultInstance();
917
- static SettingRealsFromNegativeInts* default_instance_;
918
- };
919
- // -------------------------------------------------------------------
920
-
921
- class ComplexOptionType1 : public ::google::protobuf::Message {
922
- public:
923
- ComplexOptionType1();
924
- virtual ~ComplexOptionType1();
925
-
926
- ComplexOptionType1(const ComplexOptionType1& from);
927
-
928
- inline ComplexOptionType1& operator=(const ComplexOptionType1& from) {
929
- CopyFrom(from);
930
- return *this;
931
- }
932
-
933
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
934
- return _unknown_fields_;
935
- }
936
-
937
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
938
- return &_unknown_fields_;
939
- }
940
-
941
- static const ::google::protobuf::Descriptor* descriptor();
942
- static const ComplexOptionType1& default_instance();
943
-
944
- void Swap(ComplexOptionType1* other);
945
-
946
- // implements Message ----------------------------------------------
947
-
948
- ComplexOptionType1* New() const;
949
- void CopyFrom(const ::google::protobuf::Message& from);
950
- void MergeFrom(const ::google::protobuf::Message& from);
951
- void CopyFrom(const ComplexOptionType1& from);
952
- void MergeFrom(const ComplexOptionType1& from);
953
- void Clear();
954
- bool IsInitialized() const;
955
-
956
- int ByteSize() const;
957
- bool MergePartialFromCodedStream(
958
- ::google::protobuf::io::CodedInputStream* input);
959
- void SerializeWithCachedSizes(
960
- ::google::protobuf::io::CodedOutputStream* output) const;
961
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
962
- int GetCachedSize() const { return _cached_size_; }
963
- private:
964
- void SharedCtor();
965
- void SharedDtor();
966
- void SetCachedSize(int size) const;
967
- public:
968
-
969
- ::google::protobuf::Metadata GetMetadata() const;
970
-
971
- // nested types ----------------------------------------------------
972
-
973
- // accessors -------------------------------------------------------
974
-
975
- // optional int32 foo = 1;
976
- inline bool has_foo() const;
977
- inline void clear_foo();
978
- static const int kFooFieldNumber = 1;
979
- inline ::google::protobuf::int32 foo() const;
980
- inline void set_foo(::google::protobuf::int32 value);
981
-
982
- // optional int32 foo2 = 2;
983
- inline bool has_foo2() const;
984
- inline void clear_foo2();
985
- static const int kFoo2FieldNumber = 2;
986
- inline ::google::protobuf::int32 foo2() const;
987
- inline void set_foo2(::google::protobuf::int32 value);
988
-
989
- // optional int32 foo3 = 3;
990
- inline bool has_foo3() const;
991
- inline void clear_foo3();
992
- static const int kFoo3FieldNumber = 3;
993
- inline ::google::protobuf::int32 foo3() const;
994
- inline void set_foo3(::google::protobuf::int32 value);
995
-
996
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ComplexOptionType1)
997
- // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType1)
998
- private:
999
- inline void set_has_foo();
1000
- inline void clear_has_foo();
1001
- inline void set_has_foo2();
1002
- inline void clear_has_foo2();
1003
- inline void set_has_foo3();
1004
- inline void clear_has_foo3();
1005
-
1006
- ::google::protobuf::internal::ExtensionSet _extensions_;
1007
-
1008
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1009
-
1010
- ::google::protobuf::int32 foo_;
1011
- ::google::protobuf::int32 foo2_;
1012
- ::google::protobuf::int32 foo3_;
1013
-
1014
- mutable int _cached_size_;
1015
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
1016
-
1017
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1018
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1019
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1020
-
1021
- void InitAsDefaultInstance();
1022
- static ComplexOptionType1* default_instance_;
1023
- };
1024
- // -------------------------------------------------------------------
1025
-
1026
- class ComplexOptionType2_ComplexOptionType4 : public ::google::protobuf::Message {
1027
- public:
1028
- ComplexOptionType2_ComplexOptionType4();
1029
- virtual ~ComplexOptionType2_ComplexOptionType4();
1030
-
1031
- ComplexOptionType2_ComplexOptionType4(const ComplexOptionType2_ComplexOptionType4& from);
1032
-
1033
- inline ComplexOptionType2_ComplexOptionType4& operator=(const ComplexOptionType2_ComplexOptionType4& from) {
1034
- CopyFrom(from);
1035
- return *this;
1036
- }
1037
-
1038
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1039
- return _unknown_fields_;
1040
- }
1041
-
1042
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1043
- return &_unknown_fields_;
1044
- }
1045
-
1046
- static const ::google::protobuf::Descriptor* descriptor();
1047
- static const ComplexOptionType2_ComplexOptionType4& default_instance();
1048
-
1049
- void Swap(ComplexOptionType2_ComplexOptionType4* other);
1050
-
1051
- // implements Message ----------------------------------------------
1052
-
1053
- ComplexOptionType2_ComplexOptionType4* New() const;
1054
- void CopyFrom(const ::google::protobuf::Message& from);
1055
- void MergeFrom(const ::google::protobuf::Message& from);
1056
- void CopyFrom(const ComplexOptionType2_ComplexOptionType4& from);
1057
- void MergeFrom(const ComplexOptionType2_ComplexOptionType4& from);
1058
- void Clear();
1059
- bool IsInitialized() const;
1060
-
1061
- int ByteSize() const;
1062
- bool MergePartialFromCodedStream(
1063
- ::google::protobuf::io::CodedInputStream* input);
1064
- void SerializeWithCachedSizes(
1065
- ::google::protobuf::io::CodedOutputStream* output) const;
1066
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1067
- int GetCachedSize() const { return _cached_size_; }
1068
- private:
1069
- void SharedCtor();
1070
- void SharedDtor();
1071
- void SetCachedSize(int size) const;
1072
- public:
1073
-
1074
- ::google::protobuf::Metadata GetMetadata() const;
1075
-
1076
- // nested types ----------------------------------------------------
1077
-
1078
- // accessors -------------------------------------------------------
1079
-
1080
- // optional int32 waldo = 1;
1081
- inline bool has_waldo() const;
1082
- inline void clear_waldo();
1083
- static const int kWaldoFieldNumber = 1;
1084
- inline ::google::protobuf::int32 waldo() const;
1085
- inline void set_waldo(::google::protobuf::int32 value);
1086
-
1087
- static const int kComplexOpt4FieldNumber = 7633546;
1088
- static ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
1089
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4 >, 11, false >
1090
- complex_opt4;
1091
- // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
1092
- private:
1093
- inline void set_has_waldo();
1094
- inline void clear_has_waldo();
1095
-
1096
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1097
-
1098
- ::google::protobuf::int32 waldo_;
1099
-
1100
- mutable int _cached_size_;
1101
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1102
-
1103
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1104
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1105
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1106
-
1107
- void InitAsDefaultInstance();
1108
- static ComplexOptionType2_ComplexOptionType4* default_instance_;
1109
- };
1110
- // -------------------------------------------------------------------
1111
-
1112
- class ComplexOptionType2 : public ::google::protobuf::Message {
1113
- public:
1114
- ComplexOptionType2();
1115
- virtual ~ComplexOptionType2();
1116
-
1117
- ComplexOptionType2(const ComplexOptionType2& from);
1118
-
1119
- inline ComplexOptionType2& operator=(const ComplexOptionType2& from) {
1120
- CopyFrom(from);
1121
- return *this;
1122
- }
1123
-
1124
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1125
- return _unknown_fields_;
1126
- }
1127
-
1128
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1129
- return &_unknown_fields_;
1130
- }
1131
-
1132
- static const ::google::protobuf::Descriptor* descriptor();
1133
- static const ComplexOptionType2& default_instance();
1134
-
1135
- void Swap(ComplexOptionType2* other);
1136
-
1137
- // implements Message ----------------------------------------------
1138
-
1139
- ComplexOptionType2* New() const;
1140
- void CopyFrom(const ::google::protobuf::Message& from);
1141
- void MergeFrom(const ::google::protobuf::Message& from);
1142
- void CopyFrom(const ComplexOptionType2& from);
1143
- void MergeFrom(const ComplexOptionType2& from);
1144
- void Clear();
1145
- bool IsInitialized() const;
1146
-
1147
- int ByteSize() const;
1148
- bool MergePartialFromCodedStream(
1149
- ::google::protobuf::io::CodedInputStream* input);
1150
- void SerializeWithCachedSizes(
1151
- ::google::protobuf::io::CodedOutputStream* output) const;
1152
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1153
- int GetCachedSize() const { return _cached_size_; }
1154
- private:
1155
- void SharedCtor();
1156
- void SharedDtor();
1157
- void SetCachedSize(int size) const;
1158
- public:
1159
-
1160
- ::google::protobuf::Metadata GetMetadata() const;
1161
-
1162
- // nested types ----------------------------------------------------
1163
-
1164
- typedef ComplexOptionType2_ComplexOptionType4 ComplexOptionType4;
1165
-
1166
- // accessors -------------------------------------------------------
1167
-
1168
- // optional .protobuf_unittest.ComplexOptionType1 bar = 1;
1169
- inline bool has_bar() const;
1170
- inline void clear_bar();
1171
- static const int kBarFieldNumber = 1;
1172
- inline const ::protobuf_unittest::ComplexOptionType1& bar() const;
1173
- inline ::protobuf_unittest::ComplexOptionType1* mutable_bar();
1174
- inline ::protobuf_unittest::ComplexOptionType1* release_bar();
1175
-
1176
- // optional int32 baz = 2;
1177
- inline bool has_baz() const;
1178
- inline void clear_baz();
1179
- static const int kBazFieldNumber = 2;
1180
- inline ::google::protobuf::int32 baz() const;
1181
- inline void set_baz(::google::protobuf::int32 value);
1182
-
1183
- // optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3;
1184
- inline bool has_fred() const;
1185
- inline void clear_fred();
1186
- static const int kFredFieldNumber = 3;
1187
- inline const ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4& fred() const;
1188
- inline ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* mutable_fred();
1189
- inline ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* release_fred();
1190
-
1191
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ComplexOptionType2)
1192
- // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType2)
1193
- private:
1194
- inline void set_has_bar();
1195
- inline void clear_has_bar();
1196
- inline void set_has_baz();
1197
- inline void clear_has_baz();
1198
- inline void set_has_fred();
1199
- inline void clear_has_fred();
1200
-
1201
- ::google::protobuf::internal::ExtensionSet _extensions_;
1202
-
1203
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1204
-
1205
- ::protobuf_unittest::ComplexOptionType1* bar_;
1206
- ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* fred_;
1207
- ::google::protobuf::int32 baz_;
1208
-
1209
- mutable int _cached_size_;
1210
- ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
1211
-
1212
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1213
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1214
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1215
-
1216
- void InitAsDefaultInstance();
1217
- static ComplexOptionType2* default_instance_;
1218
- };
1219
- // -------------------------------------------------------------------
1220
-
1221
- class ComplexOptionType3_ComplexOptionType5 : public ::google::protobuf::Message {
1222
- public:
1223
- ComplexOptionType3_ComplexOptionType5();
1224
- virtual ~ComplexOptionType3_ComplexOptionType5();
1225
-
1226
- ComplexOptionType3_ComplexOptionType5(const ComplexOptionType3_ComplexOptionType5& from);
1227
-
1228
- inline ComplexOptionType3_ComplexOptionType5& operator=(const ComplexOptionType3_ComplexOptionType5& from) {
1229
- CopyFrom(from);
1230
- return *this;
1231
- }
1232
-
1233
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1234
- return _unknown_fields_;
1235
- }
1236
-
1237
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1238
- return &_unknown_fields_;
1239
- }
1240
-
1241
- static const ::google::protobuf::Descriptor* descriptor();
1242
- static const ComplexOptionType3_ComplexOptionType5& default_instance();
1243
-
1244
- void Swap(ComplexOptionType3_ComplexOptionType5* other);
1245
-
1246
- // implements Message ----------------------------------------------
1247
-
1248
- ComplexOptionType3_ComplexOptionType5* New() const;
1249
- void CopyFrom(const ::google::protobuf::Message& from);
1250
- void MergeFrom(const ::google::protobuf::Message& from);
1251
- void CopyFrom(const ComplexOptionType3_ComplexOptionType5& from);
1252
- void MergeFrom(const ComplexOptionType3_ComplexOptionType5& from);
1253
- void Clear();
1254
- bool IsInitialized() const;
1255
-
1256
- int ByteSize() const;
1257
- bool MergePartialFromCodedStream(
1258
- ::google::protobuf::io::CodedInputStream* input);
1259
- void SerializeWithCachedSizes(
1260
- ::google::protobuf::io::CodedOutputStream* output) const;
1261
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1262
- int GetCachedSize() const { return _cached_size_; }
1263
- private:
1264
- void SharedCtor();
1265
- void SharedDtor();
1266
- void SetCachedSize(int size) const;
1267
- public:
1268
-
1269
- ::google::protobuf::Metadata GetMetadata() const;
1270
-
1271
- // nested types ----------------------------------------------------
1272
-
1273
- // accessors -------------------------------------------------------
1274
-
1275
- // optional int32 plugh = 3;
1276
- inline bool has_plugh() const;
1277
- inline void clear_plugh();
1278
- static const int kPlughFieldNumber = 3;
1279
- inline ::google::protobuf::int32 plugh() const;
1280
- inline void set_plugh(::google::protobuf::int32 value);
1281
-
1282
- // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
1283
- private:
1284
- inline void set_has_plugh();
1285
- inline void clear_has_plugh();
1286
-
1287
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1288
-
1289
- ::google::protobuf::int32 plugh_;
1290
-
1291
- mutable int _cached_size_;
1292
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1293
-
1294
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1295
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1296
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1297
-
1298
- void InitAsDefaultInstance();
1299
- static ComplexOptionType3_ComplexOptionType5* default_instance_;
1300
- };
1301
- // -------------------------------------------------------------------
1302
-
1303
- class ComplexOptionType3 : public ::google::protobuf::Message {
1304
- public:
1305
- ComplexOptionType3();
1306
- virtual ~ComplexOptionType3();
1307
-
1308
- ComplexOptionType3(const ComplexOptionType3& from);
1309
-
1310
- inline ComplexOptionType3& operator=(const ComplexOptionType3& from) {
1311
- CopyFrom(from);
1312
- return *this;
1313
- }
1314
-
1315
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1316
- return _unknown_fields_;
1317
- }
1318
-
1319
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1320
- return &_unknown_fields_;
1321
- }
1322
-
1323
- static const ::google::protobuf::Descriptor* descriptor();
1324
- static const ComplexOptionType3& default_instance();
1325
-
1326
- void Swap(ComplexOptionType3* other);
1327
-
1328
- // implements Message ----------------------------------------------
1329
-
1330
- ComplexOptionType3* New() const;
1331
- void CopyFrom(const ::google::protobuf::Message& from);
1332
- void MergeFrom(const ::google::protobuf::Message& from);
1333
- void CopyFrom(const ComplexOptionType3& from);
1334
- void MergeFrom(const ComplexOptionType3& from);
1335
- void Clear();
1336
- bool IsInitialized() const;
1337
-
1338
- int ByteSize() const;
1339
- bool MergePartialFromCodedStream(
1340
- ::google::protobuf::io::CodedInputStream* input);
1341
- void SerializeWithCachedSizes(
1342
- ::google::protobuf::io::CodedOutputStream* output) const;
1343
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1344
- int GetCachedSize() const { return _cached_size_; }
1345
- private:
1346
- void SharedCtor();
1347
- void SharedDtor();
1348
- void SetCachedSize(int size) const;
1349
- public:
1350
-
1351
- ::google::protobuf::Metadata GetMetadata() const;
1352
-
1353
- // nested types ----------------------------------------------------
1354
-
1355
- typedef ComplexOptionType3_ComplexOptionType5 ComplexOptionType5;
1356
-
1357
- // accessors -------------------------------------------------------
1358
-
1359
- // optional int32 qux = 1;
1360
- inline bool has_qux() const;
1361
- inline void clear_qux();
1362
- static const int kQuxFieldNumber = 1;
1363
- inline ::google::protobuf::int32 qux() const;
1364
- inline void set_qux(::google::protobuf::int32 value);
1365
-
1366
- // optional group ComplexOptionType5 = 2 {
1367
- inline bool has_complexoptiontype5() const;
1368
- inline void clear_complexoptiontype5();
1369
- static const int kComplexoptiontype5FieldNumber = 2;
1370
- inline const ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5& complexoptiontype5() const;
1371
- inline ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* mutable_complexoptiontype5();
1372
- inline ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* release_complexoptiontype5();
1373
-
1374
- // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType3)
1375
- private:
1376
- inline void set_has_qux();
1377
- inline void clear_has_qux();
1378
- inline void set_has_complexoptiontype5();
1379
- inline void clear_has_complexoptiontype5();
1380
-
1381
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1382
-
1383
- ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* complexoptiontype5_;
1384
- ::google::protobuf::int32 qux_;
1385
-
1386
- mutable int _cached_size_;
1387
- ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
1388
-
1389
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1390
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1391
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1392
-
1393
- void InitAsDefaultInstance();
1394
- static ComplexOptionType3* default_instance_;
1395
- };
1396
- // -------------------------------------------------------------------
1397
-
1398
- class ComplexOpt6 : public ::google::protobuf::Message {
1399
- public:
1400
- ComplexOpt6();
1401
- virtual ~ComplexOpt6();
1402
-
1403
- ComplexOpt6(const ComplexOpt6& from);
1404
-
1405
- inline ComplexOpt6& operator=(const ComplexOpt6& from) {
1406
- CopyFrom(from);
1407
- return *this;
1408
- }
1409
-
1410
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1411
- return _unknown_fields_;
1412
- }
1413
-
1414
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1415
- return &_unknown_fields_;
1416
- }
1417
-
1418
- static const ::google::protobuf::Descriptor* descriptor();
1419
- static const ComplexOpt6& default_instance();
1420
-
1421
- void Swap(ComplexOpt6* other);
1422
-
1423
- // implements Message ----------------------------------------------
1424
-
1425
- ComplexOpt6* New() const;
1426
- void CopyFrom(const ::google::protobuf::Message& from);
1427
- void MergeFrom(const ::google::protobuf::Message& from);
1428
- void CopyFrom(const ComplexOpt6& from);
1429
- void MergeFrom(const ComplexOpt6& from);
1430
- void Clear();
1431
- bool IsInitialized() const;
1432
-
1433
- int ByteSize() const;
1434
- bool MergePartialFromCodedStream(
1435
- ::google::protobuf::io::CodedInputStream* input);
1436
- void SerializeWithCachedSizes(
1437
- ::google::protobuf::io::CodedOutputStream* output) const;
1438
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1439
- int GetCachedSize() const { return _cached_size_; }
1440
- private:
1441
- void SharedCtor();
1442
- void SharedDtor();
1443
- void SetCachedSize(int size) const;
1444
- public:
1445
-
1446
- ::google::protobuf::Metadata GetMetadata() const;
1447
-
1448
- // nested types ----------------------------------------------------
1449
-
1450
- // accessors -------------------------------------------------------
1451
-
1452
- // optional int32 xyzzy = 7593951;
1453
- inline bool has_xyzzy() const;
1454
- inline void clear_xyzzy();
1455
- static const int kXyzzyFieldNumber = 7593951;
1456
- inline ::google::protobuf::int32 xyzzy() const;
1457
- inline void set_xyzzy(::google::protobuf::int32 value);
1458
-
1459
- // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOpt6)
1460
- private:
1461
- inline void set_has_xyzzy();
1462
- inline void clear_has_xyzzy();
1463
-
1464
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1465
-
1466
- ::google::protobuf::int32 xyzzy_;
1467
-
1468
- mutable int _cached_size_;
1469
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1470
-
1471
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1472
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1473
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1474
-
1475
- void InitAsDefaultInstance();
1476
- static ComplexOpt6* default_instance_;
1477
- };
1478
- // -------------------------------------------------------------------
1479
-
1480
- class VariousComplexOptions : public ::google::protobuf::Message {
1481
- public:
1482
- VariousComplexOptions();
1483
- virtual ~VariousComplexOptions();
1484
-
1485
- VariousComplexOptions(const VariousComplexOptions& from);
1486
-
1487
- inline VariousComplexOptions& operator=(const VariousComplexOptions& from) {
1488
- CopyFrom(from);
1489
- return *this;
1490
- }
1491
-
1492
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1493
- return _unknown_fields_;
1494
- }
1495
-
1496
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1497
- return &_unknown_fields_;
1498
- }
1499
-
1500
- static const ::google::protobuf::Descriptor* descriptor();
1501
- static const VariousComplexOptions& default_instance();
1502
-
1503
- void Swap(VariousComplexOptions* other);
1504
-
1505
- // implements Message ----------------------------------------------
1506
-
1507
- VariousComplexOptions* New() const;
1508
- void CopyFrom(const ::google::protobuf::Message& from);
1509
- void MergeFrom(const ::google::protobuf::Message& from);
1510
- void CopyFrom(const VariousComplexOptions& from);
1511
- void MergeFrom(const VariousComplexOptions& from);
1512
- void Clear();
1513
- bool IsInitialized() const;
1514
-
1515
- int ByteSize() const;
1516
- bool MergePartialFromCodedStream(
1517
- ::google::protobuf::io::CodedInputStream* input);
1518
- void SerializeWithCachedSizes(
1519
- ::google::protobuf::io::CodedOutputStream* output) const;
1520
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1521
- int GetCachedSize() const { return _cached_size_; }
1522
- private:
1523
- void SharedCtor();
1524
- void SharedDtor();
1525
- void SetCachedSize(int size) const;
1526
- public:
1527
-
1528
- ::google::protobuf::Metadata GetMetadata() const;
1529
-
1530
- // nested types ----------------------------------------------------
1531
-
1532
- // accessors -------------------------------------------------------
1533
-
1534
- // @@protoc_insertion_point(class_scope:protobuf_unittest.VariousComplexOptions)
1535
- private:
1536
-
1537
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1538
-
1539
-
1540
- mutable int _cached_size_;
1541
- ::google::protobuf::uint32 _has_bits_[1];
1542
-
1543
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1544
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1545
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1546
-
1547
- void InitAsDefaultInstance();
1548
- static VariousComplexOptions* default_instance_;
1549
- };
1550
- // -------------------------------------------------------------------
1551
-
1552
- class AggregateMessageSet : public ::google::protobuf::Message {
1553
- public:
1554
- AggregateMessageSet();
1555
- virtual ~AggregateMessageSet();
1556
-
1557
- AggregateMessageSet(const AggregateMessageSet& from);
1558
-
1559
- inline AggregateMessageSet& operator=(const AggregateMessageSet& from) {
1560
- CopyFrom(from);
1561
- return *this;
1562
- }
1563
-
1564
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1565
- return _unknown_fields_;
1566
- }
1567
-
1568
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1569
- return &_unknown_fields_;
1570
- }
1571
-
1572
- static const ::google::protobuf::Descriptor* descriptor();
1573
- static const AggregateMessageSet& default_instance();
1574
-
1575
- void Swap(AggregateMessageSet* other);
1576
-
1577
- // implements Message ----------------------------------------------
1578
-
1579
- AggregateMessageSet* New() const;
1580
- void CopyFrom(const ::google::protobuf::Message& from);
1581
- void MergeFrom(const ::google::protobuf::Message& from);
1582
- void CopyFrom(const AggregateMessageSet& from);
1583
- void MergeFrom(const AggregateMessageSet& from);
1584
- void Clear();
1585
- bool IsInitialized() const;
1586
-
1587
- int ByteSize() const;
1588
- bool MergePartialFromCodedStream(
1589
- ::google::protobuf::io::CodedInputStream* input);
1590
- void SerializeWithCachedSizes(
1591
- ::google::protobuf::io::CodedOutputStream* output) const;
1592
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1593
- int GetCachedSize() const { return _cached_size_; }
1594
- private:
1595
- void SharedCtor();
1596
- void SharedDtor();
1597
- void SetCachedSize(int size) const;
1598
- public:
1599
-
1600
- ::google::protobuf::Metadata GetMetadata() const;
1601
-
1602
- // nested types ----------------------------------------------------
1603
-
1604
- // accessors -------------------------------------------------------
1605
-
1606
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(AggregateMessageSet)
1607
- // @@protoc_insertion_point(class_scope:protobuf_unittest.AggregateMessageSet)
1608
- private:
1609
-
1610
- ::google::protobuf::internal::ExtensionSet _extensions_;
1611
-
1612
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1613
-
1614
-
1615
- mutable int _cached_size_;
1616
- ::google::protobuf::uint32 _has_bits_[1];
1617
-
1618
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1619
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1620
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1621
-
1622
- void InitAsDefaultInstance();
1623
- static AggregateMessageSet* default_instance_;
1624
- };
1625
- // -------------------------------------------------------------------
1626
-
1627
- class AggregateMessageSetElement : public ::google::protobuf::Message {
1628
- public:
1629
- AggregateMessageSetElement();
1630
- virtual ~AggregateMessageSetElement();
1631
-
1632
- AggregateMessageSetElement(const AggregateMessageSetElement& from);
1633
-
1634
- inline AggregateMessageSetElement& operator=(const AggregateMessageSetElement& from) {
1635
- CopyFrom(from);
1636
- return *this;
1637
- }
1638
-
1639
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1640
- return _unknown_fields_;
1641
- }
1642
-
1643
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1644
- return &_unknown_fields_;
1645
- }
1646
-
1647
- static const ::google::protobuf::Descriptor* descriptor();
1648
- static const AggregateMessageSetElement& default_instance();
1649
-
1650
- void Swap(AggregateMessageSetElement* other);
1651
-
1652
- // implements Message ----------------------------------------------
1653
-
1654
- AggregateMessageSetElement* New() const;
1655
- void CopyFrom(const ::google::protobuf::Message& from);
1656
- void MergeFrom(const ::google::protobuf::Message& from);
1657
- void CopyFrom(const AggregateMessageSetElement& from);
1658
- void MergeFrom(const AggregateMessageSetElement& from);
1659
- void Clear();
1660
- bool IsInitialized() const;
1661
-
1662
- int ByteSize() const;
1663
- bool MergePartialFromCodedStream(
1664
- ::google::protobuf::io::CodedInputStream* input);
1665
- void SerializeWithCachedSizes(
1666
- ::google::protobuf::io::CodedOutputStream* output) const;
1667
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1668
- int GetCachedSize() const { return _cached_size_; }
1669
- private:
1670
- void SharedCtor();
1671
- void SharedDtor();
1672
- void SetCachedSize(int size) const;
1673
- public:
1674
-
1675
- ::google::protobuf::Metadata GetMetadata() const;
1676
-
1677
- // nested types ----------------------------------------------------
1678
-
1679
- // accessors -------------------------------------------------------
1680
-
1681
- // optional string s = 1;
1682
- inline bool has_s() const;
1683
- inline void clear_s();
1684
- static const int kSFieldNumber = 1;
1685
- inline const ::std::string& s() const;
1686
- inline void set_s(const ::std::string& value);
1687
- inline void set_s(const char* value);
1688
- inline void set_s(const char* value, size_t size);
1689
- inline ::std::string* mutable_s();
1690
- inline ::std::string* release_s();
1691
-
1692
- static const int kMessageSetExtensionFieldNumber = 15447542;
1693
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::AggregateMessageSet,
1694
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::AggregateMessageSetElement >, 11, false >
1695
- message_set_extension;
1696
- // @@protoc_insertion_point(class_scope:protobuf_unittest.AggregateMessageSetElement)
1697
- private:
1698
- inline void set_has_s();
1699
- inline void clear_has_s();
1700
-
1701
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1702
-
1703
- ::std::string* s_;
1704
-
1705
- mutable int _cached_size_;
1706
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1707
-
1708
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1709
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1710
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1711
-
1712
- void InitAsDefaultInstance();
1713
- static AggregateMessageSetElement* default_instance_;
1714
- };
1715
- // -------------------------------------------------------------------
1716
-
1717
- class Aggregate : public ::google::protobuf::Message {
1718
- public:
1719
- Aggregate();
1720
- virtual ~Aggregate();
1721
-
1722
- Aggregate(const Aggregate& from);
1723
-
1724
- inline Aggregate& operator=(const Aggregate& from) {
1725
- CopyFrom(from);
1726
- return *this;
1727
- }
1728
-
1729
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1730
- return _unknown_fields_;
1731
- }
1732
-
1733
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1734
- return &_unknown_fields_;
1735
- }
1736
-
1737
- static const ::google::protobuf::Descriptor* descriptor();
1738
- static const Aggregate& default_instance();
1739
-
1740
- void Swap(Aggregate* other);
1741
-
1742
- // implements Message ----------------------------------------------
1743
-
1744
- Aggregate* New() const;
1745
- void CopyFrom(const ::google::protobuf::Message& from);
1746
- void MergeFrom(const ::google::protobuf::Message& from);
1747
- void CopyFrom(const Aggregate& from);
1748
- void MergeFrom(const Aggregate& from);
1749
- void Clear();
1750
- bool IsInitialized() const;
1751
-
1752
- int ByteSize() const;
1753
- bool MergePartialFromCodedStream(
1754
- ::google::protobuf::io::CodedInputStream* input);
1755
- void SerializeWithCachedSizes(
1756
- ::google::protobuf::io::CodedOutputStream* output) const;
1757
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1758
- int GetCachedSize() const { return _cached_size_; }
1759
- private:
1760
- void SharedCtor();
1761
- void SharedDtor();
1762
- void SetCachedSize(int size) const;
1763
- public:
1764
-
1765
- ::google::protobuf::Metadata GetMetadata() const;
1766
-
1767
- // nested types ----------------------------------------------------
1768
-
1769
- // accessors -------------------------------------------------------
1770
-
1771
- // optional int32 i = 1;
1772
- inline bool has_i() const;
1773
- inline void clear_i();
1774
- static const int kIFieldNumber = 1;
1775
- inline ::google::protobuf::int32 i() const;
1776
- inline void set_i(::google::protobuf::int32 value);
1777
-
1778
- // optional string s = 2;
1779
- inline bool has_s() const;
1780
- inline void clear_s();
1781
- static const int kSFieldNumber = 2;
1782
- inline const ::std::string& s() const;
1783
- inline void set_s(const ::std::string& value);
1784
- inline void set_s(const char* value);
1785
- inline void set_s(const char* value, size_t size);
1786
- inline ::std::string* mutable_s();
1787
- inline ::std::string* release_s();
1788
-
1789
- // optional .protobuf_unittest.Aggregate sub = 3;
1790
- inline bool has_sub() const;
1791
- inline void clear_sub();
1792
- static const int kSubFieldNumber = 3;
1793
- inline const ::protobuf_unittest::Aggregate& sub() const;
1794
- inline ::protobuf_unittest::Aggregate* mutable_sub();
1795
- inline ::protobuf_unittest::Aggregate* release_sub();
1796
-
1797
- // optional .google.protobuf.FileOptions file = 4;
1798
- inline bool has_file() const;
1799
- inline void clear_file();
1800
- static const int kFileFieldNumber = 4;
1801
- inline const ::google::protobuf::FileOptions& file() const;
1802
- inline ::google::protobuf::FileOptions* mutable_file();
1803
- inline ::google::protobuf::FileOptions* release_file();
1804
-
1805
- // optional .protobuf_unittest.AggregateMessageSet mset = 5;
1806
- inline bool has_mset() const;
1807
- inline void clear_mset();
1808
- static const int kMsetFieldNumber = 5;
1809
- inline const ::protobuf_unittest::AggregateMessageSet& mset() const;
1810
- inline ::protobuf_unittest::AggregateMessageSet* mutable_mset();
1811
- inline ::protobuf_unittest::AggregateMessageSet* release_mset();
1812
-
1813
- static const int kNestedFieldNumber = 15476903;
1814
- static ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
1815
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
1816
- nested;
1817
- // @@protoc_insertion_point(class_scope:protobuf_unittest.Aggregate)
1818
- private:
1819
- inline void set_has_i();
1820
- inline void clear_has_i();
1821
- inline void set_has_s();
1822
- inline void clear_has_s();
1823
- inline void set_has_sub();
1824
- inline void clear_has_sub();
1825
- inline void set_has_file();
1826
- inline void clear_has_file();
1827
- inline void set_has_mset();
1828
- inline void clear_has_mset();
1829
-
1830
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1831
-
1832
- ::std::string* s_;
1833
- ::protobuf_unittest::Aggregate* sub_;
1834
- ::google::protobuf::FileOptions* file_;
1835
- ::protobuf_unittest::AggregateMessageSet* mset_;
1836
- ::google::protobuf::int32 i_;
1837
-
1838
- mutable int _cached_size_;
1839
- ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
1840
-
1841
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1842
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1843
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1844
-
1845
- void InitAsDefaultInstance();
1846
- static Aggregate* default_instance_;
1847
- };
1848
- // -------------------------------------------------------------------
1849
-
1850
- class AggregateMessage : public ::google::protobuf::Message {
1851
- public:
1852
- AggregateMessage();
1853
- virtual ~AggregateMessage();
1854
-
1855
- AggregateMessage(const AggregateMessage& from);
1856
-
1857
- inline AggregateMessage& operator=(const AggregateMessage& from) {
1858
- CopyFrom(from);
1859
- return *this;
1860
- }
1861
-
1862
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1863
- return _unknown_fields_;
1864
- }
1865
-
1866
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1867
- return &_unknown_fields_;
1868
- }
1869
-
1870
- static const ::google::protobuf::Descriptor* descriptor();
1871
- static const AggregateMessage& default_instance();
1872
-
1873
- void Swap(AggregateMessage* other);
1874
-
1875
- // implements Message ----------------------------------------------
1876
-
1877
- AggregateMessage* New() const;
1878
- void CopyFrom(const ::google::protobuf::Message& from);
1879
- void MergeFrom(const ::google::protobuf::Message& from);
1880
- void CopyFrom(const AggregateMessage& from);
1881
- void MergeFrom(const AggregateMessage& from);
1882
- void Clear();
1883
- bool IsInitialized() const;
1884
-
1885
- int ByteSize() const;
1886
- bool MergePartialFromCodedStream(
1887
- ::google::protobuf::io::CodedInputStream* input);
1888
- void SerializeWithCachedSizes(
1889
- ::google::protobuf::io::CodedOutputStream* output) const;
1890
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1891
- int GetCachedSize() const { return _cached_size_; }
1892
- private:
1893
- void SharedCtor();
1894
- void SharedDtor();
1895
- void SetCachedSize(int size) const;
1896
- public:
1897
-
1898
- ::google::protobuf::Metadata GetMetadata() const;
1899
-
1900
- // nested types ----------------------------------------------------
1901
-
1902
- // accessors -------------------------------------------------------
1903
-
1904
- // optional int32 fieldname = 1;
1905
- inline bool has_fieldname() const;
1906
- inline void clear_fieldname();
1907
- static const int kFieldnameFieldNumber = 1;
1908
- inline ::google::protobuf::int32 fieldname() const;
1909
- inline void set_fieldname(::google::protobuf::int32 value);
1910
-
1911
- // @@protoc_insertion_point(class_scope:protobuf_unittest.AggregateMessage)
1912
- private:
1913
- inline void set_has_fieldname();
1914
- inline void clear_has_fieldname();
1915
-
1916
- ::google::protobuf::UnknownFieldSet _unknown_fields_;
1917
-
1918
- ::google::protobuf::int32 fieldname_;
1919
-
1920
- mutable int _cached_size_;
1921
- ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1922
-
1923
- friend void protobuf_AddDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1924
- friend void protobuf_AssignDesc_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1925
- friend void protobuf_ShutdownFile_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto();
1926
-
1927
- void InitAsDefaultInstance();
1928
- static AggregateMessage* default_instance_;
1929
- };
1930
- // ===================================================================
1931
-
1932
- class TestServiceWithCustomOptions_Stub;
1933
-
1934
- class TestServiceWithCustomOptions : public ::google::protobuf::Service {
1935
- protected:
1936
- // This class should be treated as an abstract interface.
1937
- inline TestServiceWithCustomOptions() {};
1938
- public:
1939
- virtual ~TestServiceWithCustomOptions();
1940
-
1941
- typedef TestServiceWithCustomOptions_Stub Stub;
1942
-
1943
- static const ::google::protobuf::ServiceDescriptor* descriptor();
1944
-
1945
- virtual void Foo(::google::protobuf::RpcController* controller,
1946
- const ::protobuf_unittest::CustomOptionFooRequest* request,
1947
- ::protobuf_unittest::CustomOptionFooResponse* response,
1948
- ::google::protobuf::Closure* done);
1949
-
1950
- // implements Service ----------------------------------------------
1951
-
1952
- const ::google::protobuf::ServiceDescriptor* GetDescriptor();
1953
- void CallMethod(const ::google::protobuf::MethodDescriptor* method,
1954
- ::google::protobuf::RpcController* controller,
1955
- const ::google::protobuf::Message* request,
1956
- ::google::protobuf::Message* response,
1957
- ::google::protobuf::Closure* done);
1958
- const ::google::protobuf::Message& GetRequestPrototype(
1959
- const ::google::protobuf::MethodDescriptor* method) const;
1960
- const ::google::protobuf::Message& GetResponsePrototype(
1961
- const ::google::protobuf::MethodDescriptor* method) const;
1962
-
1963
- private:
1964
- GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TestServiceWithCustomOptions);
1965
- };
1966
-
1967
- class TestServiceWithCustomOptions_Stub : public TestServiceWithCustomOptions {
1968
- public:
1969
- TestServiceWithCustomOptions_Stub(::google::protobuf::RpcChannel* channel);
1970
- TestServiceWithCustomOptions_Stub(::google::protobuf::RpcChannel* channel,
1971
- ::google::protobuf::Service::ChannelOwnership ownership);
1972
- ~TestServiceWithCustomOptions_Stub();
1973
-
1974
- inline ::google::protobuf::RpcChannel* channel() { return channel_; }
1975
-
1976
- // implements TestServiceWithCustomOptions ------------------------------------------
1977
-
1978
- void Foo(::google::protobuf::RpcController* controller,
1979
- const ::protobuf_unittest::CustomOptionFooRequest* request,
1980
- ::protobuf_unittest::CustomOptionFooResponse* response,
1981
- ::google::protobuf::Closure* done);
1982
- private:
1983
- ::google::protobuf::RpcChannel* channel_;
1984
- bool owns_channel_;
1985
- GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TestServiceWithCustomOptions_Stub);
1986
- };
1987
-
1988
-
1989
- // -------------------------------------------------------------------
1990
-
1991
- class AggregateService_Stub;
1992
-
1993
- class AggregateService : public ::google::protobuf::Service {
1994
- protected:
1995
- // This class should be treated as an abstract interface.
1996
- inline AggregateService() {};
1997
- public:
1998
- virtual ~AggregateService();
1999
-
2000
- typedef AggregateService_Stub Stub;
2001
-
2002
- static const ::google::protobuf::ServiceDescriptor* descriptor();
2003
-
2004
- virtual void Method(::google::protobuf::RpcController* controller,
2005
- const ::protobuf_unittest::AggregateMessage* request,
2006
- ::protobuf_unittest::AggregateMessage* response,
2007
- ::google::protobuf::Closure* done);
2008
-
2009
- // implements Service ----------------------------------------------
2010
-
2011
- const ::google::protobuf::ServiceDescriptor* GetDescriptor();
2012
- void CallMethod(const ::google::protobuf::MethodDescriptor* method,
2013
- ::google::protobuf::RpcController* controller,
2014
- const ::google::protobuf::Message* request,
2015
- ::google::protobuf::Message* response,
2016
- ::google::protobuf::Closure* done);
2017
- const ::google::protobuf::Message& GetRequestPrototype(
2018
- const ::google::protobuf::MethodDescriptor* method) const;
2019
- const ::google::protobuf::Message& GetResponsePrototype(
2020
- const ::google::protobuf::MethodDescriptor* method) const;
2021
-
2022
- private:
2023
- GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(AggregateService);
2024
- };
2025
-
2026
- class AggregateService_Stub : public AggregateService {
2027
- public:
2028
- AggregateService_Stub(::google::protobuf::RpcChannel* channel);
2029
- AggregateService_Stub(::google::protobuf::RpcChannel* channel,
2030
- ::google::protobuf::Service::ChannelOwnership ownership);
2031
- ~AggregateService_Stub();
2032
-
2033
- inline ::google::protobuf::RpcChannel* channel() { return channel_; }
2034
-
2035
- // implements AggregateService ------------------------------------------
2036
-
2037
- void Method(::google::protobuf::RpcController* controller,
2038
- const ::protobuf_unittest::AggregateMessage* request,
2039
- ::protobuf_unittest::AggregateMessage* response,
2040
- ::google::protobuf::Closure* done);
2041
- private:
2042
- ::google::protobuf::RpcChannel* channel_;
2043
- bool owns_channel_;
2044
- GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(AggregateService_Stub);
2045
- };
2046
-
2047
-
2048
- // ===================================================================
2049
-
2050
- static const int kFileOpt1FieldNumber = 7736974;
2051
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
2052
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
2053
- file_opt1;
2054
- static const int kMessageOpt1FieldNumber = 7739036;
2055
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2056
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
2057
- message_opt1;
2058
- static const int kFieldOpt1FieldNumber = 7740936;
2059
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
2060
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
2061
- field_opt1;
2062
- static const int kFieldOpt2FieldNumber = 7753913;
2063
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
2064
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
2065
- field_opt2;
2066
- static const int kEnumOpt1FieldNumber = 7753576;
2067
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumOptions,
2068
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
2069
- enum_opt1;
2070
- static const int kEnumValueOpt1FieldNumber = 1560678;
2071
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions,
2072
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
2073
- enum_value_opt1;
2074
- static const int kServiceOpt1FieldNumber = 7887650;
2075
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions,
2076
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
2077
- service_opt1;
2078
- static const int kMethodOpt1FieldNumber = 7890860;
2079
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
2080
- ::google::protobuf::internal::EnumTypeTraits< protobuf_unittest::MethodOpt1, protobuf_unittest::MethodOpt1_IsValid>, 14, false >
2081
- method_opt1;
2082
- static const int kBoolOptFieldNumber = 7706090;
2083
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2084
- ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
2085
- bool_opt;
2086
- static const int kInt32OptFieldNumber = 7705709;
2087
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2088
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
2089
- int32_opt;
2090
- static const int kInt64OptFieldNumber = 7705542;
2091
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2092
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
2093
- int64_opt;
2094
- static const int kUint32OptFieldNumber = 7704880;
2095
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2096
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
2097
- uint32_opt;
2098
- static const int kUint64OptFieldNumber = 7702367;
2099
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2100
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
2101
- uint64_opt;
2102
- static const int kSint32OptFieldNumber = 7701568;
2103
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2104
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
2105
- sint32_opt;
2106
- static const int kSint64OptFieldNumber = 7700863;
2107
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2108
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
2109
- sint64_opt;
2110
- static const int kFixed32OptFieldNumber = 7700307;
2111
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2112
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
2113
- fixed32_opt;
2114
- static const int kFixed64OptFieldNumber = 7700194;
2115
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2116
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
2117
- fixed64_opt;
2118
- static const int kSfixed32OptFieldNumber = 7698645;
2119
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2120
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
2121
- sfixed32_opt;
2122
- static const int kSfixed64OptFieldNumber = 7685475;
2123
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2124
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
2125
- sfixed64_opt;
2126
- static const int kFloatOptFieldNumber = 7675390;
2127
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2128
- ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
2129
- float_opt;
2130
- static const int kDoubleOptFieldNumber = 7673293;
2131
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2132
- ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
2133
- double_opt;
2134
- static const int kStringOptFieldNumber = 7673285;
2135
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2136
- ::google::protobuf::internal::StringTypeTraits, 9, false >
2137
- string_opt;
2138
- static const int kBytesOptFieldNumber = 7673238;
2139
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2140
- ::google::protobuf::internal::StringTypeTraits, 12, false >
2141
- bytes_opt;
2142
- static const int kEnumOptFieldNumber = 7673233;
2143
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2144
- ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType, ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType_IsValid>, 14, false >
2145
- enum_opt;
2146
- static const int kMessageTypeOptFieldNumber = 7665967;
2147
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2148
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::DummyMessageInvalidAsOptionType >, 11, false >
2149
- message_type_opt;
2150
- static const int kQuuxFieldNumber = 7663707;
2151
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType1,
2152
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
2153
- quux;
2154
- static const int kCorgeFieldNumber = 7663442;
2155
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType1,
2156
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType3 >, 11, false >
2157
- corge;
2158
- static const int kGraultFieldNumber = 7650927;
2159
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType2,
2160
- ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
2161
- grault;
2162
- static const int kGarplyFieldNumber = 7649992;
2163
- extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType2,
2164
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType1 >, 11, false >
2165
- garply;
2166
- static const int kComplexOpt1FieldNumber = 7646756;
2167
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2168
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType1 >, 11, false >
2169
- complex_opt1;
2170
- static const int kComplexOpt2FieldNumber = 7636949;
2171
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2172
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType2 >, 11, false >
2173
- complex_opt2;
2174
- static const int kComplexOpt3FieldNumber = 7636463;
2175
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2176
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType3 >, 11, false >
2177
- complex_opt3;
2178
- static const int kComplexopt6FieldNumber = 7595468;
2179
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2180
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOpt6 >, 10, false >
2181
- complexopt6;
2182
- static const int kFileoptFieldNumber = 15478479;
2183
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
2184
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
2185
- fileopt;
2186
- static const int kMsgoptFieldNumber = 15480088;
2187
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
2188
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
2189
- msgopt;
2190
- static const int kFieldoptFieldNumber = 15481374;
2191
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
2192
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
2193
- fieldopt;
2194
- static const int kEnumoptFieldNumber = 15483218;
2195
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumOptions,
2196
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
2197
- enumopt;
2198
- static const int kEnumvaloptFieldNumber = 15486921;
2199
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions,
2200
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
2201
- enumvalopt;
2202
- static const int kServiceoptFieldNumber = 15497145;
2203
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions,
2204
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
2205
- serviceopt;
2206
- static const int kMethodoptFieldNumber = 15512713;
2207
- extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
2208
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
2209
- methodopt;
2210
-
2211
- // ===================================================================
2212
-
2213
- // TestMessageWithCustomOptions
2214
-
2215
- // optional string field1 = 1 [ctype = CORD];
2216
- inline bool TestMessageWithCustomOptions::has_field1() const {
2217
- return (_has_bits_[0] & 0x00000001u) != 0;
2218
- }
2219
- inline void TestMessageWithCustomOptions::set_has_field1() {
2220
- _has_bits_[0] |= 0x00000001u;
2221
- }
2222
- inline void TestMessageWithCustomOptions::clear_has_field1() {
2223
- _has_bits_[0] &= ~0x00000001u;
2224
- }
2225
- inline void TestMessageWithCustomOptions::clear_field1() {
2226
- if (field1_ != &::google::protobuf::internal::kEmptyString) {
2227
- field1_->clear();
2228
- }
2229
- clear_has_field1();
2230
- }
2231
- inline const ::std::string& TestMessageWithCustomOptions::field1() const {
2232
- return *field1_;
2233
- }
2234
- inline void TestMessageWithCustomOptions::set_field1(const ::std::string& value) {
2235
- set_has_field1();
2236
- if (field1_ == &::google::protobuf::internal::kEmptyString) {
2237
- field1_ = new ::std::string;
2238
- }
2239
- field1_->assign(value);
2240
- }
2241
- inline void TestMessageWithCustomOptions::set_field1(const char* value) {
2242
- set_has_field1();
2243
- if (field1_ == &::google::protobuf::internal::kEmptyString) {
2244
- field1_ = new ::std::string;
2245
- }
2246
- field1_->assign(value);
2247
- }
2248
- inline void TestMessageWithCustomOptions::set_field1(const char* value, size_t size) {
2249
- set_has_field1();
2250
- if (field1_ == &::google::protobuf::internal::kEmptyString) {
2251
- field1_ = new ::std::string;
2252
- }
2253
- field1_->assign(reinterpret_cast<const char*>(value), size);
2254
- }
2255
- inline ::std::string* TestMessageWithCustomOptions::mutable_field1() {
2256
- set_has_field1();
2257
- if (field1_ == &::google::protobuf::internal::kEmptyString) {
2258
- field1_ = new ::std::string;
2259
- }
2260
- return field1_;
2261
- }
2262
- inline ::std::string* TestMessageWithCustomOptions::release_field1() {
2263
- clear_has_field1();
2264
- if (field1_ == &::google::protobuf::internal::kEmptyString) {
2265
- return NULL;
2266
- } else {
2267
- ::std::string* temp = field1_;
2268
- field1_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
2269
- return temp;
2270
- }
2271
- }
2272
-
2273
- // -------------------------------------------------------------------
2274
-
2275
- // CustomOptionFooRequest
2276
-
2277
- // -------------------------------------------------------------------
2278
-
2279
- // CustomOptionFooResponse
2280
-
2281
- // -------------------------------------------------------------------
2282
-
2283
- // DummyMessageContainingEnum
2284
-
2285
- // -------------------------------------------------------------------
2286
-
2287
- // DummyMessageInvalidAsOptionType
2288
-
2289
- // -------------------------------------------------------------------
2290
-
2291
- // CustomOptionMinIntegerValues
2292
-
2293
- // -------------------------------------------------------------------
2294
-
2295
- // CustomOptionMaxIntegerValues
2296
-
2297
- // -------------------------------------------------------------------
2298
-
2299
- // CustomOptionOtherValues
2300
-
2301
- // -------------------------------------------------------------------
2302
-
2303
- // SettingRealsFromPositiveInts
2304
-
2305
- // -------------------------------------------------------------------
2306
-
2307
- // SettingRealsFromNegativeInts
2308
-
2309
- // -------------------------------------------------------------------
2310
-
2311
- // ComplexOptionType1
2312
-
2313
- // optional int32 foo = 1;
2314
- inline bool ComplexOptionType1::has_foo() const {
2315
- return (_has_bits_[0] & 0x00000001u) != 0;
2316
- }
2317
- inline void ComplexOptionType1::set_has_foo() {
2318
- _has_bits_[0] |= 0x00000001u;
2319
- }
2320
- inline void ComplexOptionType1::clear_has_foo() {
2321
- _has_bits_[0] &= ~0x00000001u;
2322
- }
2323
- inline void ComplexOptionType1::clear_foo() {
2324
- foo_ = 0;
2325
- clear_has_foo();
2326
- }
2327
- inline ::google::protobuf::int32 ComplexOptionType1::foo() const {
2328
- return foo_;
2329
- }
2330
- inline void ComplexOptionType1::set_foo(::google::protobuf::int32 value) {
2331
- set_has_foo();
2332
- foo_ = value;
2333
- }
2334
-
2335
- // optional int32 foo2 = 2;
2336
- inline bool ComplexOptionType1::has_foo2() const {
2337
- return (_has_bits_[0] & 0x00000002u) != 0;
2338
- }
2339
- inline void ComplexOptionType1::set_has_foo2() {
2340
- _has_bits_[0] |= 0x00000002u;
2341
- }
2342
- inline void ComplexOptionType1::clear_has_foo2() {
2343
- _has_bits_[0] &= ~0x00000002u;
2344
- }
2345
- inline void ComplexOptionType1::clear_foo2() {
2346
- foo2_ = 0;
2347
- clear_has_foo2();
2348
- }
2349
- inline ::google::protobuf::int32 ComplexOptionType1::foo2() const {
2350
- return foo2_;
2351
- }
2352
- inline void ComplexOptionType1::set_foo2(::google::protobuf::int32 value) {
2353
- set_has_foo2();
2354
- foo2_ = value;
2355
- }
2356
-
2357
- // optional int32 foo3 = 3;
2358
- inline bool ComplexOptionType1::has_foo3() const {
2359
- return (_has_bits_[0] & 0x00000004u) != 0;
2360
- }
2361
- inline void ComplexOptionType1::set_has_foo3() {
2362
- _has_bits_[0] |= 0x00000004u;
2363
- }
2364
- inline void ComplexOptionType1::clear_has_foo3() {
2365
- _has_bits_[0] &= ~0x00000004u;
2366
- }
2367
- inline void ComplexOptionType1::clear_foo3() {
2368
- foo3_ = 0;
2369
- clear_has_foo3();
2370
- }
2371
- inline ::google::protobuf::int32 ComplexOptionType1::foo3() const {
2372
- return foo3_;
2373
- }
2374
- inline void ComplexOptionType1::set_foo3(::google::protobuf::int32 value) {
2375
- set_has_foo3();
2376
- foo3_ = value;
2377
- }
2378
-
2379
- // -------------------------------------------------------------------
2380
-
2381
- // ComplexOptionType2_ComplexOptionType4
2382
-
2383
- // optional int32 waldo = 1;
2384
- inline bool ComplexOptionType2_ComplexOptionType4::has_waldo() const {
2385
- return (_has_bits_[0] & 0x00000001u) != 0;
2386
- }
2387
- inline void ComplexOptionType2_ComplexOptionType4::set_has_waldo() {
2388
- _has_bits_[0] |= 0x00000001u;
2389
- }
2390
- inline void ComplexOptionType2_ComplexOptionType4::clear_has_waldo() {
2391
- _has_bits_[0] &= ~0x00000001u;
2392
- }
2393
- inline void ComplexOptionType2_ComplexOptionType4::clear_waldo() {
2394
- waldo_ = 0;
2395
- clear_has_waldo();
2396
- }
2397
- inline ::google::protobuf::int32 ComplexOptionType2_ComplexOptionType4::waldo() const {
2398
- return waldo_;
2399
- }
2400
- inline void ComplexOptionType2_ComplexOptionType4::set_waldo(::google::protobuf::int32 value) {
2401
- set_has_waldo();
2402
- waldo_ = value;
2403
- }
2404
-
2405
- // -------------------------------------------------------------------
2406
-
2407
- // ComplexOptionType2
2408
-
2409
- // optional .protobuf_unittest.ComplexOptionType1 bar = 1;
2410
- inline bool ComplexOptionType2::has_bar() const {
2411
- return (_has_bits_[0] & 0x00000001u) != 0;
2412
- }
2413
- inline void ComplexOptionType2::set_has_bar() {
2414
- _has_bits_[0] |= 0x00000001u;
2415
- }
2416
- inline void ComplexOptionType2::clear_has_bar() {
2417
- _has_bits_[0] &= ~0x00000001u;
2418
- }
2419
- inline void ComplexOptionType2::clear_bar() {
2420
- if (bar_ != NULL) bar_->::protobuf_unittest::ComplexOptionType1::Clear();
2421
- clear_has_bar();
2422
- }
2423
- inline const ::protobuf_unittest::ComplexOptionType1& ComplexOptionType2::bar() const {
2424
- return bar_ != NULL ? *bar_ : *default_instance_->bar_;
2425
- }
2426
- inline ::protobuf_unittest::ComplexOptionType1* ComplexOptionType2::mutable_bar() {
2427
- set_has_bar();
2428
- if (bar_ == NULL) bar_ = new ::protobuf_unittest::ComplexOptionType1;
2429
- return bar_;
2430
- }
2431
- inline ::protobuf_unittest::ComplexOptionType1* ComplexOptionType2::release_bar() {
2432
- clear_has_bar();
2433
- ::protobuf_unittest::ComplexOptionType1* temp = bar_;
2434
- bar_ = NULL;
2435
- return temp;
2436
- }
2437
-
2438
- // optional int32 baz = 2;
2439
- inline bool ComplexOptionType2::has_baz() const {
2440
- return (_has_bits_[0] & 0x00000002u) != 0;
2441
- }
2442
- inline void ComplexOptionType2::set_has_baz() {
2443
- _has_bits_[0] |= 0x00000002u;
2444
- }
2445
- inline void ComplexOptionType2::clear_has_baz() {
2446
- _has_bits_[0] &= ~0x00000002u;
2447
- }
2448
- inline void ComplexOptionType2::clear_baz() {
2449
- baz_ = 0;
2450
- clear_has_baz();
2451
- }
2452
- inline ::google::protobuf::int32 ComplexOptionType2::baz() const {
2453
- return baz_;
2454
- }
2455
- inline void ComplexOptionType2::set_baz(::google::protobuf::int32 value) {
2456
- set_has_baz();
2457
- baz_ = value;
2458
- }
2459
-
2460
- // optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3;
2461
- inline bool ComplexOptionType2::has_fred() const {
2462
- return (_has_bits_[0] & 0x00000004u) != 0;
2463
- }
2464
- inline void ComplexOptionType2::set_has_fred() {
2465
- _has_bits_[0] |= 0x00000004u;
2466
- }
2467
- inline void ComplexOptionType2::clear_has_fred() {
2468
- _has_bits_[0] &= ~0x00000004u;
2469
- }
2470
- inline void ComplexOptionType2::clear_fred() {
2471
- if (fred_ != NULL) fred_->::protobuf_unittest::ComplexOptionType2_ComplexOptionType4::Clear();
2472
- clear_has_fred();
2473
- }
2474
- inline const ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4& ComplexOptionType2::fred() const {
2475
- return fred_ != NULL ? *fred_ : *default_instance_->fred_;
2476
- }
2477
- inline ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* ComplexOptionType2::mutable_fred() {
2478
- set_has_fred();
2479
- if (fred_ == NULL) fred_ = new ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4;
2480
- return fred_;
2481
- }
2482
- inline ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* ComplexOptionType2::release_fred() {
2483
- clear_has_fred();
2484
- ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* temp = fred_;
2485
- fred_ = NULL;
2486
- return temp;
2487
- }
2488
-
2489
- // -------------------------------------------------------------------
2490
-
2491
- // ComplexOptionType3_ComplexOptionType5
2492
-
2493
- // optional int32 plugh = 3;
2494
- inline bool ComplexOptionType3_ComplexOptionType5::has_plugh() const {
2495
- return (_has_bits_[0] & 0x00000001u) != 0;
2496
- }
2497
- inline void ComplexOptionType3_ComplexOptionType5::set_has_plugh() {
2498
- _has_bits_[0] |= 0x00000001u;
2499
- }
2500
- inline void ComplexOptionType3_ComplexOptionType5::clear_has_plugh() {
2501
- _has_bits_[0] &= ~0x00000001u;
2502
- }
2503
- inline void ComplexOptionType3_ComplexOptionType5::clear_plugh() {
2504
- plugh_ = 0;
2505
- clear_has_plugh();
2506
- }
2507
- inline ::google::protobuf::int32 ComplexOptionType3_ComplexOptionType5::plugh() const {
2508
- return plugh_;
2509
- }
2510
- inline void ComplexOptionType3_ComplexOptionType5::set_plugh(::google::protobuf::int32 value) {
2511
- set_has_plugh();
2512
- plugh_ = value;
2513
- }
2514
-
2515
- // -------------------------------------------------------------------
2516
-
2517
- // ComplexOptionType3
2518
-
2519
- // optional int32 qux = 1;
2520
- inline bool ComplexOptionType3::has_qux() const {
2521
- return (_has_bits_[0] & 0x00000001u) != 0;
2522
- }
2523
- inline void ComplexOptionType3::set_has_qux() {
2524
- _has_bits_[0] |= 0x00000001u;
2525
- }
2526
- inline void ComplexOptionType3::clear_has_qux() {
2527
- _has_bits_[0] &= ~0x00000001u;
2528
- }
2529
- inline void ComplexOptionType3::clear_qux() {
2530
- qux_ = 0;
2531
- clear_has_qux();
2532
- }
2533
- inline ::google::protobuf::int32 ComplexOptionType3::qux() const {
2534
- return qux_;
2535
- }
2536
- inline void ComplexOptionType3::set_qux(::google::protobuf::int32 value) {
2537
- set_has_qux();
2538
- qux_ = value;
2539
- }
2540
-
2541
- // optional group ComplexOptionType5 = 2 {
2542
- inline bool ComplexOptionType3::has_complexoptiontype5() const {
2543
- return (_has_bits_[0] & 0x00000002u) != 0;
2544
- }
2545
- inline void ComplexOptionType3::set_has_complexoptiontype5() {
2546
- _has_bits_[0] |= 0x00000002u;
2547
- }
2548
- inline void ComplexOptionType3::clear_has_complexoptiontype5() {
2549
- _has_bits_[0] &= ~0x00000002u;
2550
- }
2551
- inline void ComplexOptionType3::clear_complexoptiontype5() {
2552
- if (complexoptiontype5_ != NULL) complexoptiontype5_->::protobuf_unittest::ComplexOptionType3_ComplexOptionType5::Clear();
2553
- clear_has_complexoptiontype5();
2554
- }
2555
- inline const ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5& ComplexOptionType3::complexoptiontype5() const {
2556
- return complexoptiontype5_ != NULL ? *complexoptiontype5_ : *default_instance_->complexoptiontype5_;
2557
- }
2558
- inline ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* ComplexOptionType3::mutable_complexoptiontype5() {
2559
- set_has_complexoptiontype5();
2560
- if (complexoptiontype5_ == NULL) complexoptiontype5_ = new ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5;
2561
- return complexoptiontype5_;
2562
- }
2563
- inline ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* ComplexOptionType3::release_complexoptiontype5() {
2564
- clear_has_complexoptiontype5();
2565
- ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* temp = complexoptiontype5_;
2566
- complexoptiontype5_ = NULL;
2567
- return temp;
2568
- }
2569
-
2570
- // -------------------------------------------------------------------
2571
-
2572
- // ComplexOpt6
2573
-
2574
- // optional int32 xyzzy = 7593951;
2575
- inline bool ComplexOpt6::has_xyzzy() const {
2576
- return (_has_bits_[0] & 0x00000001u) != 0;
2577
- }
2578
- inline void ComplexOpt6::set_has_xyzzy() {
2579
- _has_bits_[0] |= 0x00000001u;
2580
- }
2581
- inline void ComplexOpt6::clear_has_xyzzy() {
2582
- _has_bits_[0] &= ~0x00000001u;
2583
- }
2584
- inline void ComplexOpt6::clear_xyzzy() {
2585
- xyzzy_ = 0;
2586
- clear_has_xyzzy();
2587
- }
2588
- inline ::google::protobuf::int32 ComplexOpt6::xyzzy() const {
2589
- return xyzzy_;
2590
- }
2591
- inline void ComplexOpt6::set_xyzzy(::google::protobuf::int32 value) {
2592
- set_has_xyzzy();
2593
- xyzzy_ = value;
2594
- }
2595
-
2596
- // -------------------------------------------------------------------
2597
-
2598
- // VariousComplexOptions
2599
-
2600
- // -------------------------------------------------------------------
2601
-
2602
- // AggregateMessageSet
2603
-
2604
- // -------------------------------------------------------------------
2605
-
2606
- // AggregateMessageSetElement
2607
-
2608
- // optional string s = 1;
2609
- inline bool AggregateMessageSetElement::has_s() const {
2610
- return (_has_bits_[0] & 0x00000001u) != 0;
2611
- }
2612
- inline void AggregateMessageSetElement::set_has_s() {
2613
- _has_bits_[0] |= 0x00000001u;
2614
- }
2615
- inline void AggregateMessageSetElement::clear_has_s() {
2616
- _has_bits_[0] &= ~0x00000001u;
2617
- }
2618
- inline void AggregateMessageSetElement::clear_s() {
2619
- if (s_ != &::google::protobuf::internal::kEmptyString) {
2620
- s_->clear();
2621
- }
2622
- clear_has_s();
2623
- }
2624
- inline const ::std::string& AggregateMessageSetElement::s() const {
2625
- return *s_;
2626
- }
2627
- inline void AggregateMessageSetElement::set_s(const ::std::string& value) {
2628
- set_has_s();
2629
- if (s_ == &::google::protobuf::internal::kEmptyString) {
2630
- s_ = new ::std::string;
2631
- }
2632
- s_->assign(value);
2633
- }
2634
- inline void AggregateMessageSetElement::set_s(const char* value) {
2635
- set_has_s();
2636
- if (s_ == &::google::protobuf::internal::kEmptyString) {
2637
- s_ = new ::std::string;
2638
- }
2639
- s_->assign(value);
2640
- }
2641
- inline void AggregateMessageSetElement::set_s(const char* value, size_t size) {
2642
- set_has_s();
2643
- if (s_ == &::google::protobuf::internal::kEmptyString) {
2644
- s_ = new ::std::string;
2645
- }
2646
- s_->assign(reinterpret_cast<const char*>(value), size);
2647
- }
2648
- inline ::std::string* AggregateMessageSetElement::mutable_s() {
2649
- set_has_s();
2650
- if (s_ == &::google::protobuf::internal::kEmptyString) {
2651
- s_ = new ::std::string;
2652
- }
2653
- return s_;
2654
- }
2655
- inline ::std::string* AggregateMessageSetElement::release_s() {
2656
- clear_has_s();
2657
- if (s_ == &::google::protobuf::internal::kEmptyString) {
2658
- return NULL;
2659
- } else {
2660
- ::std::string* temp = s_;
2661
- s_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
2662
- return temp;
2663
- }
2664
- }
2665
-
2666
- // -------------------------------------------------------------------
2667
-
2668
- // Aggregate
2669
-
2670
- // optional int32 i = 1;
2671
- inline bool Aggregate::has_i() const {
2672
- return (_has_bits_[0] & 0x00000001u) != 0;
2673
- }
2674
- inline void Aggregate::set_has_i() {
2675
- _has_bits_[0] |= 0x00000001u;
2676
- }
2677
- inline void Aggregate::clear_has_i() {
2678
- _has_bits_[0] &= ~0x00000001u;
2679
- }
2680
- inline void Aggregate::clear_i() {
2681
- i_ = 0;
2682
- clear_has_i();
2683
- }
2684
- inline ::google::protobuf::int32 Aggregate::i() const {
2685
- return i_;
2686
- }
2687
- inline void Aggregate::set_i(::google::protobuf::int32 value) {
2688
- set_has_i();
2689
- i_ = value;
2690
- }
2691
-
2692
- // optional string s = 2;
2693
- inline bool Aggregate::has_s() const {
2694
- return (_has_bits_[0] & 0x00000002u) != 0;
2695
- }
2696
- inline void Aggregate::set_has_s() {
2697
- _has_bits_[0] |= 0x00000002u;
2698
- }
2699
- inline void Aggregate::clear_has_s() {
2700
- _has_bits_[0] &= ~0x00000002u;
2701
- }
2702
- inline void Aggregate::clear_s() {
2703
- if (s_ != &::google::protobuf::internal::kEmptyString) {
2704
- s_->clear();
2705
- }
2706
- clear_has_s();
2707
- }
2708
- inline const ::std::string& Aggregate::s() const {
2709
- return *s_;
2710
- }
2711
- inline void Aggregate::set_s(const ::std::string& value) {
2712
- set_has_s();
2713
- if (s_ == &::google::protobuf::internal::kEmptyString) {
2714
- s_ = new ::std::string;
2715
- }
2716
- s_->assign(value);
2717
- }
2718
- inline void Aggregate::set_s(const char* value) {
2719
- set_has_s();
2720
- if (s_ == &::google::protobuf::internal::kEmptyString) {
2721
- s_ = new ::std::string;
2722
- }
2723
- s_->assign(value);
2724
- }
2725
- inline void Aggregate::set_s(const char* value, size_t size) {
2726
- set_has_s();
2727
- if (s_ == &::google::protobuf::internal::kEmptyString) {
2728
- s_ = new ::std::string;
2729
- }
2730
- s_->assign(reinterpret_cast<const char*>(value), size);
2731
- }
2732
- inline ::std::string* Aggregate::mutable_s() {
2733
- set_has_s();
2734
- if (s_ == &::google::protobuf::internal::kEmptyString) {
2735
- s_ = new ::std::string;
2736
- }
2737
- return s_;
2738
- }
2739
- inline ::std::string* Aggregate::release_s() {
2740
- clear_has_s();
2741
- if (s_ == &::google::protobuf::internal::kEmptyString) {
2742
- return NULL;
2743
- } else {
2744
- ::std::string* temp = s_;
2745
- s_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
2746
- return temp;
2747
- }
2748
- }
2749
-
2750
- // optional .protobuf_unittest.Aggregate sub = 3;
2751
- inline bool Aggregate::has_sub() const {
2752
- return (_has_bits_[0] & 0x00000004u) != 0;
2753
- }
2754
- inline void Aggregate::set_has_sub() {
2755
- _has_bits_[0] |= 0x00000004u;
2756
- }
2757
- inline void Aggregate::clear_has_sub() {
2758
- _has_bits_[0] &= ~0x00000004u;
2759
- }
2760
- inline void Aggregate::clear_sub() {
2761
- if (sub_ != NULL) sub_->::protobuf_unittest::Aggregate::Clear();
2762
- clear_has_sub();
2763
- }
2764
- inline const ::protobuf_unittest::Aggregate& Aggregate::sub() const {
2765
- return sub_ != NULL ? *sub_ : *default_instance_->sub_;
2766
- }
2767
- inline ::protobuf_unittest::Aggregate* Aggregate::mutable_sub() {
2768
- set_has_sub();
2769
- if (sub_ == NULL) sub_ = new ::protobuf_unittest::Aggregate;
2770
- return sub_;
2771
- }
2772
- inline ::protobuf_unittest::Aggregate* Aggregate::release_sub() {
2773
- clear_has_sub();
2774
- ::protobuf_unittest::Aggregate* temp = sub_;
2775
- sub_ = NULL;
2776
- return temp;
2777
- }
2778
-
2779
- // optional .google.protobuf.FileOptions file = 4;
2780
- inline bool Aggregate::has_file() const {
2781
- return (_has_bits_[0] & 0x00000008u) != 0;
2782
- }
2783
- inline void Aggregate::set_has_file() {
2784
- _has_bits_[0] |= 0x00000008u;
2785
- }
2786
- inline void Aggregate::clear_has_file() {
2787
- _has_bits_[0] &= ~0x00000008u;
2788
- }
2789
- inline void Aggregate::clear_file() {
2790
- if (file_ != NULL) file_->::google::protobuf::FileOptions::Clear();
2791
- clear_has_file();
2792
- }
2793
- inline const ::google::protobuf::FileOptions& Aggregate::file() const {
2794
- return file_ != NULL ? *file_ : *default_instance_->file_;
2795
- }
2796
- inline ::google::protobuf::FileOptions* Aggregate::mutable_file() {
2797
- set_has_file();
2798
- if (file_ == NULL) file_ = new ::google::protobuf::FileOptions;
2799
- return file_;
2800
- }
2801
- inline ::google::protobuf::FileOptions* Aggregate::release_file() {
2802
- clear_has_file();
2803
- ::google::protobuf::FileOptions* temp = file_;
2804
- file_ = NULL;
2805
- return temp;
2806
- }
2807
-
2808
- // optional .protobuf_unittest.AggregateMessageSet mset = 5;
2809
- inline bool Aggregate::has_mset() const {
2810
- return (_has_bits_[0] & 0x00000010u) != 0;
2811
- }
2812
- inline void Aggregate::set_has_mset() {
2813
- _has_bits_[0] |= 0x00000010u;
2814
- }
2815
- inline void Aggregate::clear_has_mset() {
2816
- _has_bits_[0] &= ~0x00000010u;
2817
- }
2818
- inline void Aggregate::clear_mset() {
2819
- if (mset_ != NULL) mset_->::protobuf_unittest::AggregateMessageSet::Clear();
2820
- clear_has_mset();
2821
- }
2822
- inline const ::protobuf_unittest::AggregateMessageSet& Aggregate::mset() const {
2823
- return mset_ != NULL ? *mset_ : *default_instance_->mset_;
2824
- }
2825
- inline ::protobuf_unittest::AggregateMessageSet* Aggregate::mutable_mset() {
2826
- set_has_mset();
2827
- if (mset_ == NULL) mset_ = new ::protobuf_unittest::AggregateMessageSet;
2828
- return mset_;
2829
- }
2830
- inline ::protobuf_unittest::AggregateMessageSet* Aggregate::release_mset() {
2831
- clear_has_mset();
2832
- ::protobuf_unittest::AggregateMessageSet* temp = mset_;
2833
- mset_ = NULL;
2834
- return temp;
2835
- }
2836
-
2837
- // -------------------------------------------------------------------
2838
-
2839
- // AggregateMessage
2840
-
2841
- // optional int32 fieldname = 1;
2842
- inline bool AggregateMessage::has_fieldname() const {
2843
- return (_has_bits_[0] & 0x00000001u) != 0;
2844
- }
2845
- inline void AggregateMessage::set_has_fieldname() {
2846
- _has_bits_[0] |= 0x00000001u;
2847
- }
2848
- inline void AggregateMessage::clear_has_fieldname() {
2849
- _has_bits_[0] &= ~0x00000001u;
2850
- }
2851
- inline void AggregateMessage::clear_fieldname() {
2852
- fieldname_ = 0;
2853
- clear_has_fieldname();
2854
- }
2855
- inline ::google::protobuf::int32 AggregateMessage::fieldname() const {
2856
- return fieldname_;
2857
- }
2858
- inline void AggregateMessage::set_fieldname(::google::protobuf::int32 value) {
2859
- set_has_fieldname();
2860
- fieldname_ = value;
2861
- }
2862
-
2863
-
2864
- // @@protoc_insertion_point(namespace_scope)
2865
-
2866
- } // namespace protobuf_unittest
2867
-
2868
- #ifndef SWIG
2869
- namespace google {
2870
- namespace protobuf {
2871
-
2872
- template <>
2873
- inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestMessageWithCustomOptions_AnEnum>() {
2874
- return ::protobuf_unittest::TestMessageWithCustomOptions_AnEnum_descriptor();
2875
- }
2876
- template <>
2877
- inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType>() {
2878
- return ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType_descriptor();
2879
- }
2880
- template <>
2881
- inline const EnumDescriptor* GetEnumDescriptor< protobuf_unittest::MethodOpt1>() {
2882
- return protobuf_unittest::MethodOpt1_descriptor();
2883
- }
2884
- template <>
2885
- inline const EnumDescriptor* GetEnumDescriptor< protobuf_unittest::AggregateEnum>() {
2886
- return protobuf_unittest::AggregateEnum_descriptor();
2887
- }
2888
-
2889
- } // namespace google
2890
- } // namespace protobuf
2891
- #endif // SWIG
2892
-
2893
- // @@protoc_insertion_point(global_scope)
2894
-
2895
- #endif // PROTOBUF_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto__INCLUDED