primary_connect_proto 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +39 -0
  3. data/connect_proto.gemspec +2 -2
  4. data/lib/connect_proto/build/demographics_pb.rb +1 -0
  5. data/lib/connect_proto/build/meta_pb.rb +40 -37
  6. data/lib/connect_proto/src/demographics.proto +1 -0
  7. data/lib/connect_proto/src/meta.proto +1 -0
  8. metadata +5 -39
  9. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/defs.c +0 -2366
  10. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/encode_decode.c +0 -1795
  11. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/extconf.rb +0 -21
  12. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/map.c +0 -836
  13. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/message.c +0 -859
  14. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/protobuf.c +0 -136
  15. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/protobuf.h +0 -667
  16. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/repeated_field.c +0 -686
  17. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/storage.c +0 -1198
  18. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/upb.c +0 -13817
  19. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/upb.h +0 -6777
  20. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/wrap_memcpy.c +0 -51
  21. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.3/protobuf_c.bundle +0 -0
  22. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.4/protobuf_c.bundle +0 -0
  23. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.5/protobuf_c.bundle +0 -0
  24. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.6/protobuf_c.bundle +0 -0
  25. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.7/protobuf_c.bundle +0 -0
  26. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/any_pb.rb +0 -19
  27. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/api_pb.rb +0 -41
  28. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/duration_pb.rb +0 -19
  29. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/empty_pb.rb +0 -17
  30. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/field_mask_pb.rb +0 -18
  31. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/message_exts.rb +0 -53
  32. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/repeated_field.rb +0 -188
  33. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/source_context_pb.rb +0 -18
  34. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/struct_pb.rb +0 -37
  35. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/timestamp_pb.rb +0 -19
  36. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/type_pb.rb +0 -91
  37. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/well_known_types.rb +0 -230
  38. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/wrappers_pb.rb +0 -50
  39. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf.rb +0 -147
  40. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/tests/basic.rb +0 -543
  41. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/tests/generated_code_test.rb +0 -23
  42. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/tests/stress.rb +0 -38
  43. data/vendor/bundle/ruby/2.6.0/specifications/google-protobuf-4.0.0.rc.2-universal-darwin.gemspec +0 -44
