grpc-tools 1.41.0 → 1.59.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/bin/x86-linux/google/protobuf/any.proto +7 -3
  3. data/bin/x86-linux/google/protobuf/api.proto +2 -3
  4. data/bin/x86-linux/google/protobuf/compiler/plugin.proto +12 -4
  5. data/bin/x86-linux/google/protobuf/descriptor.proto +274 -28
  6. data/bin/x86-linux/google/protobuf/duration.proto +1 -2
  7. data/bin/x86-linux/google/protobuf/empty.proto +1 -2
  8. data/bin/x86-linux/google/protobuf/field_mask.proto +1 -1
  9. data/bin/x86-linux/google/protobuf/source_context.proto +1 -1
  10. data/bin/x86-linux/google/protobuf/struct.proto +4 -4
  11. data/bin/x86-linux/google/protobuf/timestamp.proto +2 -5
  12. data/bin/x86-linux/google/protobuf/type.proto +7 -1
  13. data/bin/x86-linux/google/protobuf/wrappers.proto +2 -2
  14. data/bin/x86-linux/grpc_ruby_plugin +0 -0
  15. data/bin/x86-linux/protoc +0 -0
  16. data/bin/x86-windows/google/protobuf/any.proto +7 -3
  17. data/bin/x86-windows/google/protobuf/api.proto +2 -3
  18. data/bin/x86-windows/google/protobuf/compiler/plugin.proto +12 -4
  19. data/bin/x86-windows/google/protobuf/descriptor.proto +274 -28
  20. data/bin/x86-windows/google/protobuf/duration.proto +1 -2
  21. data/bin/x86-windows/google/protobuf/empty.proto +1 -2
  22. data/bin/x86-windows/google/protobuf/field_mask.proto +1 -1
  23. data/bin/x86-windows/google/protobuf/source_context.proto +1 -1
  24. data/bin/x86-windows/google/protobuf/struct.proto +4 -4
  25. data/bin/x86-windows/google/protobuf/timestamp.proto +2 -5
  26. data/bin/x86-windows/google/protobuf/type.proto +7 -1
  27. data/bin/x86-windows/google/protobuf/wrappers.proto +2 -2
  28. data/bin/x86-windows/grpc_ruby_plugin.exe +0 -0
  29. data/bin/x86-windows/protoc.exe +0 -0
  30. data/bin/x86_64-linux/google/protobuf/any.proto +7 -3
  31. data/bin/x86_64-linux/google/protobuf/api.proto +2 -3
  32. data/bin/x86_64-linux/google/protobuf/compiler/plugin.proto +12 -4
  33. data/bin/x86_64-linux/google/protobuf/descriptor.proto +274 -28
  34. data/bin/x86_64-linux/google/protobuf/duration.proto +1 -2
  35. data/bin/x86_64-linux/google/protobuf/empty.proto +1 -2
  36. data/bin/x86_64-linux/google/protobuf/field_mask.proto +1 -1
  37. data/bin/x86_64-linux/google/protobuf/source_context.proto +1 -1
  38. data/bin/x86_64-linux/google/protobuf/struct.proto +4 -4
  39. data/bin/x86_64-linux/google/protobuf/timestamp.proto +2 -5
  40. data/bin/x86_64-linux/google/protobuf/type.proto +7 -1
  41. data/bin/x86_64-linux/google/protobuf/wrappers.proto +2 -2
  42. data/bin/x86_64-linux/grpc_ruby_plugin +0 -0
  43. data/bin/x86_64-linux/protoc +0 -0
  44. data/bin/x86_64-macos/google/protobuf/any.proto +7 -3
  45. data/bin/x86_64-macos/google/protobuf/api.proto +2 -3
  46. data/bin/x86_64-macos/google/protobuf/compiler/plugin.proto +12 -4
  47. data/bin/x86_64-macos/google/protobuf/descriptor.proto +274 -28
  48. data/bin/x86_64-macos/google/protobuf/duration.proto +1 -2
  49. data/bin/x86_64-macos/google/protobuf/empty.proto +1 -2
  50. data/bin/x86_64-macos/google/protobuf/field_mask.proto +1 -1
  51. data/bin/x86_64-macos/google/protobuf/source_context.proto +1 -1
  52. data/bin/x86_64-macos/google/protobuf/struct.proto +4 -4
  53. data/bin/x86_64-macos/google/protobuf/timestamp.proto +2 -5
  54. data/bin/x86_64-macos/google/protobuf/type.proto +7 -1
  55. data/bin/x86_64-macos/google/protobuf/wrappers.proto +2 -2
  56. data/bin/x86_64-macos/grpc_ruby_plugin +0 -0
  57. data/bin/x86_64-macos/protoc +0 -0
  58. data/bin/x86_64-windows/google/protobuf/any.proto +7 -3
  59. data/bin/x86_64-windows/google/protobuf/api.proto +2 -3
  60. data/bin/x86_64-windows/google/protobuf/compiler/plugin.proto +12 -4
  61. data/bin/x86_64-windows/google/protobuf/descriptor.proto +274 -28
  62. data/bin/x86_64-windows/google/protobuf/duration.proto +1 -2
  63. data/bin/x86_64-windows/google/protobuf/empty.proto +1 -2
  64. data/bin/x86_64-windows/google/protobuf/field_mask.proto +1 -1
  65. data/bin/x86_64-windows/google/protobuf/source_context.proto +1 -1
  66. data/bin/x86_64-windows/google/protobuf/struct.proto +4 -4
  67. data/bin/x86_64-windows/google/protobuf/timestamp.proto +2 -5
  68. data/bin/x86_64-windows/google/protobuf/type.proto +7 -1
  69. data/bin/x86_64-windows/google/protobuf/wrappers.proto +2 -2
  70. data/bin/x86_64-windows/grpc_ruby_plugin.exe +0 -0
  71. data/bin/x86_64-windows/protoc.exe +0 -0
  72. data/platform_check.rb +1 -1
  73. data/version.rb +1 -1
  74. metadata +2 -2
