google-protobuf 3.21.12 → 3.22.0.rc.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/ext/google/protobuf_c/convert.c +0 -0
  3. data/ext/google/protobuf_c/convert.h +0 -0
  4. data/ext/google/protobuf_c/defs.c +3 -3
  5. data/ext/google/protobuf_c/defs.h +0 -0
  6. data/ext/google/protobuf_c/extconf.rb +2 -2
  7. data/ext/google/protobuf_c/map.c +27 -42
  8. data/ext/google/protobuf_c/map.h +0 -0
  9. data/ext/google/protobuf_c/message.c +112 -86
  10. data/ext/google/protobuf_c/message.h +0 -0
  11. data/ext/google/protobuf_c/protobuf.c +0 -0
  12. data/ext/google/protobuf_c/protobuf.h +0 -0
  13. data/ext/google/protobuf_c/repeated_field.c +0 -0
  14. data/ext/google/protobuf_c/repeated_field.h +0 -0
  15. data/ext/google/protobuf_c/ruby-upb.c +11144 -9889
  16. data/ext/google/protobuf_c/ruby-upb.h +9285 -4982
  17. data/ext/google/protobuf_c/third_party/utf8_range/LICENSE +1 -0
  18. data/ext/google/protobuf_c/third_party/utf8_range/naive.c +0 -0
  19. data/ext/google/protobuf_c/third_party/utf8_range/range2-neon.c +1 -1
  20. data/ext/google/protobuf_c/third_party/utf8_range/range2-sse.c +0 -0
  21. data/ext/google/protobuf_c/third_party/utf8_range/utf8_range.h +13 -1
  22. data/ext/google/protobuf_c/wrap_memcpy.c +0 -0
  23. data/lib/google/protobuf/any_pb.rb +0 -0
  24. data/lib/google/protobuf/api_pb.rb +0 -0
  25. data/lib/google/protobuf/descriptor_dsl.rb +0 -0
  26. data/lib/google/protobuf/descriptor_pb.rb +41 -12
  27. data/lib/google/protobuf/duration_pb.rb +0 -0
  28. data/lib/google/protobuf/empty_pb.rb +0 -0
  29. data/lib/google/protobuf/field_mask_pb.rb +0 -0
  30. data/lib/google/protobuf/message_exts.rb +5 -0
  31. data/lib/google/protobuf/plugin_pb.rb +50 -0
  32. data/lib/google/protobuf/repeated_field.rb +0 -0
  33. data/lib/google/protobuf/source_context_pb.rb +0 -0
  34. data/lib/google/protobuf/struct_pb.rb +0 -0
  35. data/lib/google/protobuf/timestamp_pb.rb +0 -0
  36. data/lib/google/protobuf/type_pb.rb +0 -0
  37. data/lib/google/protobuf/wrappers_pb.rb +0 -0
  38. data/lib/google/protobuf.rb +0 -0
  39. metadata +8 -13
  40. data/tests/basic.rb +0 -739
  41. data/tests/generated_code_test.rb +0 -23
  42. data/tests/stress.rb +0 -38
@@ -1,6 +1,7 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) 2019 Yibo Cai
4
+ Copyright 2022 Google LLC
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
File without changes
@@ -2,7 +2,7 @@
2
2
  * Process 2x16 bytes in each iteration.
3
3
  * Comments removed for brevity. See range-neon.c for details.
4
4
  */
5
- #if defined(__aarch64__) && defined(__ARM_NEON)
5
+ #ifdef __aarch64__
6
6
 
7
7
  #include <stdio.h>
8
8
  #include <stdint.h>
@@ -1,5 +1,11 @@
1
+ #ifndef THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
2
+ #define THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
1
3
 
2
- #if ((defined(__ARM_NEON) && defined(__aarch64__)) || defined(__SSE4_1__)) && !defined(TRUFFLERUBY)
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ #if (defined(__ARM_NEON) && defined(__aarch64__)) || defined(__SSE4_1__)
3
9
  int utf8_range2(const unsigned char* data, int len);
4
10
  #else
5
11
  int utf8_naive(const unsigned char* data, int len);
@@ -7,3 +13,9 @@ static inline int utf8_range2(const unsigned char* data, int len) {
7
13
  return utf8_naive(data, len);
8
14
  }
9
15
  #endif
16
+
17
+ #ifdef __cplusplus
18
+ } // extern "C"
19
+ #endif
20
+
21
+ #endif // THIRD_PARTY_UTF8_RANGE_UTF8_RANGE_H_
File without changes
File without changes
File without changes
File without changes
@@ -29,6 +29,8 @@ module Google
29
29
  FieldOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FieldOptions").msgclass
30
30
  FieldOptions::CType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FieldOptions.CType").enummodule
31
31
  FieldOptions::JSType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FieldOptions.JSType").enummodule
32
+ FieldOptions::OptionRetention = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FieldOptions.OptionRetention").enummodule
33
+ FieldOptions::OptionTargetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.FieldOptions.OptionTargetType").enummodule
32
34
  OneofOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.OneofOptions").msgclass