@@ -1,51 +0,0 @@
1
- // Protocol Buffers - Google's data interchange format
2
- // Copyright 2017 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
- #include <string.h>
32
-
33
- // On x86-64 Linux with glibc, we link against the 2.2.5 version of memcpy so
34
- // that we avoid depending on the 2.14 version of the symbol. This way,
35
- // distributions that are using pre-2.14 versions of glibc can successfully use
36
- // the gem we distribute (https://github.com/protocolbuffers/protobuf/issues/2783).
37
- //
38
- // This wrapper is enabled by passing the linker flags -Wl,-wrap,memcpy in
39
- // extconf.rb.
40
- #ifdef __linux__
41
- #if defined(__x86_64__) && defined(__GNU_LIBRARY__)
42
- __asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
43
- void *__wrap_memcpy(void *dest, const void *src, size_t n) {
44
- return memcpy(dest, src, n);
45
- }
46
- #else
47
- void *__wrap_memcpy(void *dest, const void *src, size_t n) {
48
- return memmove(dest, src, n);
49
- }
50
- #endif
51
- #endif
@@ -1,19 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/protobuf/any.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/protobuf/any.proto", :syntax => :proto3) do
8
- add_message "google.protobuf.Any" do
9
- optional :type_url, :string, 1
10
- optional :value, :bytes, 2
11
- end
12
- end
13
- end
14
-
15
- module Google
16
- module Protobuf
17
- Any = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Any").msgclass
18
- end
19
- end
@@ -1,41 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/protobuf/api.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/protobuf/source_context_pb'
7
- require 'google/protobuf/type_pb'
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/protobuf/api.proto", :syntax => :proto3) do
10
- add_message "google.protobuf.Api" do
11
- optional :name, :string, 1
12
- repeated :methods, :message, 2, "google.protobuf.Method"
13
- repeated :options, :message, 3, "google.protobuf.Option"
14
- optional :version, :string, 4
15
- optional :source_context, :message, 5, "google.protobuf.SourceContext"
16
- repeated :mixins, :message, 6, "google.protobuf.Mixin"
17
- optional :syntax, :enum, 7, "google.protobuf.Syntax"
18
- end
19
- add_message "google.protobuf.Method" do
20
- optional :name, :string, 1
21
- optional :request_type_url, :string, 2
22
- optional :request_streaming, :bool, 3
23
- optional :response_type_url, :string, 4
24
- optional :response_streaming, :bool, 5
25
- repeated :options, :message, 6, "google.protobuf.Option"
26
- optional :syntax, :enum, 7, "google.protobuf.Syntax"
27
- end
28
- add_message "google.protobuf.Mixin" do
29
- optional :name, :string, 1
30
- optional :root, :string, 2
31
- end
32
- end
33
- end
34
-
35
- module Google
36
- module Protobuf
37
- Api = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Api").msgclass
38
- Method = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Method").msgclass
39
- Mixin = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Mixin").msgclass
40
- end
41
- end
@@ -1,19 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/protobuf/duration.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/protobuf/duration.proto", :syntax => :proto3) do
8
- add_message "google.protobuf.Duration" do
9
- optional :seconds, :int64, 1
10
- optional :nanos, :int32, 2
11
- end
12
- end
13
- end
14
-
15
- module Google
16
- module Protobuf
17
- Duration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Duration").msgclass
18
- end
19
- end
@@ -1,17 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/protobuf/empty.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/protobuf/empty.proto", :syntax => :proto3) do
8
- add_message "google.protobuf.Empty" do
9
- end
10
- end
11
- end
12
-
13
- module Google
14
- module Protobuf
15
- Empty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Empty").msgclass
16
- end
17
- end
@@ -1,18 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/protobuf/field_mask.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/protobuf/field_mask.proto", :syntax => :proto3) do
8
- add_message "google.protobuf.FieldMask" do
9
- repeated :paths, :string, 1
10
- end
11
- end
12
- end
13
-
14
- module Google
15
- module Protobuf
16
- FieldMask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FieldMask").msgclass
17
- end
18
- end
@@ -1,53 +0,0 @@
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
- module Google
32
- module Protobuf
33
- module MessageExts
34
-
35
- #this is only called in jruby; mri loades the ClassMethods differently
36
- def self.included(klass)
37
- klass.extend(ClassMethods)
38
- end
39
-
40
- module ClassMethods
41
- end
42
-
43
- def to_json(options = {})
44
- self.class.encode_json(self, options)
45
- end
46
-
47
- def to_proto
48
- self.class.encode(self)
49
- end
50
-
51
- end
52
- end
53
- end
@@ -1,188 +0,0 @@
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
- require 'forwardable'
32
-
33
- #
34
- # This class makes RepeatedField act (almost-) like a Ruby Array.
35
- # It has convenience methods that extend the core C or Java based
36
- # methods.
37
- #
38
- # This is a best-effort to mirror Array behavior. Two comments:
39
- # 1) patches always welcome :)
40
- # 2) if performance is an issue, feel free to rewrite the method
41
- # in jruby and C. The source code has plenty of examples
42
- #
43
- # KNOWN ISSUES
44
- # - #[]= doesn't allow less used approaches such as `arr[1, 2] = 'fizz'`
45
- # - #concat should return the orig array
46
- # - #push should accept multiple arguments and push them all at the same time
47
- #
48
- module Google
49
- module Protobuf
50
- class RepeatedField
51
- extend Forwardable
52
-
53
- # methods defined in C or Java:
54
- # +
55
- # [], at
56
- # []=
57
- # concat
58
- # clear
59
- # dup, clone
60
- # each
61
- # push, <<
62
- # replace
63
- # length, size
64
- # ==
65
- # to_ary, to_a
66
- # also all enumerable
67
- #
68
- # NOTE: using delegators rather than method_missing to make the
69
- # relationship explicit instead of implicit
70
- def_delegators :to_ary,
71
- :&, :*, :-, :'<=>',
72
- :assoc, :bsearch, :bsearch_index, :combination, :compact, :count,
73
- :cycle, :dig, :drop, :drop_while, :eql?, :fetch, :find_index, :flatten,
74
- :include?, :index, :inspect, :join,
75
- :pack, :permutation, :product, :pretty_print, :pretty_print_cycle,
76
- :rassoc, :repeated_combination, :repeated_permutation, :reverse,
77
- :rindex, :rotate, :sample, :shuffle, :shelljoin,
78
- :to_s, :transpose, :uniq, :|
79
-
80
-
81
- def first(n=nil)
82
- n ? self[0...n] : self[0]
83
- end
84
-
85
-
86
- def last(n=nil)
87
- n ? self[(self.size-n-1)..-1] : self[-1]
88
- end
89
-
90
-
91
- def pop(n=nil)
92
- if n
93
- results = []
94
- n.times{ results << pop_one }
95
- return results
96
- else
97
- return pop_one
98
- end
99
- end
100
-
101
-
102
- def empty?
103
- self.size == 0
104
- end
105
-
106
- # array aliases into enumerable
107
- alias_method :each_index, :each_with_index
108
- alias_method :slice, :[]
109
- alias_method :values_at, :select
110
- alias_method :map, :collect
111
-
112
-
113
- class << self
114
- def define_array_wrapper_method(method_name)
115
- define_method(method_name) do |*args, &block|
116
- arr = self.to_a
117
- result = arr.send(method_name, *args)
118
- self.replace(arr)
119
- return result if result
120
- return block ? block.call : result
121
- end
122
- end
123
- private :define_array_wrapper_method
124
-
125
-
126
- def define_array_wrapper_with_result_method(method_name)
127
- define_method(method_name) do |*args, &block|
128
- # result can be an Enumerator, Array, or nil
129
- # Enumerator can sometimes be returned if a block is an optional argument and it is not passed in
130
- # nil usually specifies that no change was made
131
- result = self.to_a.send(method_name, *args, &block)
132
- if result
133
- new_arr = result.to_a
134
- self.replace(new_arr)
135
- if result.is_a?(Enumerator)
136
- # generate a fresh enum; rewinding the exiting one, in Ruby 2.2, will
137
- # reset the enum with the same length, but all the #next calls will
138
- # return nil
139
- result = new_arr.to_enum
140
- # generate a wrapper enum so any changes which occur by a chained
141
- # enum can be captured
142
- ie = ProxyingEnumerator.new(self, result)
143
- result = ie.to_enum
144
- end
145
- end
146
- result
147
- end
148
- end
149
- private :define_array_wrapper_with_result_method
150
- end
151
-
152
-
153
- %w(delete delete_at shift slice! unshift).each do |method_name|
154
- define_array_wrapper_method(method_name)
155
- end
156
-
157
-
158
- %w(collect! compact! delete_if fill flatten! insert reverse!
159
- rotate! select! shuffle! sort! sort_by! uniq!).each do |method_name|
160
- define_array_wrapper_with_result_method(method_name)
161
- end
162
- alias_method :keep_if, :select!
163
- alias_method :map!, :collect!
164
- alias_method :reject!, :delete_if
165
-
166
-
167
- # propagates changes made by user of enumerator back to the original repeated field.
168
- # This only applies in cases where the calling function which created the enumerator,
169
- # such as #sort!, modifies itself rather than a new array, such as #sort
170
- class ProxyingEnumerator < Struct.new(:repeated_field, :external_enumerator)
171
- def each(*args, &block)
172
- results = []
173
- external_enumerator.each_with_index do |val, i|
174
- result = yield(val)
175
- results << result
176
- #nil means no change occurred from yield; usually occurs when #to_a is called
177
- if result
178
- repeated_field[i] = result if result != val
179
- end
180
- end
181
- results
182
- end
183
- end
184
-
185
-
186
- end
187
- end
188
- end
@@ -1,18 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/protobuf/source_context.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/protobuf/source_context.proto", :syntax => :proto3) do
8
- add_message "google.protobuf.SourceContext" do
9
- optional :file_name, :string, 1
10
- end
11
- end
12
- end
13
-
14
- module Google
15
- module Protobuf
16
- SourceContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.SourceContext").msgclass
17
- end
18
- end
@@ -1,37 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/protobuf/struct.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/protobuf/struct.proto", :syntax => :proto3) do
8
- add_message "google.protobuf.Struct" do
9
- map :fields, :string, :message, 1, "google.protobuf.Value"
10
- end
11
- add_message "google.protobuf.Value" do
12
- oneof :kind do
13
- optional :null_value, :enum, 1, "google.protobuf.NullValue"
14
- optional :number_value, :double, 2
15
- optional :string_value, :string, 3
16
- optional :bool_value, :bool, 4
17
- optional :struct_value, :message, 5, "google.protobuf.Struct"
18
- optional :list_value, :message, 6, "google.protobuf.ListValue"
19
- end
20
- end
21
- add_message "google.protobuf.ListValue" do
22
- repeated :values, :message, 1, "google.protobuf.Value"
23
- end
24
- add_enum "google.protobuf.NullValue" do
25
- value :NULL_VALUE, 0
26
- end
27
- end
28
- end
29
-
30
- module Google
31
- module Protobuf
32
- Struct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Struct").msgclass
33
- Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Value").msgclass
34
- ListValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.ListValue").msgclass
35
- NullValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.NullValue").enummodule
36
- end
37
- end
@@ -1,19 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/protobuf/timestamp.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/protobuf/timestamp.proto", :syntax => :proto3) do
8
- add_message "google.protobuf.Timestamp" do
9
- optional :seconds, :int64, 1
10
- optional :nanos, :int32, 2
11
- end
12
- end
13
- end
14
-
15
- module Google
16
- module Protobuf
17
- Timestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Timestamp").msgclass
18
- end
19
- end
@@ -1,91 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/protobuf/type.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/protobuf/any_pb'
7
- require 'google/protobuf/source_context_pb'
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/protobuf/type.proto", :syntax => :proto3) do
10
- add_message "google.protobuf.Type" do
11
- optional :name, :string, 1
12
- repeated :fields, :message, 2, "google.protobuf.Field"
13
- repeated :oneofs, :string, 3
14
- repeated :options, :message, 4, "google.protobuf.Option"
15
- optional :source_context, :message, 5, "google.protobuf.SourceContext"
16
- optional :syntax, :enum, 6, "google.protobuf.Syntax"
17
- end
18
- add_message "google.protobuf.Field" do
19
- optional :kind, :enum, 1, "google.protobuf.Field.Kind"
20
- optional :cardinality, :enum, 2, "google.protobuf.Field.Cardinality"
21
- optional :number, :int32, 3
22
- optional :name, :string, 4
23
- optional :type_url, :string, 6
24
- optional :oneof_index, :int32, 7
25
- optional :packed, :bool, 8
26
- repeated :options, :message, 9, "google.protobuf.Option"
27
- optional :json_name, :string, 10
28
- optional :default_value, :string, 11
29
- end
30
- add_enum "google.protobuf.Field.Kind" do
31
- value :TYPE_UNKNOWN, 0
32
- value :TYPE_DOUBLE, 1
33
- value :TYPE_FLOAT, 2
34
- value :TYPE_INT64, 3
35
- value :TYPE_UINT64, 4
36
- value :TYPE_INT32, 5
37
- value :TYPE_FIXED64, 6
38
- value :TYPE_FIXED32, 7
39
- value :TYPE_BOOL, 8
40
- value :TYPE_STRING, 9
41
- value :TYPE_GROUP, 10
42
- value :TYPE_MESSAGE, 11
43
- value :TYPE_BYTES, 12
44
- value :TYPE_UINT32, 13
45
- value :TYPE_ENUM, 14
46
- value :TYPE_SFIXED32, 15
47
- value :TYPE_SFIXED64, 16
48
- value :TYPE_SINT32, 17
49
- value :TYPE_SINT64, 18
50
- end
51
- add_enum "google.protobuf.Field.Cardinality" do
52
- value :CARDINALITY_UNKNOWN, 0
53
- value :CARDINALITY_OPTIONAL, 1
54
- value :CARDINALITY_REQUIRED, 2
55
- value :CARDINALITY_REPEATED, 3
56
- end
57
- add_message "google.protobuf.Enum" do
58
- optional :name, :string, 1
59
- repeated :enumvalue, :message, 2, "google.protobuf.EnumValue"
60
- repeated :options, :message, 3, "google.protobuf.Option"
61
- optional :source_context, :message, 4, "google.protobuf.SourceContext"
62
- optional :syntax, :enum, 5, "google.protobuf.Syntax"
63
- end
64
- add_message "google.protobuf.EnumValue" do
65
- optional :name, :string, 1
66
- optional :number, :int32, 2
67
- repeated :options, :message, 3, "google.protobuf.Option"
68
- end
69
- add_message "google.protobuf.Option" do
70
- optional :name, :string, 1
71
- optional :value, :message, 2, "google.protobuf.Any"
72
- end
73
- add_enum "google.protobuf.Syntax" do
74
- value :SYNTAX_PROTO2, 0
75
- value :SYNTAX_PROTO3, 1
76
- end
77
- end
78
- end
79
-
80
- module Google
81
- module Protobuf
82
- Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Type").msgclass
83
- Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Field").msgclass
84
- Field::Kind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Field.Kind").enummodule
85
- Field::Cardinality = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Field.Cardinality").enummodule
86
- Enum = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Enum").msgclass
87
- EnumValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.EnumValue").msgclass
88
- Option = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Option").msgclass
89
- Syntax = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.Syntax").enummodule
90
- end
91
- end