1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // For messages which do not provide legacy Marshal and Unmarshal methods, 6 // only test compatibility with the Marshal/Unmarshal functionality with 7 // pure protobuf reflection since there is no support for nullable fields 8 // in the table-driven implementation. 9 //go:build protoreflect 10 // +build protoreflect 11 12 package nullable 13 14 import "google.golang.org/protobuf/runtime/protoimpl" 15 16 func init() { 17 methodTestProtos = append(methodTestProtos, 18 protoimpl.X.ProtoMessageV2Of((*Proto2)(nil)).ProtoReflect().Type(), 19 protoimpl.X.ProtoMessageV2Of((*Proto3)(nil)).ProtoReflect().Type(), 20 ) 21 } 22