protobuf-cucumber 3.10.4

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 +21 -0
  3. data/.rubocop.yml +70 -0
  4. data/.rubocop_todo.yml +145 -0
  5. data/.travis.yml +40 -0
  6. data/.yardopts +5 -0
  7. data/CHANGES.md +344 -0
  8. data/CONTRIBUTING.md +16 -0
  9. data/Gemfile +3 -0
  10. data/LICENSE.txt +22 -0
  11. data/README.md +33 -0
  12. data/Rakefile +64 -0
  13. data/bin/protoc-gen-ruby +22 -0
  14. data/bin/rpc_server +5 -0
  15. data/install-protobuf.sh +28 -0
  16. data/lib/protobuf.rb +129 -0
  17. data/lib/protobuf/cli.rb +257 -0
  18. data/lib/protobuf/code_generator.rb +120 -0
  19. data/lib/protobuf/decoder.rb +28 -0
  20. data/lib/protobuf/deprecation.rb +117 -0
  21. data/lib/protobuf/descriptors.rb +3 -0
  22. data/lib/protobuf/descriptors/google/protobuf/compiler/plugin.pb.rb +62 -0
  23. data/lib/protobuf/descriptors/google/protobuf/descriptor.pb.rb +301 -0
  24. data/lib/protobuf/encoder.rb +11 -0
  25. data/lib/protobuf/enum.rb +365 -0
  26. data/lib/protobuf/exceptions.rb +9 -0
  27. data/lib/protobuf/field.rb +74 -0
  28. data/lib/protobuf/field/base_field.rb +380 -0
  29. data/lib/protobuf/field/base_field_object_definitions.rb +504 -0
  30. data/lib/protobuf/field/bool_field.rb +64 -0
  31. data/lib/protobuf/field/bytes_field.rb +78 -0
  32. data/lib/protobuf/field/double_field.rb +25 -0
  33. data/lib/protobuf/field/enum_field.rb +61 -0
  34. data/lib/protobuf/field/field_array.rb +104 -0
  35. data/lib/protobuf/field/field_hash.rb +122 -0
  36. data/lib/protobuf/field/fixed32_field.rb +25 -0
  37. data/lib/protobuf/field/fixed64_field.rb +28 -0
  38. data/lib/protobuf/field/float_field.rb +43 -0
  39. data/lib/protobuf/field/int32_field.rb +21 -0
  40. data/lib/protobuf/field/int64_field.rb +34 -0
  41. data/lib/protobuf/field/integer_field.rb +23 -0
  42. data/lib/protobuf/field/message_field.rb +51 -0
  43. data/lib/protobuf/field/sfixed32_field.rb +27 -0
  44. data/lib/protobuf/field/sfixed64_field.rb +28 -0
  45. data/lib/protobuf/field/signed_integer_field.rb +29 -0
  46. data/lib/protobuf/field/sint32_field.rb +21 -0
  47. data/lib/protobuf/field/sint64_field.rb +21 -0
  48. data/lib/protobuf/field/string_field.rb +51 -0
  49. data/lib/protobuf/field/uint32_field.rb +21 -0
  50. data/lib/protobuf/field/uint64_field.rb +21 -0
  51. data/lib/protobuf/field/varint_field.rb +77 -0
  52. data/lib/protobuf/generators/base.rb +85 -0
  53. data/lib/protobuf/generators/enum_generator.rb +39 -0
  54. data/lib/protobuf/generators/extension_generator.rb +27 -0
  55. data/lib/protobuf/generators/field_generator.rb +193 -0
  56. data/lib/protobuf/generators/file_generator.rb +262 -0
  57. data/lib/protobuf/generators/group_generator.rb +122 -0
  58. data/lib/protobuf/generators/message_generator.rb +104 -0
  59. data/lib/protobuf/generators/option_generator.rb +17 -0
  60. data/lib/protobuf/generators/printable.rb +160 -0
  61. data/lib/protobuf/generators/service_generator.rb +50 -0
  62. data/lib/protobuf/lifecycle.rb +33 -0
  63. data/lib/protobuf/logging.rb +39 -0
  64. data/lib/protobuf/message.rb +260 -0
  65. data/lib/protobuf/message/fields.rb +233 -0
  66. data/lib/protobuf/message/serialization.rb +85 -0
  67. data/lib/protobuf/optionable.rb +70 -0
  68. data/lib/protobuf/rpc/buffer.rb +78 -0
  69. data/lib/protobuf/rpc/client.rb +140 -0
  70. data/lib/protobuf/rpc/connectors/base.rb +221 -0
  71. data/lib/protobuf/rpc/connectors/ping.rb +89 -0
  72. data/lib/protobuf/rpc/connectors/socket.rb +78 -0
  73. data/lib/protobuf/rpc/connectors/zmq.rb +319 -0
  74. data/lib/protobuf/rpc/dynamic_discovery.pb.rb +50 -0
  75. data/lib/protobuf/rpc/env.rb +60 -0
  76. data/lib/protobuf/rpc/error.rb +28 -0
  77. data/lib/protobuf/rpc/error/client_error.rb +31 -0
  78. data/lib/protobuf/rpc/error/server_error.rb +43 -0
  79. data/lib/protobuf/rpc/middleware.rb +25 -0
  80. data/lib/protobuf/rpc/middleware/exception_handler.rb +40 -0
  81. data/lib/protobuf/rpc/middleware/logger.rb +95 -0
  82. data/lib/protobuf/rpc/middleware/request_decoder.rb +79 -0
  83. data/lib/protobuf/rpc/middleware/response_encoder.rb +83 -0
  84. data/lib/protobuf/rpc/middleware/runner.rb +18 -0
  85. data/lib/protobuf/rpc/rpc.pb.rb +64 -0
  86. data/lib/protobuf/rpc/rpc_method.rb +16 -0
  87. data/lib/protobuf/rpc/server.rb +39 -0
  88. data/lib/protobuf/rpc/servers/socket/server.rb +121 -0
  89. data/lib/protobuf/rpc/servers/socket/worker.rb +56 -0
  90. data/lib/protobuf/rpc/servers/socket_runner.rb +46 -0
  91. data/lib/protobuf/rpc/servers/zmq/broker.rb +194 -0
  92. data/lib/protobuf/rpc/servers/zmq/server.rb +321 -0
  93. data/lib/protobuf/rpc/servers/zmq/util.rb +48 -0
  94. data/lib/protobuf/rpc/servers/zmq/worker.rb +105 -0
  95. data/lib/protobuf/rpc/servers/zmq_runner.rb +70 -0
  96. data/lib/protobuf/rpc/service.rb +172 -0
  97. data/lib/protobuf/rpc/service_directory.rb +261 -0
  98. data/lib/protobuf/rpc/service_dispatcher.rb +45 -0
  99. data/lib/protobuf/rpc/service_filters.rb +250 -0
  100. data/lib/protobuf/rpc/stat.rb +119 -0
  101. data/lib/protobuf/socket.rb +21 -0
  102. data/lib/protobuf/tasks.rb +1 -0
  103. data/lib/protobuf/tasks/compile.rake +80 -0
  104. data/lib/protobuf/varint.rb +20 -0
  105. data/lib/protobuf/varint_pure.rb +31 -0
  106. data/lib/protobuf/version.rb +3 -0
  107. data/lib/protobuf/wire_type.rb +10 -0
  108. data/lib/protobuf/zmq.rb +21 -0
  109. data/profile.html +5103 -0
  110. data/proto/dynamic_discovery.proto +44 -0
  111. data/proto/google/protobuf/compiler/plugin.proto +147 -0
  112. data/proto/google/protobuf/descriptor.proto +779 -0
  113. data/proto/rpc.proto +69 -0
  114. data/protobuf-cucumber.gemspec +57 -0
  115. data/spec/benchmark/tasks.rb +143 -0
  116. data/spec/bin/protoc-gen-ruby_spec.rb +23 -0
  117. data/spec/encoding/all_types_spec.rb +103 -0
  118. data/spec/encoding/extreme_values_spec.rb +0 -0
  119. data/spec/functional/class_inheritance_spec.rb +52 -0
  120. data/spec/functional/code_generator_spec.rb +58 -0
  121. data/spec/functional/socket_server_spec.rb +59 -0
  122. data/spec/functional/zmq_server_spec.rb +105 -0
  123. data/spec/lib/protobuf/cli_spec.rb +317 -0
  124. data/spec/lib/protobuf/code_generator_spec.rb +87 -0
  125. data/spec/lib/protobuf/enum_spec.rb +307 -0
  126. data/spec/lib/protobuf/field/bool_field_spec.rb +91 -0
  127. data/spec/lib/protobuf/field/double_field_spec.rb +9 -0
  128. data/spec/lib/protobuf/field/enum_field_spec.rb +44 -0
  129. data/spec/lib/protobuf/field/field_array_spec.rb +105 -0
  130. data/spec/lib/protobuf/field/field_hash_spec.rb +168 -0
  131. data/spec/lib/protobuf/field/fixed32_field_spec.rb +7 -0
  132. data/spec/lib/protobuf/field/fixed64_field_spec.rb +7 -0
  133. data/spec/lib/protobuf/field/float_field_spec.rb +90 -0
  134. data/spec/lib/protobuf/field/int32_field_spec.rb +120 -0
  135. data/spec/lib/protobuf/field/int64_field_spec.rb +7 -0
  136. data/spec/lib/protobuf/field/message_field_spec.rb +132 -0
  137. data/spec/lib/protobuf/field/sfixed32_field_spec.rb +9 -0
  138. data/spec/lib/protobuf/field/sfixed64_field_spec.rb +9 -0
  139. data/spec/lib/protobuf/field/sint32_field_spec.rb +9 -0
  140. data/spec/lib/protobuf/field/sint64_field_spec.rb +9 -0
  141. data/spec/lib/protobuf/field/string_field_spec.rb +79 -0
  142. data/spec/lib/protobuf/field/uint32_field_spec.rb +7 -0
  143. data/spec/lib/protobuf/field/uint64_field_spec.rb +7 -0
  144. data/spec/lib/protobuf/field_spec.rb +192 -0
  145. data/spec/lib/protobuf/generators/base_spec.rb +154 -0
  146. data/spec/lib/protobuf/generators/enum_generator_spec.rb +82 -0
  147. data/spec/lib/protobuf/generators/extension_generator_spec.rb +42 -0
  148. data/spec/lib/protobuf/generators/field_generator_spec.rb +197 -0
  149. data/spec/lib/protobuf/generators/file_generator_spec.rb +119 -0
  150. data/spec/lib/protobuf/generators/message_generator_spec.rb +0 -0
  151. data/spec/lib/protobuf/generators/service_generator_spec.rb +99 -0
  152. data/spec/lib/protobuf/lifecycle_spec.rb +94 -0
  153. data/spec/lib/protobuf/message_spec.rb +944 -0
  154. data/spec/lib/protobuf/optionable_spec.rb +265 -0
  155. data/spec/lib/protobuf/rpc/client_spec.rb +66 -0
  156. data/spec/lib/protobuf/rpc/connectors/base_spec.rb +226 -0
  157. data/spec/lib/protobuf/rpc/connectors/ping_spec.rb +69 -0
  158. data/spec/lib/protobuf/rpc/connectors/socket_spec.rb +34 -0
  159. data/spec/lib/protobuf/rpc/connectors/zmq_spec.rb +110 -0
  160. data/spec/lib/protobuf/rpc/middleware/exception_handler_spec.rb +62 -0
  161. data/spec/lib/protobuf/rpc/middleware/logger_spec.rb +49 -0
  162. data/spec/lib/protobuf/rpc/middleware/request_decoder_spec.rb +115 -0
  163. data/spec/lib/protobuf/rpc/middleware/response_encoder_spec.rb +91 -0
  164. data/spec/lib/protobuf/rpc/servers/socket_server_spec.rb +38 -0
  165. data/spec/lib/protobuf/rpc/servers/zmq/server_spec.rb +43 -0
  166. data/spec/lib/protobuf/rpc/servers/zmq/util_spec.rb +55 -0
  167. data/spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb +35 -0
  168. data/spec/lib/protobuf/rpc/service_directory_spec.rb +293 -0
  169. data/spec/lib/protobuf/rpc/service_dispatcher_spec.rb +35 -0
  170. data/spec/lib/protobuf/rpc/service_filters_spec.rb +517 -0
  171. data/spec/lib/protobuf/rpc/service_spec.rb +162 -0
  172. data/spec/lib/protobuf/rpc/stat_spec.rb +101 -0
  173. data/spec/lib/protobuf/varint_spec.rb +29 -0
  174. data/spec/lib/protobuf_spec.rb +105 -0
  175. data/spec/spec_helper.rb +42 -0
  176. data/spec/support/all.rb +6 -0
  177. data/spec/support/packed_field.rb +23 -0
  178. data/spec/support/protos/all_types.data.bin +0 -0
  179. data/spec/support/protos/all_types.data.txt +119 -0
  180. data/spec/support/protos/enum.pb.rb +63 -0
  181. data/spec/support/protos/enum.proto +37 -0
  182. data/spec/support/protos/extreme_values.data.bin +0 -0
  183. data/spec/support/protos/google_unittest.bin +0 -0
  184. data/spec/support/protos/google_unittest.pb.rb +798 -0
  185. data/spec/support/protos/google_unittest.proto +884 -0
  186. data/spec/support/protos/google_unittest_custom_options.bin +0 -0
  187. data/spec/support/protos/google_unittest_custom_options.pb.rb +361 -0
  188. data/spec/support/protos/google_unittest_custom_options.proto +424 -0
  189. data/spec/support/protos/google_unittest_import.pb.rb +55 -0
  190. data/spec/support/protos/google_unittest_import.proto +73 -0
  191. data/spec/support/protos/google_unittest_import_public.pb.rb +31 -0
  192. data/spec/support/protos/google_unittest_import_public.proto +41 -0
  193. data/spec/support/protos/map-test.bin +157 -0
  194. data/spec/support/protos/map-test.pb.rb +85 -0
  195. data/spec/support/protos/map-test.proto +68 -0
  196. data/spec/support/protos/multi_field_extensions.pb.rb +59 -0
  197. data/spec/support/protos/multi_field_extensions.proto +35 -0
  198. data/spec/support/protos/resource.pb.rb +172 -0
  199. data/spec/support/protos/resource.proto +137 -0
  200. data/spec/support/resource_service.rb +23 -0
  201. data/spec/support/server.rb +65 -0
  202. data/spec/support/test_app_file.rb +2 -0
  203. data/varint_prof.rb +82 -0
  204. metadata +579 -0
