grpc-tools 1.1.2 → 1.2.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/bin/x86-linux/google/protobuf/api.proto +1 -0
  3. data/bin/x86-linux/google/protobuf/compiler/plugin.proto +13 -0
  4. data/bin/x86-linux/google/protobuf/descriptor.proto +27 -5
  5. data/bin/x86-linux/google/protobuf/field_mask.proto +1 -0
  6. data/bin/x86-linux/google/protobuf/source_context.proto +1 -0
  7. data/bin/x86-linux/google/protobuf/type.proto +9 -2
  8. data/bin/x86-linux/grpc_ruby_plugin +0 -0
  9. data/bin/x86-linux/protoc +0 -0
  10. data/bin/x86-macos/google/protobuf/api.proto +1 -0
  11. data/bin/x86-macos/google/protobuf/compiler/plugin.proto +13 -0
  12. data/bin/x86-macos/google/protobuf/descriptor.proto +27 -5
  13. data/bin/x86-macos/google/protobuf/field_mask.proto +1 -0
  14. data/bin/x86-macos/google/protobuf/source_context.proto +1 -0
  15. data/bin/x86-macos/google/protobuf/type.proto +9 -2
  16. data/bin/x86-macos/grpc_ruby_plugin +0 -0
  17. data/bin/x86-macos/protoc +0 -0
  18. data/bin/x86-windows/google/protobuf/api.proto +1 -0
  19. data/bin/x86-windows/google/protobuf/compiler/plugin.proto +13 -0
  20. data/bin/x86-windows/google/protobuf/descriptor.proto +27 -5
  21. data/bin/x86-windows/google/protobuf/field_mask.proto +1 -0
  22. data/bin/x86-windows/google/protobuf/source_context.proto +1 -0
  23. data/bin/x86-windows/google/protobuf/type.proto +9 -2
  24. data/bin/x86-windows/grpc_ruby_plugin.exe +0 -0
  25. data/bin/x86-windows/protoc.exe +0 -0
  26. data/bin/x86_64-linux/google/protobuf/api.proto +1 -0
  27. data/bin/x86_64-linux/google/protobuf/compiler/plugin.proto +13 -0
  28. data/bin/x86_64-linux/google/protobuf/descriptor.proto +27 -5
  29. data/bin/x86_64-linux/google/protobuf/field_mask.proto +1 -0
  30. data/bin/x86_64-linux/google/protobuf/source_context.proto +1 -0
  31. data/bin/x86_64-linux/google/protobuf/type.proto +9 -2
  32. data/bin/x86_64-linux/grpc_ruby_plugin +0 -0
  33. data/bin/x86_64-linux/protoc +0 -0
  34. data/bin/x86_64-macos/google/protobuf/api.proto +1 -0
  35. data/bin/x86_64-macos/google/protobuf/compiler/plugin.proto +13 -0
  36. data/bin/x86_64-macos/google/protobuf/descriptor.proto +27 -5
  37. data/bin/x86_64-macos/google/protobuf/field_mask.proto +1 -0
  38. data/bin/x86_64-macos/google/protobuf/source_context.proto +1 -0
  39. data/bin/x86_64-macos/google/protobuf/type.proto +9 -2
  40. data/bin/x86_64-macos/grpc_ruby_plugin +0 -0
  41. data/bin/x86_64-macos/protoc +0 -0
  42. data/bin/x86_64-windows/google/protobuf/api.proto +1 -0
  43. data/bin/x86_64-windows/google/protobuf/compiler/plugin.proto +13 -0
  44. data/bin/x86_64-windows/google/protobuf/descriptor.proto +27 -5
  45. data/bin/x86_64-windows/google/protobuf/field_mask.proto +1 -0
  46. data/bin/x86_64-windows/google/protobuf/source_context.proto +1 -0
  47. data/bin/x86_64-windows/google/protobuf/type.proto +9 -2
  48. data/bin/x86_64-windows/grpc_ruby_plugin.exe +0 -0
  49. data/bin/x86_64-windows/protoc.exe +0 -0
  50. data/version.rb +1 -1
  51. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d076ed960e14c8d7e5445ffc0feef263f58e56d0
4
- data.tar.gz: ce3c0c9fd80a75a915d14eb683f57348b523d10a
3
+ metadata.gz: 4b0bd20e5cedc25ca74b2328fdf358d47cfe97df
4
+ data.tar.gz: 61f169cdbfe64dbd1dfa398d2f93e872108612f1
5
5
  SHA512:
6
- metadata.gz: 1d7fc63f14d366908830085caf56dd7b294a22a9325b43b6f4b6120d5016c9a1336782fa206979cb4b82b0ac416a557098eaeac05de4a6fb0525116860cbe7c7
7
- data.tar.gz: 85d3325447d2a577f8e1626a51de4c63adf844031ea54d1e776deaf6c9e1eb7990f9edaa21bd908651bb162808e539a22a3bdb4490af67b2e2cf592eb9acb169
6
+ metadata.gz: 72ce046b9d76021622455f9c0bb595b98c5b186cd5e9519b8fdd14852b3ee09d51f2798a280fd883232ecaa88dc4ccb7f67fc9ccf3d365d53824ce79cb90211e
7
+ data.tar.gz: 63cb91ab03b74b13a1d2a8f5c2c66a2f9a5383ce96ef74893eecd2a990c8415dcc29dfd1d107ac479ea9de3f3a91e6e27288db0ee58ca034be0fd0ca26ce9257
@@ -40,6 +40,7 @@ option java_package = "com.google.protobuf";
40
40
  option java_outer_classname = "ApiProto";
41
41
  option java_multiple_files = true;
42
42
  option objc_class_prefix = "GPB";
43
+ option go_package = "google.golang.org/genproto/protobuf/api;api";
43
44
 
44
45
  // Api is a light-weight descriptor for a protocol buffer service.
