Home
last modified time | relevance | path

Searched refs:proto3pb (Results 1 – 7 of 7) sorted by relevance

/external/golang-protobuf/proto/
Ddiscard_test.go39 proto3pb "github.com/golang/protobuf/proto/proto3_proto" packageName
52 in: (*proto3pb.Message)(nil), want: (*proto3pb.Message)(nil), // Should not panic
55 in: &proto3pb.Message{
57 Nested: &proto3pb.Nested{Cute: true, XXX_unrecognized: []byte("blah")},
60 want: &proto3pb.Message{
62 Nested: &proto3pb.Nested{Cute: true},
66 in: &proto3pb.Message{
68 Children: []*proto3pb.Message{
74 want: &proto3pb.Message{
76 Children: []*proto3pb.Message{
[all …]
Dclone_test.go39 proto3pb "github.com/golang/protobuf/proto/proto3_proto" packageName
249 src: &proto3pb.Message{
253 dst: &proto3pb.Message{
257 want: &proto3pb.Message{
304 src: &proto3pb.Message{
305 Terrain: map[string]*proto3pb.Nested{
306 "kay_a": &proto3pb.Nested{Cute: true}, // replace
307 "kay_b": &proto3pb.Nested{Bunny: "rabbit"}, // insert
310 dst: &proto3pb.Message{
311 Terrain: map[string]*proto3pb.Nested{
[all …]
Dsize_test.go40 proto3pb "github.com/golang/protobuf/proto/proto3_proto" packageName
132 {"proto3 empty", &proto3pb.Message{}},
133 {"proto3 bool", &proto3pb.Message{TrueScotsman: true}},
134 {"proto3 int64", &proto3pb.Message{ResultCount: 1}},
135 {"proto3 uint32", &proto3pb.Message{HeightInCm: 123}},
136 {"proto3 float", &proto3pb.Message{Score: 12.6}},
137 {"proto3 string", &proto3pb.Message{Name: "Snezana"}},
138 {"proto3 bytes", &proto3pb.Message{Data: []byte("wowsa")}},
139 {"proto3 bytes, empty", &proto3pb.Message{Data: []byte{}}},
140 {"proto3 enum", &proto3pb.Message{Hilarity: proto3pb.Message_PUNS}},
[all …]
Dequal_test.go38 proto3pb "github.com/golang/protobuf/proto/proto3_proto" packageName
153 …{"proto3 bytes, empty vs nil", &proto3pb.Message{Data: []byte{}}, &proto3pb.Message{Data: nil}, tr…
Dtext_test.go45 proto3pb "github.com/golang/protobuf/proto/proto3_proto" packageName
443 {&proto3pb.Message{}, ``},
445 {&proto3pb.Message{Data: []byte{}}, ``},
447 {&proto3pb.Message{Name: "Rob", HeightInCm: 175}, `name:"Rob" height_in_cm:175`},
487 m := &proto3pb.Message{
Dtext_parser_test.go40 proto3pb "github.com/golang/protobuf/proto/proto3_proto" packageName
614 m := new(proto3pb.Message)
616 want := &proto3pb.Message{
/external/golang-protobuf/jsonpb/
Djsonpb_test.go46 proto3pb "github.com/golang/protobuf/proto/proto3_proto" packageName
428 &proto3pb.Message{RFunny: []proto3pb.Message_Humour{
429 proto3pb.Message_PUNS,
430 proto3pb.Message_SLAPSTICK,
434 &proto3pb.Message{RFunny: []proto3pb.Message_Humour{
435 proto3pb.Message_PUNS,
436 proto3pb.Message_SLAPSTICK,
747 …{"proto3 enum string", Unmarshaler{}, `{"hilarity":"PUNS"}`, &proto3pb.Message{Hilarity: proto3pb.…
748 …{"proto3 enum value", Unmarshaler{}, `{"hilarity":1}`, &proto3pb.Message{Hilarity: proto3pb.Messag…
754 &proto3pb.Message{RFunny: []proto3pb.Message_Humour{
[all …]