File tree Expand file tree Collapse file tree 15 files changed +49
-18
lines changed
Expand file tree Collapse file tree 15 files changed +49
-18
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ syntax = "proto3";
3333package google.protobuf ;
3434
3535option csharp_namespace = "Google.Protobuf.WellKnownTypes" ;
36- option go_package = "github.com/ golang/protobuf/ptypes/any " ;
36+ option go_package = "google. golang.org /protobuf/types/known/anypb " ;
3737option java_package = "com.google.protobuf" ;
3838option java_outer_classname = "AnyProto" ;
3939option java_multiple_files = true ;
@@ -77,10 +77,13 @@ option objc_class_prefix = "GPB";
7777// Example 4: Pack and unpack a message in Go
7878//
7979// foo := &pb.Foo{...}
80- // any, err := ptypes.MarshalAny(foo)
80+ // any, err := anypb.New(foo)
81+ // if err != nil {
82+ // ...
83+ // }
8184// ...
8285// foo := &pb.Foo{}
83- // if err := ptypes.UnmarshalAny(any, foo); err != nil {
86+ // if err := any.UnmarshalTo( foo); err != nil {
8487// ...
8588// }
8689//
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ option java_package = "com.google.protobuf";
4040option java_outer_classname = "ApiProto" ;
4141option java_multiple_files = true ;
4242option objc_class_prefix = "GPB" ;
43- option go_package = "google.golang.org/genproto/ protobuf/api;api " ;
43+ option go_package = "google.golang.org/protobuf/types/known/apipb " ;
4444
4545// Api is a light-weight descriptor for an API Interface.
4646//
@@ -52,7 +52,6 @@ option go_package = "google.golang.org/genproto/protobuf/api;api";
5252// this message itself. See https://cloud.google.com/apis/design/glossary for
5353// detailed terminology.
5454message Api {
55-
5655 // The fully qualified name of this interface, including package name
5756 // followed by the interface's simple name.
5857 string name = 1 ;
@@ -99,7 +98,6 @@ message Api {
9998
10099// Method represents a method of an API interface.
101100message Method {
102-
103101 // The simple name of this method.
104102 string name = 1 ;
105103
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ package google.protobuf.compiler;
5050option java_package = "com.google.protobuf.compiler" ;
5151option java_outer_classname = "PluginProtos" ;
5252
53- option go_package = "github.com/ golang/protobuf/protoc-gen-go/plugin;plugin_go " ;
53+ option go_package = "google. golang.org /protobuf/types/pluginpb " ;
5454
5555import "google/protobuf/descriptor.proto" ;
5656
@@ -173,6 +173,11 @@ message CodeGeneratorResponse {
173173
174174 // The file contents.
175175 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 ;
176181 }
177182 repeated File file = 15 ;
178183}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ syntax = "proto2";
4141
4242package google.protobuf ;
4343
44- option go_package = "github.com/ golang/protobuf/protoc-gen-go/descriptor;descriptor " ;
44+ option go_package = "google. golang.org /protobuf/types/descriptorpb " ;
4545option java_package = "com.google.protobuf" ;
4646option java_outer_classname = "DescriptorProtos" ;
4747option csharp_namespace = "Google.Protobuf.Reflection" ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ package google.protobuf;
3434
3535option csharp_namespace = "Google.Protobuf.WellKnownTypes" ;
3636option cc_enable_arenas = true ;
37- option go_package = "github.com/ golang/protobuf/ptypes/duration " ;
37+ option go_package = "google. golang.org /protobuf/types/known/durationpb " ;
3838option java_package = "com.google.protobuf" ;
3939option java_outer_classname = "DurationProto" ;
4040option java_multiple_files = true ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ syntax = "proto3";
3333package google.protobuf ;
3434
3535option csharp_namespace = "Google.Protobuf.WellKnownTypes" ;
36- option go_package = "github.com/ golang/protobuf/ptypes/empty " ;
36+ option go_package = "google. golang.org /protobuf/types/known/emptypb " ;
3737option java_package = "com.google.protobuf" ;
3838option java_outer_classname = "EmptyProto" ;
3939option java_multiple_files = true ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ option java_package = "com.google.protobuf";
3737option java_outer_classname = "FieldMaskProto" ;
3838option java_multiple_files = true ;
3939option objc_class_prefix = "GPB" ;
40- option go_package = "google.golang.org/genproto/ protobuf/field_mask;field_mask " ;
40+ option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb " ;
4141option cc_enable_arenas = true ;
4242
4343// `FieldMask` represents a set of symbolic field paths, for example:
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ option java_package = "com.google.protobuf";
3737option java_outer_classname = "SourceContextProto" ;
3838option java_multiple_files = true ;
3939option objc_class_prefix = "GPB" ;
40- option go_package = "google.golang.org/genproto/ protobuf/source_context;source_context " ;
40+ option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb " ;
4141
4242// `SourceContext` represents information about the source of a
4343// protobuf element, like the file in which it is defined.
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ package google.protobuf;
3434
3535option csharp_namespace = "Google.Protobuf.WellKnownTypes" ;
3636option cc_enable_arenas = true ;
37- option go_package = "github.com/ golang/protobuf/ptypes/struct; structpb" ;
37+ option go_package = "google. golang.org /protobuf/types/known/ structpb" ;
3838option java_package = "com.google.protobuf" ;
3939option java_outer_classname = "StructProto" ;
4040option java_multiple_files = true ;
Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ message TestAllTypesProto3 {
203203 float oneof_float = 117 ;
204204 double oneof_double = 118 ;
205205 NestedEnum oneof_enum = 119 ;
206+ google.protobuf.NullValue oneof_null_value = 120 ;
206207 }
207208
208209 // Well-known types
@@ -232,6 +233,7 @@ message TestAllTypesProto3 {
232233 google.protobuf.Struct optional_struct = 304 ;
233234 google.protobuf.Any optional_any = 305 ;
234235 google.protobuf.Value optional_value = 306 ;
236+ google.protobuf.NullValue optional_null_value = 307 ;
235237
236238 repeated google.protobuf.Duration repeated_duration = 311 ;
237239 repeated google.protobuf.Timestamp repeated_timestamp = 312 ;
You can’t perform that action at this time.
0 commit comments