grpc-tools 1.42.0 → 1.55.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 +5 -2
- data/bin/x86-linux/google/protobuf/api.proto +2 -3
- data/bin/x86-linux/google/protobuf/compiler/plugin.proto +1 -4
- data/bin/x86-linux/google/protobuf/descriptor.proto +145 -28
- data/bin/x86-linux/google/protobuf/duration.proto +1 -2
- data/bin/x86-linux/google/protobuf/empty.proto +1 -2
- data/bin/x86-linux/google/protobuf/field_mask.proto +1 -1
- data/bin/x86-linux/google/protobuf/source_context.proto +1 -1
- data/bin/x86-linux/google/protobuf/struct.proto +4 -4
- data/bin/x86-linux/google/protobuf/timestamp.proto +2 -5
- data/bin/x86-linux/google/protobuf/type.proto +7 -1
- data/bin/x86-linux/google/protobuf/wrappers.proto +2 -2
- data/bin/x86-linux/grpc_ruby_plugin +0 -0
- data/bin/x86-linux/protoc +0 -0
- data/bin/x86-windows/google/protobuf/any.proto +5 -2
- data/bin/x86-windows/google/protobuf/api.proto +2 -3
- data/bin/x86-windows/google/protobuf/compiler/plugin.proto +1 -4
- data/bin/x86-windows/google/protobuf/descriptor.proto +145 -28
- data/bin/x86-windows/google/protobuf/duration.proto +1 -2
- data/bin/x86-windows/google/protobuf/empty.proto +1 -2
- data/bin/x86-windows/google/protobuf/field_mask.proto +1 -1
- data/bin/x86-windows/google/protobuf/source_context.proto +1 -1
- data/bin/x86-windows/google/protobuf/struct.proto +4 -4
- data/bin/x86-windows/google/protobuf/timestamp.proto +2 -5
- data/bin/x86-windows/google/protobuf/type.proto +7 -1
- data/bin/x86-windows/google/protobuf/wrappers.proto +2 -2
- 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 +5 -2
- data/bin/x86_64-linux/google/protobuf/api.proto +2 -3
- data/bin/x86_64-linux/google/protobuf/compiler/plugin.proto +1 -4
- data/bin/x86_64-linux/google/protobuf/descriptor.proto +145 -28
- data/bin/x86_64-linux/google/protobuf/duration.proto +1 -2
- data/bin/x86_64-linux/google/protobuf/empty.proto +1 -2
- data/bin/x86_64-linux/google/protobuf/field_mask.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/source_context.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/struct.proto +4 -4
- data/bin/x86_64-linux/google/protobuf/timestamp.proto +2 -5
- data/bin/x86_64-linux/google/protobuf/type.proto +7 -1
- data/bin/x86_64-linux/google/protobuf/wrappers.proto +2 -2
- 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 +5 -2
- data/bin/x86_64-macos/google/protobuf/api.proto +2 -3
- data/bin/x86_64-macos/google/protobuf/compiler/plugin.proto +1 -4
- data/bin/x86_64-macos/google/protobuf/descriptor.proto +145 -28
- data/bin/x86_64-macos/google/protobuf/duration.proto +1 -2
- data/bin/x86_64-macos/google/protobuf/empty.proto +1 -2
- data/bin/x86_64-macos/google/protobuf/field_mask.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/source_context.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/struct.proto +4 -4
- data/bin/x86_64-macos/google/protobuf/timestamp.proto +2 -5
- data/bin/x86_64-macos/google/protobuf/type.proto +7 -1
- data/bin/x86_64-macos/google/protobuf/wrappers.proto +2 -2
- 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 +5 -2
- data/bin/x86_64-windows/google/protobuf/api.proto +2 -3
- data/bin/x86_64-windows/google/protobuf/compiler/plugin.proto +1 -4
- data/bin/x86_64-windows/google/protobuf/descriptor.proto +145 -28
- data/bin/x86_64-windows/google/protobuf/duration.proto +1 -2
- data/bin/x86_64-windows/google/protobuf/empty.proto +1 -2
- data/bin/x86_64-windows/google/protobuf/field_mask.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/source_context.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/struct.proto +4 -4
- data/bin/x86_64-windows/google/protobuf/timestamp.proto +2 -5
- data/bin/x86_64-windows/google/protobuf/type.proto +7 -1
- data/bin/x86_64-windows/google/protobuf/wrappers.proto +2 -2
- data/bin/x86_64-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86_64-windows/protoc.exe +0 -0
- data/platform_check.rb +1 -1
- data/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70f00b67a85c7805e7ebda295de4bf88b36b2b20cae61dce342dc6cc631ea426
|
4
|
+
data.tar.gz: d3f4158c1b2b9fff521fd1b370216b9aae1039f2a70cdcc135ab3971c369ae07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad4245a84e1fcbb97c5d8f42269b3228c4b1a48b5105e11f7a81339228715c63a35a442c32ae0c00dc26ad5146391af8394c2458dd8e92aec036ad6b1e72a28a
|
7
|
+
data.tar.gz: c05b852fe34e8c215b78fd1c3c1426186000c96d738949210753f8eb9bc527dcf4a30ce11794d1e634b5016cf006cb6fb47271290f912348fe82188006c17d3e
|
@@ -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
|
@@ -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
|
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";
|
@@ -92,7 +90,6 @@ message CodeGeneratorRequest {
|
|
92
90
|
|
93
91
|
// The version number of protocol compiler.
|
94
92
|
optional Version compiler_version = 3;
|
95
|
-
|
96
93
|
}
|
97
94
|
|
98
95
|
// The plugin writes an encoded CodeGeneratorResponse to stdout.
|
@@ -36,7 +36,6 @@
|
|
36
36
|
// A valid .proto file can be translated directly to a FileDescriptorProto
|
37
37
|
// without any other information (e.g. without reading its imports).
|
38
38
|
|
39
|
-
|
40
39
|
syntax = "proto2";
|
41
40
|
|
42
41
|
package google.protobuf;
|
@@ -86,8 +85,13 @@ message FileDescriptorProto {
|
|
86
85
|
optional SourceCodeInfo source_code_info = 9;
|
87
86
|
|
88
87
|
// The syntax of the proto file.
|
89
|
-
// The supported values are "proto2" and "
|
88
|
+
// The supported values are "proto2", "proto3", and "editions".
|
89
|
+
//
|
90
|
+
// If `edition` is present, this value must be "editions".
|
90
91
|
optional string syntax = 12;
|
92
|
+
|
93
|
+
// The edition of the proto file, which is an opaque string.
|
94
|
+
optional string edition = 13;
|
91
95
|
}
|
92
96
|
|
93
97
|
// Describes a message type.
|
@@ -129,6 +133,49 @@ message ExtensionRangeOptions {
|
|
129
133
|
// The parser stores options it doesn't recognize here. See above.
|
130
134
|
repeated UninterpretedOption uninterpreted_option = 999;
|
131
135
|
|
136
|
+
message Declaration {
|
137
|
+
// The extension number declared within the extension range.
|
138
|
+
optional int32 number = 1;
|
139
|
+
|
140
|
+
// The fully-qualified name of the extension field. There must be a leading
|
141
|
+
// dot in front of the full name.
|
142
|
+
optional string full_name = 2;
|
143
|
+
|
144
|
+
// The fully-qualified type name of the extension field. Unlike
|
145
|
+
// Metadata.type, Declaration.type must have a leading dot for messages
|
146
|
+
// and enums.
|
147
|
+
optional string type = 3;
|
148
|
+
|
149
|
+
// Deprecated. Please use "repeated".
|
150
|
+
optional bool is_repeated = 4 [deprecated = true];
|
151
|
+
|
152
|
+
// If true, indicates that the number is reserved in the extension range,
|
153
|
+
// and any extension field with the number will fail to compile. Set this
|
154
|
+
// when a declared extension field is deleted.
|
155
|
+
optional bool reserved = 5;
|
156
|
+
|
157
|
+
// If true, indicates that the extension must be defined as repeated.
|
158
|
+
// Otherwise the extension must be defined as optional.
|
159
|
+
optional bool repeated = 6;
|
160
|
+
}
|
161
|
+
|
162
|
+
// go/protobuf-stripping-extension-declarations
|
163
|
+
// Like Metadata, but we use a repeated field to hold all extension
|
164
|
+
// declarations. This should avoid the size increases of transforming a large
|
165
|
+
// extension range into small ranges in generated binaries.
|
166
|
+
repeated Declaration declaration = 2 [retention = RETENTION_SOURCE];
|
167
|
+
|
168
|
+
// The verification state of the extension range.
|
169
|
+
enum VerificationState {
|
170
|
+
// All the extensions of the range must be declared.
|
171
|
+
DECLARATION = 0;
|
172
|
+
UNVERIFIED = 1;
|
173
|
+
}
|
174
|
+
|
175
|
+
// The verification state of the range.
|
176
|
+
// TODO(b/278783756): flip the default to DECLARATION once all empty ranges
|
177
|
+
// are marked as UNVERIFIED.
|
178
|
+
optional VerificationState verification = 3 [default = UNVERIFIED];
|
132
179
|
|
133
180
|
// Clients can define custom options in extensions of this message. See above.
|
134
181
|
extensions 1000 to max;
|
@@ -199,7 +246,6 @@ message FieldDescriptorProto {
|
|
199
246
|
// For booleans, "true" or "false".
|
200
247
|
// For strings, contains the default text contents (not escaped in any way).
|
201
248
|
// For bytes, contains the C escaped value. All bytes >= 128 are escaped.
|
202
|
-
// TODO(kenton): Base-64 encode?
|
203
249
|
optional string default_value = 7;
|
204
250
|
|
205
251
|
// If set, gives the index of a oneof in the containing type's oneof_decl
|
@@ -306,7 +352,6 @@ message MethodDescriptorProto {
|
|
306
352
|
optional bool server_streaming = 6 [default = false];
|
307
353
|
}
|
308
354
|
|
309
|
-
|
310
355
|
// ===================================================================
|
311
356
|
// Options
|
312
357
|
|
@@ -347,7 +392,6 @@ message FileOptions {
|
|
347
392
|
// domain names.
|
348
393
|
optional string java_package = 1;
|
349
394
|
|
350
|
-
|
351
395
|
// Controls the name of the wrapper Java class generated for the .proto file.
|
352
396
|
// That class will always contain the .proto file's getDescriptor() method as
|
353
397
|
// well as any top-level extensions defined in the .proto file.
|
@@ -374,7 +418,6 @@ message FileOptions {
|
|
374
418
|
// This option has no effect on when used with the lite runtime.
|
375
419
|
optional bool java_string_check_utf8 = 27 [default = false];
|
376
420
|
|
377
|
-
|
378
421
|
// Generated classes can be optimized for speed or code size.
|
379
422
|
enum OptimizeMode {
|
380
423
|
SPEED = 1; // Generate complete code for parsing, serialization,
|
@@ -391,9 +434,6 @@ message FileOptions {
|
|
391
434
|
// - Otherwise, the basename of the .proto file, without extension.
|
392
435
|
optional string go_package = 11;
|
393
436
|
|
394
|
-
|
395
|
-
|
396
|
-
|
397
437
|
// Should generic services be generated in each language? "Generic" services
|
398
438
|
// are not specific to any particular RPC system. They are generated by the
|
399
439
|
// main code generators in each language (without additional plugins).
|
@@ -419,7 +459,6 @@ message FileOptions {
|
|
419
459
|
// only to generated classes for C++.
|
420
460
|
optional bool cc_enable_arenas = 31 [default = true];
|
421
461
|
|
422
|
-
|
423
462
|
// Sets the objective c class prefix which is prepended to all objective c
|
424
463
|
// generated classes from this .proto. There is no default.
|
425
464
|
optional string objc_class_prefix = 36;
|
@@ -452,7 +491,6 @@ message FileOptions {
|
|
452
491
|
// determining the ruby package.
|
453
492
|
optional string ruby_package = 45;
|
454
493
|
|
455
|
-
|
456
494
|
// The parser stores options it doesn't recognize here.
|
457
495
|
// See the documentation for the "Options" section above.
|
458
496
|
repeated UninterpretedOption uninterpreted_option = 999;
|
@@ -498,6 +536,10 @@ message MessageOptions {
|
|
498
536
|
|
499
537
|
reserved 4, 5, 6;
|
500
538
|
|
539
|
+
// NOTE: Do not set the option in .proto files. Always use the maps syntax
|
540
|
+
// instead. The option should only be implicitly set by the proto compiler
|
541
|
+
// parser.
|
542
|
+
//
|
501
543
|
// Whether the message is an automatically generated map entry type for the
|
502
544
|
// maps field.
|
503
545
|
//
|
@@ -515,15 +557,22 @@ message MessageOptions {
|
|
515
557
|
// use a native map in the target language to hold the keys and values.
|
516
558
|
// The reflection APIs in such implementations still need to work as
|
517
559
|
// if the field is a repeated message field.
|
518
|
-
//
|
519
|
-
// NOTE: Do not set the option in .proto files. Always use the maps syntax
|
520
|
-
// instead. The option should only be implicitly set by the proto compiler
|
521
|
-
// parser.
|
522
560
|
optional bool map_entry = 7;
|
523
561
|
|
524
562
|
reserved 8; // javalite_serializable
|
525
563
|
reserved 9; // javanano_as_lite
|
526
564
|
|
565
|
+
// Enable the legacy handling of JSON field name conflicts. This lowercases
|
566
|
+
// and strips underscored from the fields before comparison in proto3 only.
|
567
|
+
// The new behavior takes `json_name` into account and applies to proto2 as
|
568
|
+
// well.
|
569
|
+
//
|
570
|
+
// This should only be used as a temporary measure against broken builds due
|
571
|
+
// to the change in behavior for JSON field name conflicts.
|
572
|
+
//
|
573
|
+
// TODO(b/261750190) This is legacy behavior we plan to remove once downstream
|
574
|
+
// teams have had time to migrate.
|
575
|
+
optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
|
527
576
|
|
528
577
|
// The parser stores options it doesn't recognize here. See above.
|
529
578
|
repeated UninterpretedOption uninterpreted_option = 999;
|
@@ -535,13 +584,21 @@ message MessageOptions {
|
|
535
584
|
message FieldOptions {
|
536
585
|
// The ctype option instructs the C++ code generator to use a different
|
537
586
|
// representation of the field than it normally would. See the specific
|
538
|
-
// options below. This option is
|
539
|
-
//
|
587
|
+
// options below. This option is only implemented to support use of
|
588
|
+
// [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
|
589
|
+
// type "bytes" in the open source release -- sorry, we'll try to include
|
590
|
+
// other types in a future version!
|
540
591
|
optional CType ctype = 1 [default = STRING];
|
541
592
|
enum CType {
|
542
593
|
// Default mode.
|
543
594
|
STRING = 0;
|
544
595
|
|
596
|
+
// The option [ctype=CORD] may be applied to a non-repeated field of type
|
597
|
+
// "bytes". It indicates that in C++, the data should be stored in a Cord
|
598
|
+
// instead of a string. For very large strings, this may reduce memory
|
599
|
+
// fragmentation. It may also allow better performance when parsing from a
|
600
|
+
// Cord, or when parsing with aliasing enabled, as the parsed Cord may then
|
601
|
+
// alias the original buffer.
|
545
602
|
CORD = 1;
|
546
603
|
|
547
604
|
STRING_PIECE = 2;
|
@@ -593,7 +650,6 @@ message FieldOptions {
|
|
593
650
|
// call from multiple threads concurrently, while non-const methods continue
|
594
651
|
// to require exclusive access.
|
595
652
|
//
|
596
|
-
//
|
597
653
|
// Note that implementations may choose not to check required fields within
|
598
654
|
// a lazy sub-message. That is, calling IsInitialized() on the outer message
|
599
655
|
// may return true even if the inner message has missing required fields.
|
@@ -604,8 +660,16 @@ message FieldOptions {
|
|
604
660
|
// implementation must either *always* check its required fields, or *never*
|
605
661
|
// check its required fields, regardless of whether or not the message has
|
606
662
|
// been parsed.
|
663
|
+
//
|
664
|
+
// As of May 2022, lazy verifies the contents of the byte stream during
|
665
|
+
// parsing. An invalid byte stream will cause the overall parsing to fail.
|
607
666
|
optional bool lazy = 5 [default = false];
|
608
667
|
|
668
|
+
// unverified_lazy does no correctness checks on the byte stream. This should
|
669
|
+
// only be used where lazy with verification is prohibitive for performance
|
670
|
+
// reasons.
|
671
|
+
optional bool unverified_lazy = 15 [default = false];
|
672
|
+
|
609
673
|
// Is this field deprecated?
|
610
674
|
// Depending on the target platform, this can emit Deprecated annotations
|
611
675
|
// for accessors, or it will be completely ignored; in the very least, this
|
@@ -615,6 +679,40 @@ message FieldOptions {
|
|
615
679
|
// For Google-internal migration only. Do not use.
|
616
680
|
optional bool weak = 10 [default = false];
|
617
681
|
|
682
|
+
// Indicate that the field value should not be printed out when using debug
|
683
|
+
// formats, e.g. when the field contains sensitive credentials.
|
684
|
+
optional bool debug_redact = 16 [default = false];
|
685
|
+
|
686
|
+
// If set to RETENTION_SOURCE, the option will be omitted from the binary.
|
687
|
+
// Note: as of January 2023, support for this is in progress and does not yet
|
688
|
+
// have an effect (b/264593489).
|
689
|
+
enum OptionRetention {
|
690
|
+
RETENTION_UNKNOWN = 0;
|
691
|
+
RETENTION_RUNTIME = 1;
|
692
|
+
RETENTION_SOURCE = 2;
|
693
|
+
}
|
694
|
+
|
695
|
+
optional OptionRetention retention = 17;
|
696
|
+
|
697
|
+
// This indicates the types of entities that the field may apply to when used
|
698
|
+
// as an option. If it is unset, then the field may be freely used as an
|
699
|
+
// option on any kind of entity. Note: as of January 2023, support for this is
|
700
|
+
// in progress and does not yet have an effect (b/264593489).
|
701
|
+
enum OptionTargetType {
|
702
|
+
TARGET_TYPE_UNKNOWN = 0;
|
703
|
+
TARGET_TYPE_FILE = 1;
|
704
|
+
TARGET_TYPE_EXTENSION_RANGE = 2;
|
705
|
+
TARGET_TYPE_MESSAGE = 3;
|
706
|
+
TARGET_TYPE_FIELD = 4;
|
707
|
+
TARGET_TYPE_ONEOF = 5;
|
708
|
+
TARGET_TYPE_ENUM = 6;
|
709
|
+
TARGET_TYPE_ENUM_ENTRY = 7;
|
710
|
+
TARGET_TYPE_SERVICE = 8;
|
711
|
+
TARGET_TYPE_METHOD = 9;
|
712
|
+
}
|
713
|
+
|
714
|
+
optional OptionTargetType target = 18 [deprecated = true];
|
715
|
+
repeated OptionTargetType targets = 19;
|
618
716
|
|
619
717
|
// The parser stores options it doesn't recognize here. See above.
|
620
718
|
repeated UninterpretedOption uninterpreted_option = 999;
|
@@ -647,6 +745,14 @@ message EnumOptions {
|
|
647
745
|
|
648
746
|
reserved 5; // javanano_as_lite
|
649
747
|
|
748
|
+
// Enable the legacy handling of JSON field name conflicts. This lowercases
|
749
|
+
// and strips underscored from the fields before comparison in proto3 only.
|
750
|
+
// The new behavior takes `json_name` into account and applies to proto2 as
|
751
|
+
// well.
|
752
|
+
// TODO(b/261750190) Remove this legacy behavior once downstream teams have
|
753
|
+
// had time to migrate.
|
754
|
+
optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
|
755
|
+
|
650
756
|
// The parser stores options it doesn't recognize here. See above.
|
651
757
|
repeated UninterpretedOption uninterpreted_option = 999;
|
652
758
|
|
@@ -719,7 +825,6 @@ message MethodOptions {
|
|
719
825
|
extensions 1000 to max;
|
720
826
|
}
|
721
827
|
|
722
|
-
|
723
828
|
// A message representing a option the parser does not recognize. This only
|
724
829
|
// appears in options protos created by the compiler::Parser class.
|
725
830
|
// DescriptorPool resolves these when building Descriptor objects. Therefore,
|
@@ -730,8 +835,8 @@ message UninterpretedOption {
|
|
730
835
|
// The name of the uninterpreted option. Each string represents a segment in
|
731
836
|
// a dot-separated name. is_extension is true iff a segment represents an
|
732
837
|
// extension (denoted with parentheses in options specs in .proto files).
|
733
|
-
// E.g.,{ ["foo", false], ["bar.baz", true], ["
|
734
|
-
// "foo.(bar.baz).
|
838
|
+
// E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
|
839
|
+
// "foo.(bar.baz).moo".
|
735
840
|
message NamePart {
|
736
841
|
required string name_part = 1;
|
737
842
|
required bool is_extension = 2;
|
@@ -803,8 +908,8 @@ message SourceCodeInfo {
|
|
803
908
|
// location.
|
804
909
|
//
|
805
910
|
// Each element is a field number or an index. They form a path from
|
806
|
-
// the root FileDescriptorProto to the place where the definition.
|
807
|
-
// example, this path:
|
911
|
+
// the root FileDescriptorProto to the place where the definition occurs.
|
912
|
+
// For example, this path:
|
808
913
|
// [ 4, 3, 2, 7, 1 ]
|
809
914
|
// refers to:
|
810
915
|
// file.message_type(3) // 4, 3
|
@@ -858,13 +963,13 @@ message SourceCodeInfo {
|
|
858
963
|
// // Comment attached to baz.
|
859
964
|
// // Another line attached to baz.
|
860
965
|
//
|
861
|
-
// // Comment attached to
|
966
|
+
// // Comment attached to moo.
|
862
967
|
// //
|
863
|
-
// // Another line attached to
|
864
|
-
// optional double
|
968
|
+
// // Another line attached to moo.
|
969
|
+
// optional double moo = 4;
|
865
970
|
//
|
866
971
|
// // Detached comment for corge. This is not leading or trailing comments
|
867
|
-
// // to
|
972
|
+
// // to moo or corge because there are blank lines separating it from
|
868
973
|
// // both.
|
869
974
|
//
|
870
975
|
// // Detached comment for corge paragraph 2.
|
@@ -904,8 +1009,20 @@ message GeneratedCodeInfo {
|
|
904
1009
|
optional int32 begin = 3;
|
905
1010
|
|
906
1011
|
// Identifies the ending offset in bytes in the generated code that
|
907
|
-
// relates to the identified
|
1012
|
+
// relates to the identified object. The end offset should be one past
|
908
1013
|
// the last relevant byte (so the length of the text = end - begin).
|
909
1014
|
optional int32 end = 4;
|
1015
|
+
|
1016
|
+
// Represents the identified object's effect on the element in the original
|
1017
|
+
// .proto file.
|
1018
|
+
enum Semantic {
|
1019
|
+
// There is no effect or the effect is indescribable.
|
1020
|
+
NONE = 0;
|
1021
|
+
// The element is set or otherwise mutated.
|
1022
|
+
SET = 1;
|
1023
|
+
// An alias to the element is returned.
|
1024
|
+
ALIAS = 2;
|
1025
|
+
}
|
1026
|
+
optional Semantic semantic = 5;
|
910
1027
|
}
|
911
1028
|
}
|
@@ -32,13 +32,13 @@ syntax = "proto3";
|
|
32
32
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
|
-
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
35
|
option cc_enable_arenas = true;
|
37
36
|
option go_package = "google.golang.org/protobuf/types/known/durationpb";
|
38
37
|
option java_package = "com.google.protobuf";
|
39
38
|
option java_outer_classname = "DurationProto";
|
40
39
|
option java_multiple_files = true;
|
41
40
|
option objc_class_prefix = "GPB";
|
41
|
+
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
42
42
|
|
43
43
|
// A Duration represents a signed, fixed-length span of time represented
|
44
44
|
// as a count of seconds and fractions of seconds at nanosecond
|
@@ -99,7 +99,6 @@ option objc_class_prefix = "GPB";
|
|
99
99
|
// be expressed in JSON format as "3.000000001s", and 3 seconds and 1
|
100
100
|
// microsecond should be expressed in JSON format as "3.000001s".
|
101
101
|
//
|
102
|
-
//
|
103
102
|
message Duration {
|
104
103
|
// Signed seconds of the span of time. Must be from -315,576,000,000
|
105
104
|
// to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
@@ -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/emptypb";
|
37
36
|
option java_package = "com.google.protobuf";
|
38
37
|
option java_outer_classname = "EmptyProto";
|
39
38
|
option java_multiple_files = true;
|
40
39
|
option objc_class_prefix = "GPB";
|
40
|
+
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
41
41
|
option cc_enable_arenas = true;
|
42
42
|
|
43
43
|
// A generic empty message that you can re-use to avoid defining duplicated
|
@@ -48,5 +48,4 @@ option cc_enable_arenas = true;
|
|
48
48
|
// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
49
49
|
// }
|
50
50
|
//
|
51
|
-
// The JSON representation for `Empty` is empty JSON object `{}`.
|
52
51
|
message Empty {}
|
@@ -32,11 +32,11 @@ syntax = "proto3";
|
|
32
32
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
|
-
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
35
|
option java_package = "com.google.protobuf";
|
37
36
|
option java_outer_classname = "FieldMaskProto";
|
38
37
|
option java_multiple_files = true;
|
39
38
|
option objc_class_prefix = "GPB";
|
39
|
+
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
40
40
|
option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb";
|
41
41
|
option cc_enable_arenas = true;
|
42
42
|
|
@@ -32,11 +32,11 @@ syntax = "proto3";
|
|
32
32
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
|
-
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
35
|
option java_package = "com.google.protobuf";
|
37
36
|
option java_outer_classname = "SourceContextProto";
|
38
37
|
option java_multiple_files = true;
|
39
38
|
option objc_class_prefix = "GPB";
|
39
|
+
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
40
40
|
option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb";
|
41
41
|
|
42
42
|
// `SourceContext` represents information about the source of a
|
@@ -32,13 +32,13 @@ syntax = "proto3";
|
|
32
32
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
|
-
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
35
|
option cc_enable_arenas = true;
|
37
36
|
option go_package = "google.golang.org/protobuf/types/known/structpb";
|
38
37
|
option java_package = "com.google.protobuf";
|
39
38
|
option java_outer_classname = "StructProto";
|
40
39
|
option java_multiple_files = true;
|
41
40
|
option objc_class_prefix = "GPB";
|
41
|
+
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
42
42
|
|
43
43
|
// `Struct` represents a structured data value, consisting of fields
|
44
44
|
// which map to dynamically typed values. In some languages, `Struct`
|
@@ -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 {
|
@@ -80,7 +80,7 @@ message Value {
|
|
80
80
|
// `NullValue` is a singleton enumeration to represent the null value for the
|
81
81
|
// `Value` type union.
|
82
82
|
//
|
83
|
-
//
|
83
|
+
// The JSON representation for `NullValue` is JSON `null`.
|
84
84
|
enum NullValue {
|
85
85
|
// Null value.
|
86
86
|
NULL_VALUE = 0;
|
@@ -32,13 +32,13 @@ syntax = "proto3";
|
|
32
32
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
|
-
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
35
|
option cc_enable_arenas = true;
|
37
36
|
option go_package = "google.golang.org/protobuf/types/known/timestamppb";
|
38
37
|
option java_package = "com.google.protobuf";
|
39
38
|
option java_outer_classname = "TimestampProto";
|
40
39
|
option java_multiple_files = true;
|
41
40
|
option objc_class_prefix = "GPB";
|
41
|
+
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
42
42
|
|
43
43
|
// A Timestamp represents a point in time independent of any time zone or local
|
44
44
|
// calendar, encoded as a count of seconds and fractions of seconds at
|
@@ -90,7 +90,6 @@ option objc_class_prefix = "GPB";
|
|
90
90
|
// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
91
91
|
// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
92
92
|
//
|
93
|
-
//
|
94
93
|
// Example 5: Compute Timestamp from Java `Instant.now()`.
|
95
94
|
//
|
96
95
|
// Instant now = Instant.now();
|
@@ -99,7 +98,6 @@ option objc_class_prefix = "GPB";
|
|
99
98
|
// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
100
99
|
// .setNanos(now.getNano()).build();
|
101
100
|
//
|
102
|
-
//
|
103
101
|
// Example 6: Compute Timestamp from current time in Python.
|
104
102
|
//
|
105
103
|
// timestamp = Timestamp()
|
@@ -129,10 +127,9 @@ option objc_class_prefix = "GPB";
|
|
129
127
|
// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
130
128
|
// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
131
129
|
// the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
132
|
-
// http://
|
130
|
+
// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
133
131
|
// ) to obtain a formatter capable of generating timestamps in this format.
|
134
132
|
//
|
135
|
-
//
|
136
133
|
message Timestamp {
|
137
134
|
// Represents seconds of UTC time since Unix epoch
|
138
135
|
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
@@ -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
|
data/bin/x86-linux/protoc
CHANGED
Binary file
|