grpc-tools 1.34.0 → 1.42.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/x86-linux/google/protobuf/any.proto +6 -3
- data/bin/x86-linux/google/protobuf/api.proto +2 -4
- data/bin/x86-linux/google/protobuf/compiler/plugin.proto +6 -1
- data/bin/x86-linux/google/protobuf/descriptor.proto +11 -9
- data/bin/x86-linux/google/protobuf/duration.proto +1 -1
- data/bin/x86-linux/google/protobuf/empty.proto +1 -1
- data/bin/x86-linux/google/protobuf/field_mask.proto +1 -1
- data/bin/x86-linux/google/protobuf/source_context.proto +1 -1
- data/bin/x86-linux/google/protobuf/struct.proto +1 -1
- data/bin/x86-linux/google/protobuf/timestamp.proto +11 -2
- data/bin/x86-linux/google/protobuf/type.proto +2 -2
- data/bin/x86-linux/google/protobuf/wrappers.proto +1 -1
- data/bin/x86-linux/grpc_ruby_plugin +0 -0
- data/bin/x86-linux/protoc +0 -0
- data/bin/x86-windows/google/protobuf/any.proto +6 -3
- data/bin/x86-windows/google/protobuf/api.proto +2 -4
- data/bin/x86-windows/google/protobuf/compiler/plugin.proto +6 -1
- data/bin/x86-windows/google/protobuf/descriptor.proto +11 -9
- data/bin/x86-windows/google/protobuf/duration.proto +1 -1
- data/bin/x86-windows/google/protobuf/empty.proto +1 -1
- data/bin/x86-windows/google/protobuf/field_mask.proto +1 -1
- data/bin/x86-windows/google/protobuf/source_context.proto +1 -1
- data/bin/x86-windows/google/protobuf/struct.proto +1 -1
- data/bin/x86-windows/google/protobuf/timestamp.proto +11 -2
- data/bin/x86-windows/google/protobuf/type.proto +2 -2
- data/bin/x86-windows/google/protobuf/wrappers.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 +6 -3
- data/bin/x86_64-linux/google/protobuf/api.proto +2 -4
- data/bin/x86_64-linux/google/protobuf/compiler/plugin.proto +6 -1
- data/bin/x86_64-linux/google/protobuf/descriptor.proto +11 -9
- data/bin/x86_64-linux/google/protobuf/duration.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/empty.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/field_mask.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/source_context.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/struct.proto +1 -1
- data/bin/x86_64-linux/google/protobuf/timestamp.proto +11 -2
- data/bin/x86_64-linux/google/protobuf/type.proto +2 -2
- data/bin/x86_64-linux/google/protobuf/wrappers.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 +6 -3
- data/bin/x86_64-macos/google/protobuf/api.proto +2 -4
- data/bin/x86_64-macos/google/protobuf/compiler/plugin.proto +6 -1
- data/bin/x86_64-macos/google/protobuf/descriptor.proto +11 -9
- data/bin/x86_64-macos/google/protobuf/duration.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/empty.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/field_mask.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/source_context.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/struct.proto +1 -1
- data/bin/x86_64-macos/google/protobuf/timestamp.proto +11 -2
- data/bin/x86_64-macos/google/protobuf/type.proto +2 -2
- data/bin/x86_64-macos/google/protobuf/wrappers.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 +6 -3
- data/bin/x86_64-windows/google/protobuf/api.proto +2 -4
- data/bin/x86_64-windows/google/protobuf/compiler/plugin.proto +6 -1
- data/bin/x86_64-windows/google/protobuf/descriptor.proto +11 -9
- data/bin/x86_64-windows/google/protobuf/duration.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/empty.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/field_mask.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/source_context.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/struct.proto +1 -1
- data/bin/x86_64-windows/google/protobuf/timestamp.proto +11 -2
- data/bin/x86_64-windows/google/protobuf/type.proto +2 -2
- data/bin/x86_64-windows/google/protobuf/wrappers.proto +1 -1
- data/bin/x86_64-windows/grpc_ruby_plugin.exe +0 -0
- data/bin/x86_64-windows/protoc.exe +0 -0
- data/platform_check.rb +6 -1
- data/version.rb +1 -1
- metadata +2 -16
- data/bin/x86-macos/google/protobuf/any.proto +0 -155
- data/bin/x86-macos/google/protobuf/api.proto +0 -210
- data/bin/x86-macos/google/protobuf/compiler/plugin.proto +0 -178
- data/bin/x86-macos/google/protobuf/descriptor.proto +0 -909
- data/bin/x86-macos/google/protobuf/duration.proto +0 -116
- data/bin/x86-macos/google/protobuf/empty.proto +0 -52
- data/bin/x86-macos/google/protobuf/field_mask.proto +0 -245
- data/bin/x86-macos/google/protobuf/source_context.proto +0 -48
- data/bin/x86-macos/google/protobuf/struct.proto +0 -95
- data/bin/x86-macos/google/protobuf/timestamp.proto +0 -138
- data/bin/x86-macos/google/protobuf/type.proto +0 -187
- data/bin/x86-macos/google/protobuf/wrappers.proto +0 -123
- data/bin/x86-macos/grpc_ruby_plugin +0 -0
- data/bin/x86-macos/protoc +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60d9a98ed0133a881d37015dba8366e237da751be6b9089c3bc2f848f2840f5c
|
4
|
+
data.tar.gz: 4619974ab15028383c6117e2aa6a1a8b5530dd9695ae8c4272f0770c64d0e94a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95412aa5499cea8bf59896d961035325faa822fb1ba498e414b3f4ace775a187f30df3d5c3217a4bb268b57d281cbf4a6c7d0bedb2602b8bcdf0116cfa313b31
|
7
|
+
data.tar.gz: d38556b54714270fab02a3061ba7528b6efd3e1d43b8a68d16164892ace7ba74d58c933a475f28299ac8c846b7655e73cc07fd058af79a544c89c1696f4f8c17
|
@@ -33,7 +33,7 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
-
option go_package = "
|
36
|
+
option go_package = "google.golang.org/protobuf/types/known/anypb";
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "AnyProto";
|
39
39
|
option java_multiple_files = true;
|
@@ -77,10 +77,13 @@ option objc_class_prefix = "GPB";
|
|
77
77
|
// Example 4: Pack and unpack a message in Go
|
78
78
|
//
|
79
79
|
// foo := &pb.Foo{...}
|
80
|
-
// any, err :=
|
80
|
+
// any, err := anypb.New(foo)
|
81
|
+
// if err != nil {
|
82
|
+
// ...
|
83
|
+
// }
|
81
84
|
// ...
|
82
85
|
// foo := &pb.Foo{}
|
83
|
-
// if err :=
|
86
|
+
// if err := any.UnmarshalTo(foo); err != nil {
|
84
87
|
// ...
|
85
88
|
// }
|
86
89
|
//
|
@@ -40,7 +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/
|
43
|
+
option go_package = "google.golang.org/protobuf/types/known/apipb";
|
44
44
|
|
45
45
|
// Api is a light-weight descriptor for an API Interface.
|
46
46
|
//
|
@@ -52,7 +52,6 @@ option go_package = "google.golang.org/genproto/protobuf/api;api";
|
|
52
52
|
// this message itself. See https://cloud.google.com/apis/design/glossary for
|
53
53
|
// detailed terminology.
|
54
54
|
message Api {
|
55
|
-
|
56
55
|
// The fully qualified name of this interface, including package name
|
57
56
|
// followed by the interface's simple name.
|
58
57
|
string name = 1;
|
@@ -99,7 +98,6 @@ message Api {
|
|
99
98
|
|
100
99
|
// Method represents a method of an API interface.
|
101
100
|
message Method {
|
102
|
-
|
103
101
|
// The simple name of this method.
|
104
102
|
string name = 1;
|
105
103
|
|
@@ -169,7 +167,7 @@ message Method {
|
|
169
167
|
// The mixin construct implies that all methods in `AccessControl` are
|
170
168
|
// also declared with same name and request/response types in
|
171
169
|
// `Storage`. A documentation generator or annotation processor will
|
172
|
-
// see the effective `Storage.GetAcl` method after
|
170
|
+
// see the effective `Storage.GetAcl` method after inheriting
|
173
171
|
// documentation and annotations as follows:
|
174
172
|
//
|
175
173
|
// service Storage {
|
@@ -50,7 +50,7 @@ package google.protobuf.compiler;
|
|
50
50
|
option java_package = "com.google.protobuf.compiler";
|
51
51
|
option java_outer_classname = "PluginProtos";
|
52
52
|
|
53
|
-
option go_package = "
|
53
|
+
option go_package = "google.golang.org/protobuf/types/pluginpb";
|
54
54
|
|
55
55
|
import "google/protobuf/descriptor.proto";
|
56
56
|
|
@@ -173,6 +173,11 @@ message CodeGeneratorResponse {
|
|
173
173
|
|
174
174
|
// The file contents.
|
175
175
|
optional string content = 15;
|
176
|
+
|
177
|
+
// Information describing the file content being inserted. If an insertion
|
178
|
+
// point is used, this information will be appropriately offset and inserted
|
179
|
+
// into the code generation metadata for the generated files.
|
180
|
+
optional GeneratedCodeInfo generated_code_info = 16;
|
176
181
|
}
|
177
182
|
repeated File file = 15;
|
178
183
|
}
|
@@ -41,7 +41,7 @@ syntax = "proto2";
|
|
41
41
|
|
42
42
|
package google.protobuf;
|
43
43
|
|
44
|
-
option go_package = "
|
44
|
+
option go_package = "google.golang.org/protobuf/types/descriptorpb";
|
45
45
|
option java_package = "com.google.protobuf";
|
46
46
|
option java_outer_classname = "DescriptorProtos";
|
47
47
|
option csharp_namespace = "Google.Protobuf.Reflection";
|
@@ -348,17 +348,17 @@ message FileOptions {
|
|
348
348
|
optional string java_package = 1;
|
349
349
|
|
350
350
|
|
351
|
-
//
|
352
|
-
//
|
353
|
-
//
|
354
|
-
//
|
355
|
-
//
|
351
|
+
// Controls the name of the wrapper Java class generated for the .proto file.
|
352
|
+
// That class will always contain the .proto file's getDescriptor() method as
|
353
|
+
// well as any top-level extensions defined in the .proto file.
|
354
|
+
// If java_multiple_files is disabled, then all the other classes from the
|
355
|
+
// .proto file will be nested inside the single wrapper outer class.
|
356
356
|
optional string java_outer_classname = 8;
|
357
357
|
|
358
|
-
// If
|
358
|
+
// If enabled, then the Java code generator will generate a separate .java
|
359
359
|
// file for each top-level message, enum, and service defined in the .proto
|
360
|
-
// file. Thus, these types will *not* be nested inside the
|
361
|
-
// named by java_outer_classname. However, the
|
360
|
+
// file. Thus, these types will *not* be nested inside the wrapper class
|
361
|
+
// named by java_outer_classname. However, the wrapper class will still be
|
362
362
|
// generated to contain the file's getDescriptor() method as well as any
|
363
363
|
// top-level extensions defined in the file.
|
364
364
|
optional bool java_multiple_files = 10 [default = false];
|
@@ -496,6 +496,8 @@ message MessageOptions {
|
|
496
496
|
// this is a formalization for deprecating messages.
|
497
497
|
optional bool deprecated = 3 [default = false];
|
498
498
|
|
499
|
+
reserved 4, 5, 6;
|
500
|
+
|
499
501
|
// Whether the message is an automatically generated map entry type for the
|
500
502
|
// maps field.
|
501
503
|
//
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/durationpb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "DurationProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -33,7 +33,7 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
-
option go_package = "
|
36
|
+
option go_package = "google.golang.org/protobuf/types/known/emptypb";
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "EmptyProto";
|
39
39
|
option java_multiple_files = true;
|
@@ -37,7 +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/
|
40
|
+
option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb";
|
41
41
|
option cc_enable_arenas = true;
|
42
42
|
|
43
43
|
// `FieldMask` represents a set of symbolic field paths, for example:
|
@@ -37,7 +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/
|
40
|
+
option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb";
|
41
41
|
|
42
42
|
// `SourceContext` represents information about the source of a
|
43
43
|
// protobuf element, like the file in which it is defined.
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/structpb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "StructProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/timestamppb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "TimestampProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -91,7 +91,16 @@ option objc_class_prefix = "GPB";
|
|
91
91
|
// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
92
92
|
//
|
93
93
|
//
|
94
|
-
// Example 5: Compute Timestamp from
|
94
|
+
// Example 5: Compute Timestamp from Java `Instant.now()`.
|
95
|
+
//
|
96
|
+
// Instant now = Instant.now();
|
97
|
+
//
|
98
|
+
// Timestamp timestamp =
|
99
|
+
// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
100
|
+
// .setNanos(now.getNano()).build();
|
101
|
+
//
|
102
|
+
//
|
103
|
+
// Example 6: Compute Timestamp from current time in Python.
|
95
104
|
//
|
96
105
|
// timestamp = Timestamp()
|
97
106
|
// timestamp.GetCurrentTime()
|
@@ -41,7 +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/
|
44
|
+
option go_package = "google.golang.org/protobuf/types/known/typepb";
|
45
45
|
|
46
46
|
// A protocol buffer message type.
|
47
47
|
message Type {
|
@@ -113,7 +113,7 @@ message Field {
|
|
113
113
|
CARDINALITY_REQUIRED = 2;
|
114
114
|
// For repeated fields.
|
115
115
|
CARDINALITY_REPEATED = 3;
|
116
|
-
}
|
116
|
+
}
|
117
117
|
|
118
118
|
// The field type.
|
119
119
|
Kind kind = 1;
|
@@ -44,7 +44,7 @@ package google.protobuf;
|
|
44
44
|
|
45
45
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
46
46
|
option cc_enable_arenas = true;
|
47
|
-
option go_package = "
|
47
|
+
option go_package = "google.golang.org/protobuf/types/known/wrapperspb";
|
48
48
|
option java_package = "com.google.protobuf";
|
49
49
|
option java_outer_classname = "WrappersProto";
|
50
50
|
option java_multiple_files = true;
|
Binary file
|
data/bin/x86-linux/protoc
CHANGED
Binary file
|
@@ -33,7 +33,7 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
-
option go_package = "
|
36
|
+
option go_package = "google.golang.org/protobuf/types/known/anypb";
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "AnyProto";
|
39
39
|
option java_multiple_files = true;
|
@@ -77,10 +77,13 @@ option objc_class_prefix = "GPB";
|
|
77
77
|
// Example 4: Pack and unpack a message in Go
|
78
78
|
//
|
79
79
|
// foo := &pb.Foo{...}
|
80
|
-
// any, err :=
|
80
|
+
// any, err := anypb.New(foo)
|
81
|
+
// if err != nil {
|
82
|
+
// ...
|
83
|
+
// }
|
81
84
|
// ...
|
82
85
|
// foo := &pb.Foo{}
|
83
|
-
// if err :=
|
86
|
+
// if err := any.UnmarshalTo(foo); err != nil {
|
84
87
|
// ...
|
85
88
|
// }
|
86
89
|
//
|
@@ -40,7 +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/
|
43
|
+
option go_package = "google.golang.org/protobuf/types/known/apipb";
|
44
44
|
|
45
45
|
// Api is a light-weight descriptor for an API Interface.
|
46
46
|
//
|
@@ -52,7 +52,6 @@ option go_package = "google.golang.org/genproto/protobuf/api;api";
|
|
52
52
|
// this message itself. See https://cloud.google.com/apis/design/glossary for
|
53
53
|
// detailed terminology.
|
54
54
|
message Api {
|
55
|
-
|
56
55
|
// The fully qualified name of this interface, including package name
|
57
56
|
// followed by the interface's simple name.
|
58
57
|
string name = 1;
|
@@ -99,7 +98,6 @@ message Api {
|
|
99
98
|
|
100
99
|
// Method represents a method of an API interface.
|
101
100
|
message Method {
|
102
|
-
|
103
101
|
// The simple name of this method.
|
104
102
|
string name = 1;
|
105
103
|
|
@@ -169,7 +167,7 @@ message Method {
|
|
169
167
|
// The mixin construct implies that all methods in `AccessControl` are
|
170
168
|
// also declared with same name and request/response types in
|
171
169
|
// `Storage`. A documentation generator or annotation processor will
|
172
|
-
// see the effective `Storage.GetAcl` method after
|
170
|
+
// see the effective `Storage.GetAcl` method after inheriting
|
173
171
|
// documentation and annotations as follows:
|
174
172
|
//
|
175
173
|
// service Storage {
|
@@ -50,7 +50,7 @@ package google.protobuf.compiler;
|
|
50
50
|
option java_package = "com.google.protobuf.compiler";
|
51
51
|
option java_outer_classname = "PluginProtos";
|
52
52
|
|
53
|
-
option go_package = "
|
53
|
+
option go_package = "google.golang.org/protobuf/types/pluginpb";
|
54
54
|
|
55
55
|
import "google/protobuf/descriptor.proto";
|
56
56
|
|
@@ -173,6 +173,11 @@ message CodeGeneratorResponse {
|
|
173
173
|
|
174
174
|
// The file contents.
|
175
175
|
optional string content = 15;
|
176
|
+
|
177
|
+
// Information describing the file content being inserted. If an insertion
|
178
|
+
// point is used, this information will be appropriately offset and inserted
|
179
|
+
// into the code generation metadata for the generated files.
|
180
|
+
optional GeneratedCodeInfo generated_code_info = 16;
|
176
181
|
}
|
177
182
|
repeated File file = 15;
|
178
183
|
}
|
@@ -41,7 +41,7 @@ syntax = "proto2";
|
|
41
41
|
|
42
42
|
package google.protobuf;
|
43
43
|
|
44
|
-
option go_package = "
|
44
|
+
option go_package = "google.golang.org/protobuf/types/descriptorpb";
|
45
45
|
option java_package = "com.google.protobuf";
|
46
46
|
option java_outer_classname = "DescriptorProtos";
|
47
47
|
option csharp_namespace = "Google.Protobuf.Reflection";
|
@@ -348,17 +348,17 @@ message FileOptions {
|
|
348
348
|
optional string java_package = 1;
|
349
349
|
|
350
350
|
|
351
|
-
//
|
352
|
-
//
|
353
|
-
//
|
354
|
-
//
|
355
|
-
//
|
351
|
+
// Controls the name of the wrapper Java class generated for the .proto file.
|
352
|
+
// That class will always contain the .proto file's getDescriptor() method as
|
353
|
+
// well as any top-level extensions defined in the .proto file.
|
354
|
+
// If java_multiple_files is disabled, then all the other classes from the
|
355
|
+
// .proto file will be nested inside the single wrapper outer class.
|
356
356
|
optional string java_outer_classname = 8;
|
357
357
|
|
358
|
-
// If
|
358
|
+
// If enabled, then the Java code generator will generate a separate .java
|
359
359
|
// file for each top-level message, enum, and service defined in the .proto
|
360
|
-
// file. Thus, these types will *not* be nested inside the
|
361
|
-
// named by java_outer_classname. However, the
|
360
|
+
// file. Thus, these types will *not* be nested inside the wrapper class
|
361
|
+
// named by java_outer_classname. However, the wrapper class will still be
|
362
362
|
// generated to contain the file's getDescriptor() method as well as any
|
363
363
|
// top-level extensions defined in the file.
|
364
364
|
optional bool java_multiple_files = 10 [default = false];
|
@@ -496,6 +496,8 @@ message MessageOptions {
|
|
496
496
|
// this is a formalization for deprecating messages.
|
497
497
|
optional bool deprecated = 3 [default = false];
|
498
498
|
|
499
|
+
reserved 4, 5, 6;
|
500
|
+
|
499
501
|
// Whether the message is an automatically generated map entry type for the
|
500
502
|
// maps field.
|
501
503
|
//
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/durationpb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "DurationProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -33,7 +33,7 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
-
option go_package = "
|
36
|
+
option go_package = "google.golang.org/protobuf/types/known/emptypb";
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "EmptyProto";
|
39
39
|
option java_multiple_files = true;
|
@@ -37,7 +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/
|
40
|
+
option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb";
|
41
41
|
option cc_enable_arenas = true;
|
42
42
|
|
43
43
|
// `FieldMask` represents a set of symbolic field paths, for example:
|
@@ -37,7 +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/
|
40
|
+
option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb";
|
41
41
|
|
42
42
|
// `SourceContext` represents information about the source of a
|
43
43
|
// protobuf element, like the file in which it is defined.
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/structpb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "StructProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/timestamppb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "TimestampProto";
|
40
40
|
option java_multiple_files = true;
|
@@ -91,7 +91,16 @@ option objc_class_prefix = "GPB";
|
|
91
91
|
// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
92
92
|
//
|
93
93
|
//
|
94
|
-
// Example 5: Compute Timestamp from
|
94
|
+
// Example 5: Compute Timestamp from Java `Instant.now()`.
|
95
|
+
//
|
96
|
+
// Instant now = Instant.now();
|
97
|
+
//
|
98
|
+
// Timestamp timestamp =
|
99
|
+
// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
100
|
+
// .setNanos(now.getNano()).build();
|
101
|
+
//
|
102
|
+
//
|
103
|
+
// Example 6: Compute Timestamp from current time in Python.
|
95
104
|
//
|
96
105
|
// timestamp = Timestamp()
|
97
106
|
// timestamp.GetCurrentTime()
|
@@ -41,7 +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/
|
44
|
+
option go_package = "google.golang.org/protobuf/types/known/typepb";
|
45
45
|
|
46
46
|
// A protocol buffer message type.
|
47
47
|
message Type {
|
@@ -113,7 +113,7 @@ message Field {
|
|
113
113
|
CARDINALITY_REQUIRED = 2;
|
114
114
|
// For repeated fields.
|
115
115
|
CARDINALITY_REPEATED = 3;
|
116
|
-
}
|
116
|
+
}
|
117
117
|
|
118
118
|
// The field type.
|
119
119
|
Kind kind = 1;
|
@@ -44,7 +44,7 @@ package google.protobuf;
|
|
44
44
|
|
45
45
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
46
46
|
option cc_enable_arenas = true;
|
47
|
-
option go_package = "
|
47
|
+
option go_package = "google.golang.org/protobuf/types/known/wrapperspb";
|
48
48
|
option java_package = "com.google.protobuf";
|
49
49
|
option java_outer_classname = "WrappersProto";
|
50
50
|
option java_multiple_files = true;
|
Binary file
|
data/bin/x86-windows/protoc.exe
CHANGED
Binary file
|
@@ -33,7 +33,7 @@ syntax = "proto3";
|
|
33
33
|
package google.protobuf;
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
|
-
option go_package = "
|
36
|
+
option go_package = "google.golang.org/protobuf/types/known/anypb";
|
37
37
|
option java_package = "com.google.protobuf";
|
38
38
|
option java_outer_classname = "AnyProto";
|
39
39
|
option java_multiple_files = true;
|
@@ -77,10 +77,13 @@ option objc_class_prefix = "GPB";
|
|
77
77
|
// Example 4: Pack and unpack a message in Go
|
78
78
|
//
|
79
79
|
// foo := &pb.Foo{...}
|
80
|
-
// any, err :=
|
80
|
+
// any, err := anypb.New(foo)
|
81
|
+
// if err != nil {
|
82
|
+
// ...
|
83
|
+
// }
|
81
84
|
// ...
|
82
85
|
// foo := &pb.Foo{}
|
83
|
-
// if err :=
|
86
|
+
// if err := any.UnmarshalTo(foo); err != nil {
|
84
87
|
// ...
|
85
88
|
// }
|
86
89
|
//
|
@@ -40,7 +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/
|
43
|
+
option go_package = "google.golang.org/protobuf/types/known/apipb";
|
44
44
|
|
45
45
|
// Api is a light-weight descriptor for an API Interface.
|
46
46
|
//
|
@@ -52,7 +52,6 @@ option go_package = "google.golang.org/genproto/protobuf/api;api";
|
|
52
52
|
// this message itself. See https://cloud.google.com/apis/design/glossary for
|
53
53
|
// detailed terminology.
|
54
54
|
message Api {
|
55
|
-
|
56
55
|
// The fully qualified name of this interface, including package name
|
57
56
|
// followed by the interface's simple name.
|
58
57
|
string name = 1;
|
@@ -99,7 +98,6 @@ message Api {
|
|
99
98
|
|
100
99
|
// Method represents a method of an API interface.
|
101
100
|
message Method {
|
102
|
-
|
103
101
|
// The simple name of this method.
|
104
102
|
string name = 1;
|
105
103
|
|
@@ -169,7 +167,7 @@ message Method {
|
|
169
167
|
// The mixin construct implies that all methods in `AccessControl` are
|
170
168
|
// also declared with same name and request/response types in
|
171
169
|
// `Storage`. A documentation generator or annotation processor will
|
172
|
-
// see the effective `Storage.GetAcl` method after
|
170
|
+
// see the effective `Storage.GetAcl` method after inheriting
|
173
171
|
// documentation and annotations as follows:
|
174
172
|
//
|
175
173
|
// service Storage {
|
@@ -50,7 +50,7 @@ package google.protobuf.compiler;
|
|
50
50
|
option java_package = "com.google.protobuf.compiler";
|
51
51
|
option java_outer_classname = "PluginProtos";
|
52
52
|
|
53
|
-
option go_package = "
|
53
|
+
option go_package = "google.golang.org/protobuf/types/pluginpb";
|
54
54
|
|
55
55
|
import "google/protobuf/descriptor.proto";
|
56
56
|
|
@@ -173,6 +173,11 @@ message CodeGeneratorResponse {
|
|
173
173
|
|
174
174
|
// The file contents.
|
175
175
|
optional string content = 15;
|
176
|
+
|
177
|
+
// Information describing the file content being inserted. If an insertion
|
178
|
+
// point is used, this information will be appropriately offset and inserted
|
179
|
+
// into the code generation metadata for the generated files.
|
180
|
+
optional GeneratedCodeInfo generated_code_info = 16;
|
176
181
|
}
|
177
182
|
repeated File file = 15;
|
178
183
|
}
|
@@ -41,7 +41,7 @@ syntax = "proto2";
|
|
41
41
|
|
42
42
|
package google.protobuf;
|
43
43
|
|
44
|
-
option go_package = "
|
44
|
+
option go_package = "google.golang.org/protobuf/types/descriptorpb";
|
45
45
|
option java_package = "com.google.protobuf";
|
46
46
|
option java_outer_classname = "DescriptorProtos";
|
47
47
|
option csharp_namespace = "Google.Protobuf.Reflection";
|
@@ -348,17 +348,17 @@ message FileOptions {
|
|
348
348
|
optional string java_package = 1;
|
349
349
|
|
350
350
|
|
351
|
-
//
|
352
|
-
//
|
353
|
-
//
|
354
|
-
//
|
355
|
-
//
|
351
|
+
// Controls the name of the wrapper Java class generated for the .proto file.
|
352
|
+
// That class will always contain the .proto file's getDescriptor() method as
|
353
|
+
// well as any top-level extensions defined in the .proto file.
|
354
|
+
// If java_multiple_files is disabled, then all the other classes from the
|
355
|
+
// .proto file will be nested inside the single wrapper outer class.
|
356
356
|
optional string java_outer_classname = 8;
|
357
357
|
|
358
|
-
// If
|
358
|
+
// If enabled, then the Java code generator will generate a separate .java
|
359
359
|
// file for each top-level message, enum, and service defined in the .proto
|
360
|
-
// file. Thus, these types will *not* be nested inside the
|
361
|
-
// named by java_outer_classname. However, the
|
360
|
+
// file. Thus, these types will *not* be nested inside the wrapper class
|
361
|
+
// named by java_outer_classname. However, the wrapper class will still be
|
362
362
|
// generated to contain the file's getDescriptor() method as well as any
|
363
363
|
// top-level extensions defined in the file.
|
364
364
|
optional bool java_multiple_files = 10 [default = false];
|
@@ -496,6 +496,8 @@ message MessageOptions {
|
|
496
496
|
// this is a formalization for deprecating messages.
|
497
497
|
optional bool deprecated = 3 [default = false];
|
498
498
|
|
499
|
+
reserved 4, 5, 6;
|
500
|
+
|
499
501
|
// Whether the message is an automatically generated map entry type for the
|
500
502
|
// maps field.
|
501
503
|
//
|
@@ -34,7 +34,7 @@ package google.protobuf;
|
|
34
34
|
|
35
35
|
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
36
36
|
option cc_enable_arenas = true;
|
37
|
-
option go_package = "
|
37
|
+
option go_package = "google.golang.org/protobuf/types/known/durationpb";
|
38
38
|
option java_package = "com.google.protobuf";
|
39
39
|
option java_outer_classname = "DurationProto";
|
40
40
|
option java_multiple_files = true;
|