@@ -0,0 +1,55 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+
9
+ ##
10
+ # Imports
11
+ #
12
+ require 'protos/google_unittest_import_public.pb'
13
+
14
+ module Protobuf_unittest_import
15
+ ::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
16
+
17
+ ##
18
+ # Enum Classes
19
+ #
20
+ class ImportEnum < ::Protobuf::Enum
21
+ define :IMPORT_FOO, 7
22
+ define :IMPORT_BAR, 8
23
+ define :IMPORT_BAZ, 9
24
+ end
25
+
26
+ class ImportEnumForMap < ::Protobuf::Enum
27
+ define :UNKNOWN, 0
28
+ define :FOO, 1
29
+ define :BAR, 2
30
+ end
31
+
32
+
33
+ ##
34
+ # Message Classes
35
+ #
36
+ class ImportMessage < ::Protobuf::Message; end
37
+
38
+
39
+ ##
40
+ # File Options
41
+ #
42
+ set_option :java_package, "com.google.protobuf.test"
43
+ set_option :optimize_for, ::Google::Protobuf::FileOptions::OptimizeMode::SPEED
44
+ set_option :cc_enable_arenas, true
45
+
46
+
47
+ ##
48
+ # Message Fields
49
+ #
50
+ class ImportMessage
51
+ optional :int32, :d, 1
52
+ end
53
+
54
+ end
55
+
@@ -0,0 +1,73 @@
1
+ // Protocol Buffers - Google's data interchange format
2
+ // Copyright 2008 Google Inc. All rights reserved.
3
+ // https://developers.google.com/protocol-buffers/
4
+ //
5
+ // Redistribution and use in source and binary forms, with or without
6
+ // modification, are permitted provided that the following conditions are
7
+ // met:
8
+ //
9
+ // * Redistributions of source code must retain the above copyright
10
+ // notice, this list of conditions and the following disclaimer.
11
+ // * Redistributions in binary form must reproduce the above
12
+ // copyright notice, this list of conditions and the following disclaimer
13
+ // in the documentation and/or other materials provided with the
14
+ // distribution.
15
+ // * Neither the name of Google Inc. nor the names of its
16
+ // contributors may be used to endorse or promote products derived from
17
+ // this software without specific prior written permission.
18
+ //
19
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+
31
+ // Author: kenton@google.com (Kenton Varda)
32
+ // Based on original Protocol Buffers design by
33
+ // Sanjay Ghemawat, Jeff Dean, and others.
34
+ //
35
+ // A proto file which is imported by unittest.proto to test importing.
36
+
37
+ syntax = "proto2";
38
+
39
+ // We don't put this in a package within proto2 because we need to make sure
40
+ // that the generated code doesn't depend on being in the proto2 namespace.
41
+ // In test_util.h we do
42
+ // "using namespace unittest_import = protobuf_unittest_import".
43
+ package protobuf_unittest_import;
44
+
45
+ option optimize_for = SPEED;
46
+ option cc_enable_arenas = true;
47
+
48
+ // Exercise the java_package option.
49
+ option java_package = "com.google.protobuf.test";
50
+
51
+ // Do not set a java_outer_classname here to verify that Proto2 works without
52
+ // one.
53
+
54
+ // Test public import
55
+ import public "protos/google_unittest_import_public.proto";
56
+
57
+ message ImportMessage {
58
+ optional int32 d = 1;
59
+ }
60
+
61
+ enum ImportEnum {
62
+ IMPORT_FOO = 7;
63
+ IMPORT_BAR = 8;
64
+ IMPORT_BAZ = 9;
65
+ }
66
+
67
+
68
+ // To use an enum in a map, it must has the first value as 0.
69
+ enum ImportEnumForMap {
70
+ UNKNOWN = 0;
71
+ FOO = 1;
72
+ BAR = 2;
73
+ }
@@ -0,0 +1,31 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+ module Protobuf_unittest_import
9
+ ::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
10
+
11
+ ##
12
+ # Message Classes
13
+ #
14
+ class PublicImportMessage < ::Protobuf::Message; end
15
+
16
+
17
+ ##
18
+ # File Options
19
+ #
20
+ set_option :java_package, "com.google.protobuf.test"
21
+
22
+
23
+ ##
24
+ # Message Fields
25
+ #
26
+ class PublicImportMessage
27
+ optional :int32, :e, 1
28
+ end
29
+
30
+ end
31
+
@@ -0,0 +1,41 @@
1
+ // Protocol Buffers - Google's data interchange format
2
+ // Copyright 2008 Google Inc. All rights reserved.
3
+ // https://developers.google.com/protocol-buffers/
4
+ //
5
+ // Redistribution and use in source and binary forms, with or without
6
+ // modification, are permitted provided that the following conditions are
7
+ // met:
8
+ //
9
+ // * Redistributions of source code must retain the above copyright
10
+ // notice, this list of conditions and the following disclaimer.
11
+ // * Redistributions in binary form must reproduce the above
12
+ // copyright notice, this list of conditions and the following disclaimer
13
+ // in the documentation and/or other materials provided with the
14
+ // distribution.
15
+ // * Neither the name of Google Inc. nor the names of its
16
+ // contributors may be used to endorse or promote products derived from
17
+ // this software without specific prior written permission.
18
+ //
19
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+
31
+ // Author: liujisi@google.com (Pherl Liu)
32
+
33
+ syntax = "proto2";
34
+
35
+ package protobuf_unittest_import;
36
+
37
+ option java_package = "com.google.protobuf.test";
38
+
39
+ message PublicImportMessage {
40
+ optional int32 e = 1;
41
+ }
@@ -0,0 +1,157 @@
1
+
2
+ �!
3
+ map-test.protofoo"�
4
+ Baz2
5
+ looks_like_map ( 2.foo.Baz.LooksLikeMapEntry@
6
+ does_not_look_like_map ( 2 .foo.Baz.DoesNotLookLikeMapEntry3
7
+ LooksLikeMapEntry
8
+ key ( 
9
+ value ( :85
10
+ DoesNotLookLikeMapEntry
11
+ key ( 
12
+ value ( "�
13
+ Bar0
14
+
15
+
16
+ int32_to_baz ( 2.foo.Bar.Int32ToBazEntry.
17
+ int64_to_baz ( 2.foo.Bar.Int64ToBazEntry0
18
+
19
+
20
+
21
+ sint32_to_frobnitz ( 2.foo.Bar.Sint32ToFrobnitzEntry:
22
+ sint64_to_frobnitz ( 2.foo.Bar.Sint64ToFrobnitzEntry8
23
+ int32_to_frobnitz
24
+ ( 2.foo.Bar.Int32ToFrobnitzEntry8
25
+ int64_to_frobnitz ( 2.foo.Bar.Int64ToFrobnitzEntry:
26
+ uint32_to_frobnitz ( 2.foo.Bar.Uint32ToFrobnitzEntry:
27
+ uint64_to_frobnitz
28
  ( 2.foo.Bar.Uint64ToFrobnitzEntry:
29
+ string_to_frobnitz ( 2.foo.Bar.StringToFrobnitzEntry6
30
+ sint32_to_string ( 2.foo.Bar.Sint32ToStringEntry6
31
+ sint64_to_string ( 2.foo.Bar.Sint64ToStringEntry4
32
+ int32_to_string ( 2.foo.Bar.Int32ToStringEntry4
33
+ int64_to_string ( 2.foo.Bar.Int64ToStringEntry6
34
+ uint32_to_string ( 2.foo.Bar.Uint32ToStringEntry6
35
+ uint64_to_string ( 2.foo.Bar.Uint64ToStringEntry6
36
+ string_to_string ( 2.foo.Bar.StringToStringEntry4
37
+ sint32_to_float ( 2.foo.Bar.Sint32ToFloatEntry4
38
+ sint64_to_float ( 2.foo.Bar.Sint64ToFloatEntry2
39
+ int32_to_float ( 2.foo.Bar.Int32ToFloatEntry2
40
+ int64_to_float ( 2.foo.Bar.Int64ToFloatEntry4
41
+ uint32_to_float ( 2.foo.Bar.Uint32ToFloatEntry4
42
+ uint64_to_float ( 2.foo.Bar.Uint64ToFloatEntry4
43
+ string_to_float ( 2.foo.Bar.StringToFloatEntry6
44
+ sint32_to_double ( 2.foo.Bar.Sint32ToDoubleEntry6
45
+ sint64_to_double ( 2.foo.Bar.Sint64ToDoubleEntry4
46
+ int32_to_double ( 2.foo.Bar.Int32ToDoubleEntry4
47
+ int64_to_double ( 2.foo.Bar.Int64ToDoubleEntry6
48
+ uint32_to_double! ( 2.foo.Bar.Uint32ToDoubleEntry6
49
+ uint64_to_double" ( 2.foo.Bar.Uint64ToDoubleEntry6
50
+ string_to_double# ( 2.foo.Bar.StringToDoubleEntry<
51
+ Sint32ToBazEntry
52
+ key (
53
+ value ( 2.foo.Baz:8<
54
+ Sint64ToBazEntry
55
+ key (
56
+ value ( 2.foo.Baz:8;
57
+ Int32ToBazEntry
58
+ key (
59
+ value ( 2.foo.Baz:8;
60
+ Int64ToBazEntry
61
+ key (
62
+ value ( 2.foo.Baz:8<
63
+ Uint32ToBazEntry
64
+ key (
65
+ value ( 2.foo.Baz:8<
66
+ Uint64ToBazEntry
67
+ key (
68
+ value ( 2.foo.Baz:8<
69
+ StringToBazEntry
70
+ key ( 
71
+ value ( 2.foo.Baz:8F
72
+ Sint32ToFrobnitzEntry
73
+ key (
74
+ value (2
75
+ Sint64ToFrobnitzEntry
76
+ key (
77
+ value (2
78
+ Int32ToFrobnitzEntry
79
+ key (
80
+ value (2
81
+ Int64ToFrobnitzEntry
82
+ key (
83
+ value (2
84
+ Uint32ToFrobnitzEntry
85
+ key (
86
+ value (2
87
+ Uint64ToFrobnitzEntry
88
+ key (
89
+ value (2
90
+ StringToFrobnitzEntry
91
+ key ( 
92
+ value (2
93
+ Sint32ToStringEntry
94
+ key (
95
+ value ( :85
96
+ Sint64ToStringEntry
97
+ key (
98
+ value ( :84
99
+ Int32ToStringEntry
100
+ key (
101
+ value ( :84
102
+ Int64ToStringEntry
103
+ key (
104
+ value ( :85
105
+ Uint32ToStringEntry
106
+ key (
107
+ value ( :85
108
+ Uint64ToStringEntry
109
+ key (
110
+ value ( :85
111
+ StringToStringEntry
112
+ key ( 
113
+ value ( :84
114
+ Sint32ToFloatEntry
115
+ key (
116
+ value (:84
117
+ Sint64ToFloatEntry
118
+ key (
119
+ value (:83
120
+ Int32ToFloatEntry
121
+ key (
122
+ value (:83
123
+ Int64ToFloatEntry
124
+ key (
125
+ value (:84
126
+ Uint32ToFloatEntry
127
+ key (
128
+ value (:84
129
+ Uint64ToFloatEntry
130
+ key (
131
+ value (:84
132
+ StringToFloatEntry
133
+ key ( 
134
+ value (:85
135
+ Sint32ToDoubleEntry
136
+ key (
137
+ value (:85
138
+ Sint64ToDoubleEntry
139
+ key (
140
+ value (:84
141
+ Int32ToDoubleEntry
142
+ key (
143
+ value (:84
144
+ Int64ToDoubleEntry
145
+ key (
146
+ value (:85
147
+ Uint32ToDoubleEntry
148
+ key (
149
+ value (:85
150
+ Uint64ToDoubleEntry
151
+ key (
152
+ value (:85
153
+ StringToDoubleEntry
154
+ key ( 
155
+ value (:8*
156
+ Frobnitz
157
+ FROB
158
+ NITZ
@@ -0,0 +1,85 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+ module Foo
9
+ ::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
10
+
11
+ ##
12
+ # Enum Classes
13
+ #
14
+ class Frobnitz < ::Protobuf::Enum
15
+ define :FROB, 1
16
+ define :NITZ, 2
17
+ end
18
+
19
+
20
+ ##
21
+ # Message Classes
22
+ #
23
+ class Baz < ::Protobuf::Message
24
+ class DoesNotLookLikeMapEntry < ::Protobuf::Message; end
25
+
26
+ end
27
+
28
+ class Bar < ::Protobuf::Message
29
+ end
30
+
31
+
32
+
33
+ ##
34
+ # Message Fields
35
+ #
36
+ class Baz
37
+ class DoesNotLookLikeMapEntry
38
+ optional :string, :key, 1
39
+ optional :string, :value, 2
40
+ end
41
+
42
+ map :string, :string, :looks_like_map, 1
43
+ repeated ::Foo::Baz::DoesNotLookLikeMapEntry, :does_not_look_like_map, 2
44
+ end
45
+
46
+ class Bar
47
+ map :sint32, ::Foo::Baz, :sint32_to_baz, 1
48
+ map :sint64, ::Foo::Baz, :sint64_to_baz, 2
49
+ map :int32, ::Foo::Baz, :int32_to_baz, 3
50
+ map :int64, ::Foo::Baz, :int64_to_baz, 4
51
+ map :uint32, ::Foo::Baz, :uint32_to_baz, 5
52
+ map :uint64, ::Foo::Baz, :uint64_to_baz, 6
53
+ map :string, ::Foo::Baz, :string_to_baz, 7
54
+ map :sint32, ::Foo::Frobnitz, :sint32_to_frobnitz, 8
55
+ map :sint64, ::Foo::Frobnitz, :sint64_to_frobnitz, 9
56
+ map :int32, ::Foo::Frobnitz, :int32_to_frobnitz, 10
57
+ map :int64, ::Foo::Frobnitz, :int64_to_frobnitz, 11
58
+ map :uint32, ::Foo::Frobnitz, :uint32_to_frobnitz, 12
59
+ map :uint64, ::Foo::Frobnitz, :uint64_to_frobnitz, 13
60
+ map :string, ::Foo::Frobnitz, :string_to_frobnitz, 14
61
+ map :sint32, :string, :sint32_to_string, 15
62
+ map :sint64, :string, :sint64_to_string, 16
63
+ map :int32, :string, :int32_to_string, 17
64
+ map :int64, :string, :int64_to_string, 18
65
+ map :uint32, :string, :uint32_to_string, 19
66
+ map :uint64, :string, :uint64_to_string, 20
67
+ map :string, :string, :string_to_string, 21
68
+ map :sint32, :float, :sint32_to_float, 22
69
+ map :sint64, :float, :sint64_to_float, 23
70
+ map :int32, :float, :int32_to_float, 24
71
+ map :int64, :float, :int64_to_float, 25
72
+ map :uint32, :float, :uint32_to_float, 26
73
+ map :uint64, :float, :uint64_to_float, 27
74
+ map :string, :float, :string_to_float, 28
75
+ map :sint32, :double, :sint32_to_double, 29
76
+ map :sint64, :double, :sint64_to_double, 30
77
+ map :int32, :double, :int32_to_double, 31
78
+ map :int64, :double, :int64_to_double, 32
79
+ map :uint32, :double, :uint32_to_double, 33
80
+ map :uint64, :double, :uint64_to_double, 34
81
+ map :string, :double, :string_to_double, 35
82
+ end
83
+
84
+ end
85
+