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
@@ -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_64-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
|
|
@@ -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_64-macos/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
|
|
@@ -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`.
|