@@ -35,12 +35,12 @@ package google.protobuf;
35
35
  import "google/protobuf/any.proto";
36
36
  import "google/protobuf/source_context.proto";
37
37
 
38
- option csharp_namespace = "Google.Protobuf.WellKnownTypes";
39
38
  option cc_enable_arenas = true;
40
39
  option java_package = "com.google.protobuf";
41
40
  option java_outer_classname = "TypeProto";
42
41
  option java_multiple_files = true;
43
42
  option objc_class_prefix = "GPB";
43
+ option csharp_namespace = "Google.Protobuf.WellKnownTypes";
44
44
  option go_package = "google.golang.org/protobuf/types/known/typepb";
45
45
 
46
46
  // A protocol buffer message type.
@@ -57,6 +57,8 @@ message Type {
57
57
  SourceContext source_context = 5;
58
58
  // The source syntax.
59
59
  Syntax syntax = 6;
60
+ // The source edition string, only valid when syntax is SYNTAX_EDITIONS.
61
+ string edition = 7;
60
62
  }
61
63
 
62
64
  // A single field of a message type.
@@ -151,6 +153,8 @@ message Enum {
151
153
  SourceContext source_context = 4;
152
154
  // The source syntax.
153
155
  Syntax syntax = 5;
156
+ // The source edition string, only valid when syntax is SYNTAX_EDITIONS.
157
+ string edition = 6;
154
158
  }
155
159
 
156
160
  // Enum value definition.
@@ -184,4 +188,6 @@ enum Syntax {
184
188
  SYNTAX_PROTO2 = 0;
185
189
  // Syntax `proto3`.
186
190
  SYNTAX_PROTO3 = 1;
191
+ // Syntax `editions`.
192
+ SYNTAX_EDITIONS = 2;
187
193
  }
@@ -27,7 +27,7 @@
27
27
  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
28
  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
29
  // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
-
30
+ //
31
31
  // Wrappers for primitive (non-message) types. These types are useful
32
32
  // for embedding primitives in the `google.protobuf.Any` type and for places
33
33
  // where we need to distinguish between the absence of a primitive
@@ -42,13 +42,13 @@ syntax = "proto3";
42
42
 
43
43
  package google.protobuf;
44
44
 
45
- option csharp_namespace = "Google.Protobuf.WellKnownTypes";
46
45
  option cc_enable_arenas = true;
47
46
  option go_package = "google.golang.org/protobuf/types/known/wrapperspb";
48
47
  option java_package = "com.google.protobuf";
49
48
  option java_outer_classname = "WrappersProto";
50
49
  option java_multiple_files = true;
51
50
  option objc_class_prefix = "GPB";
51
+ option csharp_namespace = "Google.Protobuf.WellKnownTypes";
52
52
 
53
53
  // Wrapper message for `double`.
54
54
  //
Binary file
Binary file
@@ -32,12 +32,12 @@ syntax = "proto3";
32
32
 
33
33
  package google.protobuf;
34
34
 
35
- option csharp_namespace = "Google.Protobuf.WellKnownTypes";
36
35
  option go_package = "google.golang.org/protobuf/types/known/anypb";
37
36
  option java_package = "com.google.protobuf";
38
37
  option java_outer_classname = "AnyProto";
39
38
  option java_multiple_files = true;
40
39
  option objc_class_prefix = "GPB";
40
+ option csharp_namespace = "Google.Protobuf.WellKnownTypes";
41
41
 
42
42
  // `Any` contains an arbitrary serialized protocol buffer message along with a
43
43
  // URL that describes the type of the serialized message.
@@ -63,6 +63,10 @@ option objc_class_prefix = "GPB";
63
63
  // if (any.is(Foo.class)) {
64
64
  // foo = any.unpack(Foo.class);
65
65
  // }
66
+ // // or ...
67
+ // if (any.isSameTypeAs(Foo.getDefaultInstance())) {
68
+ // foo = any.unpack(Foo.getDefaultInstance());
69
+ // }
66
70
  //
