grpc-tools 1.0.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/grpc_tools_ruby_protoc +2 -2
- data/bin/grpc_tools_ruby_protoc_plugin +2 -2
- data/bin/x86-linux/google/protobuf/any.proto +0 -1
- data/bin/x86-linux/google/protobuf/api.proto +0 -1
- data/bin/x86-linux/google/protobuf/descriptor.proto +7 -16
- data/bin/x86-linux/google/protobuf/duration.proto +7 -1
- data/bin/x86-linux/google/protobuf/empty.proto +0 -1
- data/bin/x86-linux/google/protobuf/field_mask.proto +3 -4
- data/bin/x86-linux/google/protobuf/source_context.proto +0 -1
- data/bin/x86-linux/google/protobuf/struct.proto +1 -1
- data/bin/x86-linux/google/protobuf/timestamp.proto +3 -6
- data/bin/x86-linux/google/protobuf/type.proto +1 -1
- data/bin/x86-linux/google/protobuf/wrappers.proto +0 -1
- data/bin/x86-linux/grpc_ruby_plugin +0 -0
- data/bin/x86-linux/protoc +0 -0
- data/bin/x86-macos/google/protobuf/any.proto +0 -1
- data/bin/x86-macos/google/protobuf/api.proto +0 -1
- data/bin/x86-macos/google/protobuf/descriptor.proto +7 -16
- data/bin/x86-macos/google/protobuf/duration.proto +7 -1
- data/bin/x86-macos/google/protobuf/empty.proto +0 -1
- data/bin/x86-macos/google/protobuf/field_mask.proto +3 -4
- data/bin/x86-macos/google/protobuf/source_context.proto +0 -1
- data/bin/x86-macos/google/protobuf/struct.proto +1 -1
- data/bin/x86-macos/google/protobuf/timestamp.proto +3 -6
- data/bin/x86-macos/google/protobuf/type.proto +1 -1
- data/bin/x86-macos/google/protobuf/wrappers.proto +0 -1
- data/bin/x86-macos/grpc_ruby_plugin +0 -0
- data/bin/x86-macos/protoc +0 -0
- data/bin/x86-windows/google/protobuf/any.proto +0 -1
- data/bin/x86-windows/google/protobuf/api.proto +0 -1
- data/bin/x86-windows/google/protobuf/descriptor.proto +7 -16
- data/bin/x86-windows/google/protobuf/duration.proto +7 -1
- data/bin/x86-windows/google/protobuf/empty.proto +0 -1
- data/bin/x86-windows/google/protobuf/field_mask.proto +3 -4
- data/bin/x86-windows/google/protobuf/source_context.proto +0 -1
- data/bin/x86-windows/google/protobuf/struct.proto +1 -1
- data/bin/x86-windows/google/protobuf/timestamp.proto +3 -6
- data/bin/x86-windows/google/protobuf/type.proto +1 -1
- data/bin/x86-windows/google/protobuf/wrappers.proto +0 -1
- data/bin/x86-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86-windows/protoc.exe +0 -0
- data/bin/x86_64-linux/google/protobuf/any.proto +0 -1
- data/bin/x86_64-linux/google/protobuf/api.proto +0 -1
- data/bin/x86_64-linux/google/protobuf/descriptor.proto +7 -16
- data/bin/x86_64-linux/google/protobuf/duration.proto +7 -1
- data/bin/x86_64-linux/google/protobuf/empty.proto +0 -1
- data/bin/x86_64-linux/google/protobuf/field_mask.proto +3 -4
- data/bin/x86_64-linux/google/protobuf/source_context.proto +0 -1
- data/bin/x86_64-linux/google/protobuf/struct.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/timestamp.proto +3 -6
- data/bin/x86_64-linux/google/protobuf/type.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/wrappers.proto +0 -1
- data/bin/x86_64-linux/grpc_ruby_plugin +0 -0
- data/bin/x86_64-linux/protoc +0 -0
- data/bin/x86_64-macos/google/protobuf/any.proto +0 -1
- data/bin/x86_64-macos/google/protobuf/api.proto +0 -1
- data/bin/x86_64-macos/google/protobuf/descriptor.proto +7 -16
- data/bin/x86_64-macos/google/protobuf/duration.proto +7 -1
- data/bin/x86_64-macos/google/protobuf/empty.proto +0 -1
- data/bin/x86_64-macos/google/protobuf/field_mask.proto +3 -4
- data/bin/x86_64-macos/google/protobuf/source_context.proto +0 -1
- data/bin/x86_64-macos/google/protobuf/struct.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/timestamp.proto +3 -6
- data/bin/x86_64-macos/google/protobuf/type.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/wrappers.proto +0 -1
- data/bin/x86_64-macos/grpc_ruby_plugin +0 -0
- data/bin/x86_64-macos/protoc +0 -0
- data/bin/x86_64-windows/google/protobuf/any.proto +0 -1
- data/bin/x86_64-windows/google/protobuf/api.proto +0 -1
- data/bin/x86_64-windows/google/protobuf/descriptor.proto +7 -16
- data/bin/x86_64-windows/google/protobuf/duration.proto +7 -1
- data/bin/x86_64-windows/google/protobuf/empty.proto +0 -1
- data/bin/x86_64-windows/google/protobuf/field_mask.proto +3 -4
- data/bin/x86_64-windows/google/protobuf/source_context.proto +0 -1
- data/bin/x86_64-windows/google/protobuf/struct.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/timestamp.proto +3 -6
- data/bin/x86_64-windows/google/protobuf/type.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/wrappers.proto +0 -1
- data/bin/x86_64-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86_64-windows/protoc.exe +0 -0
- data/{os_check.rb → platform_check.rb} +19 -10
- data/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d076ed960e14c8d7e5445ffc0feef263f58e56d0
|
4
|
+
data.tar.gz: ce3c0c9fd80a75a915d14eb683f57348b523d10a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d7fc63f14d366908830085caf56dd7b294a22a9325b43b6f4b6120d5016c9a1336782fa206979cb4b82b0ac416a557098eaeac05de4a6fb0525116860cbe7c7
|
7
|
+
data.tar.gz: 85d3325447d2a577f8e1626a51de4c63adf844031ea54d1e776deaf6c9e1eb7990f9edaa21bd908651bb162808e539a22a3bdb4490af67b2e2cf592eb9acb169
|
data/bin/grpc_tools_ruby_protoc
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
require 'rbconfig'
|
32
32
|
|
33
|
-
require_relative '../
|
33
|
+
require_relative '../platform_check'
|
34
34
|
|
35
35
|
ext = RbConfig::CONFIG['EXEEXT']
|
36
36
|
|
@@ -39,7 +39,7 @@ protoc_name = 'protoc' + ext
|
|
39
39
|
plugin_name = 'grpc_ruby_plugin' + ext
|
40
40
|
|
41
41
|
protoc_dir = File.join(File.dirname(__FILE__),
|
42
|
-
|
42
|
+
PLATFORM.architecture + '-' + PLATFORM.os_name)
|
43
43
|
|
44
44
|
protoc_path = File.join(protoc_dir, protoc_name)
|
45
45
|
|
@@ -30,12 +30,12 @@
|
|
30
30
|
|
31
31
|
require 'rbconfig'
|
32
32
|
|
33
|
-
require_relative '../
|
33
|
+
require_relative '../platform_check'
|
34
34
|
|
35
35
|
plugin_name = 'grpc_ruby_plugin' + RbConfig::CONFIG['EXEEXT']
|
36
36
|
|
37
37
|
plugin_path = File.join(File.dirname(__FILE__),
|
38
|
-
|
38
|
+
PLATFORM.architecture + '-' + PLATFORM.os_name,
|
39
39
|
plugin_name)
|
40
40
|
|
41
41
|
exec([ plugin_path, plugin_path ], *ARGV)
|
@@ -37,7 +37,6 @@ option go_package = "github.com/golang/protobuf/ptypes/any";
|
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "AnyProto";
|
39
39
|
option java_multiple_files = true;
|
40
|
-
option java_generate_equals_and_hash = true;
|
41
40
|
option objc_class_prefix = "GPB";
|
42
41
|
|
43
42
|
// `Any` contains an arbitrary serialized protocol buffer message along with a
|
@@ -39,7 +39,6 @@ option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
|
39
39
|
option java_package = "com.google.protobuf";
|
40
40
|
option java_outer_classname = "ApiProto";
|
41
41
|
option java_multiple_files = true;
|
42
|
-
option java_generate_equals_and_hash = true;
|
43
42
|
option objc_class_prefix = "GPB";
|
44
43
|
|
45
44
|
// Api is a light-weight descriptor for a protocol buffer service.
|
@@ -45,7 +45,6 @@ option java_package = "com.google.protobuf";
|
|
45
45
|
option java_outer_classname = "DescriptorProtos";
|
46
46
|
option csharp_namespace = "Google.Protobuf.Reflection";
|
47
47
|
option objc_class_prefix = "GPB";
|
48
|
-
option java_generate_equals_and_hash = true;
|
49
48
|
|
50
49
|
// descriptor.proto must be optimized for speed because reflection-based
|
51
50
|
// algorithms don't work during bootstrapping.
|
@@ -306,19 +305,8 @@ message FileOptions {
|
|
306
305
|
// top-level extensions defined in the file.
|
307
306
|
optional bool java_multiple_files = 10 [default=false];
|
308
307
|
|
309
|
-
//
|
310
|
-
|
311
|
-
// This increases generated code size, potentially substantially for large
|
312
|
-
// protos, which may harm a memory-constrained application.
|
313
|
-
// - In the full runtime this is a speed optimization, as the
|
314
|
-
// AbstractMessage base class includes reflection-based implementations of
|
315
|
-
// these methods.
|
316
|
-
// - In the lite runtime, setting this option changes the semantics of
|
317
|
-
// equals() and hashCode() to more closely match those of the full runtime;
|
318
|
-
// the generated methods compute their results based on field values rather
|
319
|
-
// than object identity. (Implementations should not assume that hashcodes
|
320
|
-
// will be consistent across runtimes or versions of the protocol compiler.)
|
321
|
-
optional bool java_generate_equals_and_hash = 20 [default=false];
|
308
|
+
// This option does nothing.
|
309
|
+
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
|
322
310
|
|
323
311
|
// If set true, then the Java2 code generator will generate code that
|
324
312
|
// throws an exception whenever an attempt is made to assign a non-UTF-8
|
@@ -448,6 +436,8 @@ message MessageOptions {
|
|
448
436
|
|
449
437
|
// Clients can define custom options in extensions of this message. See above.
|
450
438
|
extensions 1000 to max;
|
439
|
+
|
440
|
+
reserved 8; // javalite_serializable
|
451
441
|
}
|
452
442
|
|
453
443
|
message FieldOptions {
|
@@ -471,7 +461,6 @@ message FieldOptions {
|
|
471
461
|
// false will avoid using packed encoding.
|
472
462
|
optional bool packed = 2;
|
473
463
|
|
474
|
-
|
475
464
|
// The jstype option determines the JavaScript type used for values of the
|
476
465
|
// field. The option is permitted only for 64 bit integral and fixed types
|
477
466
|
// (int64, uint64, sint64, fixed64, sfixed64). By default these types are
|
@@ -512,7 +501,7 @@ message FieldOptions {
|
|
512
501
|
//
|
513
502
|
//
|
514
503
|
// Note that implementations may choose not to check required fields within
|
515
|
-
// a lazy sub-message. That is, calling IsInitialized() on the
|
504
|
+
// a lazy sub-message. That is, calling IsInitialized() on the outer message
|
516
505
|
// may return true even if the inner message has missing required fields.
|
517
506
|
// This is necessary because otherwise the inner message would have to be
|
518
507
|
// parsed in order to perform the check, defeating the purpose of lazy
|
@@ -538,6 +527,8 @@ message FieldOptions {
|
|
538
527
|
|
539
528
|
// Clients can define custom options in extensions of this message. See above.
|
540
529
|
extensions 1000 to max;
|
530
|
+
|
531
|
+
reserved 4; // removed jtype
|
541
532
|
}
|
542
533
|
|
543
534
|
message OneofOptions {
|
@@ -33,11 +33,11 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
+
option cc_enable_arenas = true;
|
36
37
|
option go_package = "github.com/golang/protobuf/ptypes/duration";
|
37
38
|
option java_package = "com.google.protobuf";
|
38
39
|
option java_outer_classname = "DurationProto";
|
39
40
|
option java_multiple_files = true;
|
40
|
-
option java_generate_equals_and_hash = true;
|
41
41
|
option objc_class_prefix = "GPB";
|
42
42
|
|
43
43
|
// A Duration represents a signed, fixed-length span of time represented
|
@@ -81,6 +81,12 @@ option objc_class_prefix = "GPB";
|
|
81
81
|
// end.nanos -= 1000000000;
|
82
82
|
// }
|
83
83
|
//
|
84
|
+
// Example 3: Compute Duration from datetime.timedelta in Python.
|
85
|
+
//
|
86
|
+
// td = datetime.timedelta(days=3, minutes=10)
|
87
|
+
// duration = Duration()
|
88
|
+
// duration.FromTimedelta(td)
|
89
|
+
//
|
84
90
|
//
|
85
91
|
message Duration {
|
86
92
|
|
@@ -37,7 +37,6 @@ option go_package = "github.com/golang/protobuf/ptypes/empty";
|
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "EmptyProto";
|
39
39
|
option java_multiple_files = true;
|
40
|
-
option java_generate_equals_and_hash = true;
|
41
40
|
option objc_class_prefix = "GPB";
|
42
41
|
option cc_enable_arenas = true;
|
43
42
|
|
@@ -37,7 +37,6 @@ option java_package = "com.google.protobuf";
|
|
37
37
|
option java_outer_classname = "FieldMaskProto";
|
38
38
|
option java_multiple_files = true;
|
39
39
|
option objc_class_prefix = "GPB";
|
40
|
-
option java_generate_equals_and_hash = true;
|
41
40
|
|
42
41
|
// `FieldMask` represents a set of symbolic field paths, for example:
|
43
42
|
//
|
@@ -82,7 +81,7 @@ option java_generate_equals_and_hash = true;
|
|
82
81
|
// }
|
83
82
|
//
|
84
83
|
// A repeated field is not allowed except at the last position of a
|
85
|
-
//
|
84
|
+
// paths string.
|
86
85
|
//
|
87
86
|
// If a FieldMask object is not present in a get operation, the
|
88
87
|
// operation applies to all fields (as if a FieldMask of all fields
|
@@ -109,8 +108,8 @@ option java_generate_equals_and_hash = true;
|
|
109
108
|
//
|
110
109
|
// If a repeated field is specified for an update operation, the existing
|
111
110
|
// repeated values in the target resource will be overwritten by the new values.
|
112
|
-
// Note that a repeated field is only allowed in the last position of a
|
113
|
-
//
|
111
|
+
// Note that a repeated field is only allowed in the last position of a `paths`
|
112
|
+
// string.
|
114
113
|
//
|
115
114
|
// If a sub-message is specified in the last position of the field mask for an
|
116
115
|
// update operation, then the existing sub-message in the target resource is
|
@@ -36,7 +36,6 @@ option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
|
36
36
|
option java_package = "com.google.protobuf";
|
37
37
|
option java_outer_classname = "SourceContextProto";
|
38
38
|
option java_multiple_files = true;
|
39
|
-
option java_generate_equals_and_hash = true;
|
40
39
|
option objc_class_prefix = "GPB";
|
41
40
|
|
42
41
|
// `SourceContext` represents information about the source of a
|
@@ -33,11 +33,11 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
+
option cc_enable_arenas = true;
|
36
37
|
option go_package = "github.com/golang/protobuf/ptypes/struct;structpb";
|
37
38
|
option java_package = "com.google.protobuf";
|
38
39
|
option java_outer_classname = "StructProto";
|
39
40
|
option java_multiple_files = true;
|
40
|
-
option java_generate_equals_and_hash = true;
|
41
41
|
option objc_class_prefix = "GPB";
|
42
42
|
|
43
43
|
|
@@ -38,7 +38,6 @@ option go_package = "github.com/golang/protobuf/ptypes/timestamp";
|
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "TimestampProto";
|
40
40
|
option java_multiple_files = true;
|
41
|
-
option java_generate_equals_and_hash = true;
|
42
41
|
option objc_class_prefix = "GPB";
|
43
42
|
|
44
43
|
// A Timestamp represents a point in time independent of any time zone
|
@@ -90,16 +89,14 @@ option objc_class_prefix = "GPB";
|
|
90
89
|
//
|
91
90
|
// Example 5: Compute Timestamp from current time in Python.
|
92
91
|
//
|
93
|
-
//
|
94
|
-
//
|
95
|
-
// nanos = int((now - seconds) * 10**9)
|
96
|
-
// timestamp = Timestamp(seconds=seconds, nanos=nanos)
|
92
|
+
// timestamp = Timestamp()
|
93
|
+
// timestamp.GetCurrentTime()
|
97
94
|
//
|
98
95
|
//
|
99
96
|
message Timestamp {
|
100
97
|
|
101
98
|
// Represents seconds of UTC time since Unix epoch
|
102
|
-
// 1970-01-01T00:00:00Z. Must be from
|
99
|
+
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
103
100
|
// 9999-12-31T23:59:59Z inclusive.
|
104
101
|
int64 seconds = 1;
|
105
102
|
|
@@ -36,10 +36,10 @@ import "google/protobuf/any.proto";
|
|
36
36
|
import "google/protobuf/source_context.proto";
|
37
37
|
|
38
38
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
39
|
+
option cc_enable_arenas = true;
|
39
40
|
option java_package = "com.google.protobuf";
|
40
41
|
option java_outer_classname = "TypeProto";
|
41
42
|
option java_multiple_files = true;
|
42
|
-
option java_generate_equals_and_hash = true;
|
43
43
|
option objc_class_prefix = "GPB";
|
44
44
|
|
45
45
|
// A protocol buffer message type.
|
@@ -43,7 +43,6 @@ option go_package = "github.com/golang/protobuf/ptypes/wrappers";
|
|
43
43
|
option java_package = "com.google.protobuf";
|
44
44
|
option java_outer_classname = "WrappersProto";
|
45
45
|
option java_multiple_files = true;
|
46
|
-
option java_generate_equals_and_hash = true;
|
47
46
|
option objc_class_prefix = "GPB";
|
48
47
|
|
49
48
|
// Wrapper message for `double`.
|
Binary file
|
data/bin/x86-linux/protoc
CHANGED
Binary file
|
@@ -37,7 +37,6 @@ option go_package = "github.com/golang/protobuf/ptypes/any";
|
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "AnyProto";
|
39
39
|
option java_multiple_files = true;
|
40
|
-
option java_generate_equals_and_hash = true;
|
41
40
|
option objc_class_prefix = "GPB";
|
42
41
|
|
43
42
|
// `Any` contains an arbitrary serialized protocol buffer message along with a
|
@@ -39,7 +39,6 @@ option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
|
39
39
|
option java_package = "com.google.protobuf";
|
40
40
|
option java_outer_classname = "ApiProto";
|
41
41
|
option java_multiple_files = true;
|
42
|
-
option java_generate_equals_and_hash = true;
|
43
42
|
option objc_class_prefix = "GPB";
|
44
43
|
|
45
44
|
// Api is a light-weight descriptor for a protocol buffer service.
|
@@ -45,7 +45,6 @@ option java_package = "com.google.protobuf";
|
|
45
45
|
option java_outer_classname = "DescriptorProtos";
|
46
46
|
option csharp_namespace = "Google.Protobuf.Reflection";
|
47
47
|
option objc_class_prefix = "GPB";
|
48
|
-
option java_generate_equals_and_hash = true;
|
49
48
|
|
50
49
|
// descriptor.proto must be optimized for speed because reflection-based
|
51
50
|
// algorithms don't work during bootstrapping.
|
@@ -306,19 +305,8 @@ message FileOptions {
|
|
306
305
|
// top-level extensions defined in the file.
|
307
306
|
optional bool java_multiple_files = 10 [default=false];
|
308
307
|
|
309
|
-
//
|
310
|
-
|
311
|
-
// This increases generated code size, potentially substantially for large
|
312
|
-
// protos, which may harm a memory-constrained application.
|
313
|
-
// - In the full runtime this is a speed optimization, as the
|
314
|
-
// AbstractMessage base class includes reflection-based implementations of
|
315
|
-
// these methods.
|
316
|
-
// - In the lite runtime, setting this option changes the semantics of
|
317
|
-
// equals() and hashCode() to more closely match those of the full runtime;
|
318
|
-
// the generated methods compute their results based on field values rather
|
319
|
-
// than object identity. (Implementations should not assume that hashcodes
|
320
|
-
// will be consistent across runtimes or versions of the protocol compiler.)
|
321
|
-
optional bool java_generate_equals_and_hash = 20 [default=false];
|
308
|
+
// This option does nothing.
|
309
|
+
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
|
322
310
|
|
323
311
|
// If set true, then the Java2 code generator will generate code that
|
324
312
|
// throws an exception whenever an attempt is made to assign a non-UTF-8
|
@@ -448,6 +436,8 @@ message MessageOptions {
|
|
448
436
|
|
449
437
|
// Clients can define custom options in extensions of this message. See above.
|
450
438
|
extensions 1000 to max;
|
439
|
+
|
440
|
+
reserved 8; // javalite_serializable
|
451
441
|
}
|
452
442
|
|
453
443
|
message FieldOptions {
|
@@ -471,7 +461,6 @@ message FieldOptions {
|
|
471
461
|
// false will avoid using packed encoding.
|
472
462
|
optional bool packed = 2;
|
473
463
|
|
474
|
-
|
475
464
|
// The jstype option determines the JavaScript type used for values of the
|
476
465
|
// field. The option is permitted only for 64 bit integral and fixed types
|
477
466
|
// (int64, uint64, sint64, fixed64, sfixed64). By default these types are
|
@@ -512,7 +501,7 @@ message FieldOptions {
|
|
512
501
|
//
|
513
502
|
//
|
514
503
|
// Note that implementations may choose not to check required fields within
|
515
|
-
// a lazy sub-message. That is, calling IsInitialized() on the
|
504
|
+
// a lazy sub-message. That is, calling IsInitialized() on the outer message
|
516
505
|
// may return true even if the inner message has missing required fields.
|
517
506
|
// This is necessary because otherwise the inner message would have to be
|
518
507
|
// parsed in order to perform the check, defeating the purpose of lazy
|
@@ -538,6 +527,8 @@ message FieldOptions {
|
|
538
527
|
|
539
528
|
// Clients can define custom options in extensions of this message. See above.
|
540
529
|
extensions 1000 to max;
|
530
|
+
|
531
|
+
reserved 4; // removed jtype
|
541
532
|
}
|
542
533
|
|
543
534
|
message OneofOptions {
|
@@ -33,11 +33,11 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
+
option cc_enable_arenas = true;
|
36
37
|
option go_package = "github.com/golang/protobuf/ptypes/duration";
|
37
38
|
option java_package = "com.google.protobuf";
|
38
39
|
option java_outer_classname = "DurationProto";
|
39
40
|
option java_multiple_files = true;
|
40
|
-
option java_generate_equals_and_hash = true;
|
41
41
|
option objc_class_prefix = "GPB";
|
42
42
|
|
43
43
|
// A Duration represents a signed, fixed-length span of time represented
|
@@ -81,6 +81,12 @@ option objc_class_prefix = "GPB";
|
|
81
81
|
// end.nanos -= 1000000000;
|
82
82
|
// }
|
83
83
|
//
|
84
|
+
// Example 3: Compute Duration from datetime.timedelta in Python.
|
85
|
+
//
|
86
|
+
// td = datetime.timedelta(days=3, minutes=10)
|
87
|
+
// duration = Duration()
|
88
|
+
// duration.FromTimedelta(td)
|
89
|
+
//
|
84
90
|
//
|
85
91
|
message Duration {
|
86
92
|
|
@@ -37,7 +37,6 @@ option go_package = "github.com/golang/protobuf/ptypes/empty";
|
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "EmptyProto";
|
39
39
|
option java_multiple_files = true;
|
40
|
-
option java_generate_equals_and_hash = true;
|
41
40
|
option objc_class_prefix = "GPB";
|
42
41
|
option cc_enable_arenas = true;
|
43
42
|
|
@@ -37,7 +37,6 @@ option java_package = "com.google.protobuf";
|
|
37
37
|
option java_outer_classname = "FieldMaskProto";
|
38
38
|
option java_multiple_files = true;
|
39
39
|
option objc_class_prefix = "GPB";
|
40
|
-
option java_generate_equals_and_hash = true;
|
41
40
|
|
42
41
|
// `FieldMask` represents a set of symbolic field paths, for example:
|
43
42
|
//
|
@@ -82,7 +81,7 @@ option java_generate_equals_and_hash = true;
|
|
82
81
|
// }
|
83
82
|
//
|
84
83
|
// A repeated field is not allowed except at the last position of a
|
85
|
-
//
|
84
|
+
// paths string.
|
86
85
|
//
|
87
86
|
// If a FieldMask object is not present in a get operation, the
|
88
87
|
// operation applies to all fields (as if a FieldMask of all fields
|
@@ -109,8 +108,8 @@ option java_generate_equals_and_hash = true;
|
|
109
108
|
//
|
110
109
|
// If a repeated field is specified for an update operation, the existing
|
111
110
|
// repeated values in the target resource will be overwritten by the new values.
|
112
|
-
// Note that a repeated field is only allowed in the last position of a
|
113
|
-
//
|
111
|
+
// Note that a repeated field is only allowed in the last position of a `paths`
|
112
|
+
// string.
|
114
113
|
//
|
115
114
|
// If a sub-message is specified in the last position of the field mask for an
|
116
115
|
// update operation, then the existing sub-message in the target resource is
|
@@ -36,7 +36,6 @@ option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
|
36
36
|
option java_package = "com.google.protobuf";
|
37
37
|
option java_outer_classname = "SourceContextProto";
|
38
38
|
option java_multiple_files = true;
|
39
|
-
option java_generate_equals_and_hash = true;
|
40
39
|
option objc_class_prefix = "GPB";
|
41
40
|
|
42
41
|
// `SourceContext` represents information about the source of a
|
@@ -33,11 +33,11 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
+
option cc_enable_arenas = true;
|
36
37
|
option go_package = "github.com/golang/protobuf/ptypes/struct;structpb";
|
37
38
|
option java_package = "com.google.protobuf";
|
38
39
|
option java_outer_classname = "StructProto";
|
39
40
|
option java_multiple_files = true;
|
40
|
-
option java_generate_equals_and_hash = true;
|
41
41
|
option objc_class_prefix = "GPB";
|
42
42
|
|
43
43
|
|
@@ -38,7 +38,6 @@ option go_package = "github.com/golang/protobuf/ptypes/timestamp";
|
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "TimestampProto";
|
40
40
|
option java_multiple_files = true;
|
41
|
-
option java_generate_equals_and_hash = true;
|
42
41
|
option objc_class_prefix = "GPB";
|
43
42
|
|
44
43
|
// A Timestamp represents a point in time independent of any time zone
|
@@ -90,16 +89,14 @@ option objc_class_prefix = "GPB";
|
|
90
89
|
//
|
91
90
|
// Example 5: Compute Timestamp from current time in Python.
|
92
91
|
//
|
93
|
-
//
|
94
|
-
//
|
95
|
-
// nanos = int((now - seconds) * 10**9)
|
96
|
-
// timestamp = Timestamp(seconds=seconds, nanos=nanos)
|
92
|
+
// timestamp = Timestamp()
|
93
|
+
// timestamp.GetCurrentTime()
|
97
94
|
//
|
98
95
|
//
|
99
96
|
message Timestamp {
|
100
97
|
|
101
98
|
// Represents seconds of UTC time since Unix epoch
|
102
|
-
// 1970-01-01T00:00:00Z. Must be from
|
99
|
+
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
103
100
|
// 9999-12-31T23:59:59Z inclusive.
|
104
101
|
int64 seconds = 1;
|
105
102
|
|