grpc-tools 1.26.0 → 1.47.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/x86-linux/google/protobuf/any.proto +6 -3
- data/bin/x86-linux/google/protobuf/api.proto +2 -4
- data/bin/x86-linux/google/protobuf/compiler/plugin.proto +16 -1
- data/bin/x86-linux/google/protobuf/descriptor.proto +41 -12
- data/bin/x86-linux/google/protobuf/duration.proto +2 -2
- data/bin/x86-linux/google/protobuf/empty.proto +1 -1
- data/bin/x86-linux/google/protobuf/field_mask.proto +2 -2
- data/bin/x86-linux/google/protobuf/source_context.proto +1 -1
- data/bin/x86-linux/google/protobuf/struct.proto +3 -3
- data/bin/x86-linux/google/protobuf/timestamp.proto +11 -2
- data/bin/x86-linux/google/protobuf/type.proto +2 -2
- data/bin/x86-linux/google/protobuf/wrappers.proto +1 -1
- data/bin/x86-linux/grpc_ruby_plugin +0 -0
- data/bin/x86-linux/protoc +0 -0
- data/bin/x86-windows/google/protobuf/any.proto +6 -3
- data/bin/x86-windows/google/protobuf/api.proto +2 -4
- data/bin/x86-windows/google/protobuf/compiler/plugin.proto +16 -1
- data/bin/x86-windows/google/protobuf/descriptor.proto +41 -12
- data/bin/x86-windows/google/protobuf/duration.proto +2 -2
- data/bin/x86-windows/google/protobuf/empty.proto +1 -1
- data/bin/x86-windows/google/protobuf/field_mask.proto +2 -2
- data/bin/x86-windows/google/protobuf/source_context.proto +1 -1
- data/bin/x86-windows/google/protobuf/struct.proto +3 -3
- data/bin/x86-windows/google/protobuf/timestamp.proto +11 -2
- data/bin/x86-windows/google/protobuf/type.proto +2 -2
- data/bin/x86-windows/google/protobuf/wrappers.proto +1 -1
- data/bin/x86-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86-windows/protoc.exe +0 -0
- data/bin/x86_64-linux/google/protobuf/any.proto +6 -3
- data/bin/x86_64-linux/google/protobuf/api.proto +2 -4
- data/bin/x86_64-linux/google/protobuf/compiler/plugin.proto +16 -1
- data/bin/x86_64-linux/google/protobuf/descriptor.proto +41 -12
- data/bin/x86_64-linux/google/protobuf/duration.proto +2 -2
- data/bin/x86_64-linux/google/protobuf/empty.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/field_mask.proto +2 -2
- data/bin/x86_64-linux/google/protobuf/source_context.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/struct.proto +3 -3
- data/bin/x86_64-linux/google/protobuf/timestamp.proto +11 -2
- data/bin/x86_64-linux/google/protobuf/type.proto +2 -2
- data/bin/x86_64-linux/google/protobuf/wrappers.proto +1 -1
- data/bin/x86_64-linux/grpc_ruby_plugin +0 -0
- data/bin/x86_64-linux/protoc +0 -0
- data/bin/x86_64-macos/google/protobuf/any.proto +6 -3
- data/bin/x86_64-macos/google/protobuf/api.proto +2 -4
- data/bin/x86_64-macos/google/protobuf/compiler/plugin.proto +16 -1
- data/bin/x86_64-macos/google/protobuf/descriptor.proto +41 -12
- data/bin/x86_64-macos/google/protobuf/duration.proto +2 -2
- data/bin/x86_64-macos/google/protobuf/empty.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/field_mask.proto +2 -2
- data/bin/x86_64-macos/google/protobuf/source_context.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/struct.proto +3 -3
- data/bin/x86_64-macos/google/protobuf/timestamp.proto +11 -2
- data/bin/x86_64-macos/google/protobuf/type.proto +2 -2
- data/bin/x86_64-macos/google/protobuf/wrappers.proto +1 -1
- data/bin/x86_64-macos/grpc_ruby_plugin +0 -0
- data/bin/x86_64-macos/protoc +0 -0
- data/bin/x86_64-windows/google/protobuf/any.proto +6 -3
- data/bin/x86_64-windows/google/protobuf/api.proto +2 -4
- data/bin/x86_64-windows/google/protobuf/compiler/plugin.proto +16 -1
- data/bin/x86_64-windows/google/protobuf/descriptor.proto +41 -12
- data/bin/x86_64-windows/google/protobuf/duration.proto +2 -2
- data/bin/x86_64-windows/google/protobuf/empty.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/field_mask.proto +2 -2
- data/bin/x86_64-windows/google/protobuf/source_context.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/struct.proto +3 -3
- data/bin/x86_64-windows/google/protobuf/timestamp.proto +11 -2
- data/bin/x86_64-windows/google/protobuf/type.proto +2 -2
- data/bin/x86_64-windows/google/protobuf/wrappers.proto +1 -1
- data/bin/x86_64-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86_64-windows/protoc.exe +0 -0
- data/platform_check.rb +6 -1
- data/version.rb +1 -1
- metadata +3 -17
- data/bin/x86-macos/google/protobuf/any.proto +0 -155
- data/bin/x86-macos/google/protobuf/api.proto +0 -210
- data/bin/x86-macos/google/protobuf/compiler/plugin.proto +0 -168
- data/bin/x86-macos/google/protobuf/descriptor.proto +0 -882
- data/bin/x86-macos/google/protobuf/duration.proto +0 -116
- data/bin/x86-macos/google/protobuf/empty.proto +0 -52
- data/bin/x86-macos/google/protobuf/field_mask.proto +0 -245
- data/bin/x86-macos/google/protobuf/source_context.proto +0 -48
- data/bin/x86-macos/google/protobuf/struct.proto +0 -95
- data/bin/x86-macos/google/protobuf/timestamp.proto +0 -138
- data/bin/x86-macos/google/protobuf/type.proto +0 -187
- data/bin/x86-macos/google/protobuf/wrappers.proto +0 -123
- data/bin/x86-macos/grpc_ruby_plugin +0 -0
- data/bin/x86-macos/protoc +0 -0
@@ -41,7 +41,7 @@ syntax = "proto2";
|
|
41
41
|
|
42
42
|
package google.protobuf;
|
43
43
|
|
44
|
-
option go_package = "
|
44
|
+
option go_package = "google.golang.org/protobuf/types/descriptorpb";
|
45
45
|
option java_package = "com.google.protobuf";
|
46
46
|
option java_outer_classname = "DescriptorProtos";
|
47
47
|
option csharp_namespace = "Google.Protobuf.Reflection";
|
@@ -101,8 +101,8 @@ message DescriptorProto {
|
|
101
101
|
repeated EnumDescriptorProto enum_type = 4;
|
102
102
|
|
103
103
|
message ExtensionRange {
|
104
|
-
optional int32 start = 1;
|
105
|
-
optional int32 end = 2;
|
104
|
+
optional int32 start = 1; // Inclusive.
|
105
|
+
optional int32 end = 2; // Exclusive.
|
106
106
|
|
107
107
|
optional ExtensionRangeOptions options = 3;
|
108
108
|
}
|
@@ -129,6 +129,7 @@ message ExtensionRangeOptions {
|
|
129
129
|
// The parser stores options it doesn't recognize here. See above.
|
130
130
|
repeated UninterpretedOption uninterpreted_option = 999;
|
131
131
|
|
132
|
+
|
132
133
|
// Clients can define custom options in extensions of this message. See above.
|
133
134
|
extensions 1000 to max;
|
134
135
|
}
|
@@ -212,6 +213,29 @@ message FieldDescriptorProto {
|
|
212
213
|
optional string json_name = 10;
|
213
214
|
|
214
215
|
optional FieldOptions options = 8;
|
216
|
+
|
217
|
+
// If true, this is a proto3 "optional". When a proto3 field is optional, it
|
218
|
+
// tracks presence regardless of field type.
|
219
|
+
//
|
220
|
+
// When proto3_optional is true, this field must be belong to a oneof to
|
221
|
+
// signal to old proto3 clients that presence is tracked for this field. This
|
222
|
+
// oneof is known as a "synthetic" oneof, and this field must be its sole
|
223
|
+
// member (each proto3 optional field gets its own synthetic oneof). Synthetic
|
224
|
+
// oneofs exist in the descriptor only, and do not generate any API. Synthetic
|
225
|
+
// oneofs must be ordered after all "real" oneofs.
|
226
|
+
//
|
227
|
+
// For message fields, proto3_optional doesn't create any semantic change,
|
228
|
+
// since non-repeated message fields always track presence. However it still
|
229
|
+
// indicates the semantic detail of whether the user wrote "optional" or not.
|
230
|
+
// This can be useful for round-tripping the .proto file. For consistency we
|
231
|
+
// give message fields a synthetic oneof also, even though it is not required
|
232
|
+
// to track presence. This is especially important because the parser can't
|
233
|
+
// tell if a field is a message or an enum, so it must always create a
|
234
|
+
// synthetic oneof.
|
235
|
+
//
|
236
|
+
// Proto2 optional fields do not set this flag, because they already indicate
|
237
|
+
// optional with `LABEL_OPTIONAL`.
|
238
|
+
optional bool proto3_optional = 17;
|
215
239
|
}
|
216
240
|
|
217
241
|
// Describes a oneof.
|
@@ -324,17 +348,17 @@ message FileOptions {
|
|
324
348
|
optional string java_package = 1;
|
325
349
|
|
326
350
|
|
327
|
-
//
|
328
|
-
//
|
329
|
-
//
|
330
|
-
//
|
331
|
-
//
|
351
|
+
// Controls the name of the wrapper Java class generated for the .proto file.
|
352
|
+
// That class will always contain the .proto file's getDescriptor() method as
|
353
|
+
// well as any top-level extensions defined in the .proto file.
|
354
|
+
// If java_multiple_files is disabled, then all the other classes from the
|
355
|
+
// .proto file will be nested inside the single wrapper outer class.
|
332
356
|
optional string java_outer_classname = 8;
|
333
357
|
|
334
|
-
// If
|
358
|
+
// If enabled, then the Java code generator will generate a separate .java
|
335
359
|
// file for each top-level message, enum, and service defined in the .proto
|
336
|
-
// file. Thus, these types will *not* be nested inside the
|
337
|
-
// named by java_outer_classname. However, the
|
360
|
+
// file. Thus, these types will *not* be nested inside the wrapper class
|
361
|
+
// named by java_outer_classname. However, the wrapper class will still be
|
338
362
|
// generated to contain the file's getDescriptor() method as well as any
|
339
363
|
// top-level extensions defined in the file.
|
340
364
|
optional bool java_multiple_files = 10 [default = false];
|
@@ -369,6 +393,7 @@ message FileOptions {
|
|
369
393
|
|
370
394
|
|
371
395
|
|
396
|
+
|
372
397
|
// Should generic services be generated in each language? "Generic" services
|
373
398
|
// are not specific to any particular RPC system. They are generated by the
|
374
399
|
// main code generators in each language (without additional plugins).
|
@@ -392,7 +417,7 @@ message FileOptions {
|
|
392
417
|
|
393
418
|
// Enables the use of arenas for the proto messages in this file. This applies
|
394
419
|
// only to generated classes for C++.
|
395
|
-
optional bool cc_enable_arenas = 31 [default =
|
420
|
+
optional bool cc_enable_arenas = 31 [default = true];
|
396
421
|
|
397
422
|
|
398
423
|
// Sets the objective c class prefix which is prepended to all objective c
|
@@ -427,6 +452,7 @@ message FileOptions {
|
|
427
452
|
// determining the ruby package.
|
428
453
|
optional string ruby_package = 45;
|
429
454
|
|
455
|
+
|
430
456
|
// The parser stores options it doesn't recognize here.
|
431
457
|
// See the documentation for the "Options" section above.
|
432
458
|
repeated UninterpretedOption uninterpreted_option = 999;
|
@@ -470,6 +496,8 @@ message MessageOptions {
|
|
470
496
|
// this is a formalization for deprecating messages.
|
471
497
|
optional bool deprecated = 3 [default = false];
|
472
498
|
|
499
|
+
reserved 4, 5, 6;
|
500
|
+
|
473
501
|
// Whether the message is an automatically generated map entry type for the
|
474
502
|
// maps field.
|
475
503
|
//
|
@@ -496,6 +524,7 @@ message MessageOptions {
|
|
496
524
|
reserved 8; // javalite_serializable
|
497
525
|
reserved 9; // javanano_as_lite
|
498
526
|
|
527
|
+
|
499
528
|
// The parser stores options it doesn't recognize here. See above.
|
500
529
|
repeated UninterpretedOption uninterpreted_option = 999;
|
501
530
|
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/durationpb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "DurationProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -61,7 +61,7 @@ option objc_class_prefix = "GPB";
|
|
61
61
|
// if (duration.seconds < 0 && duration.nanos > 0) {
|
62
62
|
// duration.seconds += 1;
|
63
63
|
// duration.nanos -= 1000000000;
|
64
|
-
// } else if (
|
64
|
+
// } else if (duration.seconds > 0 && duration.nanos < 0) {
|
65
65
|
// duration.seconds -= 1;
|
66
66
|
// duration.nanos += 1000000000;
|
67
67
|
// }
|
@@ -33,7 +33,7 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
-
option go_package = "
|
36
|
+
option go_package = "google.golang.org/protobuf/types/known/emptypb";
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "EmptyProto";
|
39
39
|
option java_multiple_files = true;
|
@@ -37,7 +37,7 @@ option java_package = "com.google.protobuf";
|
|
37
37
|
option java_outer_classname = "FieldMaskProto";
|
38
38
|
option java_multiple_files = true;
|
39
39
|
option objc_class_prefix = "GPB";
|
40
|
-
option go_package = "google.golang.org/
|
40
|
+
option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb";
|
41
41
|
option cc_enable_arenas = true;
|
42
42
|
|
43
43
|
// `FieldMask` represents a set of symbolic field paths, for example:
|
@@ -238,7 +238,7 @@ option cc_enable_arenas = true;
|
|
238
238
|
//
|
239
239
|
// The implementation of any API method which has a FieldMask type field in the
|
240
240
|
// request should verify the included field paths, and return an
|
241
|
-
// `INVALID_ARGUMENT` error if any path is
|
241
|
+
// `INVALID_ARGUMENT` error if any path is unmappable.
|
242
242
|
message FieldMask {
|
243
243
|
// The set of field mask paths.
|
244
244
|
repeated string paths = 1;
|
@@ -37,7 +37,7 @@ option java_package = "com.google.protobuf";
|
|
37
37
|
option java_outer_classname = "SourceContextProto";
|
38
38
|
option java_multiple_files = true;
|
39
39
|
option objc_class_prefix = "GPB";
|
40
|
-
option go_package = "google.golang.org/
|
40
|
+
option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb";
|
41
41
|
|
42
42
|
// `SourceContext` represents information about the source of a
|
43
43
|
// protobuf element, like the file in which it is defined.
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/structpb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "StructProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -55,8 +55,8 @@ message Struct {
|
|
55
55
|
|
56
56
|
// `Value` represents a dynamically typed value which can be either
|
57
57
|
// null, a number, a string, a boolean, a recursive struct value, or a
|
58
|
-
// list of values. A producer of value is expected to set one of
|
59
|
-
// variants
|
58
|
+
// list of values. A producer of value is expected to set one of these
|
59
|
+
// variants. Absence of any variant indicates an error.
|
60
60
|
//
|
61
61
|
// The JSON representation for `Value` is JSON value.
|
62
62
|
message Value {
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/timestamppb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "TimestampProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -91,7 +91,16 @@ option objc_class_prefix = "GPB";
|
|
91
91
|
// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
92
92
|
//
|
93
93
|
//
|
94
|
-
// Example 5: Compute Timestamp from
|
94
|
+
// Example 5: Compute Timestamp from Java `Instant.now()`.
|
95
|
+
//
|
96
|
+
// Instant now = Instant.now();
|
97
|
+
//
|
98
|
+
// Timestamp timestamp =
|
99
|
+
// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
100
|
+
// .setNanos(now.getNano()).build();
|
101
|
+
//
|
102
|
+
//
|
103
|
+
// Example 6: Compute Timestamp from current time in Python.
|
95
104
|
//
|
96
105
|
// timestamp = Timestamp()
|
97
106
|
// timestamp.GetCurrentTime()
|
@@ -41,7 +41,7 @@ option java_package = "com.google.protobuf";
|
|
41
41
|
option java_outer_classname = "TypeProto";
|
42
42
|
option java_multiple_files = true;
|
43
43
|
option objc_class_prefix = "GPB";
|
44
|
-
option go_package = "google.golang.org/
|
44
|
+
option go_package = "google.golang.org/protobuf/types/known/typepb";
|
45
45
|
|
46
46
|
// A protocol buffer message type.
|
47
47
|
message Type {
|
@@ -113,7 +113,7 @@ message Field {
|
|
113
113
|
CARDINALITY_REQUIRED = 2;
|
114
114
|
// For repeated fields.
|
115
115
|
CARDINALITY_REPEATED = 3;
|
116
|
-
}
|
116
|
+
}
|
117
117
|
|
118
118
|
// The field type.
|
119
119
|
Kind kind = 1;
|
@@ -44,7 +44,7 @@ package google.protobuf;
|
|
44
44
|
|
45
45
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
46
46
|
option cc_enable_arenas = true;
|
47
|
-
option go_package = "
|
47
|
+
option go_package = "google.golang.org/protobuf/types/known/wrapperspb";
|
48
48
|
option java_package = "com.google.protobuf";
|
49
49
|
option java_outer_classname = "WrappersProto";
|
50
50
|
option java_multiple_files = true;
|
Binary file
|
data/bin/x86_64-macos/protoc
CHANGED
Binary file
|
@@ -33,7 +33,7 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
-
option go_package = "
|
36
|
+
option go_package = "google.golang.org/protobuf/types/known/anypb";
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "AnyProto";
|
39
39
|
option java_multiple_files = true;
|
@@ -77,10 +77,13 @@ option objc_class_prefix = "GPB";
|
|
77
77
|
// Example 4: Pack and unpack a message in Go
|
78
78
|
//
|
79
79
|
// foo := &pb.Foo{...}
|
80
|
-
// any, err :=
|
80
|
+
// any, err := anypb.New(foo)
|
81
|
+
// if err != nil {
|
82
|
+
// ...
|
83
|
+
// }
|
81
84
|
// ...
|
82
85
|
// foo := &pb.Foo{}
|
83
|
-
// if err :=
|
86
|
+
// if err := any.UnmarshalTo(foo); err != nil {
|
84
87
|
// ...
|
85
88
|
// }
|
86
89
|
//
|
@@ -40,7 +40,7 @@ option java_package = "com.google.protobuf";
|
|
40
40
|
option java_outer_classname = "ApiProto";
|
41
41
|
option java_multiple_files = true;
|
42
42
|
option objc_class_prefix = "GPB";
|
43
|
-
option go_package = "google.golang.org/
|
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.
|
46
46
|
//
|
@@ -52,7 +52,6 @@ option go_package = "google.golang.org/genproto/protobuf/api;api";
|
|
52
52
|
// this message itself. See https://cloud.google.com/apis/design/glossary for
|
53
53
|
// detailed terminology.
|
54
54
|
message Api {
|
55
|
-
|
56
55
|
// The fully qualified name of this interface, including package name
|
57
56
|
// followed by the interface's simple name.
|
58
57
|
string name = 1;
|
@@ -99,7 +98,6 @@ message Api {
|
|
99
98
|
|
100
99
|
// Method represents a method of an API interface.
|
101
100
|
message Method {
|
102
|
-
|
103
101
|
// The simple name of this method.
|
104
102
|
string name = 1;
|
105
103
|
|
@@ -169,7 +167,7 @@ message Method {
|
|
169
167
|
// The mixin construct implies that all methods in `AccessControl` are
|
170
168
|
// also declared with same name and request/response types in
|
171
169
|
// `Storage`. A documentation generator or annotation processor will
|
172
|
-
// see the effective `Storage.GetAcl` method after
|
170
|
+
// see the effective `Storage.GetAcl` method after inheriting
|
173
171
|
// documentation and annotations as follows:
|
174
172
|
//
|
175
173
|
// service Storage {
|
@@ -50,7 +50,7 @@ package google.protobuf.compiler;
|
|
50
50
|
option java_package = "com.google.protobuf.compiler";
|
51
51
|
option java_outer_classname = "PluginProtos";
|
52
52
|
|
53
|
-
option go_package = "
|
53
|
+
option go_package = "google.golang.org/protobuf/types/pluginpb";
|
54
54
|
|
55
55
|
import "google/protobuf/descriptor.proto";
|
56
56
|
|
@@ -107,6 +107,16 @@ message CodeGeneratorResponse {
|
|
107
107
|
// exiting with a non-zero status code.
|
108
108
|
optional string error = 1;
|
109
109
|
|
110
|
+
// A bitmask of supported features that the code generator supports.
|
111
|
+
// This is a bitwise "or" of values from the Feature enum.
|
112
|
+
optional uint64 supported_features = 2;
|
113
|
+
|
114
|
+
// Sync with code_generator.h.
|
115
|
+
enum Feature {
|
116
|
+
FEATURE_NONE = 0;
|
117
|
+
FEATURE_PROTO3_OPTIONAL = 1;
|
118
|
+
}
|
119
|
+
|
110
120
|
// Represents a single generated file.
|
111
121
|
message File {
|
112
122
|
// The file name, relative to the output directory. The name must not
|
@@ -163,6 +173,11 @@ message CodeGeneratorResponse {
|
|
163
173
|
|
164
174
|
// The file contents.
|
165
175
|
optional string content = 15;
|
176
|
+
|
177
|
+
// Information describing the file content being inserted. If an insertion
|
178
|
+
// point is used, this information will be appropriately offset and inserted
|
179
|
+
// into the code generation metadata for the generated files.
|
180
|
+
optional GeneratedCodeInfo generated_code_info = 16;
|
166
181
|
}
|
167
182
|
repeated File file = 15;
|
168
183
|
}
|
@@ -41,7 +41,7 @@ syntax = "proto2";
|
|
41
41
|
|
42
42
|
package google.protobuf;
|
43
43
|
|
44
|
-
option go_package = "
|
44
|
+
option go_package = "google.golang.org/protobuf/types/descriptorpb";
|
45
45
|
option java_package = "com.google.protobuf";
|
46
46
|
option java_outer_classname = "DescriptorProtos";
|
47
47
|
option csharp_namespace = "Google.Protobuf.Reflection";
|
@@ -101,8 +101,8 @@ message DescriptorProto {
|
|
101
101
|
repeated EnumDescriptorProto enum_type = 4;
|
102
102
|
|
103
103
|
message ExtensionRange {
|
104
|
-
optional int32 start = 1;
|
105
|
-
optional int32 end = 2;
|
104
|
+
optional int32 start = 1; // Inclusive.
|
105
|
+
optional int32 end = 2; // Exclusive.
|
106
106
|
|
107
107
|
optional ExtensionRangeOptions options = 3;
|
108
108
|
}
|
@@ -129,6 +129,7 @@ message ExtensionRangeOptions {
|
|
129
129
|
// The parser stores options it doesn't recognize here. See above.
|
130
130
|
repeated UninterpretedOption uninterpreted_option = 999;
|
131
131
|
|
132
|
+
|
132
133
|
// Clients can define custom options in extensions of this message. See above.
|
133
134
|
extensions 1000 to max;
|
134
135
|
}
|
@@ -212,6 +213,29 @@ message FieldDescriptorProto {
|
|
212
213
|
optional string json_name = 10;
|
213
214
|
|
214
215
|
optional FieldOptions options = 8;
|
216
|
+
|
217
|
+
// If true, this is a proto3 "optional". When a proto3 field is optional, it
|
218
|
+
// tracks presence regardless of field type.
|
219
|
+
//
|
220
|
+
// When proto3_optional is true, this field must be belong to a oneof to
|
221
|
+
// signal to old proto3 clients that presence is tracked for this field. This
|
222
|
+
// oneof is known as a "synthetic" oneof, and this field must be its sole
|
223
|
+
// member (each proto3 optional field gets its own synthetic oneof). Synthetic
|
224
|
+
// oneofs exist in the descriptor only, and do not generate any API. Synthetic
|
225
|
+
// oneofs must be ordered after all "real" oneofs.
|
226
|
+
//
|
227
|
+
// For message fields, proto3_optional doesn't create any semantic change,
|
228
|
+
// since non-repeated message fields always track presence. However it still
|
229
|
+
// indicates the semantic detail of whether the user wrote "optional" or not.
|
230
|
+
// This can be useful for round-tripping the .proto file. For consistency we
|
231
|
+
// give message fields a synthetic oneof also, even though it is not required
|
232
|
+
// to track presence. This is especially important because the parser can't
|
233
|
+
// tell if a field is a message or an enum, so it must always create a
|
234
|
+
// synthetic oneof.
|
235
|
+
//
|
236
|
+
// Proto2 optional fields do not set this flag, because they already indicate
|
237
|
+
// optional with `LABEL_OPTIONAL`.
|
238
|
+
optional bool proto3_optional = 17;
|
215
239
|
}
|
216
240
|
|
217
241
|
// Describes a oneof.
|
@@ -324,17 +348,17 @@ message FileOptions {
|
|
324
348
|
optional string java_package = 1;
|
325
349
|
|
326
350
|
|
327
|
-
//
|
328
|
-
//
|
329
|
-
//
|
330
|
-
//
|
331
|
-
//
|
351
|
+
// Controls the name of the wrapper Java class generated for the .proto file.
|
352
|
+
// That class will always contain the .proto file's getDescriptor() method as
|
353
|
+
// well as any top-level extensions defined in the .proto file.
|
354
|
+
// If java_multiple_files is disabled, then all the other classes from the
|
355
|
+
// .proto file will be nested inside the single wrapper outer class.
|
332
356
|
optional string java_outer_classname = 8;
|
333
357
|
|
334
|
-
// If
|
358
|
+
// If enabled, then the Java code generator will generate a separate .java
|
335
359
|
// file for each top-level message, enum, and service defined in the .proto
|
336
|
-
// file. Thus, these types will *not* be nested inside the
|
337
|
-
// named by java_outer_classname. However, the
|
360
|
+
// file. Thus, these types will *not* be nested inside the wrapper class
|
361
|
+
// named by java_outer_classname. However, the wrapper class will still be
|
338
362
|
// generated to contain the file's getDescriptor() method as well as any
|
339
363
|
// top-level extensions defined in the file.
|
340
364
|
optional bool java_multiple_files = 10 [default = false];
|
@@ -369,6 +393,7 @@ message FileOptions {
|
|
369
393
|
|
370
394
|
|
371
395
|
|
396
|
+
|
372
397
|
// Should generic services be generated in each language? "Generic" services
|
373
398
|
// are not specific to any particular RPC system. They are generated by the
|
374
399
|
// main code generators in each language (without additional plugins).
|
@@ -392,7 +417,7 @@ message FileOptions {
|
|
392
417
|
|
393
418
|
// Enables the use of arenas for the proto messages in this file. This applies
|
394
419
|
// only to generated classes for C++.
|
395
|
-
optional bool cc_enable_arenas = 31 [default =
|
420
|
+
optional bool cc_enable_arenas = 31 [default = true];
|
396
421
|
|
397
422
|
|
398
423
|
// Sets the objective c class prefix which is prepended to all objective c
|
@@ -427,6 +452,7 @@ message FileOptions {
|
|
427
452
|
// determining the ruby package.
|
428
453
|
optional string ruby_package = 45;
|
429
454
|
|
455
|
+
|
430
456
|
// The parser stores options it doesn't recognize here.
|
431
457
|
// See the documentation for the "Options" section above.
|
432
458
|
repeated UninterpretedOption uninterpreted_option = 999;
|
@@ -470,6 +496,8 @@ message MessageOptions {
|
|
470
496
|
// this is a formalization for deprecating messages.
|
471
497
|
optional bool deprecated = 3 [default = false];
|
472
498
|
|
499
|
+
reserved 4, 5, 6;
|
500
|
+
|
473
501
|
// Whether the message is an automatically generated map entry type for the
|
474
502
|
// maps field.
|
475
503
|
//
|
@@ -496,6 +524,7 @@ message MessageOptions {
|
|
496
524
|
reserved 8; // javalite_serializable
|
497
525
|
reserved 9; // javanano_as_lite
|
498
526
|
|
527
|
+
|
499
528
|
// The parser stores options it doesn't recognize here. See above.
|
500
529
|
repeated UninterpretedOption uninterpreted_option = 999;
|
501
530
|
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/durationpb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "DurationProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -61,7 +61,7 @@ option objc_class_prefix = "GPB";
|
|
61
61
|
// if (duration.seconds < 0 && duration.nanos > 0) {
|
62
62
|
// duration.seconds += 1;
|
63
63
|
// duration.nanos -= 1000000000;
|
64
|
-
// } else if (
|
64
|
+
// } else if (duration.seconds > 0 && duration.nanos < 0) {
|
65
65
|
// duration.seconds -= 1;
|
66
66
|
// duration.nanos += 1000000000;
|
67
67
|
// }
|
@@ -33,7 +33,7 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
-
option go_package = "
|
36
|
+
option go_package = "google.golang.org/protobuf/types/known/emptypb";
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "EmptyProto";
|
39
39
|
option java_multiple_files = true;
|
@@ -37,7 +37,7 @@ option java_package = "com.google.protobuf";
|
|
37
37
|
option java_outer_classname = "FieldMaskProto";
|
38
38
|
option java_multiple_files = true;
|
39
39
|
option objc_class_prefix = "GPB";
|
40
|
-
option go_package = "google.golang.org/
|
40
|
+
option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb";
|
41
41
|
option cc_enable_arenas = true;
|
42
42
|
|
43
43
|
// `FieldMask` represents a set of symbolic field paths, for example:
|
@@ -238,7 +238,7 @@ option cc_enable_arenas = true;
|
|
238
238
|
//
|
239
239
|
// The implementation of any API method which has a FieldMask type field in the
|
240
240
|
// request should verify the included field paths, and return an
|
241
|
-
// `INVALID_ARGUMENT` error if any path is
|
241
|
+
// `INVALID_ARGUMENT` error if any path is unmappable.
|
242
242
|
message FieldMask {
|
243
243
|
// The set of field mask paths.
|
244
244
|
repeated string paths = 1;
|
@@ -37,7 +37,7 @@ option java_package = "com.google.protobuf";
|
|
37
37
|
option java_outer_classname = "SourceContextProto";
|
38
38
|
option java_multiple_files = true;
|
39
39
|
option objc_class_prefix = "GPB";
|
40
|
-
option go_package = "google.golang.org/
|
40
|
+
option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb";
|
41
41
|
|
42
42
|
// `SourceContext` represents information about the source of a
|
43
43
|
// protobuf element, like the file in which it is defined.
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/structpb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "StructProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -55,8 +55,8 @@ message Struct {
|
|
55
55
|
|
56
56
|
// `Value` represents a dynamically typed value which can be either
|
57
57
|
// null, a number, a string, a boolean, a recursive struct value, or a
|
58
|
-
// list of values. A producer of value is expected to set one of
|
59
|
-
// variants
|
58
|
+
// list of values. A producer of value is expected to set one of these
|
59
|
+
// variants. Absence of any variant indicates an error.
|
60
60
|
//
|
61
61
|
// The JSON representation for `Value` is JSON value.
|
62
62
|
message Value {
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/timestamppb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "TimestampProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -91,7 +91,16 @@ option objc_class_prefix = "GPB";
|
|
91
91
|
// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
92
92
|
//
|
93
93
|
//
|
94
|
-
// Example 5: Compute Timestamp from
|
94
|
+
// Example 5: Compute Timestamp from Java `Instant.now()`.
|
95
|
+
//
|
96
|
+
// Instant now = Instant.now();
|
97
|
+
//
|
98
|
+
// Timestamp timestamp =
|
99
|
+
// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
100
|
+
// .setNanos(now.getNano()).build();
|
101
|
+
//
|
102
|
+
//
|
103
|
+
// Example 6: Compute Timestamp from current time in Python.
|
95
104
|
//
|
96
105
|
// timestamp = Timestamp()
|
97
106
|
// timestamp.GetCurrentTime()
|
@@ -41,7 +41,7 @@ option java_package = "com.google.protobuf";
|
|
41
41
|
option java_outer_classname = "TypeProto";
|
42
42
|
option java_multiple_files = true;
|
43
43
|
option objc_class_prefix = "GPB";
|
44
|
-
option go_package = "google.golang.org/
|
44
|
+
option go_package = "google.golang.org/protobuf/types/known/typepb";
|
45
45
|
|
46
46
|
// A protocol buffer message type.
|
47
47
|
message Type {
|
@@ -113,7 +113,7 @@ message Field {
|
|
113
113
|
CARDINALITY_REQUIRED = 2;
|
114
114
|
// For repeated fields.
|
115
115
|
CARDINALITY_REPEATED = 3;
|
116
|
-
}
|
116
|
+
}
|
117
117
|
|
118
118
|
// The field type.
|
119
119
|
Kind kind = 1;
|
@@ -44,7 +44,7 @@ package google.protobuf;
|
|
44
44
|
|
45
45
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
46
46
|
option cc_enable_arenas = true;
|
47
|
-
option go_package = "
|
47
|
+
option go_package = "google.golang.org/protobuf/types/known/wrapperspb";
|
48
48
|
option java_package = "com.google.protobuf";
|
49
49
|
option java_outer_classname = "WrappersProto";
|
50
50
|
option java_multiple_files = true;
|
Binary file
|
Binary file
|
data/platform_check.rb
CHANGED
@@ -29,7 +29,12 @@ module PLATFORM
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def PLATFORM.architecture
|
32
|
-
|
32
|
+
host_cpu = RbConfig::CONFIG['host_cpu']
|
33
|
+
|
34
|
+
# When we're on arm in macOS, we can rely on Rosetta and use the x86_64 binary
|
35
|
+
return 'x86_64' if RbConfig::CONFIG['host_os'] =~ /darwin/ && host_cpu =~ /arm/
|
36
|
+
|
37
|
+
case host_cpu
|
33
38
|
when /x86_64/
|
34
39
|
'x86_64'
|
35
40
|
else
|