67
71
  // Example 3: Pack and unpack a message in Python.
68
72
  //
@@ -93,7 +97,6 @@ option objc_class_prefix = "GPB";
93
97
  // in the type URL, for example "foo.bar.com/x/y.z" will yield type
94
98
  // name "y.z".
95
99
  //
96
- //
97
100
  // JSON
98
101
  // ====
99
102
  // The JSON representation of an `Any` value uses the regular
@@ -146,7 +149,8 @@ message Any {
146
149
  //
147
150
  // Note: this functionality is not currently available in the official
148
151
  // protobuf release, and it is not used for type URLs beginning with
149
- // type.googleapis.com.
152
+ // type.googleapis.com. As of May 2023, there are no widely used type server
153
+ // implementations and no plans to implement one.
150
154
  //
151
155
  // Schemes other than `http`, `https` (or the empty scheme) might be
152
156
  // used with implementation specific semantics.
@@ -35,11 +35,11 @@ package google.protobuf;
35
35
  import "google/protobuf/source_context.proto";
36
36
  import "google/protobuf/type.proto";
37
37
 
38
- option csharp_namespace = "Google.Protobuf.WellKnownTypes";
39
38
  option java_package = "com.google.protobuf";
40
39
  option java_outer_classname = "ApiProto";
41
40
  option java_multiple_files = true;
42
41
  option objc_class_prefix = "GPB";
42
+ option csharp_namespace = "Google.Protobuf.WellKnownTypes";
43
43
  option go_package = "google.golang.org/protobuf/types/known/apipb";
44
44
 
45
45
  // Api is a light-weight descriptor for an API Interface.
@@ -82,7 +82,6 @@ message Api {
82
82
  // be omitted. Zero major versions must only be used for
83
83
  // experimental, non-GA interfaces.
84
84
  //
85
- //
86
85
  string version = 4;
87
86
 
88
87
  // Source context for the protocol buffer service represented by this
@@ -167,7 +166,7 @@ message Method {
167
166
  // The mixin construct implies that all methods in `AccessControl` are
168
167
  // also declared with same name and request/response types in
169
168
  // `Storage`. A documentation generator or annotation processor will
170
- // see the effective `Storage.GetAcl` method after inheriting
169
+ // see the effective `Storage.GetAcl` method after inherting
171
170
  // documentation and annotations as follows:
172
171
  //
173
172
  // service Storage {
@@ -30,9 +30,6 @@
30
30
 
31
31
  // Author: kenton@google.com (Kenton Varda)
32
32
  //
33
- // WARNING: The plugin interface is currently EXPERIMENTAL and is subject to
34
- // change.
35
- //
36
33
  // protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
37
34
  // just a program that reads a CodeGeneratorRequest from stdin and writes a
38
35
  // CodeGeneratorResponse to stdout.
@@ -50,6 +47,7 @@ package google.protobuf.compiler;
50
47
  option java_package = "com.google.protobuf.compiler";
51
48
  option java_outer_classname = "PluginProtos";
52
49
 
50
+ option csharp_namespace = "Google.Protobuf.Compiler";
53
51
  option go_package = "google.golang.org/protobuf/types/pluginpb";
54
52
 
55
53
  import "google/protobuf/descriptor.proto";
@@ -78,6 +76,11 @@ message CodeGeneratorRequest {
78
76
  // they import. The files will appear in topological order, so each file
79
77
  // appears before any file that imports it.
80
78
  //
79
+ // Note: the files listed in files_to_generate will include runtime-retention
80
+ // options only, but all other files will include source-retention options.
81
+ // The source_file_descriptors field below is available in case you need
82
+ // source-retention options for files_to_generate.
83
+ //
81
84
  // protoc guarantees that all proto_files will be written after
82
85
  // the fields above, even though this is not technically guaranteed by the
83
86
  // protobuf wire format. This theoretically could allow a plugin to stream
@@ -90,9 +93,13 @@ message CodeGeneratorRequest {
90
93
  // fully qualified.
91
94
  repeated FileDescriptorProto proto_file = 15;
92
95
 
96
+ // File descriptors with all options, including source-retention options.
97
+ // These descriptors are only provided for the files listed in
98
+ // files_to_generate.
99
+ repeated FileDescriptorProto source_file_descriptors = 17;
100
+
93
101
  // The version number of protocol compiler.
94
102
  optional Version compiler_version = 3;
95
-
96
103
  }
97
104
 
98
105
  // The plugin writes an encoded CodeGeneratorResponse to stdout.
@@ -115,6 +122,7 @@ message CodeGeneratorResponse {
115
122
  enum Feature {
116
123
  FEATURE_NONE = 0;
117
124
  FEATURE_PROTO3_OPTIONAL = 1;
125
+ FEATURE_SUPPORTS_EDITIONS = 2;
118
126
  }
119
127
 
120
128
  // Represents a single generated file.