grpc-tools 1.0.0.pre1 → 1.0.0.pre2
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.rb → grpc_tools_ruby_protoc} +12 -5
- data/bin/{grpc_tools_ruby_protoc_plugin.rb → grpc_tools_ruby_protoc_plugin} +0 -0
- data/bin/x86-linux/google/protobuf/any.proto +13 -3
- data/bin/x86-linux/google/protobuf/descriptor.proto +10 -0
- data/bin/x86-linux/google/protobuf/field_mask.proto +52 -0
- data/bin/x86-linux/google/protobuf/source_context.proto +1 -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 +13 -3
- data/bin/x86-macos/google/protobuf/descriptor.proto +10 -0
- data/bin/x86-macos/google/protobuf/field_mask.proto +52 -0
- data/bin/x86-macos/google/protobuf/source_context.proto +1 -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 +13 -3
- data/bin/x86-windows/google/protobuf/descriptor.proto +10 -0
- data/bin/x86-windows/google/protobuf/field_mask.proto +52 -0
- data/bin/x86-windows/google/protobuf/source_context.proto +1 -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 +13 -3
- data/bin/x86_64-linux/google/protobuf/descriptor.proto +10 -0
- data/bin/x86_64-linux/google/protobuf/field_mask.proto +52 -0
- data/bin/x86_64-linux/google/protobuf/source_context.proto +1 -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 +13 -3
- data/bin/x86_64-macos/google/protobuf/descriptor.proto +10 -0
- data/bin/x86_64-macos/google/protobuf/field_mask.proto +52 -0
- data/bin/x86_64-macos/google/protobuf/source_context.proto +1 -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 +13 -3
- data/bin/x86_64-windows/google/protobuf/descriptor.proto +10 -0
- data/bin/x86_64-windows/google/protobuf/field_mask.proto +52 -0
- data/bin/x86_64-windows/google/protobuf/source_context.proto +1 -1
- data/bin/x86_64-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86_64-windows/protoc.exe +0 -0
- data/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a76d29a4faf9d183693b0a57af58ebf79912e27
|
4
|
+
data.tar.gz: 057ef44924b07ddb8fcc6128703fdcb0145b4903
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38301431d6a88c55a4a5e596c148008c6fcf6869b342fb5f356e302dd322d19a58a2ef137d30a2d4647b310ce1146ffca7b3c69fb6e6e4fa30013aabba85420b
|
7
|
+
data.tar.gz: 5bd24eb4615e3e4beca4551810884e6551ce0d3171b4a9466e8faa5c5257f18b930e0f65ae650455a9f6db44f0324b763039c7fc7b60946530a2acb1c830bc8e
|
@@ -32,10 +32,17 @@ require 'rbconfig'
|
|
32
32
|
|
33
33
|
require_relative '../os_check'
|
34
34
|
|
35
|
-
|
35
|
+
ext = RbConfig::CONFIG['EXEEXT']
|
36
36
|
|
37
|
-
|
38
|
-
RbConfig::CONFIG['host_cpu'] + '-' + OS.os_name,
|
39
|
-
protoc_name)
|
37
|
+
protoc_name = 'protoc' + ext
|
40
38
|
|
41
|
-
|
39
|
+
plugin_name = 'grpc_ruby_plugin' + ext
|
40
|
+
|
41
|
+
protoc_dir = File.join(File.dirname(__FILE__),
|
42
|
+
RbConfig::CONFIG['host_cpu'] + '-' + OS.os_name)
|
43
|
+
|
44
|
+
protoc_path = File.join(protoc_dir, protoc_name)
|
45
|
+
|
46
|
+
plugin_path = File.join(protoc_dir, plugin_name)
|
47
|
+
|
48
|
+
exec([ protoc_path, protoc_path ], "--plugin=protoc-gen-grpc=#{plugin_path}", *ARGV)
|
File without changes
|
@@ -65,6 +65,16 @@ option objc_class_prefix = "GPB";
|
|
65
65
|
// foo = any.unpack(Foo.class);
|
66
66
|
// }
|
67
67
|
//
|
68
|
+
// Example 3: Pack and unpack a message in Python.
|
69
|
+
//
|
70
|
+
// foo = Foo(...)
|
71
|
+
// any = Any()
|
72
|
+
// any.Pack(foo)
|
73
|
+
// ...
|
74
|
+
// if any.Is(Foo.DESCRIPTOR):
|
75
|
+
// any.Unpack(foo)
|
76
|
+
// ...
|
77
|
+
//
|
68
78
|
// The pack methods provided by protobuf library will by default use
|
69
79
|
// 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
70
80
|
// methods only use the fully qualified type name after the last '/'
|
@@ -104,10 +114,10 @@ message Any {
|
|
104
114
|
// A URL/resource name whose content describes the type of the
|
105
115
|
// serialized protocol buffer message.
|
106
116
|
//
|
107
|
-
// For URLs which use the
|
117
|
+
// For URLs which use the scheme `http`, `https`, or no scheme, the
|
108
118
|
// following restrictions and interpretations apply:
|
109
119
|
//
|
110
|
-
// * If no
|
120
|
+
// * If no scheme is provided, `https` is assumed.
|
111
121
|
// * The last segment of the URL's path must represent the fully
|
112
122
|
// qualified name of the type (as in `path/google.protobuf.Duration`).
|
113
123
|
// The name should be in a canonical form (e.g., leading "." is
|
@@ -120,7 +130,7 @@ message Any {
|
|
120
130
|
// on changes to types. (Use versioned type names to manage
|
121
131
|
// breaking changes.)
|
122
132
|
//
|
123
|
-
//
|
133
|
+
// Schemes other than `http`, `https` (or the empty scheme) might be
|
124
134
|
// used with implementation specific semantics.
|
125
135
|
//
|
126
136
|
string type_url = 1;
|
@@ -45,6 +45,7 @@ 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;
|
48
49
|
|
49
50
|
// descriptor.proto must be optimized for speed because reflection-based
|
50
51
|
// algorithms don't work during bootstrapping.
|
@@ -202,6 +203,7 @@ message FieldDescriptorProto {
|
|
202
203
|
// Describes a oneof.
|
203
204
|
message OneofDescriptorProto {
|
204
205
|
optional string name = 1;
|
206
|
+
optional OneofOptions options = 2;
|
205
207
|
}
|
206
208
|
|
207
209
|
// Describes an enum type.
|
@@ -538,6 +540,14 @@ message FieldOptions {
|
|
538
540
|
extensions 1000 to max;
|
539
541
|
}
|
540
542
|
|
543
|
+
message OneofOptions {
|
544
|
+
// The parser stores options it doesn't recognize here. See above.
|
545
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
546
|
+
|
547
|
+
// Clients can define custom options in extensions of this message. See above.
|
548
|
+
extensions 1000 to max;
|
549
|
+
}
|
550
|
+
|
541
551
|
message EnumOptions {
|
542
552
|
|
543
553
|
// Set this option to true to allow mapping different tag names to the same
|
@@ -107,6 +107,58 @@ option java_generate_equals_and_hash = true;
|
|
107
107
|
// describe the updated values, the API ignores the values of all
|
108
108
|
// fields not covered by the mask.
|
109
109
|
//
|
110
|
+
// If a repeated field is specified for an update operation, the existing
|
111
|
+
// 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 field
|
113
|
+
// mask.
|
114
|
+
//
|
115
|
+
// If a sub-message is specified in the last position of the field mask for an
|
116
|
+
// update operation, then the existing sub-message in the target resource is
|
117
|
+
// overwritten. Given the target message:
|
118
|
+
//
|
119
|
+
// f {
|
120
|
+
// b {
|
121
|
+
// d : 1
|
122
|
+
// x : 2
|
123
|
+
// }
|
124
|
+
// c : 1
|
125
|
+
// }
|
126
|
+
//
|
127
|
+
// And an update message:
|
128
|
+
//
|
129
|
+
// f {
|
130
|
+
// b {
|
131
|
+
// d : 10
|
132
|
+
// }
|
133
|
+
// }
|
134
|
+
//
|
135
|
+
// then if the field mask is:
|
136
|
+
//
|
137
|
+
// paths: "f.b"
|
138
|
+
//
|
139
|
+
// then the result will be:
|
140
|
+
//
|
141
|
+
// f {
|
142
|
+
// b {
|
143
|
+
// d : 10
|
144
|
+
// }
|
145
|
+
// c : 1
|
146
|
+
// }
|
147
|
+
//
|
148
|
+
// However, if the update mask was:
|
149
|
+
//
|
150
|
+
// paths: "f.b.d"
|
151
|
+
//
|
152
|
+
// then the result would be:
|
153
|
+
//
|
154
|
+
// f {
|
155
|
+
// b {
|
156
|
+
// d : 10
|
157
|
+
// x : 2
|
158
|
+
// }
|
159
|
+
// c : 1
|
160
|
+
// }
|
161
|
+
//
|
110
162
|
// In order to reset a field's value to the default, the field must
|
111
163
|
// be in the mask and set to the default value in the provided resource.
|
112
164
|
// Hence, in order to reset all fields of a resource, provide a default
|
@@ -43,6 +43,6 @@ option objc_class_prefix = "GPB";
|
|
43
43
|
// protobuf element, like the file in which it is defined.
|
44
44
|
message SourceContext {
|
45
45
|
// The path-qualified name of the .proto file that contained the associated
|
46
|
-
// protobuf element. For example: `"google/protobuf/
|
46
|
+
// protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
47
47
|
string file_name = 1;
|
48
48
|
}
|
Binary file
|
data/bin/x86-linux/protoc
CHANGED
Binary file
|
@@ -65,6 +65,16 @@ option objc_class_prefix = "GPB";
|
|
65
65
|
// foo = any.unpack(Foo.class);
|
66
66
|
// }
|
67
67
|
//
|
68
|
+
// Example 3: Pack and unpack a message in Python.
|
69
|
+
//
|
70
|
+
// foo = Foo(...)
|
71
|
+
// any = Any()
|
72
|
+
// any.Pack(foo)
|
73
|
+
// ...
|
74
|
+
// if any.Is(Foo.DESCRIPTOR):
|
75
|
+
// any.Unpack(foo)
|
76
|
+
// ...
|
77
|
+
//
|
68
78
|
// The pack methods provided by protobuf library will by default use
|
69
79
|
// 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
70
80
|
// methods only use the fully qualified type name after the last '/'
|
@@ -104,10 +114,10 @@ message Any {
|
|
104
114
|
// A URL/resource name whose content describes the type of the
|
105
115
|
// serialized protocol buffer message.
|
106
116
|
//
|
107
|
-
// For URLs which use the
|
117
|
+
// For URLs which use the scheme `http`, `https`, or no scheme, the
|
108
118
|
// following restrictions and interpretations apply:
|
109
119
|
//
|
110
|
-
// * If no
|
120
|
+
// * If no scheme is provided, `https` is assumed.
|
111
121
|
// * The last segment of the URL's path must represent the fully
|
112
122
|
// qualified name of the type (as in `path/google.protobuf.Duration`).
|
113
123
|
// The name should be in a canonical form (e.g., leading "." is
|
@@ -120,7 +130,7 @@ message Any {
|
|
120
130
|
// on changes to types. (Use versioned type names to manage
|
121
131
|
// breaking changes.)
|
122
132
|
//
|
123
|
-
//
|
133
|
+
// Schemes other than `http`, `https` (or the empty scheme) might be
|
124
134
|
// used with implementation specific semantics.
|
125
135
|
//
|
126
136
|
string type_url = 1;
|
@@ -45,6 +45,7 @@ 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;
|
48
49
|
|
49
50
|
// descriptor.proto must be optimized for speed because reflection-based
|
50
51
|
// algorithms don't work during bootstrapping.
|
@@ -202,6 +203,7 @@ message FieldDescriptorProto {
|
|
202
203
|
// Describes a oneof.
|
203
204
|
message OneofDescriptorProto {
|
204
205
|
optional string name = 1;
|
206
|
+
optional OneofOptions options = 2;
|
205
207
|
}
|
206
208
|
|
207
209
|
// Describes an enum type.
|
@@ -538,6 +540,14 @@ message FieldOptions {
|
|
538
540
|
extensions 1000 to max;
|
539
541
|
}
|
540
542
|
|
543
|
+
message OneofOptions {
|
544
|
+
// The parser stores options it doesn't recognize here. See above.
|
545
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
546
|
+
|
547
|
+
// Clients can define custom options in extensions of this message. See above.
|
548
|
+
extensions 1000 to max;
|
549
|
+
}
|
550
|
+
|
541
551
|
message EnumOptions {
|
542
552
|
|
543
553
|
// Set this option to true to allow mapping different tag names to the same
|
@@ -107,6 +107,58 @@ option java_generate_equals_and_hash = true;
|
|
107
107
|
// describe the updated values, the API ignores the values of all
|
108
108
|
// fields not covered by the mask.
|
109
109
|
//
|
110
|
+
// If a repeated field is specified for an update operation, the existing
|
111
|
+
// 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 field
|
113
|
+
// mask.
|
114
|
+
//
|
115
|
+
// If a sub-message is specified in the last position of the field mask for an
|
116
|
+
// update operation, then the existing sub-message in the target resource is
|
117
|
+
// overwritten. Given the target message:
|
118
|
+
//
|
119
|
+
// f {
|
120
|
+
// b {
|
121
|
+
// d : 1
|
122
|
+
// x : 2
|
123
|
+
// }
|
124
|
+
// c : 1
|
125
|
+
// }
|
126
|
+
//
|
127
|
+
// And an update message:
|
128
|
+
//
|
129
|
+
// f {
|
130
|
+
// b {
|
131
|
+
// d : 10
|
132
|
+
// }
|
133
|
+
// }
|
134
|
+
//
|
135
|
+
// then if the field mask is:
|
136
|
+
//
|
137
|
+
// paths: "f.b"
|
138
|
+
//
|
139
|
+
// then the result will be:
|
140
|
+
//
|
141
|
+
// f {
|
142
|
+
// b {
|
143
|
+
// d : 10
|
144
|
+
// }
|
145
|
+
// c : 1
|
146
|
+
// }
|
147
|
+
//
|
148
|
+
// However, if the update mask was:
|
149
|
+
//
|
150
|
+
// paths: "f.b.d"
|
151
|
+
//
|
152
|
+
// then the result would be:
|
153
|
+
//
|
154
|
+
// f {
|
155
|
+
// b {
|
156
|
+
// d : 10
|
157
|
+
// x : 2
|
158
|
+
// }
|
159
|
+
// c : 1
|
160
|
+
// }
|
161
|
+
//
|
110
162
|
// In order to reset a field's value to the default, the field must
|
111
163
|
// be in the mask and set to the default value in the provided resource.
|
112
164
|
// Hence, in order to reset all fields of a resource, provide a default
|
@@ -43,6 +43,6 @@ option objc_class_prefix = "GPB";
|
|
43
43
|
// protobuf element, like the file in which it is defined.
|
44
44
|
message SourceContext {
|
45
45
|
// The path-qualified name of the .proto file that contained the associated
|
46
|
-
// protobuf element. For example: `"google/protobuf/
|
46
|
+
// protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
47
47
|
string file_name = 1;
|
48
48
|
}
|
Binary file
|
data/bin/x86-macos/protoc
CHANGED
Binary file
|
@@ -65,6 +65,16 @@ option objc_class_prefix = "GPB";
|
|
65
65
|
// foo = any.unpack(Foo.class);
|
66
66
|
// }
|
67
67
|
//
|
68
|
+
// Example 3: Pack and unpack a message in Python.
|
69
|
+
//
|
70
|
+
// foo = Foo(...)
|
71
|
+
// any = Any()
|
72
|
+
// any.Pack(foo)
|
73
|
+
// ...
|
74
|
+
// if any.Is(Foo.DESCRIPTOR):
|
75
|
+
// any.Unpack(foo)
|
76
|
+
// ...
|
77
|
+
//
|
68
78
|
// The pack methods provided by protobuf library will by default use
|
69
79
|
// 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
70
80
|
// methods only use the fully qualified type name after the last '/'
|
@@ -104,10 +114,10 @@ message Any {
|
|
104
114
|
// A URL/resource name whose content describes the type of the
|
105
115
|
// serialized protocol buffer message.
|
106
116
|
//
|
107
|
-
// For URLs which use the
|
117
|
+
// For URLs which use the scheme `http`, `https`, or no scheme, the
|
108
118
|
// following restrictions and interpretations apply:
|
109
119
|
//
|
110
|
-
// * If no
|
120
|
+
// * If no scheme is provided, `https` is assumed.
|
111
121
|
// * The last segment of the URL's path must represent the fully
|
112
122
|
// qualified name of the type (as in `path/google.protobuf.Duration`).
|
113
123
|
// The name should be in a canonical form (e.g., leading "." is
|
@@ -120,7 +130,7 @@ message Any {
|
|
120
130
|
// on changes to types. (Use versioned type names to manage
|
121
131
|
// breaking changes.)
|
122
132
|
//
|
123
|
-
//
|
133
|
+
// Schemes other than `http`, `https` (or the empty scheme) might be
|
124
134
|
// used with implementation specific semantics.
|
125
135
|
//
|
126
136
|
string type_url = 1;
|
@@ -45,6 +45,7 @@ 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;
|
48
49
|
|
49
50
|
// descriptor.proto must be optimized for speed because reflection-based
|
50
51
|
// algorithms don't work during bootstrapping.
|
@@ -202,6 +203,7 @@ message FieldDescriptorProto {
|
|
202
203
|
// Describes a oneof.
|
203
204
|
message OneofDescriptorProto {
|
204
205
|
optional string name = 1;
|
206
|
+
optional OneofOptions options = 2;
|
205
207
|
}
|
206
208
|
|
207
209
|
// Describes an enum type.
|
@@ -538,6 +540,14 @@ message FieldOptions {
|
|
538
540
|
extensions 1000 to max;
|
539
541
|
}
|
540
542
|
|
543
|
+
message OneofOptions {
|
544
|
+
// The parser stores options it doesn't recognize here. See above.
|
545
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
546
|
+
|
547
|
+
// Clients can define custom options in extensions of this message. See above.
|
548
|
+
extensions 1000 to max;
|
549
|
+
}
|
550
|
+
|
541
551
|
message EnumOptions {
|
542
552
|
|
543
553
|
// Set this option to true to allow mapping different tag names to the same
|
@@ -107,6 +107,58 @@ option java_generate_equals_and_hash = true;
|
|
107
107
|
// describe the updated values, the API ignores the values of all
|
108
108
|
// fields not covered by the mask.
|
109
109
|
//
|
110
|
+
// If a repeated field is specified for an update operation, the existing
|
111
|
+
// 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 field
|
113
|
+
// mask.
|
114
|
+
//
|
115
|
+
// If a sub-message is specified in the last position of the field mask for an
|
116
|
+
// update operation, then the existing sub-message in the target resource is
|
117
|
+
// overwritten. Given the target message:
|
118
|
+
//
|
119
|
+
// f {
|
120
|
+
// b {
|
121
|
+
// d : 1
|
122
|
+
// x : 2
|
123
|
+
// }
|
124
|
+
// c : 1
|
125
|
+
// }
|
126
|
+
//
|
127
|
+
// And an update message:
|
128
|
+
//
|
129
|
+
// f {
|
130
|
+
// b {
|
131
|
+
// d : 10
|
132
|
+
// }
|
133
|
+
// }
|
134
|
+
//
|
135
|
+
// then if the field mask is:
|
136
|
+
//
|
137
|
+
// paths: "f.b"
|
138
|
+
//
|
139
|
+
// then the result will be:
|
140
|
+
//
|
141
|
+
// f {
|
142
|
+
// b {
|
143
|
+
// d : 10
|
144
|
+
// }
|
145
|
+
// c : 1
|
146
|
+
// }
|
147
|
+
//
|
148
|
+
// However, if the update mask was:
|
149
|
+
//
|
150
|
+
// paths: "f.b.d"
|
151
|
+
//
|
152
|
+
// then the result would be:
|
153
|
+
//
|
154
|
+
// f {
|
155
|
+
// b {
|
156
|
+
// d : 10
|
157
|
+
// x : 2
|
158
|
+
// }
|
159
|
+
// c : 1
|
160
|
+
// }
|
161
|
+
//
|
110
162
|
// In order to reset a field's value to the default, the field must
|
111
163
|
// be in the mask and set to the default value in the provided resource.
|
112
164
|
// Hence, in order to reset all fields of a resource, provide a default
|
@@ -43,6 +43,6 @@ option objc_class_prefix = "GPB";
|
|
43
43
|
// protobuf element, like the file in which it is defined.
|
44
44
|
message SourceContext {
|
45
45
|
// The path-qualified name of the .proto file that contained the associated
|
46
|
-
// protobuf element. For example: `"google/protobuf/
|
46
|
+
// protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
47
47
|
string file_name = 1;
|
48
48
|
}
|
Binary file
|
data/bin/x86-windows/protoc.exe
CHANGED
Binary file
|
@@ -65,6 +65,16 @@ option objc_class_prefix = "GPB";
|
|
65
65
|
// foo = any.unpack(Foo.class);
|
66
66
|
// }
|
67
67
|
//
|
68
|
+
// Example 3: Pack and unpack a message in Python.
|
69
|
+
//
|
70
|
+
// foo = Foo(...)
|
71
|
+
// any = Any()
|
72
|
+
// any.Pack(foo)
|
73
|
+
// ...
|
74
|
+
// if any.Is(Foo.DESCRIPTOR):
|
75
|
+
// any.Unpack(foo)
|
76
|
+
// ...
|
77
|
+
//
|
68
78
|
// The pack methods provided by protobuf library will by default use
|
69
79
|
// 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
70
80
|
// methods only use the fully qualified type name after the last '/'
|
@@ -104,10 +114,10 @@ message Any {
|
|
104
114
|
// A URL/resource name whose content describes the type of the
|
105
115
|
// serialized protocol buffer message.
|
106
116
|
//
|
107
|
-
// For URLs which use the
|
117
|
+
// For URLs which use the scheme `http`, `https`, or no scheme, the
|
108
118
|
// following restrictions and interpretations apply:
|
109
119
|
//
|
110
|
-
// * If no
|
120
|
+
// * If no scheme is provided, `https` is assumed.
|
111
121
|
// * The last segment of the URL's path must represent the fully
|
112
122
|
// qualified name of the type (as in `path/google.protobuf.Duration`).
|
113
123
|
// The name should be in a canonical form (e.g., leading "." is
|
@@ -120,7 +130,7 @@ message Any {
|
|
120
130
|
// on changes to types. (Use versioned type names to manage
|
121
131
|
// breaking changes.)
|
122
132
|
//
|
123
|
-
//
|
133
|
+
// Schemes other than `http`, `https` (or the empty scheme) might be
|
124
134
|
// used with implementation specific semantics.
|
125
135
|
//
|
126
136
|
string type_url = 1;
|
@@ -45,6 +45,7 @@ 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;
|
48
49
|
|
49
50
|
// descriptor.proto must be optimized for speed because reflection-based
|
50
51
|
// algorithms don't work during bootstrapping.
|
@@ -202,6 +203,7 @@ message FieldDescriptorProto {
|
|
202
203
|
// Describes a oneof.
|
203
204
|
message OneofDescriptorProto {
|
204
205
|
optional string name = 1;
|
206
|
+
optional OneofOptions options = 2;
|
205
207
|
}
|
206
208
|
|
207
209
|
// Describes an enum type.
|
@@ -538,6 +540,14 @@ message FieldOptions {
|
|
538
540
|
extensions 1000 to max;
|
539
541
|
}
|
540
542
|
|
543
|
+
message OneofOptions {
|
544
|
+
// The parser stores options it doesn't recognize here. See above.
|
545
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
546
|
+
|
547
|
+
// Clients can define custom options in extensions of this message. See above.
|
548
|
+
extensions 1000 to max;
|
549
|
+
}
|
550
|
+
|
541
551
|
message EnumOptions {
|
542
552
|
|
543
553
|
// Set this option to true to allow mapping different tag names to the same
|
@@ -107,6 +107,58 @@ option java_generate_equals_and_hash = true;
|
|
107
107
|
// describe the updated values, the API ignores the values of all
|
108
108
|
// fields not covered by the mask.
|
109
109
|
//
|
110
|
+
// If a repeated field is specified for an update operation, the existing
|
111
|
+
// 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 field
|
113
|
+
// mask.
|
114
|
+
//
|
115
|
+
// If a sub-message is specified in the last position of the field mask for an
|
116
|
+
// update operation, then the existing sub-message in the target resource is
|
117
|
+
// overwritten. Given the target message:
|
118
|
+
//
|
119
|
+
// f {
|
120
|
+
// b {
|
121
|
+
// d : 1
|
122
|
+
// x : 2
|
123
|
+
// }
|
124
|
+
// c : 1
|
125
|
+
// }
|
126
|
+
//
|
127
|
+
// And an update message:
|
128
|
+
//
|
129
|
+
// f {
|
130
|
+
// b {
|
131
|
+
// d : 10
|
132
|
+
// }
|
133
|
+
// }
|
134
|
+
//
|
135
|
+
// then if the field mask is:
|
136
|
+
//
|
137
|
+
// paths: "f.b"
|
138
|
+
//
|
139
|
+
// then the result will be:
|
140
|
+
//
|
141
|
+
// f {
|
142
|
+
// b {
|
143
|
+
// d : 10
|
144
|
+
// }
|
145
|
+
// c : 1
|
146
|
+
// }
|
147
|
+
//
|
148
|
+
// However, if the update mask was:
|
149
|
+
//
|
150
|
+
// paths: "f.b.d"
|
151
|
+
//
|
152
|
+
// then the result would be:
|
153
|
+
//
|
154
|
+
// f {
|
155
|
+
// b {
|
156
|
+
// d : 10
|
157
|
+
// x : 2
|
158
|
+
// }
|
159
|
+
// c : 1
|
160
|
+
// }
|
161
|
+
//
|
110
162
|
// In order to reset a field's value to the default, the field must
|
111
163
|
// be in the mask and set to the default value in the provided resource.
|
112
164
|
// Hence, in order to reset all fields of a resource, provide a default
|
@@ -43,6 +43,6 @@ option objc_class_prefix = "GPB";
|
|
43
43
|
// protobuf element, like the file in which it is defined.
|
44
44
|
message SourceContext {
|
45
45
|
// The path-qualified name of the .proto file that contained the associated
|
46
|
-
// protobuf element. For example: `"google/protobuf/
|
46
|
+
// protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
47
47
|
string file_name = 1;
|
48
48
|
}
|
Binary file
|
data/bin/x86_64-linux/protoc
CHANGED
Binary file
|
@@ -65,6 +65,16 @@ option objc_class_prefix = "GPB";
|
|
65
65
|
// foo = any.unpack(Foo.class);
|
66
66
|
// }
|
67
67
|
//
|
68
|
+
// Example 3: Pack and unpack a message in Python.
|
69
|
+
//
|
70
|
+
// foo = Foo(...)
|
71
|
+
// any = Any()
|
72
|
+
// any.Pack(foo)
|
73
|
+
// ...
|
74
|
+
// if any.Is(Foo.DESCRIPTOR):
|
75
|
+
// any.Unpack(foo)
|
76
|
+
// ...
|
77
|
+
//
|
68
78
|
// The pack methods provided by protobuf library will by default use
|
69
79
|
// 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
70
80
|
// methods only use the fully qualified type name after the last '/'
|
@@ -104,10 +114,10 @@ message Any {
|
|
104
114
|
// A URL/resource name whose content describes the type of the
|
105
115
|
// serialized protocol buffer message.
|
106
116
|
//
|
107
|
-
// For URLs which use the
|
117
|
+
// For URLs which use the scheme `http`, `https`, or no scheme, the
|
108
118
|
// following restrictions and interpretations apply:
|
109
119
|
//
|
110
|
-
// * If no
|
120
|
+
// * If no scheme is provided, `https` is assumed.
|
111
121
|
// * The last segment of the URL's path must represent the fully
|
112
122
|
// qualified name of the type (as in `path/google.protobuf.Duration`).
|
113
123
|
// The name should be in a canonical form (e.g., leading "." is
|
@@ -120,7 +130,7 @@ message Any {
|
|
120
130
|
// on changes to types. (Use versioned type names to manage
|
121
131
|
// breaking changes.)
|
122
132
|
//
|
123
|
-
//
|
133
|
+
// Schemes other than `http`, `https` (or the empty scheme) might be
|
124
134
|
// used with implementation specific semantics.
|
125
135
|
//
|
126
136
|
string type_url = 1;
|
@@ -45,6 +45,7 @@ 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;
|
48
49
|
|
49
50
|
// descriptor.proto must be optimized for speed because reflection-based
|
50
51
|
// algorithms don't work during bootstrapping.
|
@@ -202,6 +203,7 @@ message FieldDescriptorProto {
|
|
202
203
|
// Describes a oneof.
|
203
204
|
message OneofDescriptorProto {
|
204
205
|
optional string name = 1;
|
206
|
+
optional OneofOptions options = 2;
|
205
207
|
}
|
206
208
|
|
207
209
|
// Describes an enum type.
|
@@ -538,6 +540,14 @@ message FieldOptions {
|
|
538
540
|
extensions 1000 to max;
|
539
541
|
}
|
540
542
|
|
543
|
+
message OneofOptions {
|
544
|
+
// The parser stores options it doesn't recognize here. See above.
|
545
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
546
|
+
|
547
|
+
// Clients can define custom options in extensions of this message. See above.
|
548
|
+
extensions 1000 to max;
|
549
|
+
}
|
550
|
+
|
541
551
|
message EnumOptions {
|
542
552
|
|
543
553
|
// Set this option to true to allow mapping different tag names to the same
|
@@ -107,6 +107,58 @@ option java_generate_equals_and_hash = true;
|
|
107
107
|
// describe the updated values, the API ignores the values of all
|
108
108
|
// fields not covered by the mask.
|
109
109
|
//
|
110
|
+
// If a repeated field is specified for an update operation, the existing
|
111
|
+
// 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 field
|
113
|
+
// mask.
|
114
|
+
//
|
115
|
+
// If a sub-message is specified in the last position of the field mask for an
|
116
|
+
// update operation, then the existing sub-message in the target resource is
|
117
|
+
// overwritten. Given the target message:
|
118
|
+
//
|
119
|
+
// f {
|
120
|
+
// b {
|
121
|
+
// d : 1
|
122
|
+
// x : 2
|
123
|
+
// }
|
124
|
+
// c : 1
|
125
|
+
// }
|
126
|
+
//
|
127
|
+
// And an update message:
|
128
|
+
//
|
129
|
+
// f {
|
130
|
+
// b {
|
131
|
+
// d : 10
|
132
|
+
// }
|
133
|
+
// }
|
134
|
+
//
|
135
|
+
// then if the field mask is:
|
136
|
+
//
|
137
|
+
// paths: "f.b"
|
138
|
+
//
|
139
|
+
// then the result will be:
|
140
|
+
//
|
141
|
+
// f {
|
142
|
+
// b {
|
143
|
+
// d : 10
|
144
|
+
// }
|
145
|
+
// c : 1
|
146
|
+
// }
|
147
|
+
//
|
148
|
+
// However, if the update mask was:
|
149
|
+
//
|
150
|
+
// paths: "f.b.d"
|
151
|
+
//
|
152
|
+
// then the result would be:
|
153
|
+
//
|
154
|
+
// f {
|
155
|
+
// b {
|
156
|
+
// d : 10
|
157
|
+
// x : 2
|
158
|
+
// }
|
159
|
+
// c : 1
|
160
|
+
// }
|
161
|
+
//
|
110
162
|
// In order to reset a field's value to the default, the field must
|
111
163
|
// be in the mask and set to the default value in the provided resource.
|
112
164
|
// Hence, in order to reset all fields of a resource, provide a default
|
@@ -43,6 +43,6 @@ option objc_class_prefix = "GPB";
|
|
43
43
|
// protobuf element, like the file in which it is defined.
|
44
44
|
message SourceContext {
|
45
45
|
// The path-qualified name of the .proto file that contained the associated
|
46
|
-
// protobuf element. For example: `"google/protobuf/
|
46
|
+
// protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
47
47
|
string file_name = 1;
|
48
48
|
}
|
Binary file
|
data/bin/x86_64-macos/protoc
CHANGED
Binary file
|
@@ -65,6 +65,16 @@ option objc_class_prefix = "GPB";
|
|
65
65
|
// foo = any.unpack(Foo.class);
|
66
66
|
// }
|
67
67
|
//
|
68
|
+
// Example 3: Pack and unpack a message in Python.
|
69
|
+
//
|
70
|
+
// foo = Foo(...)
|
71
|
+
// any = Any()
|
72
|
+
// any.Pack(foo)
|
73
|
+
// ...
|
74
|
+
// if any.Is(Foo.DESCRIPTOR):
|
75
|
+
// any.Unpack(foo)
|
76
|
+
// ...
|
77
|
+
//
|
68
78
|
// The pack methods provided by protobuf library will by default use
|
69
79
|
// 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
70
80
|
// methods only use the fully qualified type name after the last '/'
|
@@ -104,10 +114,10 @@ message Any {
|
|
104
114
|
// A URL/resource name whose content describes the type of the
|
105
115
|
// serialized protocol buffer message.
|
106
116
|
//
|
107
|
-
// For URLs which use the
|
117
|
+
// For URLs which use the scheme `http`, `https`, or no scheme, the
|
108
118
|
// following restrictions and interpretations apply:
|
109
119
|
//
|
110
|
-
// * If no
|
120
|
+
// * If no scheme is provided, `https` is assumed.
|
111
121
|
// * The last segment of the URL's path must represent the fully
|
112
122
|
// qualified name of the type (as in `path/google.protobuf.Duration`).
|
113
123
|
// The name should be in a canonical form (e.g., leading "." is
|
@@ -120,7 +130,7 @@ message Any {
|
|
120
130
|
// on changes to types. (Use versioned type names to manage
|
121
131
|
// breaking changes.)
|
122
132
|
//
|
123
|
-
//
|
133
|
+
// Schemes other than `http`, `https` (or the empty scheme) might be
|
124
134
|
// used with implementation specific semantics.
|
125
135
|
//
|
126
136
|
string type_url = 1;
|
@@ -45,6 +45,7 @@ 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;
|
48
49
|
|
49
50
|
// descriptor.proto must be optimized for speed because reflection-based
|
50
51
|
// algorithms don't work during bootstrapping.
|
@@ -202,6 +203,7 @@ message FieldDescriptorProto {
|
|
202
203
|
// Describes a oneof.
|
203
204
|
message OneofDescriptorProto {
|
204
205
|
optional string name = 1;
|
206
|
+
optional OneofOptions options = 2;
|
205
207
|
}
|
206
208
|
|
207
209
|
// Describes an enum type.
|
@@ -538,6 +540,14 @@ message FieldOptions {
|
|
538
540
|
extensions 1000 to max;
|
539
541
|
}
|
540
542
|
|
543
|
+
message OneofOptions {
|
544
|
+
// The parser stores options it doesn't recognize here. See above.
|
545
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
546
|
+
|
547
|
+
// Clients can define custom options in extensions of this message. See above.
|
548
|
+
extensions 1000 to max;
|
549
|
+
}
|
550
|
+
|
541
551
|
message EnumOptions {
|
542
552
|
|
543
553
|
// Set this option to true to allow mapping different tag names to the same
|
@@ -107,6 +107,58 @@ option java_generate_equals_and_hash = true;
|
|
107
107
|
// describe the updated values, the API ignores the values of all
|
108
108
|
// fields not covered by the mask.
|
109
109
|
//
|
110
|
+
// If a repeated field is specified for an update operation, the existing
|
111
|
+
// 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 field
|
113
|
+
// mask.
|
114
|
+
//
|
115
|
+
// If a sub-message is specified in the last position of the field mask for an
|
116
|
+
// update operation, then the existing sub-message in the target resource is
|
117
|
+
// overwritten. Given the target message:
|
118
|
+
//
|
119
|
+
// f {
|
120
|
+
// b {
|
121
|
+
// d : 1
|
122
|
+
// x : 2
|
123
|
+
// }
|
124
|
+
// c : 1
|
125
|
+
// }
|
126
|
+
//
|
127
|
+
// And an update message:
|
128
|
+
//
|
129
|
+
// f {
|
130
|
+
// b {
|
131
|
+
// d : 10
|
132
|
+
// }
|
133
|
+
// }
|
134
|
+
//
|
135
|
+
// then if the field mask is:
|
136
|
+
//
|
137
|
+
// paths: "f.b"
|
138
|
+
//
|
139
|
+
// then the result will be:
|
140
|
+
//
|
141
|
+
// f {
|
142
|
+
// b {
|
143
|
+
// d : 10
|
144
|
+
// }
|
145
|
+
// c : 1
|
146
|
+
// }
|
147
|
+
//
|
148
|
+
// However, if the update mask was:
|
149
|
+
//
|
150
|
+
// paths: "f.b.d"
|
151
|
+
//
|
152
|
+
// then the result would be:
|
153
|
+
//
|
154
|
+
// f {
|
155
|
+
// b {
|
156
|
+
// d : 10
|
157
|
+
// x : 2
|
158
|
+
// }
|
159
|
+
// c : 1
|
160
|
+
// }
|
161
|
+
//
|
110
162
|
// In order to reset a field's value to the default, the field must
|
111
163
|
// be in the mask and set to the default value in the provided resource.
|
112
164
|
// Hence, in order to reset all fields of a resource, provide a default
|
@@ -43,6 +43,6 @@ option objc_class_prefix = "GPB";
|
|
43
43
|
// protobuf element, like the file in which it is defined.
|
44
44
|
message SourceContext {
|
45
45
|
// The path-qualified name of the .proto file that contained the associated
|
46
|
-
// protobuf element. For example: `"google/protobuf/
|
46
|
+
// protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
47
47
|
string file_name = 1;
|
48
48
|
}
|
Binary file
|
Binary file
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.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: 2016-
|
11
|
+
date: 2016-08-11 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
|
15
15
|
executables:
|
16
|
-
- grpc_tools_ruby_protoc
|
17
|
-
- grpc_tools_ruby_protoc_plugin
|
16
|
+
- grpc_tools_ruby_protoc
|
17
|
+
- grpc_tools_ruby_protoc_plugin
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- README.md
|
22
|
-
- bin/grpc_tools_ruby_protoc
|
23
|
-
- bin/grpc_tools_ruby_protoc_plugin
|
22
|
+
- bin/grpc_tools_ruby_protoc
|
23
|
+
- bin/grpc_tools_ruby_protoc_plugin
|
24
24
|
- bin/x86-linux/google/protobuf/any.proto
|
25
25
|
- bin/x86-linux/google/protobuf/api.proto
|
26
26
|
- bin/x86-linux/google/protobuf/compiler/plugin.proto
|