protoc 21.12.0 → 22.0.0-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/assets.json +10 -10
- package/bin/protoc-linux-aarch_64 +0 -0
- package/bin/protoc-linux-x86_64 +0 -0
- package/bin/protoc-osx-aarch_64 +0 -0
- package/bin/protoc-osx-x86_64 +0 -0
- package/bin/protoc-win64.exe +0 -0
- package/include/google/protobuf/any.proto +5 -2
- package/include/google/protobuf/api.proto +1 -2
- package/include/google/protobuf/compiler/plugin.proto +1 -4
- package/include/google/protobuf/descriptor.proto +77 -23
- package/include/google/protobuf/duration.proto +1 -2
- package/include/google/protobuf/empty.proto +1 -1
- package/include/google/protobuf/field_mask.proto +1 -1
- package/include/google/protobuf/source_context.proto +1 -1
- package/include/google/protobuf/struct.proto +1 -1
- package/include/google/protobuf/timestamp.proto +1 -4
- package/include/google/protobuf/type.proto +1 -1
- package/include/google/protobuf/wrappers.proto +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
protoc
|
|
2
2
|
======
|
|
3
3
|
|
|
4
|
-
This package provides the Protobuf compiler `protoc` <!-- inject: release.tag_name -->
|
|
4
|
+
This package provides the Protobuf compiler `protoc` <!-- inject: release.tag_name -->v22.0-rc1<!-- end -->.
|
|
5
5
|
|
|
6
6
|
```shell script
|
|
7
7
|
npm install --save-dev protoc
|
package/assets.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"name": "protoc-
|
|
4
|
-
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/
|
|
3
|
+
"name": "protoc-22.0-rc-1-linux-aarch_64.zip",
|
|
4
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v22.0-rc1/protoc-22.0-rc-1-linux-aarch_64.zip",
|
|
5
5
|
"platform": "linux",
|
|
6
6
|
"arch": "arm64",
|
|
7
7
|
"dotExe": false,
|
|
8
8
|
"executable": "protoc-linux-aarch_64"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
"name": "protoc-
|
|
12
|
-
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/
|
|
11
|
+
"name": "protoc-22.0-rc-1-linux-x86_64.zip",
|
|
12
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v22.0-rc1/protoc-22.0-rc-1-linux-x86_64.zip",
|
|
13
13
|
"platform": "linux",
|
|
14
14
|
"arch": "x64",
|
|
15
15
|
"dotExe": false,
|
|
16
16
|
"executable": "protoc-linux-x86_64"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"name": "protoc-
|
|
20
|
-
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/
|
|
19
|
+
"name": "protoc-22.0-rc-1-osx-aarch_64.zip",
|
|
20
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v22.0-rc1/protoc-22.0-rc-1-osx-aarch_64.zip",
|
|
21
21
|
"platform": "darwin",
|
|
22
22
|
"arch": "arm64",
|
|
23
23
|
"dotExe": false,
|
|
24
24
|
"executable": "protoc-osx-aarch_64"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"name": "protoc-
|
|
28
|
-
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/
|
|
27
|
+
"name": "protoc-22.0-rc-1-osx-x86_64.zip",
|
|
28
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v22.0-rc1/protoc-22.0-rc-1-osx-x86_64.zip",
|
|
29
29
|
"platform": "darwin",
|
|
30
30
|
"arch": "x64",
|
|
31
31
|
"dotExe": false,
|
|
32
32
|
"executable": "protoc-osx-x86_64"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"name": "protoc-
|
|
36
|
-
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/
|
|
35
|
+
"name": "protoc-22.0-rc-1-win64.zip",
|
|
36
|
+
"browser_download_url": "https://github.com/protocolbuffers/protobuf/releases/download/v22.0-rc1/protoc-22.0-rc-1-win64.zip",
|
|
37
37
|
"platform": "win32",
|
|
38
38
|
"arch": "x64",
|
|
39
39
|
"dotExe": true,
|
|
Binary file
|
package/bin/protoc-linux-x86_64
CHANGED
|
Binary file
|
package/bin/protoc-osx-aarch_64
CHANGED
|
Binary file
|
package/bin/protoc-osx-x86_64
CHANGED
|
Binary file
|
package/bin/protoc-win64.exe
CHANGED
|
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
|
|
@@ -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
|
|
@@ -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,7 +133,6 @@ message ExtensionRangeOptions {
|
|
|
129
133
|
// The parser stores options it doesn't recognize here. See above.
|
|
130
134
|
repeated UninterpretedOption uninterpreted_option = 999;
|
|
131
135
|
|
|
132
|
-
|
|
133
136
|
// Clients can define custom options in extensions of this message. See above.
|
|
134
137
|
extensions 1000 to max;
|
|
135
138
|
}
|
|
@@ -305,7 +308,6 @@ message MethodDescriptorProto {
|
|
|
305
308
|
optional bool server_streaming = 6 [default = false];
|
|
306
309
|
}
|
|
307
310
|
|
|
308
|
-
|
|
309
311
|
// ===================================================================
|
|
310
312
|
// Options
|
|
311
313
|
|
|
@@ -346,7 +348,6 @@ message FileOptions {
|
|
|
346
348
|
// domain names.
|
|
347
349
|
optional string java_package = 1;
|
|
348
350
|
|
|
349
|
-
|
|
350
351
|
// Controls the name of the wrapper Java class generated for the .proto file.
|
|
351
352
|
// That class will always contain the .proto file's getDescriptor() method as
|
|
352
353
|
// well as any top-level extensions defined in the .proto file.
|
|
@@ -373,7 +374,6 @@ message FileOptions {
|
|
|
373
374
|
// This option has no effect on when used with the lite runtime.
|
|
374
375
|
optional bool java_string_check_utf8 = 27 [default = false];
|
|
375
376
|
|
|
376
|
-
|
|
377
377
|
// Generated classes can be optimized for speed or code size.
|
|
378
378
|
enum OptimizeMode {
|
|
379
379
|
SPEED = 1; // Generate complete code for parsing, serialization,
|
|
@@ -390,9 +390,6 @@ message FileOptions {
|
|
|
390
390
|
// - Otherwise, the basename of the .proto file, without extension.
|
|
391
391
|
optional string go_package = 11;
|
|
392
392
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
393
|
// Should generic services be generated in each language? "Generic" services
|
|
397
394
|
// are not specific to any particular RPC system. They are generated by the
|
|
398
395
|
// main code generators in each language (without additional plugins).
|
|
@@ -418,7 +415,6 @@ message FileOptions {
|
|
|
418
415
|
// only to generated classes for C++.
|
|
419
416
|
optional bool cc_enable_arenas = 31 [default = true];
|
|
420
417
|
|
|
421
|
-
|
|
422
418
|
// Sets the objective c class prefix which is prepended to all objective c
|
|
423
419
|
// generated classes from this .proto. There is no default.
|
|
424
420
|
optional string objc_class_prefix = 36;
|
|
@@ -451,7 +447,6 @@ message FileOptions {
|
|
|
451
447
|
// determining the ruby package.
|
|
452
448
|
optional string ruby_package = 45;
|
|
453
449
|
|
|
454
|
-
|
|
455
450
|
// The parser stores options it doesn't recognize here.
|
|
456
451
|
// See the documentation for the "Options" section above.
|
|
457
452
|
repeated UninterpretedOption uninterpreted_option = 999;
|
|
@@ -497,6 +492,10 @@ message MessageOptions {
|
|
|
497
492
|
|
|
498
493
|
reserved 4, 5, 6;
|
|
499
494
|
|
|
495
|
+
// NOTE: Do not set the option in .proto files. Always use the maps syntax
|
|
496
|
+
// instead. The option should only be implicitly set by the proto compiler
|
|
497
|
+
// parser.
|
|
498
|
+
//
|
|
500
499
|
// Whether the message is an automatically generated map entry type for the
|
|
501
500
|
// maps field.
|
|
502
501
|
//
|
|
@@ -514,15 +513,22 @@ message MessageOptions {
|
|
|
514
513
|
// use a native map in the target language to hold the keys and values.
|
|
515
514
|
// The reflection APIs in such implementations still need to work as
|
|
516
515
|
// if the field is a repeated message field.
|
|
517
|
-
//
|
|
518
|
-
// NOTE: Do not set the option in .proto files. Always use the maps syntax
|
|
519
|
-
// instead. The option should only be implicitly set by the proto compiler
|
|
520
|
-
// parser.
|
|
521
516
|
optional bool map_entry = 7;
|
|
522
517
|
|
|
523
518
|
reserved 8; // javalite_serializable
|
|
524
519
|
reserved 9; // javanano_as_lite
|
|
525
520
|
|
|
521
|
+
// Enable the legacy handling of JSON field name conflicts. This lowercases
|
|
522
|
+
// and strips underscored from the fields before comparison in proto3 only.
|
|
523
|
+
// The new behavior takes `json_name` into account and applies to proto2 as
|
|
524
|
+
// well.
|
|
525
|
+
//
|
|
526
|
+
// This should only be used as a temporary measure against broken builds due
|
|
527
|
+
// to the change in behavior for JSON field name conflicts.
|
|
528
|
+
//
|
|
529
|
+
// TODO(b/261750190) This is legacy behavior we plan to remove once downstream
|
|
530
|
+
// teams have had time to migrate.
|
|
531
|
+
optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
|
|
526
532
|
|
|
527
533
|
// The parser stores options it doesn't recognize here. See above.
|
|
528
534
|
repeated UninterpretedOption uninterpreted_option = 999;
|
|
@@ -592,7 +598,6 @@ message FieldOptions {
|
|
|
592
598
|
// call from multiple threads concurrently, while non-const methods continue
|
|
593
599
|
// to require exclusive access.
|
|
594
600
|
//
|
|
595
|
-
//
|
|
596
601
|
// Note that implementations may choose not to check required fields within
|
|
597
602
|
// a lazy sub-message. That is, calling IsInitialized() on the outer message
|
|
598
603
|
// may return true even if the inner message has missing required fields.
|
|
@@ -604,11 +609,8 @@ message FieldOptions {
|
|
|
604
609
|
// check its required fields, regardless of whether or not the message has
|
|
605
610
|
// been parsed.
|
|
606
611
|
//
|
|
607
|
-
// As of
|
|
608
|
-
// parsing.
|
|
609
|
-
// finally parsed upon access.
|
|
610
|
-
//
|
|
611
|
-
// TODO(b/211906113): Enable validation on lazy fields.
|
|
612
|
+
// As of May 2022, lazy verifies the contents of the byte stream during
|
|
613
|
+
// parsing. An invalid byte stream will cause the overall parsing to fail.
|
|
612
614
|
optional bool lazy = 5 [default = false];
|
|
613
615
|
|
|
614
616
|
// unverified_lazy does no correctness checks on the byte stream. This should
|
|
@@ -625,6 +627,39 @@ message FieldOptions {
|
|
|
625
627
|
// For Google-internal migration only. Do not use.
|
|
626
628
|
optional bool weak = 10 [default = false];
|
|
627
629
|
|
|
630
|
+
// Indicate that the field value should not be printed out when using debug
|
|
631
|
+
// formats, e.g. when the field contains sensitive credentials.
|
|
632
|
+
optional bool debug_redact = 16 [default = false];
|
|
633
|
+
|
|
634
|
+
// If set to RETENTION_SOURCE, the option will be omitted from the binary.
|
|
635
|
+
// Note: as of January 2023, support for this is in progress and does not yet
|
|
636
|
+
// have an effect (b/264593489).
|
|
637
|
+
enum OptionRetention {
|
|
638
|
+
RETENTION_UNKNOWN = 0;
|
|
639
|
+
RETENTION_RUNTIME = 1;
|
|
640
|
+
RETENTION_SOURCE = 2;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
optional OptionRetention retention = 17;
|
|
644
|
+
|
|
645
|
+
// This indicates the types of entities that the field may apply to when used
|
|
646
|
+
// as an option. If it is unset, then the field may be freely used as an
|
|
647
|
+
// option on any kind of entity. Note: as of January 2023, support for this is
|
|
648
|
+
// in progress and does not yet have an effect (b/264593489).
|
|
649
|
+
enum OptionTargetType {
|
|
650
|
+
TARGET_TYPE_UNKNOWN = 0;
|
|
651
|
+
TARGET_TYPE_FILE = 1;
|
|
652
|
+
TARGET_TYPE_EXTENSION_RANGE = 2;
|
|
653
|
+
TARGET_TYPE_MESSAGE = 3;
|
|
654
|
+
TARGET_TYPE_FIELD = 4;
|
|
655
|
+
TARGET_TYPE_ONEOF = 5;
|
|
656
|
+
TARGET_TYPE_ENUM = 6;
|
|
657
|
+
TARGET_TYPE_ENUM_ENTRY = 7;
|
|
658
|
+
TARGET_TYPE_SERVICE = 8;
|
|
659
|
+
TARGET_TYPE_METHOD = 9;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
optional OptionTargetType target = 18;
|
|
628
663
|
|
|
629
664
|
// The parser stores options it doesn't recognize here. See above.
|
|
630
665
|
repeated UninterpretedOption uninterpreted_option = 999;
|
|
@@ -657,6 +692,14 @@ message EnumOptions {
|
|
|
657
692
|
|
|
658
693
|
reserved 5; // javanano_as_lite
|
|
659
694
|
|
|
695
|
+
// Enable the legacy handling of JSON field name conflicts. This lowercases
|
|
696
|
+
// and strips underscored from the fields before comparison in proto3 only.
|
|
697
|
+
// The new behavior takes `json_name` into account and applies to proto2 as
|
|
698
|
+
// well.
|
|
699
|
+
// TODO(b/261750190) Remove this legacy behavior once downstream teams have
|
|
700
|
+
// had time to migrate.
|
|
701
|
+
optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
|
|
702
|
+
|
|
660
703
|
// The parser stores options it doesn't recognize here. See above.
|
|
661
704
|
repeated UninterpretedOption uninterpreted_option = 999;
|
|
662
705
|
|
|
@@ -729,7 +772,6 @@ message MethodOptions {
|
|
|
729
772
|
extensions 1000 to max;
|
|
730
773
|
}
|
|
731
774
|
|
|
732
|
-
|
|
733
775
|
// A message representing a option the parser does not recognize. This only
|
|
734
776
|
// appears in options protos created by the compiler::Parser class.
|
|
735
777
|
// DescriptorPool resolves these when building Descriptor objects. Therefore,
|
|
@@ -914,8 +956,20 @@ message GeneratedCodeInfo {
|
|
|
914
956
|
optional int32 begin = 3;
|
|
915
957
|
|
|
916
958
|
// Identifies the ending offset in bytes in the generated code that
|
|
917
|
-
// relates to the identified
|
|
959
|
+
// relates to the identified object. The end offset should be one past
|
|
918
960
|
// the last relevant byte (so the length of the text = end - begin).
|
|
919
961
|
optional int32 end = 4;
|
|
962
|
+
|
|
963
|
+
// Represents the identified object's effect on the element in the original
|
|
964
|
+
// .proto file.
|
|
965
|
+
enum Semantic {
|
|
966
|
+
// There is no effect or the effect is indescribable.
|
|
967
|
+
NONE = 0;
|
|
968
|
+
// The element is set or otherwise mutated.
|
|
969
|
+
SET = 1;
|
|
970
|
+
// An alias to the element is returned.
|
|
971
|
+
ALIAS = 2;
|
|
972
|
+
}
|
|
973
|
+
optional Semantic semantic = 5;
|
|
920
974
|
}
|
|
921
975
|
}
|
|
@@ -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
|
|
@@ -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`
|
|
@@ -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()
|
|
@@ -132,7 +130,6 @@ option objc_class_prefix = "GPB";
|
|
|
132
130
|
// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
|
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.
|
|
@@ -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
|
//
|
package/package.json
CHANGED