33
35
  EnumOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.EnumOptions").msgclass
34
36
  EnumValueOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.EnumValueOptions").msgclass
@@ -41,6 +43,7 @@ module Google
41
43
  SourceCodeInfo::Location = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.SourceCodeInfo.Location").msgclass
42
44
  GeneratedCodeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.GeneratedCodeInfo").msgclass
43
45
  GeneratedCodeInfo::Annotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.GeneratedCodeInfo.Annotation").msgclass
46
+ GeneratedCodeInfo::Annotation::Semantic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.GeneratedCodeInfo.Annotation.Semantic").enummodule
44
47
  end
45
48
  end
46
49
 
@@ -48,7 +51,7 @@ __END__
48
51
 
49
52
  google/protobuf/descriptor.protogoogle.protobuf"G
50
53
  FileDescriptorSet2
51
- file ( 2$.google.protobuf.FileDescriptorProto"�
54
+ file ( 2$.google.protobuf.FileDescriptorProto"�
52
55
  FileDescriptorProto
53
56
  name ( 
54
57
  package ( 
@@ -63,7 +66,8 @@ dependency ( 
63
66
  extension ( 2%.google.protobuf.FieldDescriptorProto-
64
67
  options ( 2.google.protobuf.FileOptions9
65
68
  source_code_info ( 2.google.protobuf.SourceCodeInfo
66
- syntax ( "�
69
+ syntax ( 
70
+ edition
67
71
  ( "�
68
72
  DescriptorProto
69
73
  name ( 4
70
74
  field ( 2%.google.protobuf.FieldDescriptorProto8
@@ -184,15 +188,16 @@ deprecated (:false
184
188
  OptimizeMode
185
189
  SPEED
186
190
  CODE_SIZE
187
- LITE_RUNTIME* �����J&'"�
191
+ LITE_RUNTIME* �����J&'"�
188
192
  MessageOptions&
189
193
  message_set_wire_format (:false.
190
194
  no_standard_descriptor_accessor (:false
191
195
 
192
196
  deprecated (:false
193
- map_entry (C
197
+ map_entry (2
198
+ &deprecated_legacy_json_field_conflicts (BC
194
199
  uninterpreted_option� ( 2$.google.protobuf.UninterpretedOption* �����JJJJ J 
195
- "�
200
+ "�
196
201
  FieldOptions:
197
202
  ctype (2#.google.protobuf.FieldOptions.CType:STRING
198
203
  packed (?
@@ -202,7 +207,10 @@ deprecated (:false
202
207
 
203
208
  deprecated (:false
204
209
  weak
205
- (:falseC
210
+ (:false
211
+ debug_redact (:false@
212
+ retention (2-.google.protobuf.FieldOptions.OptionRetention>
213
+ target (2..google.protobuf.FieldOptions.OptionTargetTypeC
206
214
  uninterpreted_option� ( 2$.google.protobuf.UninterpretedOption"/
207
215
  CType
208
216
 
@@ -212,13 +220,29 @@ deprecated (:false
212
220
  JSType
213
221
  JS_NORMAL
214
222
  JS_STRING
215
- JS_NUMBER* �����J"^
223
+ JS_NUMBER"U
224
+ OptionRetention
225
+ RETENTION_UNKNOWN
226
+ RETENTION_RUNTIME
227
+ RETENTION_SOURCE"�
228
+ OptionTargetType
229
+ TARGET_TYPE_UNKNOWN
230
+ TARGET_TYPE_FILE
231
+ TARGET_TYPE_EXTENSION_RANGE
232
+ TARGET_TYPE_MESSAGE
233
+ TARGET_TYPE_FIELD
234
+ TARGET_TYPE_ONEOF
235
+ TARGET_TYPE_ENUM
236
+ TARGET_TYPE_ENUM_ENTRY
237
+ TARGET_TYPE_SERVICE
238
+ TARGET_TYPE_METHOD * �����J"^
216
239
  OneofOptionsC
217
- uninterpreted_option� ( 2$.google.protobuf.UninterpretedOption* �����"�
240
+ uninterpreted_option� ( 2$.google.protobuf.UninterpretedOption* �����"�
218
241
  EnumOptions
219
242
  allow_alias (
220
243
 
221
- deprecated (:falseC
244
+ deprecated (:false2
245
+ &deprecated_legacy_json_field_conflicts (BC
222
246
  uninterpreted_option� ( 2$.google.protobuf.UninterpretedOption* �����J"}
223
247
  EnumValueOptions
224
248
 
@@ -256,14 +280,19 @@ IDEMPOTENT* 
256
280
  span (B
257
281
  leading_comments ( 
258
282
  trailing_comments ( !
259
- leading_detached_comments ( "�
283
+ leading_detached_comments ( "�
260
284
  GeneratedCodeInfoA
261
285
 
262
- annotation ( 2-.google.protobuf.GeneratedCodeInfo.AnnotationO
286
+ annotation ( 2-.google.protobuf.GeneratedCodeInfo.Annotation�
263
287
 
264
288
  Annotation
265
289
  path (B
266
290
  source_file ( 
267
291
  begin (
268
- end (B~
292
+ end (H
293
+ semantic (26.google.protobuf.GeneratedCodeInfo.Annotation.Semantic"(
294
+ Semantic
295
+ NONE
296
+ SET
297
+ ALIASB~
269
298
  com.google.protobufBDescriptorProtosHZ-google.golang.org/protobuf/types/descriptorpb��GPB�Google.Protobuf.Reflection
File without changes
File without changes
File without changes
@@ -49,5 +49,10 @@ module Google
49
49
  end
50
50
 
51
51
  end
52
+ class AbstractMessage
53
+ include MessageExts
54
+ extend MessageExts::ClassMethods
55
+ end
56
+ private_constant :AbstractMessage
52
57
  end
53
58
  end
@@ -0,0 +1,50 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/protobuf/compiler/plugin.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/descriptor_pb'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/protobuf/compiler/plugin.proto", :syntax => :proto2) do
10
+ add_message "google.protobuf.compiler.Version" do
11
+ optional :major, :int32, 1
12
+ optional :minor, :int32, 2
13
+ optional :patch, :int32, 3
14
+ optional :suffix, :string, 4
15
+ end
16
+ add_message "google.protobuf.compiler.CodeGeneratorRequest" do
17
+ repeated :file_to_generate, :string, 1
18
+ optional :parameter, :string, 2
19
+ repeated :proto_file, :message, 15, "google.protobuf.FileDescriptorProto"
20
+ optional :compiler_version, :message, 3, "google.protobuf.compiler.Version"
21
+ end
22
+ add_message "google.protobuf.compiler.CodeGeneratorResponse" do
23
+ optional :error, :string, 1
24
+ optional :supported_features, :uint64, 2
25
+ repeated :file, :message, 15, "google.protobuf.compiler.CodeGeneratorResponse.File"
26
+ end
27
+ add_message "google.protobuf.compiler.CodeGeneratorResponse.File" do
28
+ optional :name, :string, 1
29
+ optional :insertion_point, :string, 2
30
+ optional :content, :string, 15
31
+ optional :generated_code_info, :message, 16, "google.protobuf.GeneratedCodeInfo"
32
+ end
33
+ add_enum "google.protobuf.compiler.CodeGeneratorResponse.Feature" do
34
+ value :FEATURE_NONE, 0
35
+ value :FEATURE_PROTO3_OPTIONAL, 1
36
+ end
37
+ end
38
+ end
39
+
40
+ module Google
41
+ module Protobuf
42
+ module Compiler
43
+ Version = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.compiler.Version").msgclass
44
+ CodeGeneratorRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.compiler.CodeGeneratorRequest").msgclass
45
+ CodeGeneratorResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.compiler.CodeGeneratorResponse").msgclass
46
+ CodeGeneratorResponse::File = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.compiler.CodeGeneratorResponse.File").msgclass
47
+ CodeGeneratorResponse::Feature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.protobuf.compiler.CodeGeneratorResponse.Feature").enummodule
48
+ end
49
+ end
50
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.21.12
4
+ version: 3.22.0.rc.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-14 00:00:00.000000000 Z
11
+ date: 2023-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -95,6 +95,7 @@ files:
95
95
  - lib/google/protobuf/empty_pb.rb
96
96
  - lib/google/protobuf/field_mask_pb.rb
97
97
  - lib/google/protobuf/message_exts.rb
98
+ - lib/google/protobuf/plugin_pb.rb
98
99
  - lib/google/protobuf/repeated_field.rb
99
100
  - lib/google/protobuf/source_context_pb.rb
100
101
  - lib/google/protobuf/struct_pb.rb
@@ -102,14 +103,11 @@ files:
102
103
  - lib/google/protobuf/type_pb.rb
103
104
  - lib/google/protobuf/well_known_types.rb
104
105
  - lib/google/protobuf/wrappers_pb.rb
105
- - tests/basic.rb
106
- - tests/generated_code_test.rb
107
- - tests/stress.rb
108
106
  homepage: https://developers.google.com/protocol-buffers
109
107
  licenses:
110
108
  - BSD-3-Clause
111
109
  metadata:
112
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.12/ruby
110
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.22.0-rc2/ruby
113
111
  post_install_message:
114
112
  rdoc_options: []
115
113
  require_paths:
@@ -121,15 +119,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
119
  version: '2.3'
122
120
  required_rubygems_version: !ruby/object:Gem::Requirement
123
121
  requirements:
124
- - - ">="
122
+ - - ">"
125
123
  - !ruby/object:Gem::Version
126
- version: '0'
124
+ version: 1.3.1
127
125
  requirements: []
128
- rubygems_version: 3.0.3.1
126
+ rubygems_version: 3.0.8
129
127
  signing_key:
130
128
  specification_version: 4
131
129
  summary: Protocol Buffers
132
- test_files:
133
- - tests/basic.rb
134
- - tests/stress.rb
135
- - tests/generated_code_test.rb
130
+ test_files: []