45
46
  message Api {
@@ -53,6 +53,16 @@ option go_package = "plugin_go";
53
53
 
54
54
  import "google/protobuf/descriptor.proto";
55
55
 
56
+ // The version number of protocol compiler.
57
+ message Version {
58
+ optional int32 major = 1;
59
+ optional int32 minor = 2;
60
+ optional int32 patch = 3;
61
+ // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
62
+ // be empty for mainline stable releases.
63
+ optional string suffix = 4;
64
+ }
65
+
56
66
  // An encoded CodeGeneratorRequest is written to the plugin's stdin.
57
67
  message CodeGeneratorRequest {
58
68
  // The .proto files that were explicitly listed on the command-line. The
@@ -75,6 +85,9 @@ message CodeGeneratorRequest {
75
85
  // is not similarly optimized on protoc's end -- it will store all fields in
76
86
  // memory at once before sending them to the plugin.
77
87
  repeated FileDescriptorProto proto_file = 15;
88
+
89
+ // The version number of protocol compiler.
90
+ optional Version compiler_version = 3;
78
91
  }
79
92
 
80
93
  // The plugin writes an encoded CodeGeneratorResponse to stdout.
@@ -40,7 +40,7 @@
40
40
  syntax = "proto2";
41
41
 
42
42
  package google.protobuf;
43
- option go_package = "descriptor";
43
+ option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor";
44
44
  option java_package = "com.google.protobuf";
45
45
  option java_outer_classname = "DescriptorProtos";
46
46
  option csharp_namespace = "Google.Protobuf.Reflection";
@@ -139,7 +139,11 @@ message FieldDescriptorProto {
139
139
  TYPE_FIXED32 = 7;
140
140
  TYPE_BOOL = 8;
141
141
  TYPE_STRING = 9;
142
- TYPE_GROUP = 10; // Tag-delimited aggregate.
142
+ // Tag-delimited aggregate.
143
+ // Group type is deprecated and not supported in proto3. However, Proto3
144
+ // implementations should still be able to parse the group wire format and
145
+ // treat group fields as unknown fields.
146
+ TYPE_GROUP = 10;
143
147
  TYPE_MESSAGE = 11; // Length-delimited aggregate.
144
148
 
145
149
  // New in version 2.
@@ -157,7 +161,6 @@ message FieldDescriptorProto {
157
161
  LABEL_OPTIONAL = 1;
158
162
  LABEL_REQUIRED = 2;
159
163
  LABEL_REPEATED = 3;
160
- // TODO(sanjay): Should we add LABEL_MAP?
161
164
  };
162
165
 
163
166
  optional string name = 1;
@@ -367,6 +370,12 @@ message FileOptions {
367
370
  // Namespace for generated classes; defaults to the package.
368
371
  optional string csharp_namespace = 37;
369
372
 
373
+ // By default Swift generators will take the proto package and CamelCase it
374
+ // replacing '.' with underscore and use that to prefix the types/symbols
375
+ // defined. When this options is provided, they will use this value instead
376
+ // to prefix the types/symbols defined.
377
+ optional string swift_prefix = 39;
378
+
370
379
  // The parser stores options it doesn't recognize here. See above.
371
380
  repeated UninterpretedOption uninterpreted_option = 999;
372
381
 
@@ -431,13 +440,14 @@ message MessageOptions {
431
440
  // parser.
432
441
  optional bool map_entry = 7;
433
442
 
443
+ reserved 8; // javalite_serializable
444
+
445
+
434
446
  // The parser stores options it doesn't recognize here. See above.
435
447
  repeated UninterpretedOption uninterpreted_option = 999;
436
448
 
437
449
  // Clients can define custom options in extensions of this message. See above.
438
450
  extensions 1000 to max;
439
-
440
- reserved 8; // javalite_serializable
441
451
  }
442
452
 
443
453
  message FieldOptions {
@@ -551,6 +561,7 @@ message EnumOptions {
551
561
  // is a formalization for deprecating enums.
552
562
  optional bool deprecated = 3 [default=false];
553
563
 
564
+
554
565
  // The parser stores options it doesn't recognize here. See above.
555
566
  repeated UninterpretedOption uninterpreted_option = 999;
556
567
 
@@ -605,6 +616,17 @@ message MethodOptions {
605
616
  // this is a formalization for deprecating methods.
606
617
  optional bool deprecated = 33 [default=false];
607
618
 
619
+ // Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
620
+ // or neither? HTTP based RPC implementation may choose GET verb for safe
621
+ // methods, and PUT verb for idempotent methods instead of the default POST.
622
+ enum IdempotencyLevel {
623
+ IDEMPOTENCY_UNKNOWN = 0;
624
+ NO_SIDE_EFFECTS = 1; // implies idempotent
625
+ IDEMPOTENT = 2; // idempotent, but may have side effects
626
+ }
627
+ optional IdempotencyLevel idempotency_level =
628
+ 34 [default=IDEMPOTENCY_UNKNOWN];
629
+
608
630
  // The parser stores options it doesn't recognize here. See above.
609
631
  repeated UninterpretedOption uninterpreted_option = 999;
610
632
 
@@ -37,6 +37,7 @@ 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 go_package = "google.golang.org/genproto/protobuf/field_mask;field_mask";
40
41
 
41
42
  // `FieldMask` represents a set of symbolic field paths, for example:
42
43
  //
@@ -37,6 +37,7 @@ option java_package = "com.google.protobuf";
37
37
  option java_outer_classname = "SourceContextProto";
38
38
  option java_multiple_files = true;
39
39
  option objc_class_prefix = "GPB";
40
+ option go_package = "google.golang.org/genproto/protobuf/source_context;source_context";
40
41
 
41
42
  // `SourceContext` represents information about the source of a
42
43
  // protobuf element, like the file in which it is defined.
@@ -41,6 +41,7 @@ option java_package = "com.google.protobuf";
41
41
  option java_outer_classname = "TypeProto";
42
42
  option java_multiple_files = true;
43
43
  option objc_class_prefix = "GPB";
44
+ option go_package = "google.golang.org/genproto/protobuf/ptype;ptype";
44
45
 
45
46
  // A protocol buffer message type.
46
47
  message Type {
@@ -165,9 +166,15 @@ message EnumValue {
165
166
  // A protocol buffer option, which can be attached to a message, field,
166
167
  // enumeration, etc.
167
168
  message Option {
168
- // The option's name. For example, `"java_package"`.
169
+ // The option's name. For protobuf built-in options (options defined in
170
+ // descriptor.proto), this is the short name. For example, `"map_entry"`.
171
+ // For custom options, it should be the fully-qualified name. For example,
172
+ // `"google.api.http"`.
169
173
  string name = 1;
170
- // The option's value. For example, `"com.google.protobuf"`.
174
+ // The option's value packed in an Any message. If the value is a primitive,
175
+ // the corresponding wrapper type defined in google/protobuf/wrappers.proto
176
+ // should be used. If the value is an enum, it should be stored as an int32
177
+ // value using the google.protobuf.Int32Value type.
171
178
  Any value = 2;
172
179
  }
173
180
 
Binary file
data/bin/x86-linux/protoc CHANGED
Binary file
@@ -40,6 +40,7 @@ option java_package = "com.google.protobuf";
40
40
  option java_outer_classname = "ApiProto";
41
41
  option java_multiple_files = true;
42
42
  option objc_class_prefix = "GPB";
43
+ option go_package = "google.golang.org/genproto/protobuf/api;api";
43
44
 
44
45
  // Api is a light-weight descriptor for a protocol buffer service.
45
46
  message Api {
@@ -53,6 +53,16 @@ option go_package = "plugin_go";
53
53
 
54
54
  import "google/protobuf/descriptor.proto";
55
55
 
56
+ // The version number of protocol compiler.
57
+ message Version {
58
+ optional int32 major = 1;
59
+ optional int32 minor = 2;
60
+ optional int32 patch = 3;
61
+ // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
62
+ // be empty for mainline stable releases.
63
+ optional string suffix = 4;
64
+ }
65
+
56
66
  // An encoded CodeGeneratorRequest is written to the plugin's stdin.
57
67
  message CodeGeneratorRequest {
58
68
  // The .proto files that were explicitly listed on the command-line. The
@@ -75,6 +85,9 @@ message CodeGeneratorRequest {
75
85
  // is not similarly optimized on protoc's end -- it will store all fields in
76
86
  // memory at once before sending them to the plugin.
77
87
  repeated FileDescriptorProto proto_file = 15;
88
+
89
+ // The version number of protocol compiler.
90
+ optional Version compiler_version = 3;
78
91
  }
79
92
 
80
93
  // The plugin writes an encoded CodeGeneratorResponse to stdout.
@@ -40,7 +40,7 @@
40
40
  syntax = "proto2";
41
41
 
42
42
  package google.protobuf;
43
- option go_package = "descriptor";
43
+ option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor";
44
44
  option java_package = "com.google.protobuf";
45
45
  option java_outer_classname = "DescriptorProtos";
46
46
  option csharp_namespace = "Google.Protobuf.Reflection";
@@ -139,7 +139,11 @@ message FieldDescriptorProto {
139
139
  TYPE_FIXED32 = 7;
140
140
  TYPE_BOOL = 8;
141
141
  TYPE_STRING = 9;
142
- TYPE_GROUP = 10; // Tag-delimited aggregate.
142
+ // Tag-delimited aggregate.
143
+ // Group type is deprecated and not supported in proto3. However, Proto3
144
+ // implementations should still be able to parse the group wire format and
145
+ // treat group fields as unknown fields.
146
+ TYPE_GROUP = 10;
143
147
  TYPE_MESSAGE = 11; // Length-delimited aggregate.
144
148
 
145
149
  // New in version 2.
@@ -157,7 +161,6 @@ message FieldDescriptorProto {
157
161
  LABEL_OPTIONAL = 1;
158
162
  LABEL_REQUIRED = 2;
159
163
  LABEL_REPEATED = 3;
160
- // TODO(sanjay): Should we add LABEL_MAP?
161
164
  };
162
165
 
163
166
  optional string name = 1;
@@ -367,6 +370,12 @@ message FileOptions {
367
370
  // Namespace for generated classes; defaults to the package.
368
371
  optional string csharp_namespace = 37;
369
372
 
373
+ // By default Swift generators will take the proto package and CamelCase it
374
+ // replacing '.' with underscore and use that to prefix the types/symbols
375
+ // defined. When this options is provided, they will use this value instead
376
+ // to prefix the types/symbols defined.
377
+ optional string swift_prefix = 39;
378
+
370
379
  // The parser stores options it doesn't recognize here. See above.
371
380
  repeated UninterpretedOption uninterpreted_option = 999;
372
381
 
@@ -431,13 +440,14 @@ message MessageOptions {
431
440
  // parser.
432
441
  optional bool map_entry = 7;
433
442
 
443
+ reserved 8; // javalite_serializable
444
+
445
+
434
446
  // The parser stores options it doesn't recognize here. See above.
435
447
  repeated UninterpretedOption uninterpreted_option = 999;
436
448
 
437
449
  // Clients can define custom options in extensions of this message. See above.
438
450
  extensions 1000 to max;
439
-
440
- reserved 8; // javalite_serializable
441
451
  }
442
452
 
443
453
  message FieldOptions {
@@ -551,6 +561,7 @@ message EnumOptions {
551
561
  // is a formalization for deprecating enums.
552
562
  optional bool deprecated = 3 [default=false];
553
563
 
564
+
554
565
  // The parser stores options it doesn't recognize here. See above.
555
566
  repeated UninterpretedOption uninterpreted_option = 999;
556
567
 
@@ -605,6 +616,17 @@ message MethodOptions {
605
616
  // this is a formalization for deprecating methods.
606
617
  optional bool deprecated = 33 [default=false];
607
618
 
619
+ // Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
620
+ // or neither? HTTP based RPC implementation may choose GET verb for safe
621
+ // methods, and PUT verb for idempotent methods instead of the default POST.
622
+ enum IdempotencyLevel {
623
+ IDEMPOTENCY_UNKNOWN = 0;
624
+ NO_SIDE_EFFECTS = 1; // implies idempotent
625
+ IDEMPOTENT = 2; // idempotent, but may have side effects
626
+ }
627
+ optional IdempotencyLevel idempotency_level =
628
+ 34 [default=IDEMPOTENCY_UNKNOWN];
629
+
608
630
  // The parser stores options it doesn't recognize here. See above.
609
631
  repeated UninterpretedOption uninterpreted_option = 999;
610
632
 
@@ -37,6 +37,7 @@ 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 go_package = "google.golang.org/genproto/protobuf/field_mask;field_mask";
40
41
 
41
42
  // `FieldMask` represents a set of symbolic field paths, for example:
42
43
  //
@@ -37,6 +37,7 @@ option java_package = "com.google.protobuf";
37
37
  option java_outer_classname = "SourceContextProto";
38
38
  option java_multiple_files = true;
39
39
  option objc_class_prefix = "GPB";
40
+ option go_package = "google.golang.org/genproto/protobuf/source_context;source_context";
40
41
 
41
42
  // `SourceContext` represents information about the source of a
42
43
  // protobuf element, like the file in which it is defined.
@@ -41,6 +41,7 @@ option java_package = "com.google.protobuf";
41
41
  option java_outer_classname = "TypeProto";
42
42
  option java_multiple_files = true;
43
43
  option objc_class_prefix = "GPB";
44
+ option go_package = "google.golang.org/genproto/protobuf/ptype;ptype";
44
45
 
45
46
  // A protocol buffer message type.
46
47
  message Type {
@@ -165,9 +166,15 @@ message EnumValue {
165
166
  // A protocol buffer option, which can be attached to a message, field,
166
167
  // enumeration, etc.
167
168
  message Option {
168
- // The option's name. For example, `"java_package"`.
169
+ // The option's name. For protobuf built-in options (options defined in
170
+ // descriptor.proto), this is the short name. For example, `"map_entry"`.
171
+ // For custom options, it should be the fully-qualified name. For example,
172
+ // `"google.api.http"`.
169
173
  string name = 1;
170
- // The option's value. For example, `"com.google.protobuf"`.
174
+ // The option's value packed in an Any message. If the value is a primitive,
175
+ // the corresponding wrapper type defined in google/protobuf/wrappers.proto
176
+ // should be used. If the value is an enum, it should be stored as an int32
177
+ // value using the google.protobuf.Int32Value type.
171
178
  Any value = 2;
172
179
  }
173
180
 
Binary file
data/bin/x86-macos/protoc CHANGED
Binary file
@@ -40,6 +40,7 @@ option java_package = "com.google.protobuf";
40
40
  option java_outer_classname = "ApiProto";
41
41
  option java_multiple_files = true;
42
42
  option objc_class_prefix = "GPB";
43
+ option go_package = "google.golang.org/genproto/protobuf/api;api";
43
44
 
44
45
  // Api is a light-weight descriptor for a protocol buffer service.
45
46
  message Api {
@@ -53,6 +53,16 @@ option go_package = "plugin_go";
53
53
 
54
54
  import "google/protobuf/descriptor.proto";
55
55
 
56
+ // The version number of protocol compiler.
57
+ message Version {
58
+ optional int32 major = 1;
59
+ optional int32 minor = 2;
60
+ optional int32 patch = 3;
61
+ // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
62
+ // be empty for mainline stable releases.
63
+ optional string suffix = 4;
64
+ }
65
+
56
66
  // An encoded CodeGeneratorRequest is written to the plugin's stdin.
57
67
  message CodeGeneratorRequest {
58
68
  // The .proto files that were explicitly listed on the command-line. The
@@ -75,6 +85,9 @@ message CodeGeneratorRequest {
75
85
  // is not similarly optimized on protoc's end -- it will store all fields in
76
86
  // memory at once before sending them to the plugin.
77
87
  repeated FileDescriptorProto proto_file = 15;
88
+
89
+ // The version number of protocol compiler.
90
+ optional Version compiler_version = 3;
78
91
  }
79
92
 
80
93
  // The plugin writes an encoded CodeGeneratorResponse to stdout.
@@ -40,7 +40,7 @@
40
40
  syntax = "proto2";
41
41
 
42
42
  package google.protobuf;
43
- option go_package = "descriptor";
43
+ option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor";
44
44
  option java_package = "com.google.protobuf";
45
45
  option java_outer_classname = "DescriptorProtos";
46
46
  option csharp_namespace = "Google.Protobuf.Reflection";
@@ -139,7 +139,11 @@ message FieldDescriptorProto {
139
139
  TYPE_FIXED32 = 7;
140
140
  TYPE_BOOL = 8;
141
141
  TYPE_STRING = 9;
142
- TYPE_GROUP = 10; // Tag-delimited aggregate.
142
+ // Tag-delimited aggregate.
143
+ // Group type is deprecated and not supported in proto3. However, Proto3
144
+ // implementations should still be able to parse the group wire format and
145
+ // treat group fields as unknown fields.
146
+ TYPE_GROUP = 10;
143
147
  TYPE_MESSAGE = 11; // Length-delimited aggregate.
144
148
 
145
149
  // New in version 2.
@@ -157,7 +161,6 @@ message FieldDescriptorProto {
157
161
  LABEL_OPTIONAL = 1;
158
162
  LABEL_REQUIRED = 2;
159
163
  LABEL_REPEATED = 3;
160
- // TODO(sanjay): Should we add LABEL_MAP?
161
164
  };
162
165
 
163
166
  optional string name = 1;
@@ -367,6 +370,12 @@ message FileOptions {
367
370
  // Namespace for generated classes; defaults to the package.
368
371
  optional string csharp_namespace = 37;
369
372
 
373
+ // By default Swift generators will take the proto package and CamelCase it
374
+ // replacing '.' with underscore and use that to prefix the types/symbols
375
+ // defined. When this options is provided, they will use this value instead
376
+ // to prefix the types/symbols defined.
377
+ optional string swift_prefix = 39;
378
+
370
379
  // The parser stores options it doesn't recognize here. See above.
371
380
  repeated UninterpretedOption uninterpreted_option = 999;
372
381
 
@@ -431,13 +440,14 @@ message MessageOptions {
431
440
  // parser.
432
441
  optional bool map_entry = 7;
433
442
 
443
+ reserved 8; // javalite_serializable
444
+
445
+
434
446
  // The parser stores options it doesn't recognize here. See above.
435
447
  repeated UninterpretedOption uninterpreted_option = 999;
436
448
 
437
449
  // Clients can define custom options in extensions of this message. See above.
438
450
  extensions 1000 to max;
439
-
440
- reserved 8; // javalite_serializable
441
451
  }
442
452
 
443
453
  message FieldOptions {
@@ -551,6 +561,7 @@ message EnumOptions {
551
561
  // is a formalization for deprecating enums.
552
562
  optional bool deprecated = 3 [default=false];
553
563
 
564
+
554
565
  // The parser stores options it doesn't recognize here. See above.
555
566
  repeated UninterpretedOption uninterpreted_option = 999;
556
567
 
@@ -605,6 +616,17 @@ message MethodOptions {
605
616
  // this is a formalization for deprecating methods.
606
617
  optional bool deprecated = 33 [default=false];
607
618
 
619
+ // Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
620
+ // or neither? HTTP based RPC implementation may choose GET verb for safe
621
+ // methods, and PUT verb for idempotent methods instead of the default POST.
622
+ enum IdempotencyLevel {
623
+ IDEMPOTENCY_UNKNOWN = 0;
624
+ NO_SIDE_EFFECTS = 1; // implies idempotent
625
+ IDEMPOTENT = 2; // idempotent, but may have side effects
626
+ }
627
+ optional IdempotencyLevel idempotency_level =
628
+ 34 [default=IDEMPOTENCY_UNKNOWN];
629
+
608
630
  // The parser stores options it doesn't recognize here. See above.
609
631
  repeated UninterpretedOption uninterpreted_option = 999;
610
632
 
@@ -37,6 +37,7 @@ 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 go_package = "google.golang.org/genproto/protobuf/field_mask;field_mask";
40
41
 
41
42
  // `FieldMask` represents a set of symbolic field paths, for example:
42
43
  //
@@ -37,6 +37,7 @@ option java_package = "com.google.protobuf";
37
37
  option java_outer_classname = "SourceContextProto";
38
38
  option java_multiple_files = true;
39
39
  option objc_class_prefix = "GPB";
40
+ option go_package = "google.golang.org/genproto/protobuf/source_context;source_context";
40
41
 
41
42
  // `SourceContext` represents information about the source of a
42
43
  // protobuf element, like the file in which it is defined.
@@ -41,6 +41,7 @@ option java_package = "com.google.protobuf";
41
41
  option java_outer_classname = "TypeProto";
42
42
  option java_multiple_files = true;
43
43
  option objc_class_prefix = "GPB";
44
+ option go_package = "google.golang.org/genproto/protobuf/ptype;ptype";
44
45
 
45
46
  // A protocol buffer message type.
46
47
  message Type {
@@ -165,9 +166,15 @@ message EnumValue {
165
166
  // A protocol buffer option, which can be attached to a message, field,
166
167
  // enumeration, etc.
167
168
  message Option {
168
- // The option's name. For example, `"java_package"`.
169
+ // The option's name. For protobuf built-in options (options defined in
170
+ // descriptor.proto), this is the short name. For example, `"map_entry"`.
171
+ // For custom options, it should be the fully-qualified name. For example,
172
+ // `"google.api.http"`.
169
173
  string name = 1;
170
- // The option's value. For example, `"com.google.protobuf"`.
174
+ // The option's value packed in an Any message. If the value is a primitive,
175
+ // the corresponding wrapper type defined in google/protobuf/wrappers.proto
176
+ // should be used. If the value is an enum, it should be stored as an int32
177
+ // value using the google.protobuf.Int32Value type.
171
178
  Any value = 2;
172
179
  }
173
180
 
Binary file
Binary file
@@ -40,6 +40,7 @@ option java_package = "com.google.protobuf";
40
40
  option java_outer_classname = "ApiProto";
41
41
  option java_multiple_files = true;
42
42
  option objc_class_prefix = "GPB";
43
+ option go_package = "google.golang.org/genproto/protobuf/api;api";
43
44
 
44
45
  // Api is a light-weight descriptor for a protocol buffer service.
45
46
  message Api {
@@ -53,6 +53,16 @@ option go_package = "plugin_go";
53
53
 
54
54
  import "google/protobuf/descriptor.proto";
55
55
 
56
+ // The version number of protocol compiler.
57
+ message Version {
58
+ optional int32 major = 1;
59
+ optional int32 minor = 2;
60
+ optional int32 patch = 3;
61
+ // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
62
+ // be empty for mainline stable releases.
63
+ optional string suffix = 4;
64
+ }
65
+
56
66
  // An encoded CodeGeneratorRequest is written to the plugin's stdin.
57
67
  message CodeGeneratorRequest {
58
68
  // The .proto files that were explicitly listed on the command-line. The
@@ -75,6 +85,9 @@ message CodeGeneratorRequest {
75
85
  // is not similarly optimized on protoc's end -- it will store all fields in
76
86
  // memory at once before sending them to the plugin.
77
87
  repeated FileDescriptorProto proto_file = 15;
88
+
89
+ // The version number of protocol compiler.
90
+ optional Version compiler_version = 3;
78
91
  }
79
92
 
80
93
  // The plugin writes an encoded CodeGeneratorResponse to stdout.
@@ -40,7 +40,7 @@
40
40
  syntax = "proto2";
41
41
 
42
42
  package google.protobuf;
43
- option go_package = "descriptor";
43
+ option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor";
44
44
  option java_package = "com.google.protobuf";
45
45
  option java_outer_classname = "DescriptorProtos";
46
46
  option csharp_namespace = "Google.Protobuf.Reflection";
@@ -139,7 +139,11 @@ message FieldDescriptorProto {
139
139
  TYPE_FIXED32 = 7;
140
140
  TYPE_BOOL = 8;
141
141
  TYPE_STRING = 9;
142
- TYPE_GROUP = 10; // Tag-delimited aggregate.
142
+ // Tag-delimited aggregate.
143
+ // Group type is deprecated and not supported in proto3. However, Proto3
144
+ // implementations should still be able to parse the group wire format and
145
+ // treat group fields as unknown fields.
146
+ TYPE_GROUP = 10;
143
147
  TYPE_MESSAGE = 11; // Length-delimited aggregate.
144
148
 
145
149
  // New in version 2.
@@ -157,7 +161,6 @@ message FieldDescriptorProto {
157
161
  LABEL_OPTIONAL = 1;
158
162
  LABEL_REQUIRED = 2;
159
163
  LABEL_REPEATED = 3;
160
- // TODO(sanjay): Should we add LABEL_MAP?
161
164
  };
162
165
 
163
166
  optional string name = 1;
@@ -367,6 +370,12 @@ message FileOptions {
367
370
  // Namespace for generated classes; defaults to the package.
368
371
  optional string csharp_namespace = 37;
369
372
 
373
+ // By default Swift generators will take the proto package and CamelCase it
374
+ // replacing '.' with underscore and use that to prefix the types/symbols
375
+ // defined. When this options is provided, they will use this value instead
376
+ // to prefix the types/symbols defined.
377
+ optional string swift_prefix = 39;
378
+
370
379
  // The parser stores options it doesn't recognize here. See above.
371
380
  repeated UninterpretedOption uninterpreted_option = 999;
372
381
 
@@ -431,13 +440,14 @@ message MessageOptions {
431
440
  // parser.
432
441
  optional bool map_entry = 7;
433
442
 
443
+ reserved 8; // javalite_serializable
444
+
445
+
434
446
  // The parser stores options it doesn't recognize here. See above.
435
447
  repeated UninterpretedOption uninterpreted_option = 999;
436
448
 
437
449
  // Clients can define custom options in extensions of this message. See above.
438
450
  extensions 1000 to max;
439
-
440
- reserved 8; // javalite_serializable
441
451
  }
442
452
 
443
453
  message FieldOptions {
@@ -551,6 +561,7 @@ message EnumOptions {
551
561
  // is a formalization for deprecating enums.
552
562
  optional bool deprecated = 3 [default=false];
553
563
 
564
+
554
565
  // The parser stores options it doesn't recognize here. See above.
555
566
  repeated UninterpretedOption uninterpreted_option = 999;
556
567
 
@@ -605,6 +616,17 @@ message MethodOptions {
605
616
  // this is a formalization for deprecating methods.
606
617
  optional bool deprecated = 33 [default=false];
607
618
 
619
+ // Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
620
+ // or neither? HTTP based RPC implementation may choose GET verb for safe
621
+ // methods, and PUT verb for idempotent methods instead of the default POST.
622
+ enum IdempotencyLevel {
623
+ IDEMPOTENCY_UNKNOWN = 0;
624
+ NO_SIDE_EFFECTS = 1; // implies idempotent
625
+ IDEMPOTENT = 2; // idempotent, but may have side effects
626
+ }
627
+ optional IdempotencyLevel idempotency_level =
628
+ 34 [default=IDEMPOTENCY_UNKNOWN];
629
+
608
630
  // The parser stores options it doesn't recognize here. See above.
609
631
  repeated UninterpretedOption uninterpreted_option = 999;
610
632
 
@@ -37,6 +37,7 @@ 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 go_package = "google.golang.org/genproto/protobuf/field_mask;field_mask";
40
41
 
41
42
  // `FieldMask` represents a set of symbolic field paths, for example:
42
43
  //
@@ -37,6 +37,7 @@ option java_package = "com.google.protobuf";
37
37
  option java_outer_classname = "SourceContextProto";
38
38
  option java_multiple_files = true;
39
39
  option objc_class_prefix = "GPB";
40
+ option go_package = "google.golang.org/genproto/protobuf/source_context;source_context";
40
41
 
41
42
  // `SourceContext` represents information about the source of a
42
43
  // protobuf element, like the file in which it is defined.
@@ -41,6 +41,7 @@ option java_package = "com.google.protobuf";
41
41
  option java_outer_classname = "TypeProto";
42
42
  option java_multiple_files = true;
43
43
  option objc_class_prefix = "GPB";
44
+ option go_package = "google.golang.org/genproto/protobuf/ptype;ptype";
44
45
 
45
46
  // A protocol buffer message type.
46
47
  message Type {
@@ -165,9 +166,15 @@ message EnumValue {
165
166
  // A protocol buffer option, which can be attached to a message, field,
166
167
  // enumeration, etc.
167
168
  message Option {
168
- // The option's name. For example, `"java_package"`.
169
+ // The option's name. For protobuf built-in options (options defined in
170
+ // descriptor.proto), this is the short name. For example, `"map_entry"`.
171
+ // For custom options, it should be the fully-qualified name. For example,
172
+ // `"google.api.http"`.
169
173
  string name = 1;
170
- // The option's value. For example, `"com.google.protobuf"`.
174
+ // The option's value packed in an Any message. If the value is a primitive,
175
+ // the corresponding wrapper type defined in google/protobuf/wrappers.proto
176
+ // should be used. If the value is an enum, it should be stored as an int32
177
+ // value using the google.protobuf.Int32Value type.
171
178
  Any value = 2;
172
179
  }
173
180
 
Binary file
Binary file
@@ -40,6 +40,7 @@ option java_package = "com.google.protobuf";
40
40
  option java_outer_classname = "ApiProto";
41
41
  option java_multiple_files = true;
42
42
  option objc_class_prefix = "GPB";
43
+ option go_package = "google.golang.org/genproto/protobuf/api;api";
43
44
 
44
45
  // Api is a light-weight descriptor for a protocol buffer service.
45
46
  message Api {
@@ -53,6 +53,16 @@ option go_package = "plugin_go";
53
53
 
54
54
  import "google/protobuf/descriptor.proto";
55
55
 
56
+ // The version number of protocol compiler.
57
+ message Version {
58
+ optional int32 major = 1;
59
+ optional int32 minor = 2;
60
+ optional int32 patch = 3;
61
+ // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
62
+ // be empty for mainline stable releases.
63
+ optional string suffix = 4;
64
+ }
65
+
56
66
  // An encoded CodeGeneratorRequest is written to the plugin's stdin.
57
67
  message CodeGeneratorRequest {
58
68
  // The .proto files that were explicitly listed on the command-line. The
@@ -75,6 +85,9 @@ message CodeGeneratorRequest {
75
85
  // is not similarly optimized on protoc's end -- it will store all fields in
76
86
  // memory at once before sending them to the plugin.
77
87
  repeated FileDescriptorProto proto_file = 15;
88
+
89
+ // The version number of protocol compiler.
90
+ optional Version compiler_version = 3;
78
91
  }
79
92
 
80
93
  // The plugin writes an encoded CodeGeneratorResponse to stdout.
@@ -40,7 +40,7 @@
40
40
  syntax = "proto2";
41
41
 
42
42
  package google.protobuf;
43
- option go_package = "descriptor";
43
+ option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor";
44
44
  option java_package = "com.google.protobuf";
45
45
  option java_outer_classname = "DescriptorProtos";
46
46
  option csharp_namespace = "Google.Protobuf.Reflection";
@@ -139,7 +139,11 @@ message FieldDescriptorProto {
139
139
  TYPE_FIXED32 = 7;
140
140
  TYPE_BOOL = 8;
141
141
  TYPE_STRING = 9;
142
- TYPE_GROUP = 10; // Tag-delimited aggregate.
142
+ // Tag-delimited aggregate.
143
+ // Group type is deprecated and not supported in proto3. However, Proto3
144
+ // implementations should still be able to parse the group wire format and
145
+ // treat group fields as unknown fields.
146
+ TYPE_GROUP = 10;
143
147
  TYPE_MESSAGE = 11; // Length-delimited aggregate.
144
148
 
145
149
  // New in version 2.
@@ -157,7 +161,6 @@ message FieldDescriptorProto {
157
161
  LABEL_OPTIONAL = 1;
158
162
  LABEL_REQUIRED = 2;
159
163
  LABEL_REPEATED = 3;
160
- // TODO(sanjay): Should we add LABEL_MAP?
161
164
  };
162
165
 
163
166
  optional string name = 1;
@@ -367,6 +370,12 @@ message FileOptions {
367
370
  // Namespace for generated classes; defaults to the package.
368
371
  optional string csharp_namespace = 37;
369
372
 
373
+ // By default Swift generators will take the proto package and CamelCase it
374
+ // replacing '.' with underscore and use that to prefix the types/symbols
375
+ // defined. When this options is provided, they will use this value instead
376
+ // to prefix the types/symbols defined.
377
+ optional string swift_prefix = 39;
378
+
370
379
  // The parser stores options it doesn't recognize here. See above.
371
380
  repeated UninterpretedOption uninterpreted_option = 999;
372
381
 
@@ -431,13 +440,14 @@ message MessageOptions {
431
440
  // parser.
432
441
  optional bool map_entry = 7;
433
442
 
443
+ reserved 8; // javalite_serializable
444
+
445
+
434
446
  // The parser stores options it doesn't recognize here. See above.
435
447
  repeated UninterpretedOption uninterpreted_option = 999;
436
448
 
437
449
  // Clients can define custom options in extensions of this message. See above.
438
450
  extensions 1000 to max;
439
-
440
- reserved 8; // javalite_serializable
441
451
  }
442
452
 
443
453
  message FieldOptions {
@@ -551,6 +561,7 @@ message EnumOptions {
551
561
  // is a formalization for deprecating enums.
552
562
  optional bool deprecated = 3 [default=false];
553
563
 
564
+
554
565
  // The parser stores options it doesn't recognize here. See above.
555
566
  repeated UninterpretedOption uninterpreted_option = 999;
556
567
 
@@ -605,6 +616,17 @@ message MethodOptions {
605
616
  // this is a formalization for deprecating methods.
606
617
  optional bool deprecated = 33 [default=false];
607
618
 
619
+ // Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
620
+ // or neither? HTTP based RPC implementation may choose GET verb for safe
621
+ // methods, and PUT verb for idempotent methods instead of the default POST.
622
+ enum IdempotencyLevel {
623
+ IDEMPOTENCY_UNKNOWN = 0;
624
+ NO_SIDE_EFFECTS = 1; // implies idempotent
625
+ IDEMPOTENT = 2; // idempotent, but may have side effects
626
+ }
627
+ optional IdempotencyLevel idempotency_level =
628
+ 34 [default=IDEMPOTENCY_UNKNOWN];
629
+
608
630
  // The parser stores options it doesn't recognize here. See above.
609
631
  repeated UninterpretedOption uninterpreted_option = 999;
610
632
 
@@ -37,6 +37,7 @@ 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 go_package = "google.golang.org/genproto/protobuf/field_mask;field_mask";
40
41
 
41
42
  // `FieldMask` represents a set of symbolic field paths, for example:
42
43
  //
@@ -37,6 +37,7 @@ option java_package = "com.google.protobuf";
37
37
  option java_outer_classname = "SourceContextProto";
38
38
  option java_multiple_files = true;
39
39
  option objc_class_prefix = "GPB";
40
+ option go_package = "google.golang.org/genproto/protobuf/source_context;source_context";
40
41
 
41
42
  // `SourceContext` represents information about the source of a
42
43
  // protobuf element, like the file in which it is defined.
@@ -41,6 +41,7 @@ option java_package = "com.google.protobuf";
41
41
  option java_outer_classname = "TypeProto";
42
42
  option java_multiple_files = true;
43
43
  option objc_class_prefix = "GPB";
44
+ option go_package = "google.golang.org/genproto/protobuf/ptype;ptype";
44
45
 
45
46
  // A protocol buffer message type.
46
47
  message Type {
@@ -165,9 +166,15 @@ message EnumValue {
165
166
  // A protocol buffer option, which can be attached to a message, field,
166
167
  // enumeration, etc.
167
168
  message Option {
168
- // The option's name. For example, `"java_package"`.
169
+ // The option's name. For protobuf built-in options (options defined in
170
+ // descriptor.proto), this is the short name. For example, `"map_entry"`.
171
+ // For custom options, it should be the fully-qualified name. For example,
172
+ // `"google.api.http"`.
169
173
  string name = 1;
170
- // The option's value. For example, `"com.google.protobuf"`.
174
+ // The option's value packed in an Any message. If the value is a primitive,
175
+ // the corresponding wrapper type defined in google/protobuf/wrappers.proto
176
+ // should be used. If the value is an enum, it should be stored as an int32
177
+ // value using the google.protobuf.Int32Value type.
171
178
  Any value = 2;
172
179
  }
173
180
 
Binary file
Binary file
@@ -40,6 +40,7 @@ option java_package = "com.google.protobuf";
40
40
  option java_outer_classname = "ApiProto";
41
41
  option java_multiple_files = true;
42
42
  option objc_class_prefix = "GPB";
43
+ option go_package = "google.golang.org/genproto/protobuf/api;api";
43
44
 
44
45
  // Api is a light-weight descriptor for a protocol buffer service.
45
46
  message Api {
@@ -53,6 +53,16 @@ option go_package = "plugin_go";
53
53
 
54
54
  import "google/protobuf/descriptor.proto";
55
55
 
56
+ // The version number of protocol compiler.
57
+ message Version {
58
+ optional int32 major = 1;
59
+ optional int32 minor = 2;
60
+ optional int32 patch = 3;
61
+ // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
62
+ // be empty for mainline stable releases.
63
+ optional string suffix = 4;
64
+ }
65
+
56
66
  // An encoded CodeGeneratorRequest is written to the plugin's stdin.
57
67
  message CodeGeneratorRequest {
58
68
  // The .proto files that were explicitly listed on the command-line. The
@@ -75,6 +85,9 @@ message CodeGeneratorRequest {
75
85
  // is not similarly optimized on protoc's end -- it will store all fields in
76
86
  // memory at once before sending them to the plugin.
77
87
  repeated FileDescriptorProto proto_file = 15;
88
+
89
+ // The version number of protocol compiler.
90
+ optional Version compiler_version = 3;
78
91
  }
79
92
 
80
93
  // The plugin writes an encoded CodeGeneratorResponse to stdout.
@@ -40,7 +40,7 @@
40
40
  syntax = "proto2";
41
41
 
42
42
  package google.protobuf;
43
- option go_package = "descriptor";
43
+ option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor";
44
44
  option java_package = "com.google.protobuf";
45
45
  option java_outer_classname = "DescriptorProtos";
46
46
  option csharp_namespace = "Google.Protobuf.Reflection";
@@ -139,7 +139,11 @@ message FieldDescriptorProto {
139
139
  TYPE_FIXED32 = 7;
140
140
  TYPE_BOOL = 8;
141
141
  TYPE_STRING = 9;
142
- TYPE_GROUP = 10; // Tag-delimited aggregate.
142
+ // Tag-delimited aggregate.
143
+ // Group type is deprecated and not supported in proto3. However, Proto3
144
+ // implementations should still be able to parse the group wire format and
145
+ // treat group fields as unknown fields.
146
+ TYPE_GROUP = 10;
143
147
  TYPE_MESSAGE = 11; // Length-delimited aggregate.
144
148
 
145
149
  // New in version 2.
@@ -157,7 +161,6 @@ message FieldDescriptorProto {
157
161
  LABEL_OPTIONAL = 1;
158
162
  LABEL_REQUIRED = 2;
159
163
  LABEL_REPEATED = 3;
160
- // TODO(sanjay): Should we add LABEL_MAP?
161
164
  };
162
165
 
163
166
  optional string name = 1;
@@ -367,6 +370,12 @@ message FileOptions {
367
370
  // Namespace for generated classes; defaults to the package.
368
371
  optional string csharp_namespace = 37;
369
372
 
373
+ // By default Swift generators will take the proto package and CamelCase it
374
+ // replacing '.' with underscore and use that to prefix the types/symbols
375
+ // defined. When this options is provided, they will use this value instead
376
+ // to prefix the types/symbols defined.
377
+ optional string swift_prefix = 39;
378
+
370
379
  // The parser stores options it doesn't recognize here. See above.
371
380
  repeated UninterpretedOption uninterpreted_option = 999;
372
381
 
@@ -431,13 +440,14 @@ message MessageOptions {
431
440
  // parser.
432
441
  optional bool map_entry = 7;
433
442
 
443
+ reserved 8; // javalite_serializable
444
+
445
+
434
446
  // The parser stores options it doesn't recognize here. See above.
435
447
  repeated UninterpretedOption uninterpreted_option = 999;
436
448
 
437
449
  // Clients can define custom options in extensions of this message. See above.
438
450
  extensions 1000 to max;
439
-
440
- reserved 8; // javalite_serializable
441
451
  }
442
452
 
443
453
  message FieldOptions {
@@ -551,6 +561,7 @@ message EnumOptions {
551
561
  // is a formalization for deprecating enums.
552
562
  optional bool deprecated = 3 [default=false];
553
563
 
564
+
554
565
  // The parser stores options it doesn't recognize here. See above.
555
566
  repeated UninterpretedOption uninterpreted_option = 999;
556
567
 
@@ -605,6 +616,17 @@ message MethodOptions {
605
616
  // this is a formalization for deprecating methods.
606
617
  optional bool deprecated = 33 [default=false];
607
618
 
619
+ // Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
620
+ // or neither? HTTP based RPC implementation may choose GET verb for safe
621
+ // methods, and PUT verb for idempotent methods instead of the default POST.
622
+ enum IdempotencyLevel {
623
+ IDEMPOTENCY_UNKNOWN = 0;
624
+ NO_SIDE_EFFECTS = 1; // implies idempotent
625
+ IDEMPOTENT = 2; // idempotent, but may have side effects
626
+ }
627
+ optional IdempotencyLevel idempotency_level =
628
+ 34 [default=IDEMPOTENCY_UNKNOWN];
629
+
608
630
  // The parser stores options it doesn't recognize here. See above.
609
631
  repeated UninterpretedOption uninterpreted_option = 999;
610
632
 
@@ -37,6 +37,7 @@ 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 go_package = "google.golang.org/genproto/protobuf/field_mask;field_mask";
40
41
 
41
42
  // `FieldMask` represents a set of symbolic field paths, for example:
42
43
  //
@@ -37,6 +37,7 @@ option java_package = "com.google.protobuf";
37
37
  option java_outer_classname = "SourceContextProto";
38
38
  option java_multiple_files = true;
39
39
  option objc_class_prefix = "GPB";
40
+ option go_package = "google.golang.org/genproto/protobuf/source_context;source_context";
40
41
 
41
42
  // `SourceContext` represents information about the source of a
42
43
  // protobuf element, like the file in which it is defined.
@@ -41,6 +41,7 @@ option java_package = "com.google.protobuf";
41
41
  option java_outer_classname = "TypeProto";
42
42
  option java_multiple_files = true;
43
43
  option objc_class_prefix = "GPB";
44
+ option go_package = "google.golang.org/genproto/protobuf/ptype;ptype";
44
45
 
45
46
  // A protocol buffer message type.
46
47
  message Type {
@@ -165,9 +166,15 @@ message EnumValue {
165
166
  // A protocol buffer option, which can be attached to a message, field,
166
167
  // enumeration, etc.
167
168
  message Option {
168
- // The option's name. For example, `"java_package"`.
169
+ // The option's name. For protobuf built-in options (options defined in
170
+ // descriptor.proto), this is the short name. For example, `"map_entry"`.
171
+ // For custom options, it should be the fully-qualified name. For example,
172
+ // `"google.api.http"`.
169
173
  string name = 1;
170
- // The option's value. For example, `"com.google.protobuf"`.
174
+ // The option's value packed in an Any message. If the value is a primitive,
175
+ // the corresponding wrapper type defined in google/protobuf/wrappers.proto
176
+ // should be used. If the value is an enum, it should be stored as an int32
177
+ // value using the google.protobuf.Int32Value type.
171
178
  Any value = 2;
172
179
  }
173
180
 
Binary file
data/version.rb CHANGED
@@ -29,6 +29,6 @@
29
29
 
30
30
  module GRPC
31
31
  module Tools
32
- VERSION = '1.1.2'
32
+ VERSION = '1.2.0.pre2'
33
33
  end
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - grpc Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-10 00:00:00.000000000 Z
11
+ date: 2017-03-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: protoc and the Ruby gRPC protoc plugin
14
14
  email: grpc-io@googlegroups.com
@@ -122,12 +122,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - ">="
125
+ - - ">"
126
126
  - !ruby/object:Gem::Version
127
- version: '0'
127
+ version: 1.3.1
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.4.8
130
+ rubygems_version: 2.6.10
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Development tools for Ruby gRPC