Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
Jintao Zhang authored on 2020/07/31 02:22:59... | ... |
@@ -136,7 +136,7 @@ github.com/cilium/ebpf 1c8d4c9ef7759622653a1d319284 |
136 | 136 |
# cluster |
137 | 137 |
github.com/docker/swarmkit 293aa2e66279a930999044cbf6d0e590baac16ff |
138 | 138 |
github.com/gogo/protobuf 5628607bb4c51c3157aacc3a50f0ab707582b805 # v1.3.1 |
139 |
-github.com/golang/protobuf d23c5127dc24889085f8ccea5c9d560a57a879d8 # v1.3.3 |
|
139 |
+github.com/golang/protobuf 84668698ea25b64748563aa20726db66a6b8d299 # v1.3.5 |
|
140 | 140 |
github.com/cloudflare/cfssl 5d63dbd981b5c408effbb58c442d54761ff94fbd # 1.3.2 |
141 | 141 |
github.com/fernet/fernet-go 9eac43b88a5efb8651d24de9b68e87567e029736 |
142 | 142 |
github.com/google/certificate-transparency-go 37a384cd035e722ea46e55029093e26687138edf # v1.0.20 |
... | ... |
@@ -1376,8 +1376,8 @@ type FileOptions struct { |
1376 | 1376 |
// determining the namespace. |
1377 | 1377 |
PhpNamespace *string `protobuf:"bytes,41,opt,name=php_namespace,json=phpNamespace" json:"php_namespace,omitempty"` |
1378 | 1378 |
// Use this option to change the namespace of php generated metadata classes. |
1379 |
- // Default is empty. When this option is empty, the proto file name will be used |
|
1380 |
- // for determining the namespace. |
|
1379 |
+ // Default is empty. When this option is empty, the proto file name will be |
|
1380 |
+ // used for determining the namespace. |
|
1381 | 1381 |
PhpMetadataNamespace *string `protobuf:"bytes,44,opt,name=php_metadata_namespace,json=phpMetadataNamespace" json:"php_metadata_namespace,omitempty"` |
1382 | 1382 |
// Use this option to change the package of ruby generated classes. Default |
1383 | 1383 |
// is empty. When this option is not set, the package name will be used for |
... | ... |
@@ -1627,7 +1627,7 @@ type MessageOptions struct { |
1627 | 1627 |
// |
1628 | 1628 |
// Implementations may choose not to generate the map_entry=true message, but |
1629 | 1629 |
// use a native map in the target language to hold the keys and values. |
1630 |
- // The reflection APIs in such implementions still need to work as |
|
1630 |
+ // The reflection APIs in such implementations still need to work as |
|
1631 | 1631 |
// if the field is a repeated message field. |
1632 | 1632 |
// |
1633 | 1633 |
// NOTE: Do not set the option in .proto files. Always use the maps syntax |
... | ... |
@@ -2377,7 +2377,7 @@ type SourceCodeInfo struct { |
2377 | 2377 |
// beginning of the "extend" block and is shared by all extensions within |
2378 | 2378 |
// the block. |
2379 | 2379 |
// - Just because a location's span is a subset of some other location's span |
2380 |
- // does not mean that it is a descendent. For example, a "group" defines |
|
2380 |
+ // does not mean that it is a descendant. For example, a "group" defines |
|
2381 | 2381 |
// both a type and a field in a single declaration. Thus, the locations |
2382 | 2382 |
// corresponding to the type and field and their components will overlap. |
2383 | 2383 |
// - Code which tries to interpret locations should probably be designed to |
... | ... |
@@ -2718,7 +2718,9 @@ func init() { |
2718 | 2718 |
proto.RegisterType((*GeneratedCodeInfo_Annotation)(nil), "google.protobuf.GeneratedCodeInfo.Annotation") |
2719 | 2719 |
} |
2720 | 2720 |
|
2721 |
-func init() { proto.RegisterFile("google/protobuf/descriptor.proto", fileDescriptor_e5baabe45344a177) } |
|
2721 |
+func init() { |
|
2722 |
+ proto.RegisterFile("google/protobuf/descriptor.proto", fileDescriptor_e5baabe45344a177) |
|
2723 |
+} |
|
2722 | 2724 |
|
2723 | 2725 |
var fileDescriptor_e5baabe45344a177 = []byte{ |
2724 | 2726 |
// 2589 bytes of a gzipped FileDescriptorProto |
... | ... |
@@ -40,6 +40,7 @@ |
40 | 40 |
syntax = "proto2"; |
41 | 41 |
|
42 | 42 |
package google.protobuf; |
43 |
+ |
|
43 | 44 |
option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor"; |
44 | 45 |
option java_package = "com.google.protobuf"; |
45 | 46 |
option java_outer_classname = "DescriptorProtos"; |
... | ... |
@@ -59,8 +60,8 @@ message FileDescriptorSet { |
59 | 59 |
|
60 | 60 |
// Describes a complete .proto file. |
61 | 61 |
message FileDescriptorProto { |
62 |
- optional string name = 1; // file name, relative to root of source tree |
|
63 |
- optional string package = 2; // e.g. "foo", "foo.bar", etc. |
|
62 |
+ optional string name = 1; // file name, relative to root of source tree |
|
63 |
+ optional string package = 2; // e.g. "foo", "foo.bar", etc. |
|
64 | 64 |
|
65 | 65 |
// Names of files imported by this file. |
66 | 66 |
repeated string dependency = 3; |
... | ... |
@@ -100,8 +101,8 @@ message DescriptorProto { |
100 | 100 |
repeated EnumDescriptorProto enum_type = 4; |
101 | 101 |
|
102 | 102 |
message ExtensionRange { |
103 |
- optional int32 start = 1; |
|
104 |
- optional int32 end = 2; |
|
103 |
+ optional int32 start = 1; // Inclusive. |
|
104 |
+ optional int32 end = 2; // Exclusive. |
|
105 | 105 |
|
106 | 106 |
optional ExtensionRangeOptions options = 3; |
107 | 107 |
} |
... | ... |
@@ -115,8 +116,8 @@ message DescriptorProto { |
115 | 115 |
// fields or extension ranges in the same message. Reserved ranges may |
116 | 116 |
// not overlap. |
117 | 117 |
message ReservedRange { |
118 |
- optional int32 start = 1; // Inclusive. |
|
119 |
- optional int32 end = 2; // Exclusive. |
|
118 |
+ optional int32 start = 1; // Inclusive. |
|
119 |
+ optional int32 end = 2; // Exclusive. |
|
120 | 120 |
} |
121 | 121 |
repeated ReservedRange reserved_range = 9; |
122 | 122 |
// Reserved field names, which may not be used by fields in the same message. |
... | ... |
@@ -137,42 +138,42 @@ message FieldDescriptorProto { |
137 | 137 |
enum Type { |
138 | 138 |
// 0 is reserved for errors. |
139 | 139 |
// Order is weird for historical reasons. |
140 |
- TYPE_DOUBLE = 1; |
|
141 |
- TYPE_FLOAT = 2; |
|
140 |
+ TYPE_DOUBLE = 1; |
|
141 |
+ TYPE_FLOAT = 2; |
|
142 | 142 |
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if |
143 | 143 |
// negative values are likely. |
144 |
- TYPE_INT64 = 3; |
|
145 |
- TYPE_UINT64 = 4; |
|
144 |
+ TYPE_INT64 = 3; |
|
145 |
+ TYPE_UINT64 = 4; |
|
146 | 146 |
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if |
147 | 147 |
// negative values are likely. |
148 |
- TYPE_INT32 = 5; |
|
149 |
- TYPE_FIXED64 = 6; |
|
150 |
- TYPE_FIXED32 = 7; |
|
151 |
- TYPE_BOOL = 8; |
|
152 |
- TYPE_STRING = 9; |
|
148 |
+ TYPE_INT32 = 5; |
|
149 |
+ TYPE_FIXED64 = 6; |
|
150 |
+ TYPE_FIXED32 = 7; |
|
151 |
+ TYPE_BOOL = 8; |
|
152 |
+ TYPE_STRING = 9; |
|
153 | 153 |
// Tag-delimited aggregate. |
154 | 154 |
// Group type is deprecated and not supported in proto3. However, Proto3 |
155 | 155 |
// implementations should still be able to parse the group wire format and |
156 | 156 |
// treat group fields as unknown fields. |
157 |
- TYPE_GROUP = 10; |
|
158 |
- TYPE_MESSAGE = 11; // Length-delimited aggregate. |
|
157 |
+ TYPE_GROUP = 10; |
|
158 |
+ TYPE_MESSAGE = 11; // Length-delimited aggregate. |
|
159 | 159 |
|
160 | 160 |
// New in version 2. |
161 |
- TYPE_BYTES = 12; |
|
162 |
- TYPE_UINT32 = 13; |
|
163 |
- TYPE_ENUM = 14; |
|
164 |
- TYPE_SFIXED32 = 15; |
|
165 |
- TYPE_SFIXED64 = 16; |
|
166 |
- TYPE_SINT32 = 17; // Uses ZigZag encoding. |
|
167 |
- TYPE_SINT64 = 18; // Uses ZigZag encoding. |
|
168 |
- }; |
|
161 |
+ TYPE_BYTES = 12; |
|
162 |
+ TYPE_UINT32 = 13; |
|
163 |
+ TYPE_ENUM = 14; |
|
164 |
+ TYPE_SFIXED32 = 15; |
|
165 |
+ TYPE_SFIXED64 = 16; |
|
166 |
+ TYPE_SINT32 = 17; // Uses ZigZag encoding. |
|
167 |
+ TYPE_SINT64 = 18; // Uses ZigZag encoding. |
|
168 |
+ } |
|
169 | 169 |
|
170 | 170 |
enum Label { |
171 | 171 |
// 0 is reserved for errors |
172 |
- LABEL_OPTIONAL = 1; |
|
173 |
- LABEL_REQUIRED = 2; |
|
174 |
- LABEL_REPEATED = 3; |
|
175 |
- }; |
|
172 |
+ LABEL_OPTIONAL = 1; |
|
173 |
+ LABEL_REQUIRED = 2; |
|
174 |
+ LABEL_REPEATED = 3; |
|
175 |
+ } |
|
176 | 176 |
|
177 | 177 |
optional string name = 1; |
178 | 178 |
optional int32 number = 3; |
... | ... |
@@ -234,8 +235,8 @@ message EnumDescriptorProto { |
234 | 234 |
// is inclusive such that it can appropriately represent the entire int32 |
235 | 235 |
// domain. |
236 | 236 |
message EnumReservedRange { |
237 |
- optional int32 start = 1; // Inclusive. |
|
238 |
- optional int32 end = 2; // Inclusive. |
|
237 |
+ optional int32 start = 1; // Inclusive. |
|
238 |
+ optional int32 end = 2; // Inclusive. |
|
239 | 239 |
} |
240 | 240 |
|
241 | 241 |
// Range of reserved numeric values. Reserved numeric values may not be used |
... | ... |
@@ -276,9 +277,9 @@ message MethodDescriptorProto { |
276 | 276 |
optional MethodOptions options = 4; |
277 | 277 |
|
278 | 278 |
// Identifies if client streams multiple client messages |
279 |
- optional bool client_streaming = 5 [default=false]; |
|
279 |
+ optional bool client_streaming = 5 [default = false]; |
|
280 | 280 |
// Identifies if server streams multiple server messages |
281 |
- optional bool server_streaming = 6 [default=false]; |
|
281 |
+ optional bool server_streaming = 6 [default = false]; |
|
282 | 282 |
} |
283 | 283 |
|
284 | 284 |
|
... | ... |
@@ -314,7 +315,6 @@ message MethodDescriptorProto { |
314 | 314 |
// If this turns out to be popular, a web service will be set up |
315 | 315 |
// to automatically assign option numbers. |
316 | 316 |
|
317 |
- |
|
318 | 317 |
message FileOptions { |
319 | 318 |
|
320 | 319 |
// Sets the Java package where classes generated from this .proto will be |
... | ... |
@@ -337,7 +337,7 @@ message FileOptions { |
337 | 337 |
// named by java_outer_classname. However, the outer class will still be |
338 | 338 |
// generated to contain the file's getDescriptor() method as well as any |
339 | 339 |
// top-level extensions defined in the file. |
340 |
- optional bool java_multiple_files = 10 [default=false]; |
|
340 |
+ optional bool java_multiple_files = 10 [default = false]; |
|
341 | 341 |
|
342 | 342 |
// This option does nothing. |
343 | 343 |
optional bool java_generate_equals_and_hash = 20 [deprecated=true]; |
... | ... |
@@ -348,17 +348,17 @@ message FileOptions { |
348 | 348 |
// Message reflection will do the same. |
349 | 349 |
// However, an extension field still accepts non-UTF-8 byte sequences. |
350 | 350 |
// This option has no effect on when used with the lite runtime. |
351 |
- optional bool java_string_check_utf8 = 27 [default=false]; |
|
351 |
+ optional bool java_string_check_utf8 = 27 [default = false]; |
|
352 | 352 |
|
353 | 353 |
|
354 | 354 |
// Generated classes can be optimized for speed or code size. |
355 | 355 |
enum OptimizeMode { |
356 |
- SPEED = 1; // Generate complete code for parsing, serialization, |
|
357 |
- // etc. |
|
358 |
- CODE_SIZE = 2; // Use ReflectionOps to implement these methods. |
|
359 |
- LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime. |
|
356 |
+ SPEED = 1; // Generate complete code for parsing, serialization, |
|
357 |
+ // etc. |
|
358 |
+ CODE_SIZE = 2; // Use ReflectionOps to implement these methods. |
|
359 |
+ LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime. |
|
360 | 360 |
} |
361 |
- optional OptimizeMode optimize_for = 9 [default=SPEED]; |
|
361 |
+ optional OptimizeMode optimize_for = 9 [default = SPEED]; |
|
362 | 362 |
|
363 | 363 |
// Sets the Go package where structs generated from this .proto will be |
364 | 364 |
// placed. If omitted, the Go package will be derived from the following: |
... | ... |
@@ -369,6 +369,7 @@ message FileOptions { |
369 | 369 |
|
370 | 370 |
|
371 | 371 |
|
372 |
+ |
|
372 | 373 |
// Should generic services be generated in each language? "Generic" services |
373 | 374 |
// are not specific to any particular RPC system. They are generated by the |
374 | 375 |
// main code generators in each language (without additional plugins). |
... | ... |
@@ -379,20 +380,20 @@ message FileOptions { |
379 | 379 |
// that generate code specific to your particular RPC system. Therefore, |
380 | 380 |
// these default to false. Old code which depends on generic services should |
381 | 381 |
// explicitly set them to true. |
382 |
- optional bool cc_generic_services = 16 [default=false]; |
|
383 |
- optional bool java_generic_services = 17 [default=false]; |
|
384 |
- optional bool py_generic_services = 18 [default=false]; |
|
385 |
- optional bool php_generic_services = 42 [default=false]; |
|
382 |
+ optional bool cc_generic_services = 16 [default = false]; |
|
383 |
+ optional bool java_generic_services = 17 [default = false]; |
|
384 |
+ optional bool py_generic_services = 18 [default = false]; |
|
385 |
+ optional bool php_generic_services = 42 [default = false]; |
|
386 | 386 |
|
387 | 387 |
// Is this file deprecated? |
388 | 388 |
// Depending on the target platform, this can emit Deprecated annotations |
389 | 389 |
// for everything in the file, or it will be completely ignored; in the very |
390 | 390 |
// least, this is a formalization for deprecating files. |
391 |
- optional bool deprecated = 23 [default=false]; |
|
391 |
+ optional bool deprecated = 23 [default = false]; |
|
392 | 392 |
|
393 | 393 |
// Enables the use of arenas for the proto messages in this file. This applies |
394 | 394 |
// only to generated classes for C++. |
395 |
- optional bool cc_enable_arenas = 31 [default=false]; |
|
395 |
+ optional bool cc_enable_arenas = 31 [default = false]; |
|
396 | 396 |
|
397 | 397 |
|
398 | 398 |
// Sets the objective c class prefix which is prepended to all objective c |
... | ... |
@@ -417,10 +418,9 @@ message FileOptions { |
417 | 417 |
// determining the namespace. |
418 | 418 |
optional string php_namespace = 41; |
419 | 419 |
|
420 |
- |
|
421 | 420 |
// Use this option to change the namespace of php generated metadata classes. |
422 |
- // Default is empty. When this option is empty, the proto file name will be used |
|
423 |
- // for determining the namespace. |
|
421 |
+ // Default is empty. When this option is empty, the proto file name will be |
|
422 |
+ // used for determining the namespace. |
|
424 | 423 |
optional string php_metadata_namespace = 44; |
425 | 424 |
|
426 | 425 |
// Use this option to change the package of ruby generated classes. Default |
... | ... |
@@ -428,6 +428,7 @@ message FileOptions { |
428 | 428 |
// determining the ruby package. |
429 | 429 |
optional string ruby_package = 45; |
430 | 430 |
|
431 |
+ |
|
431 | 432 |
// The parser stores options it doesn't recognize here. |
432 | 433 |
// See the documentation for the "Options" section above. |
433 | 434 |
repeated UninterpretedOption uninterpreted_option = 999; |
... | ... |
@@ -458,18 +459,18 @@ message MessageOptions { |
458 | 458 |
// |
459 | 459 |
// Because this is an option, the above two restrictions are not enforced by |
460 | 460 |
// the protocol compiler. |
461 |
- optional bool message_set_wire_format = 1 [default=false]; |
|
461 |
+ optional bool message_set_wire_format = 1 [default = false]; |
|
462 | 462 |
|
463 | 463 |
// Disables the generation of the standard "descriptor()" accessor, which can |
464 | 464 |
// conflict with a field of the same name. This is meant to make migration |
465 | 465 |
// from proto1 easier; new code should avoid fields named "descriptor". |
466 |
- optional bool no_standard_descriptor_accessor = 2 [default=false]; |
|
466 |
+ optional bool no_standard_descriptor_accessor = 2 [default = false]; |
|
467 | 467 |
|
468 | 468 |
// Is this message deprecated? |
469 | 469 |
// Depending on the target platform, this can emit Deprecated annotations |
470 | 470 |
// for the message, or it will be completely ignored; in the very least, |
471 | 471 |
// this is a formalization for deprecating messages. |
472 |
- optional bool deprecated = 3 [default=false]; |
|
472 |
+ optional bool deprecated = 3 [default = false]; |
|
473 | 473 |
|
474 | 474 |
// Whether the message is an automatically generated map entry type for the |
475 | 475 |
// maps field. |
... | ... |
@@ -486,7 +487,7 @@ message MessageOptions { |
486 | 486 |
// |
487 | 487 |
// Implementations may choose not to generate the map_entry=true message, but |
488 | 488 |
// use a native map in the target language to hold the keys and values. |
489 |
- // The reflection APIs in such implementions still need to work as |
|
489 |
+ // The reflection APIs in such implementations still need to work as |
|
490 | 490 |
// if the field is a repeated message field. |
491 | 491 |
// |
492 | 492 |
// NOTE: Do not set the option in .proto files. Always use the maps syntax |
... | ... |
@@ -497,6 +498,7 @@ message MessageOptions { |
497 | 497 |
reserved 8; // javalite_serializable |
498 | 498 |
reserved 9; // javanano_as_lite |
499 | 499 |
|
500 |
+ |
|
500 | 501 |
// The parser stores options it doesn't recognize here. See above. |
501 | 502 |
repeated UninterpretedOption uninterpreted_option = 999; |
502 | 503 |
|
... | ... |
@@ -576,16 +578,16 @@ message FieldOptions { |
576 | 576 |
// implementation must either *always* check its required fields, or *never* |
577 | 577 |
// check its required fields, regardless of whether or not the message has |
578 | 578 |
// been parsed. |
579 |
- optional bool lazy = 5 [default=false]; |
|
579 |
+ optional bool lazy = 5 [default = false]; |
|
580 | 580 |
|
581 | 581 |
// Is this field deprecated? |
582 | 582 |
// Depending on the target platform, this can emit Deprecated annotations |
583 | 583 |
// for accessors, or it will be completely ignored; in the very least, this |
584 | 584 |
// is a formalization for deprecating fields. |
585 |
- optional bool deprecated = 3 [default=false]; |
|
585 |
+ optional bool deprecated = 3 [default = false]; |
|
586 | 586 |
|
587 | 587 |
// For Google-internal migration only. Do not use. |
588 |
- optional bool weak = 10 [default=false]; |
|
588 |
+ optional bool weak = 10 [default = false]; |
|
589 | 589 |
|
590 | 590 |
|
591 | 591 |
// The parser stores options it doesn't recognize here. See above. |
... | ... |
@@ -615,7 +617,7 @@ message EnumOptions { |
615 | 615 |
// Depending on the target platform, this can emit Deprecated annotations |
616 | 616 |
// for the enum, or it will be completely ignored; in the very least, this |
617 | 617 |
// is a formalization for deprecating enums. |
618 |
- optional bool deprecated = 3 [default=false]; |
|
618 |
+ optional bool deprecated = 3 [default = false]; |
|
619 | 619 |
|
620 | 620 |
reserved 5; // javanano_as_lite |
621 | 621 |
|
... | ... |
@@ -631,7 +633,7 @@ message EnumValueOptions { |
631 | 631 |
// Depending on the target platform, this can emit Deprecated annotations |
632 | 632 |
// for the enum value, or it will be completely ignored; in the very least, |
633 | 633 |
// this is a formalization for deprecating enum values. |
634 |
- optional bool deprecated = 1 [default=false]; |
|
634 |
+ optional bool deprecated = 1 [default = false]; |
|
635 | 635 |
|
636 | 636 |
// The parser stores options it doesn't recognize here. See above. |
637 | 637 |
repeated UninterpretedOption uninterpreted_option = 999; |
... | ... |
@@ -651,7 +653,7 @@ message ServiceOptions { |
651 | 651 |
// Depending on the target platform, this can emit Deprecated annotations |
652 | 652 |
// for the service, or it will be completely ignored; in the very least, |
653 | 653 |
// this is a formalization for deprecating services. |
654 |
- optional bool deprecated = 33 [default=false]; |
|
654 |
+ optional bool deprecated = 33 [default = false]; |
|
655 | 655 |
|
656 | 656 |
// The parser stores options it doesn't recognize here. See above. |
657 | 657 |
repeated UninterpretedOption uninterpreted_option = 999; |
... | ... |
@@ -671,18 +673,18 @@ message MethodOptions { |
671 | 671 |
// Depending on the target platform, this can emit Deprecated annotations |
672 | 672 |
// for the method, or it will be completely ignored; in the very least, |
673 | 673 |
// this is a formalization for deprecating methods. |
674 |
- optional bool deprecated = 33 [default=false]; |
|
674 |
+ optional bool deprecated = 33 [default = false]; |
|
675 | 675 |
|
676 | 676 |
// Is this method side-effect-free (or safe in HTTP parlance), or idempotent, |
677 | 677 |
// or neither? HTTP based RPC implementation may choose GET verb for safe |
678 | 678 |
// methods, and PUT verb for idempotent methods instead of the default POST. |
679 | 679 |
enum IdempotencyLevel { |
680 | 680 |
IDEMPOTENCY_UNKNOWN = 0; |
681 |
- NO_SIDE_EFFECTS = 1; // implies idempotent |
|
682 |
- IDEMPOTENT = 2; // idempotent, but may have side effects |
|
681 |
+ NO_SIDE_EFFECTS = 1; // implies idempotent |
|
682 |
+ IDEMPOTENT = 2; // idempotent, but may have side effects |
|
683 | 683 |
} |
684 |
- optional IdempotencyLevel idempotency_level = |
|
685 |
- 34 [default=IDEMPOTENCY_UNKNOWN]; |
|
684 |
+ optional IdempotencyLevel idempotency_level = 34 |
|
685 |
+ [default = IDEMPOTENCY_UNKNOWN]; |
|
686 | 686 |
|
687 | 687 |
// The parser stores options it doesn't recognize here. See above. |
688 | 688 |
repeated UninterpretedOption uninterpreted_option = 999; |
... | ... |
@@ -763,7 +765,7 @@ message SourceCodeInfo { |
763 | 763 |
// beginning of the "extend" block and is shared by all extensions within |
764 | 764 |
// the block. |
765 | 765 |
// - Just because a location's span is a subset of some other location's span |
766 |
- // does not mean that it is a descendent. For example, a "group" defines |
|
766 |
+ // does not mean that it is a descendant. For example, a "group" defines |
|
767 | 767 |
// both a type and a field in a single declaration. Thus, the locations |
768 | 768 |
// corresponding to the type and field and their components will overlap. |
769 | 769 |
// - Code which tries to interpret locations should probably be designed to |
... | ... |
@@ -794,14 +796,14 @@ message SourceCodeInfo { |
794 | 794 |
// [ 4, 3, 2, 7 ] |
795 | 795 |
// this path refers to the whole field declaration (from the beginning |
796 | 796 |
// of the label to the terminating semicolon). |
797 |
- repeated int32 path = 1 [packed=true]; |
|
797 |
+ repeated int32 path = 1 [packed = true]; |
|
798 | 798 |
|
799 | 799 |
// Always has exactly three or four elements: start line, start column, |
800 | 800 |
// end line (optional, otherwise assumed same as start line), end column. |
801 | 801 |
// These are packed into a single field for efficiency. Note that line |
802 | 802 |
// and column numbers are zero-based -- typically you will want to add |
803 | 803 |
// 1 to each before displaying to a user. |
804 |
- repeated int32 span = 2 [packed=true]; |
|
804 |
+ repeated int32 span = 2 [packed = true]; |
|
805 | 805 |
|
806 | 806 |
// If this SourceCodeInfo represents a complete declaration, these are any |
807 | 807 |
// comments appearing before and after the declaration which appear to be |
... | ... |
@@ -866,7 +868,7 @@ message GeneratedCodeInfo { |
866 | 866 |
message Annotation { |
867 | 867 |
// Identifies the element in the original source .proto file. This field |
868 | 868 |
// is formatted the same as SourceCodeInfo.Location.path. |
869 |
- repeated int32 path = 1 [packed=true]; |
|
869 |
+ repeated int32 path = 1 [packed = true]; |
|
870 | 870 |
|
871 | 871 |
// Identifies the filesystem path to the original source .proto. |
872 | 872 |
optional string source_file = 2; |
... | ... |
@@ -102,7 +102,8 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
102 | 102 |
// |
103 | 103 |
type Any struct { |
104 | 104 |
// A URL/resource name that uniquely identifies the type of the serialized |
105 |
- // protocol buffer message. The last segment of the URL's path must represent |
|
105 |
+ // protocol buffer message. This string must contain at least |
|
106 |
+ // one "/" character. The last segment of the URL's path must represent |
|
106 | 107 |
// the fully qualified name of the type (as in |
107 | 108 |
// `path/google.protobuf.Duration`). The name should be in a canonical form |
108 | 109 |
// (e.g., leading "." is not accepted). |
... | ... |
@@ -181,7 +182,9 @@ func init() { |
181 | 181 |
proto.RegisterType((*Any)(nil), "google.protobuf.Any") |
182 | 182 |
} |
183 | 183 |
|
184 |
-func init() { proto.RegisterFile("google/protobuf/any.proto", fileDescriptor_b53526c13ae22eb4) } |
|
184 |
+func init() { |
|
185 |
+ proto.RegisterFile("google/protobuf/any.proto", fileDescriptor_b53526c13ae22eb4) |
|
186 |
+} |
|
185 | 187 |
|
186 | 188 |
var fileDescriptor_b53526c13ae22eb4 = []byte{ |
187 | 189 |
// 185 bytes of a gzipped FileDescriptorProto |
... | ... |
@@ -121,7 +121,8 @@ option objc_class_prefix = "GPB"; |
121 | 121 |
// |
122 | 122 |
message Any { |
123 | 123 |
// A URL/resource name that uniquely identifies the type of the serialized |
124 |
- // protocol buffer message. The last segment of the URL's path must represent |
|
124 |
+ // protocol buffer message. This string must contain at least |
|
125 |
+ // one "/" character. The last segment of the URL's path must represent |
|
125 | 126 |
// the fully qualified name of the type (as in |
126 | 127 |
// `path/google.protobuf.Duration`). The name should be in a canonical form |
127 | 128 |
// (e.g., leading "." is not accepted). |
... | ... |
@@ -41,7 +41,7 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
41 | 41 |
// if (duration.seconds < 0 && duration.nanos > 0) { |
42 | 42 |
// duration.seconds += 1; |
43 | 43 |
// duration.nanos -= 1000000000; |
44 |
-// } else if (durations.seconds > 0 && duration.nanos < 0) { |
|
44 |
+// } else if (duration.seconds > 0 && duration.nanos < 0) { |
|
45 | 45 |
// duration.seconds -= 1; |
46 | 46 |
// duration.nanos += 1000000000; |
47 | 47 |
// } |
... | ... |
@@ -142,7 +142,9 @@ func init() { |
142 | 142 |
proto.RegisterType((*Duration)(nil), "google.protobuf.Duration") |
143 | 143 |
} |
144 | 144 |
|
145 |
-func init() { proto.RegisterFile("google/protobuf/duration.proto", fileDescriptor_23597b2ebd7ac6c5) } |
|
145 |
+func init() { |
|
146 |
+ proto.RegisterFile("google/protobuf/duration.proto", fileDescriptor_23597b2ebd7ac6c5) |
|
147 |
+} |
|
146 | 148 |
|
147 | 149 |
var fileDescriptor_23597b2ebd7ac6c5 = []byte{ |
148 | 150 |
// 190 bytes of a gzipped FileDescriptorProto |
... | ... |
@@ -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 (durations.seconds > 0 && duration.nanos < 0) { |
|
64 |
+// } else if (duration.seconds > 0 && duration.nanos < 0) { |
|
65 | 65 |
// duration.seconds -= 1; |
66 | 66 |
// duration.nanos += 1000000000; |
67 | 67 |
// } |
... | ... |
@@ -101,7 +101,6 @@ option objc_class_prefix = "GPB"; |
101 | 101 |
// |
102 | 102 |
// |
103 | 103 |
message Duration { |
104 |
- |
|
105 | 104 |
// Signed seconds of the span of time. Must be from -315,576,000,000 |
106 | 105 |
// to +315,576,000,000 inclusive. Note: these bounds are computed from: |
107 | 106 |
// 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years |
... | ... |
@@ -66,7 +66,9 @@ func init() { |
66 | 66 |
proto.RegisterType((*Empty)(nil), "google.protobuf.Empty") |
67 | 67 |
} |
68 | 68 |
|
69 |
-func init() { proto.RegisterFile("google/protobuf/empty.proto", fileDescriptor_900544acb223d5b8) } |
|
69 |
+func init() { |
|
70 |
+ proto.RegisterFile("google/protobuf/empty.proto", fileDescriptor_900544acb223d5b8) |
|
71 |
+} |
|
70 | 72 |
|
71 | 73 |
var fileDescriptor_900544acb223d5b8 = []byte{ |
72 | 74 |
// 148 bytes of a gzipped FileDescriptorProto |
... | ... |
@@ -302,7 +302,9 @@ func init() { |
302 | 302 |
proto.RegisterType((*ListValue)(nil), "google.protobuf.ListValue") |
303 | 303 |
} |
304 | 304 |
|
305 |
-func init() { proto.RegisterFile("google/protobuf/struct.proto", fileDescriptor_df322afd6c9fb402) } |
|
305 |
+func init() { |
|
306 |
+ proto.RegisterFile("google/protobuf/struct.proto", fileDescriptor_df322afd6c9fb402) |
|
307 |
+} |
|
306 | 308 |
|
307 | 309 |
var fileDescriptor_df322afd6c9fb402 = []byte{ |
308 | 310 |
// 417 bytes of a gzipped FileDescriptorProto |
... | ... |
@@ -40,7 +40,6 @@ option java_outer_classname = "StructProto"; |
40 | 40 |
option java_multiple_files = true; |
41 | 41 |
option objc_class_prefix = "GPB"; |
42 | 42 |
|
43 |
- |
|
44 | 43 |
// `Struct` represents a structured data value, consisting of fields |
45 | 44 |
// which map to dynamically typed values. In some languages, `Struct` |
46 | 45 |
// might be supported by a native representation. For example, in |
... | ... |
@@ -20,17 +20,19 @@ var _ = math.Inf |
20 | 20 |
// proto package needs to be updated. |
21 | 21 |
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
22 | 22 |
|
23 |
-// A Timestamp represents a point in time independent of any time zone |
|
24 |
-// or calendar, represented as seconds and fractions of seconds at |
|
25 |
-// nanosecond resolution in UTC Epoch time. It is encoded using the |
|
26 |
-// Proleptic Gregorian Calendar which extends the Gregorian calendar |
|
27 |
-// backwards to year one. It is encoded assuming all minutes are 60 |
|
28 |
-// seconds long, i.e. leap seconds are "smeared" so that no leap second |
|
29 |
-// table is needed for interpretation. Range is from |
|
30 |
-// 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. |
|
31 |
-// By restricting to that range, we ensure that we can convert to |
|
32 |
-// and from RFC 3339 date strings. |
|
33 |
-// See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). |
|
23 |
+// A Timestamp represents a point in time independent of any time zone or local |
|
24 |
+// calendar, encoded as a count of seconds and fractions of seconds at |
|
25 |
+// nanosecond resolution. The count is relative to an epoch at UTC midnight on |
|
26 |
+// January 1, 1970, in the proleptic Gregorian calendar which extends the |
|
27 |
+// Gregorian calendar backwards to year one. |
|
28 |
+// |
|
29 |
+// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap |
|
30 |
+// second table is needed for interpretation, using a [24-hour linear |
|
31 |
+// smear](https://developers.google.com/time/smear). |
|
32 |
+// |
|
33 |
+// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By |
|
34 |
+// restricting to that range, we ensure that we can convert to and from [RFC |
|
35 |
+// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. |
|
34 | 36 |
// |
35 | 37 |
// # Examples |
36 | 38 |
// |
... | ... |
@@ -91,12 +93,14 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
91 | 91 |
// 01:30 UTC on January 15, 2017. |
92 | 92 |
// |
93 | 93 |
// In JavaScript, one can convert a Date object to this format using the |
94 |
-// standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] |
|
94 |
+// standard |
|
95 |
+// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) |
|
95 | 96 |
// method. In Python, a standard `datetime.datetime` object can be converted |
96 |
-// to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) |
|
97 |
-// with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one |
|
98 |
-// can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( |
|
99 |
-// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- |
|
97 |
+// to this format using |
|
98 |
+// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with |
|
99 |
+// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use |
|
100 |
+// the Joda Time's [`ISODateTimeFormat.dateTime()`]( |
|
101 |
+// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D |
|
100 | 102 |
// ) to obtain a formatter capable of generating timestamps in this format. |
101 | 103 |
// |
102 | 104 |
// |
... | ... |
@@ -160,7 +164,9 @@ func init() { |
160 | 160 |
proto.RegisterType((*Timestamp)(nil), "google.protobuf.Timestamp") |
161 | 161 |
} |
162 | 162 |
|
163 |
-func init() { proto.RegisterFile("google/protobuf/timestamp.proto", fileDescriptor_292007bbfe81227e) } |
|
163 |
+func init() { |
|
164 |
+ proto.RegisterFile("google/protobuf/timestamp.proto", fileDescriptor_292007bbfe81227e) |
|
165 |
+} |
|
164 | 166 |
|
165 | 167 |
var fileDescriptor_292007bbfe81227e = []byte{ |
166 | 168 |
// 191 bytes of a gzipped FileDescriptorProto |
... | ... |
@@ -40,17 +40,19 @@ option java_outer_classname = "TimestampProto"; |
40 | 40 |
option java_multiple_files = true; |
41 | 41 |
option objc_class_prefix = "GPB"; |
42 | 42 |
|
43 |
-// A Timestamp represents a point in time independent of any time zone |
|
44 |
-// or calendar, represented as seconds and fractions of seconds at |
|
45 |
-// nanosecond resolution in UTC Epoch time. It is encoded using the |
|
46 |
-// Proleptic Gregorian Calendar which extends the Gregorian calendar |
|
47 |
-// backwards to year one. It is encoded assuming all minutes are 60 |
|
48 |
-// seconds long, i.e. leap seconds are "smeared" so that no leap second |
|
49 |
-// table is needed for interpretation. Range is from |
|
50 |
-// 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. |
|
51 |
-// By restricting to that range, we ensure that we can convert to |
|
52 |
-// and from RFC 3339 date strings. |
|
53 |
-// See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). |
|
43 |
+// A Timestamp represents a point in time independent of any time zone or local |
|
44 |
+// calendar, encoded as a count of seconds and fractions of seconds at |
|
45 |
+// nanosecond resolution. The count is relative to an epoch at UTC midnight on |
|
46 |
+// January 1, 1970, in the proleptic Gregorian calendar which extends the |
|
47 |
+// Gregorian calendar backwards to year one. |
|
48 |
+// |
|
49 |
+// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap |
|
50 |
+// second table is needed for interpretation, using a [24-hour linear |
|
51 |
+// smear](https://developers.google.com/time/smear). |
|
52 |
+// |
|
53 |
+// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By |
|
54 |
+// restricting to that range, we ensure that we can convert to and from [RFC |
|
55 |
+// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. |
|
54 | 56 |
// |
55 | 57 |
// # Examples |
56 | 58 |
// |
... | ... |
@@ -111,17 +113,18 @@ option objc_class_prefix = "GPB"; |
111 | 111 |
// 01:30 UTC on January 15, 2017. |
112 | 112 |
// |
113 | 113 |
// In JavaScript, one can convert a Date object to this format using the |
114 |
-// standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] |
|
114 |
+// standard |
|
115 |
+// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) |
|
115 | 116 |
// method. In Python, a standard `datetime.datetime` object can be converted |
116 |
-// to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) |
|
117 |
-// with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one |
|
118 |
-// can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( |
|
119 |
-// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- |
|
117 |
+// to this format using |
|
118 |
+// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with |
|
119 |
+// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use |
|
120 |
+// the Joda Time's [`ISODateTimeFormat.dateTime()`]( |
|
121 |
+// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D |
|
120 | 122 |
// ) to obtain a formatter capable of generating timestamps in this format. |
121 | 123 |
// |
122 | 124 |
// |
123 | 125 |
message Timestamp { |
124 |
- |
|
125 | 126 |
// Represents seconds of UTC time since Unix epoch |
126 | 127 |
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to |
127 | 128 |
// 9999-12-31T23:59:59Z inclusive. |