cmd/protoc-gen-go: generate _protoopaque variant for hybrid

For golang/protobuf#1657

Change-Id: I3c35fceeddedcd159a5adacec3113e12497ebd27
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/634817
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Michael Stapelberg 2024-12-04 15:29:35 +01:00
parent 9eda3d5059
commit b64efdbc6e
25 changed files with 25119 additions and 5 deletions

View File

@ -26,6 +26,7 @@ import (
"google.golang.org/protobuf/runtime/protoimpl"
"google.golang.org/protobuf/types/descriptorpb"
"google.golang.org/protobuf/types/gofeaturespb"
"google.golang.org/protobuf/types/pluginpb"
)
@ -70,11 +71,41 @@ type goImportPath interface {
Ident(string) protogen.GoIdent
}
func setToOpaque(msg *protogen.Message) {
msg.APILevel = gofeaturespb.GoFeatures_API_OPAQUE
for _, nested := range msg.Messages {
nested.APILevel = gofeaturespb.GoFeatures_API_OPAQUE
setToOpaque(nested)
}
}
// GenerateFile generates the contents of a .pb.go file.
//
// With the Hybrid API, multiple files are generated (_protoopaque.pb.go variant),
// but only the first file (regular, not a variant) is returned.
func GenerateFile(gen *protogen.Plugin, file *protogen.File) *protogen.GeneratedFile {
filename := file.GeneratedFilenamePrefix + ".pb.go"
g := gen.NewGeneratedFile(filename, file.GoImportPath)
return generateFiles(gen, file)[0]
}
func generateFiles(gen *protogen.Plugin, file *protogen.File) []*protogen.GeneratedFile {
f := newFileInfo(file)
generated := []*protogen.GeneratedFile{
generateOneFile(gen, file, f, ""),
}
if f.APILevel == gofeaturespb.GoFeatures_API_HYBRID {
// Update all APILevel fields to OPAQUE
f.APILevel = gofeaturespb.GoFeatures_API_OPAQUE
for _, msg := range f.Messages {
setToOpaque(msg)
}
generated = append(generated, generateOneFile(gen, file, f, "_protoopaque"))
}
return generated
}
func generateOneFile(gen *protogen.Plugin, file *protogen.File, f *fileInfo, variant string) *protogen.GeneratedFile {
filename := file.GeneratedFilenamePrefix + variant + ".pb.go"
g := gen.NewGeneratedFile(filename, file.GoImportPath)
var packageDoc protogen.Comments
if !gen.InternalStripForEditionsDiff() {
@ -84,6 +115,11 @@ func GenerateFile(gen *protogen.Plugin, file *protogen.File) *protogen.Generated
packageDoc = genPackageKnownComment(f)
}
if variant == "_protoopaque" {
g.P("//go:build protoopaque")
} else if f.APILevel == gofeaturespb.GoFeatures_API_HYBRID {
g.P("//go:build !protoopaque")
}
g.P(packageDoc, "package ", f.GoPackageName)
g.P()
@ -190,9 +226,11 @@ func genImport(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo, imp
// Generate public imports by generating the imported file, parsing it,
// and extracting every symbol that should receive a forwarding declaration.
impGen := GenerateFile(gen, impFile)
impGen.Skip()
b, err := impGen.Content()
impGens := generateFiles(gen, impFile)
for _, impGen := range impGens {
impGen.Skip()
}
b, err := impGens[0].Content()
if err != nil {
gen.Error(err)
return

View File

@ -24,6 +24,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid.proto
//go:build !protoopaque
package test_name_clash_hybrid
import (

View File

@ -24,6 +24,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid3.proto
//go:build !protoopaque
package test_name_clash_hybrid3
import (

View File

@ -5,6 +5,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/enums/enums_hybrid/enums.hybrid.proto
//go:build !protoopaque
package enums_hybrid
import (

View File

@ -0,0 +1,140 @@
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/enums/enums_hybrid/enums.hybrid.proto
//go:build protoopaque
package enums_hybrid
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/gofeaturespb"
reflect "reflect"
)
type Enum int32
const (
Enum_DEFAULT Enum = 1337
Enum_ZERO Enum = 0
Enum_ONE Enum = 1
Enum_ELEVENT Enum = 11
Enum_SEVENTEEN Enum = 17
Enum_THIRTYSEVEN Enum = 37
Enum_SIXTYSEVEN Enum = 67
Enum_NEGATIVE Enum = -1
)
// Enum value maps for Enum.
var (
Enum_name = map[int32]string{
1337: "DEFAULT",
0: "ZERO",
1: "ONE",
11: "ELEVENT",
17: "SEVENTEEN",
37: "THIRTYSEVEN",
67: "SIXTYSEVEN",
-1: "NEGATIVE",
}
Enum_value = map[string]int32{
"DEFAULT": 1337,
"ZERO": 0,
"ONE": 1,
"ELEVENT": 11,
"SEVENTEEN": 17,
"THIRTYSEVEN": 37,
"SIXTYSEVEN": 67,
"NEGATIVE": -1,
}
)
func (x Enum) Enum() *Enum {
p := new(Enum)
*p = x
return p
}
func (x Enum) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Enum) Descriptor() protoreflect.EnumDescriptor {
return file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_enumTypes[0].Descriptor()
}
func (Enum) Type() protoreflect.EnumType {
return &file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_enumTypes[0]
}
func (x Enum) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
var File_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto protoreflect.FileDescriptor
var file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_rawDesc = []byte{
0x0a, 0x39, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2f, 0x65, 0x6e, 0x75, 0x6d,
0x73, 0x5f, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x68,
0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x68, 0x79, 0x62,
0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2e, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x1a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x5f, 0x66, 0x65, 0x61, 0x74,
0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2a, 0x7b, 0x0a, 0x04, 0x45, 0x6e,
0x75, 0x6d, 0x12, 0x0c, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0xb9, 0x0a,
0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e,
0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4c, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x10, 0x0b,
0x12, 0x0d, 0x0a, 0x09, 0x53, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x45, 0x45, 0x4e, 0x10, 0x11, 0x12,
0x0f, 0x0a, 0x0b, 0x54, 0x48, 0x49, 0x52, 0x54, 0x59, 0x53, 0x45, 0x56, 0x45, 0x4e, 0x10, 0x25,
0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x49, 0x58, 0x54, 0x59, 0x53, 0x45, 0x56, 0x45, 0x4e, 0x10, 0x43,
0x12, 0x15, 0x0a, 0x08, 0x4e, 0x45, 0x47, 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x42, 0x4d, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74,
0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2f,
0x65, 0x6e, 0x75, 0x6d, 0x73, 0x5f, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x92, 0x03, 0x07, 0xd2,
0x3e, 0x02, 0x10, 0x02, 0x10, 0x02, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x70, 0xe8, 0x07,
}
var file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_goTypes = []any{
(Enum)(0), // 0: hybrid.goproto.proto.enums.Enum
}
var file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_init() }
func file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_init() {
if File_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_rawDesc,
NumEnums: 1,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_goTypes,
DependencyIndexes: file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_depIdxs,
EnumInfos: file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_enumTypes,
}.Build()
File_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto = out.File
file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_rawDesc = nil
file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_goTypes = nil
file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_depIdxs = nil
}

View File

@ -5,6 +5,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/lazy/lazy_hybrid/lazy_tree.hybrid.proto
//go:build !protoopaque
package lazy_hybrid
import (

View File

@ -0,0 +1,643 @@
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/lazy/lazy_hybrid/lazy_tree.hybrid.proto
//go:build protoopaque
package lazy_hybrid
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/gofeaturespb"
reflect "reflect"
)
type Node struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
xxx_hidden_Nested *Node `protobuf:"bytes,99,opt,name=nested" json:"nested,omitempty"`
xxx_hidden_Int32 int32 `protobuf:"varint,1,opt,name=int32" json:"int32,omitempty"`
xxx_hidden_Int64 int64 `protobuf:"varint,2,opt,name=int64" json:"int64,omitempty"`
xxx_hidden_Uint32 uint32 `protobuf:"varint,3,opt,name=uint32" json:"uint32,omitempty"`
xxx_hidden_Uint64 uint64 `protobuf:"varint,4,opt,name=uint64" json:"uint64,omitempty"`
xxx_hidden_Sint32 int32 `protobuf:"zigzag32,5,opt,name=sint32" json:"sint32,omitempty"`
xxx_hidden_Sint64 int64 `protobuf:"zigzag64,6,opt,name=sint64" json:"sint64,omitempty"`
xxx_hidden_Fixed32 uint32 `protobuf:"fixed32,7,opt,name=fixed32" json:"fixed32,omitempty"`
xxx_hidden_Fixed64 uint64 `protobuf:"fixed64,8,opt,name=fixed64" json:"fixed64,omitempty"`
xxx_hidden_Sfixed32 int32 `protobuf:"fixed32,9,opt,name=sfixed32" json:"sfixed32,omitempty"`
xxx_hidden_Sfixed64 int64 `protobuf:"fixed64,10,opt,name=sfixed64" json:"sfixed64,omitempty"`
xxx_hidden_Float float32 `protobuf:"fixed32,11,opt,name=float" json:"float,omitempty"`
xxx_hidden_Double float64 `protobuf:"fixed64,12,opt,name=double" json:"double,omitempty"`
xxx_hidden_Bool bool `protobuf:"varint,13,opt,name=bool" json:"bool,omitempty"`
xxx_hidden_String_ *string `protobuf:"bytes,14,opt,name=string" json:"string,omitempty"`
xxx_hidden_Bytes []byte `protobuf:"bytes,15,opt,name=bytes" json:"bytes,omitempty"`
// Deprecated: Do not use. This will be deleted in the near future.
XXX_lazyUnmarshalInfo protoimpl.LazyUnmarshalInfo
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Node) Reset() {
*x = Node{}
mi := &file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Node) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Node) ProtoMessage() {}
func (x *Node) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (x *Node) GetNested() *Node {
if x != nil {
if protoimpl.X.Present(&(x.XXX_presence[0]), 0) {
if protoimpl.X.AtomicCheckPointerIsNil(&x.xxx_hidden_Nested) {
protoimpl.X.UnmarshalField(x, 99)
}
var rv *Node
protoimpl.X.AtomicLoadPointer(protoimpl.Pointer(&x.xxx_hidden_Nested), protoimpl.Pointer(&rv))
return rv
}
}
return nil
}
func (x *Node) GetInt32() int32 {
if x != nil {
return x.xxx_hidden_Int32
}
return 0
}
func (x *Node) GetInt64() int64 {
if x != nil {
return x.xxx_hidden_Int64
}
return 0
}
func (x *Node) GetUint32() uint32 {
if x != nil {
return x.xxx_hidden_Uint32
}
return 0
}
func (x *Node) GetUint64() uint64 {
if x != nil {
return x.xxx_hidden_Uint64
}
return 0
}
func (x *Node) GetSint32() int32 {
if x != nil {
return x.xxx_hidden_Sint32
}
return 0
}
func (x *Node) GetSint64() int64 {
if x != nil {
return x.xxx_hidden_Sint64
}
return 0
}
func (x *Node) GetFixed32() uint32 {
if x != nil {
return x.xxx_hidden_Fixed32
}
return 0
}
func (x *Node) GetFixed64() uint64 {
if x != nil {
return x.xxx_hidden_Fixed64
}
return 0
}
func (x *Node) GetSfixed32() int32 {
if x != nil {
return x.xxx_hidden_Sfixed32
}
return 0
}
func (x *Node) GetSfixed64() int64 {
if x != nil {
return x.xxx_hidden_Sfixed64
}
return 0
}
func (x *Node) GetFloat() float32 {
if x != nil {
return x.xxx_hidden_Float
}
return 0
}
func (x *Node) GetDouble() float64 {
if x != nil {
return x.xxx_hidden_Double
}
return 0
}
func (x *Node) GetBool() bool {
if x != nil {
return x.xxx_hidden_Bool
}
return false
}
func (x *Node) GetString() string {
if x != nil {
if x.xxx_hidden_String_ != nil {
return *x.xxx_hidden_String_
}
return ""
}
return ""
}
func (x *Node) GetBytes() []byte {
if x != nil {
return x.xxx_hidden_Bytes
}
return nil
}
func (x *Node) SetNested(v *Node) {
protoimpl.X.AtomicSetPointer(&x.xxx_hidden_Nested, v)
if v == nil {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0)
} else {
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 16)
}
}
func (x *Node) SetInt32(v int32) {
x.xxx_hidden_Int32 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 16)
}
func (x *Node) SetInt64(v int64) {
x.xxx_hidden_Int64 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 16)
}
func (x *Node) SetUint32(v uint32) {
x.xxx_hidden_Uint32 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 3, 16)
}
func (x *Node) SetUint64(v uint64) {
x.xxx_hidden_Uint64 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 4, 16)
}
func (x *Node) SetSint32(v int32) {
x.xxx_hidden_Sint32 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 5, 16)
}
func (x *Node) SetSint64(v int64) {
x.xxx_hidden_Sint64 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 6, 16)
}
func (x *Node) SetFixed32(v uint32) {
x.xxx_hidden_Fixed32 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 7, 16)
}
func (x *Node) SetFixed64(v uint64) {
x.xxx_hidden_Fixed64 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 8, 16)
}
func (x *Node) SetSfixed32(v int32) {
x.xxx_hidden_Sfixed32 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 9, 16)
}
func (x *Node) SetSfixed64(v int64) {
x.xxx_hidden_Sfixed64 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 10, 16)
}
func (x *Node) SetFloat(v float32) {
x.xxx_hidden_Float = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 11, 16)
}
func (x *Node) SetDouble(v float64) {
x.xxx_hidden_Double = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 12, 16)
}
func (x *Node) SetBool(v bool) {
x.xxx_hidden_Bool = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 13, 16)
}
func (x *Node) SetString(v string) {
x.xxx_hidden_String_ = &v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 14, 16)
}
func (x *Node) SetBytes(v []byte) {
if v == nil {
v = []byte{}
}
x.xxx_hidden_Bytes = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 15, 16)
}
func (x *Node) HasNested() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 0)
}
func (x *Node) HasInt32() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 1)
}
func (x *Node) HasInt64() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 2)
}
func (x *Node) HasUint32() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 3)
}
func (x *Node) HasUint64() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 4)
}
func (x *Node) HasSint32() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 5)
}
func (x *Node) HasSint64() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 6)
}
func (x *Node) HasFixed32() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 7)
}
func (x *Node) HasFixed64() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 8)
}
func (x *Node) HasSfixed32() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 9)
}
func (x *Node) HasSfixed64() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 10)
}
func (x *Node) HasFloat() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 11)
}
func (x *Node) HasDouble() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 12)
}
func (x *Node) HasBool() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 13)
}
func (x *Node) HasString() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 14)
}
func (x *Node) HasBytes() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 15)
}
func (x *Node) ClearNested() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0)
protoimpl.X.AtomicSetPointer(&x.xxx_hidden_Nested, (*Node)(nil))
}
func (x *Node) ClearInt32() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1)
x.xxx_hidden_Int32 = 0
}
func (x *Node) ClearInt64() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2)
x.xxx_hidden_Int64 = 0
}
func (x *Node) ClearUint32() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 3)
x.xxx_hidden_Uint32 = 0
}
func (x *Node) ClearUint64() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 4)
x.xxx_hidden_Uint64 = 0
}
func (x *Node) ClearSint32() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 5)
x.xxx_hidden_Sint32 = 0
}
func (x *Node) ClearSint64() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 6)
x.xxx_hidden_Sint64 = 0
}
func (x *Node) ClearFixed32() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 7)
x.xxx_hidden_Fixed32 = 0
}
func (x *Node) ClearFixed64() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 8)
x.xxx_hidden_Fixed64 = 0
}
func (x *Node) ClearSfixed32() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 9)
x.xxx_hidden_Sfixed32 = 0
}
func (x *Node) ClearSfixed64() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 10)
x.xxx_hidden_Sfixed64 = 0
}
func (x *Node) ClearFloat() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 11)
x.xxx_hidden_Float = 0
}
func (x *Node) ClearDouble() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 12)
x.xxx_hidden_Double = 0
}
func (x *Node) ClearBool() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 13)
x.xxx_hidden_Bool = false
}
func (x *Node) ClearString() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 14)
x.xxx_hidden_String_ = nil
}
func (x *Node) ClearBytes() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 15)
x.xxx_hidden_Bytes = nil
}
type Node_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
Nested *Node
Int32 *int32
Int64 *int64
Uint32 *uint32
Uint64 *uint64
Sint32 *int32
Sint64 *int64
Fixed32 *uint32
Fixed64 *uint64
Sfixed32 *int32
Sfixed64 *int64
Float *float32
Double *float64
Bool *bool
String *string
Bytes []byte
}
func (b0 Node_builder) Build() *Node {
m0 := &Node{}
b, x := &b0, m0
_, _ = b, x
if b.Nested != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 16)
x.xxx_hidden_Nested = b.Nested
}
if b.Int32 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 16)
x.xxx_hidden_Int32 = *b.Int32
}
if b.Int64 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 16)
x.xxx_hidden_Int64 = *b.Int64
}
if b.Uint32 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 16)
x.xxx_hidden_Uint32 = *b.Uint32
}
if b.Uint64 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 4, 16)
x.xxx_hidden_Uint64 = *b.Uint64
}
if b.Sint32 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 5, 16)
x.xxx_hidden_Sint32 = *b.Sint32
}
if b.Sint64 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 6, 16)
x.xxx_hidden_Sint64 = *b.Sint64
}
if b.Fixed32 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 7, 16)
x.xxx_hidden_Fixed32 = *b.Fixed32
}
if b.Fixed64 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 8, 16)
x.xxx_hidden_Fixed64 = *b.Fixed64
}
if b.Sfixed32 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 9, 16)
x.xxx_hidden_Sfixed32 = *b.Sfixed32
}
if b.Sfixed64 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 10, 16)
x.xxx_hidden_Sfixed64 = *b.Sfixed64
}
if b.Float != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 11, 16)
x.xxx_hidden_Float = *b.Float
}
if b.Double != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 12, 16)
x.xxx_hidden_Double = *b.Double
}
if b.Bool != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 13, 16)
x.xxx_hidden_Bool = *b.Bool
}
if b.String != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 14, 16)
x.xxx_hidden_String_ = b.String
}
if b.Bytes != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 15, 16)
x.xxx_hidden_Bytes = b.Bytes
}
return m0
}
var File_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto protoreflect.FileDescriptor
var file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_rawDesc = []byte{
0x0a, 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6c, 0x61, 0x7a, 0x79, 0x2f, 0x6c, 0x61, 0x7a, 0x79, 0x5f,
0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2f, 0x6c, 0x61, 0x7a, 0x79, 0x5f, 0x74, 0x72, 0x65, 0x65,
0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x68,
0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x6c, 0x61, 0x7a, 0x79, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x1a,
0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2f, 0x67, 0x6f, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0xa2, 0x03, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x6e,
0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x68, 0x79,
0x62, 0x72, 0x69, 0x64, 0x2e, 0x6c, 0x61, 0x7a, 0x79, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x2e, 0x4e,
0x6f, 0x64, 0x65, 0x42, 0x02, 0x28, 0x01, 0x52, 0x06, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12,
0x14, 0x0a, 0x05, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x16, 0x0a, 0x06, 0x75,
0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x75, 0x69, 0x6e,
0x74, 0x33, 0x32, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x04, 0x20,
0x01, 0x28, 0x04, 0x52, 0x06, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x16, 0x0a, 0x06, 0x73,
0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x11, 0x52, 0x06, 0x73, 0x69, 0x6e,
0x74, 0x33, 0x32, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x06, 0x20,
0x01, 0x28, 0x12, 0x52, 0x06, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x18, 0x0a, 0x07, 0x66,
0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x07, 0x52, 0x07, 0x66, 0x69,
0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
0x18, 0x08, 0x20, 0x01, 0x28, 0x06, 0x52, 0x07, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12,
0x1a, 0x0a, 0x08, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x09, 0x20, 0x01, 0x28,
0x0f, 0x52, 0x08, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x1a, 0x0a, 0x08, 0x73,
0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x10, 0x52, 0x08, 0x73,
0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74,
0x18, 0x0b, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x16, 0x0a,
0x06, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x52, 0x06, 0x64,
0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0d, 0x20,
0x01, 0x28, 0x08, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x72,
0x69, 0x6e, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e,
0x67, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0c,
0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x42, 0x49, 0x5a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74,
0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6c, 0x61, 0x7a, 0x79, 0x2f, 0x6c,
0x61, 0x7a, 0x79, 0x5f, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x92, 0x03, 0x05, 0xd2, 0x3e, 0x02,
0x10, 0x02, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_goTypes = []any{
(*Node)(nil), // 0: hybrid.lazy_tree.Node
}
var file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_depIdxs = []int32{
0, // 0: hybrid.lazy_tree.Node.nested:type_name -> hybrid.lazy_tree.Node
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_init() }
func file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_init() {
if File_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_goTypes,
DependencyIndexes: file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_depIdxs,
MessageInfos: file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_msgTypes,
}.Build()
File_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto = out.File
file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_rawDesc = nil
file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_goTypes = nil
file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_depIdxs = nil
}

View File

@ -5,6 +5,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid.proto
//go:build !protoopaque
package messagesetpb_hybrid
import (

View File

@ -0,0 +1,201 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid.proto
//go:build protoopaque
package messagesetpb_hybrid
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/gofeaturespb"
reflect "reflect"
)
type MessageSet struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MessageSet) Reset() {
*x = MessageSet{}
mi := &file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MessageSet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MessageSet) ProtoMessage() {}
func (x *MessageSet) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
type MessageSet_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
}
func (b0 MessageSet_builder) Build() *MessageSet {
m0 := &MessageSet{}
b, x := &b0, m0
_, _ = b, x
return m0
}
type MessageSetContainer struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
xxx_hidden_MessageSet *MessageSet `protobuf:"bytes,1,opt,name=message_set,json=messageSet" json:"message_set,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MessageSetContainer) Reset() {
*x = MessageSetContainer{}
mi := &file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MessageSetContainer) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MessageSetContainer) ProtoMessage() {}
func (x *MessageSetContainer) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (x *MessageSetContainer) GetMessageSet() *MessageSet {
if x != nil {
return x.xxx_hidden_MessageSet
}
return nil
}
func (x *MessageSetContainer) SetMessageSet(v *MessageSet) {
x.xxx_hidden_MessageSet = v
}
func (x *MessageSetContainer) HasMessageSet() bool {
if x == nil {
return false
}
return x.xxx_hidden_MessageSet != nil
}
func (x *MessageSetContainer) ClearMessageSet() {
x.xxx_hidden_MessageSet = nil
}
type MessageSetContainer_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
MessageSet *MessageSet
}
func (b0 MessageSetContainer_builder) Build() *MessageSetContainer {
m0 := &MessageSetContainer{}
b, x := &b0, m0
_, _ = b, x
x.xxx_hidden_MessageSet = b.MessageSet
return m0
}
var File_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto protoreflect.FileDescriptor
var file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_rawDesc = []byte{
0x0a, 0x58, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74,
0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x5f, 0x68, 0x79, 0x62, 0x72, 0x69,
0x64, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x68, 0x79,
0x62, 0x72, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x68, 0x79, 0x62, 0x72,
0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x1a, 0x21, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x5f,
0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1a,
0x0a, 0x0a, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x2a, 0x08, 0x08, 0x04,
0x10, 0xff, 0xff, 0xff, 0xff, 0x07, 0x3a, 0x02, 0x08, 0x01, 0x22, 0x63, 0x0a, 0x13, 0x4d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65,
0x72, 0x12, 0x4c, 0x0a, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e,
0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x53, 0x65, 0x74, 0x52, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x42,
0x64, 0x5a, 0x5a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e,
0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x5f, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x92, 0x03, 0x05,
0xd2, 0x3e, 0x02, 0x10, 0x02, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70,
0xe8, 0x07,
}
var file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_goTypes = []any{
(*MessageSet)(nil), // 0: hybrid.goproto.proto.messageset.MessageSet
(*MessageSetContainer)(nil), // 1: hybrid.goproto.proto.messageset.MessageSetContainer
}
var file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_depIdxs = []int32{
0, // 0: hybrid.goproto.proto.messageset.MessageSetContainer.message_set:type_name -> hybrid.goproto.proto.messageset.MessageSet
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() {
file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_init()
}
func file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_init() {
if File_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_goTypes,
DependencyIndexes: file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_depIdxs,
MessageInfos: file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_msgTypes,
}.Build()
File_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto = out.File
file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_rawDesc = nil
file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_goTypes = nil
file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_depIdxs = nil
}

View File

@ -5,6 +5,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid.proto
//go:build !protoopaque
package msetextpb_hybrid
import (

View File

@ -0,0 +1,489 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid.proto
//go:build protoopaque
package msetextpb_hybrid
import (
messagesetpb_hybrid "google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/gofeaturespb"
reflect "reflect"
)
type Ext1 struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
xxx_hidden_Ext1Field1 int32 `protobuf:"varint,1,opt,name=ext1_field1,json=ext1Field1" json:"ext1_field1,omitempty"`
xxx_hidden_Ext1Field2 int32 `protobuf:"varint,2,opt,name=ext1_field2,json=ext1Field2" json:"ext1_field2,omitempty"`
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Ext1) Reset() {
*x = Ext1{}
mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Ext1) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Ext1) ProtoMessage() {}
func (x *Ext1) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (x *Ext1) GetExt1Field1() int32 {
if x != nil {
return x.xxx_hidden_Ext1Field1
}
return 0
}
func (x *Ext1) GetExt1Field2() int32 {
if x != nil {
return x.xxx_hidden_Ext1Field2
}
return 0
}
func (x *Ext1) SetExt1Field1(v int32) {
x.xxx_hidden_Ext1Field1 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 2)
}
func (x *Ext1) SetExt1Field2(v int32) {
x.xxx_hidden_Ext1Field2 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 2)
}
func (x *Ext1) HasExt1Field1() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 0)
}
func (x *Ext1) HasExt1Field2() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 1)
}
func (x *Ext1) ClearExt1Field1() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0)
x.xxx_hidden_Ext1Field1 = 0
}
func (x *Ext1) ClearExt1Field2() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1)
x.xxx_hidden_Ext1Field2 = 0
}
type Ext1_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
Ext1Field1 *int32
Ext1Field2 *int32
}
func (b0 Ext1_builder) Build() *Ext1 {
m0 := &Ext1{}
b, x := &b0, m0
_, _ = b, x
if b.Ext1Field1 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 2)
x.xxx_hidden_Ext1Field1 = *b.Ext1Field1
}
if b.Ext1Field2 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 2)
x.xxx_hidden_Ext1Field2 = *b.Ext1Field2
}
return m0
}
type Ext2 struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
xxx_hidden_Ext2Field1 int32 `protobuf:"varint,1,opt,name=ext2_field1,json=ext2Field1" json:"ext2_field1,omitempty"`
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Ext2) Reset() {
*x = Ext2{}
mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Ext2) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Ext2) ProtoMessage() {}
func (x *Ext2) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (x *Ext2) GetExt2Field1() int32 {
if x != nil {
return x.xxx_hidden_Ext2Field1
}
return 0
}
func (x *Ext2) SetExt2Field1(v int32) {
x.xxx_hidden_Ext2Field1 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 1)
}
func (x *Ext2) HasExt2Field1() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 0)
}
func (x *Ext2) ClearExt2Field1() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0)
x.xxx_hidden_Ext2Field1 = 0
}
type Ext2_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
Ext2Field1 *int32
}
func (b0 Ext2_builder) Build() *Ext2 {
m0 := &Ext2{}
b, x := &b0, m0
_, _ = b, x
if b.Ext2Field1 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 1)
x.xxx_hidden_Ext2Field1 = *b.Ext2Field1
}
return m0
}
type ExtRequired struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
xxx_hidden_RequiredField1 int32 `protobuf:"varint,1,req,name=required_field1,json=requiredField1" json:"required_field1,omitempty"`
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExtRequired) Reset() {
*x = ExtRequired{}
mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExtRequired) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExtRequired) ProtoMessage() {}
func (x *ExtRequired) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (x *ExtRequired) GetRequiredField1() int32 {
if x != nil {
return x.xxx_hidden_RequiredField1
}
return 0
}
func (x *ExtRequired) SetRequiredField1(v int32) {
x.xxx_hidden_RequiredField1 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 1)
}
func (x *ExtRequired) HasRequiredField1() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 0)
}
func (x *ExtRequired) ClearRequiredField1() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0)
x.xxx_hidden_RequiredField1 = 0
}
type ExtRequired_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
RequiredField1 *int32
}
func (b0 ExtRequired_builder) Build() *ExtRequired {
m0 := &ExtRequired{}
b, x := &b0, m0
_, _ = b, x
if b.RequiredField1 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 1)
x.xxx_hidden_RequiredField1 = *b.RequiredField1
}
return m0
}
type ExtLargeNumber struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExtLargeNumber) Reset() {
*x = ExtLargeNumber{}
mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExtLargeNumber) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExtLargeNumber) ProtoMessage() {}
func (x *ExtLargeNumber) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
type ExtLargeNumber_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
}
func (b0 ExtLargeNumber_builder) Build() *ExtLargeNumber {
m0 := &ExtLargeNumber{}
b, x := &b0, m0
_, _ = b, x
return m0
}
var file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_extTypes = []protoimpl.ExtensionInfo{
{
ExtendedType: (*messagesetpb_hybrid.MessageSet)(nil),
ExtensionType: (*Ext1)(nil),
Field: 1000,
Name: "hybrid.goproto.proto.messageset.Ext1.message_set_ext1",
Tag: "bytes,1000,opt,name=message_set_ext1",
Filename: "internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid.proto",
},
{
ExtendedType: (*messagesetpb_hybrid.MessageSet)(nil),
ExtensionType: (*Ext2)(nil),
Field: 1001,
Name: "hybrid.goproto.proto.messageset.Ext2.message_set_ext2",
Tag: "bytes,1001,opt,name=message_set_ext2",
Filename: "internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid.proto",
},
{
ExtendedType: (*messagesetpb_hybrid.MessageSet)(nil),
ExtensionType: (*ExtRequired)(nil),
Field: 1002,
Name: "hybrid.goproto.proto.messageset.ExtRequired.message_set_extrequired",
Tag: "bytes,1002,opt,name=message_set_extrequired",
Filename: "internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid.proto",
},
{
ExtendedType: (*messagesetpb_hybrid.MessageSet)(nil),
ExtensionType: (*ExtLargeNumber)(nil),
Field: 536870912,
Name: "hybrid.goproto.proto.messageset.ExtLargeNumber.message_set_extlarge",
Tag: "bytes,536870912,opt,name=message_set_extlarge",
Filename: "internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid.proto",
},
}
// Extension fields to messagesetpb_hybrid.MessageSet.
var (
// optional hybrid.goproto.proto.messageset.Ext1 message_set_ext1 = 1000;
E_Ext1_MessageSetExt1 = &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_extTypes[0]
// optional hybrid.goproto.proto.messageset.Ext2 message_set_ext2 = 1001;
E_Ext2_MessageSetExt2 = &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_extTypes[1]
// optional hybrid.goproto.proto.messageset.ExtRequired message_set_extrequired = 1002;
E_ExtRequired_MessageSetExtrequired = &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_extTypes[2]
// optional hybrid.goproto.proto.messageset.ExtLargeNumber message_set_extlarge = 536870912;
E_ExtLargeNumber_MessageSetExtlarge = &file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_extTypes[3] // 1<<29
)
var File_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto protoreflect.FileDescriptor
var file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_rawDesc = []byte{
0x0a, 0x50, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74,
0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65,
0x78, 0x74, 0x70, 0x62, 0x5f, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2f, 0x6d, 0x73, 0x65, 0x74,
0x65, 0x78, 0x74, 0x70, 0x62, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x1f, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x73, 0x65, 0x74, 0x1a, 0x58, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65,
0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x73, 0x65, 0x74, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62,
0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x5f, 0x68, 0x79,
0x62, 0x72, 0x69, 0x64, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74,
0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x67,
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67,
0x6f, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0xc7, 0x01, 0x0a, 0x04, 0x45, 0x78, 0x74, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74,
0x31, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a,
0x65, 0x78, 0x74, 0x31, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78,
0x74, 0x31, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
0x0a, 0x65, 0x78, 0x74, 0x31, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x32, 0x7d, 0x0a, 0x10, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x31, 0x12,
0x2b, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65,
0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe8, 0x07, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x31, 0x52, 0x0e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74, 0x31, 0x22, 0xa6, 0x01, 0x0a, 0x04, 0x45,
0x78, 0x74, 0x32, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x32, 0x5f, 0x66, 0x69, 0x65, 0x6c,
0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x32, 0x46, 0x69,
0x65, 0x6c, 0x64, 0x31, 0x32, 0x7d, 0x0a, 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f,
0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x32, 0x12, 0x2b, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69,
0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x68,
0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45,
0x78, 0x74, 0x32, 0x52, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45,
0x78, 0x74, 0x32, 0x22, 0xd2, 0x01, 0x0a, 0x0b, 0x45, 0x78, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69,
0x72, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f,
0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x05, 0xaa, 0x01,
0x02, 0x08, 0x03, 0x52, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65,
0x6c, 0x64, 0x31, 0x32, 0x92, 0x01, 0x0a, 0x17, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f,
0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12,
0x2b, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65,
0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xea, 0x07, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
0x64, 0x52, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74,
0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x22, 0xa5, 0x01, 0x0a, 0x0e, 0x45, 0x78, 0x74,
0x4c, 0x61, 0x72, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x32, 0x92, 0x01, 0x0a, 0x14,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x6c,
0x61, 0x72, 0x67, 0x65, 0x12, 0x2b, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65,
0x74, 0x18, 0x80, 0x80, 0x80, 0x80, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x68, 0x79,
0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78,
0x74, 0x4c, 0x61, 0x72, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x12, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74, 0x6c, 0x61, 0x72, 0x67, 0x65,
0x42, 0x5e, 0x5a, 0x54, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69,
0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73,
0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70,
0x62, 0x5f, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x92, 0x03, 0x05, 0xd2, 0x3e, 0x02, 0x10, 0x02,
0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_goTypes = []any{
(*Ext1)(nil), // 0: hybrid.goproto.proto.messageset.Ext1
(*Ext2)(nil), // 1: hybrid.goproto.proto.messageset.Ext2
(*ExtRequired)(nil), // 2: hybrid.goproto.proto.messageset.ExtRequired
(*ExtLargeNumber)(nil), // 3: hybrid.goproto.proto.messageset.ExtLargeNumber
(*messagesetpb_hybrid.MessageSet)(nil), // 4: hybrid.goproto.proto.messageset.MessageSet
}
var file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_depIdxs = []int32{
4, // 0: hybrid.goproto.proto.messageset.Ext1.message_set_ext1:extendee -> hybrid.goproto.proto.messageset.MessageSet
4, // 1: hybrid.goproto.proto.messageset.Ext2.message_set_ext2:extendee -> hybrid.goproto.proto.messageset.MessageSet
4, // 2: hybrid.goproto.proto.messageset.ExtRequired.message_set_extrequired:extendee -> hybrid.goproto.proto.messageset.MessageSet
4, // 3: hybrid.goproto.proto.messageset.ExtLargeNumber.message_set_extlarge:extendee -> hybrid.goproto.proto.messageset.MessageSet
0, // 4: hybrid.goproto.proto.messageset.Ext1.message_set_ext1:type_name -> hybrid.goproto.proto.messageset.Ext1
1, // 5: hybrid.goproto.proto.messageset.Ext2.message_set_ext2:type_name -> hybrid.goproto.proto.messageset.Ext2
2, // 6: hybrid.goproto.proto.messageset.ExtRequired.message_set_extrequired:type_name -> hybrid.goproto.proto.messageset.ExtRequired
3, // 7: hybrid.goproto.proto.messageset.ExtLargeNumber.message_set_extlarge:type_name -> hybrid.goproto.proto.messageset.ExtLargeNumber
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
4, // [4:8] is the sub-list for extension type_name
0, // [0:4] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() {
file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_init()
}
func file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_init() {
if File_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 4,
NumServices: 0,
},
GoTypes: file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_goTypes,
DependencyIndexes: file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_depIdxs,
MessageInfos: file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_msgTypes,
ExtensionInfos: file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_extTypes,
}.Build()
File_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto = out.File
file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_rawDesc = nil
file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_goTypes = nil
file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_depIdxs = nil
}

View File

@ -5,6 +5,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/required/required_hybrid/required.hybrid.proto
//go:build !protoopaque
package required_hybrid
import (

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/testeditions/testeditions_hybrid/test.hybrid.proto
//go:build !protoopaque
package testeditions_hybrid
import (

View File

@ -5,6 +5,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/testeditions/testeditions_hybrid/test_extension.hybrid.proto
//go:build !protoopaque
package testeditions_hybrid
import (

View File

@ -5,6 +5,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid.proto
//go:build !protoopaque
package testeditions_hybrid
import (

View File

@ -0,0 +1,219 @@
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid.proto
//go:build protoopaque
package testeditions_hybrid
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/gofeaturespb"
reflect "reflect"
)
type OtherRepeatedFieldEncoding struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OtherRepeatedFieldEncoding) Reset() {
*x = OtherRepeatedFieldEncoding{}
mi := &file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *OtherRepeatedFieldEncoding) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OtherRepeatedFieldEncoding) ProtoMessage() {}
func (x *OtherRepeatedFieldEncoding) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
type OtherRepeatedFieldEncoding_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
}
func (b0 OtherRepeatedFieldEncoding_builder) Build() *OtherRepeatedFieldEncoding {
m0 := &OtherRepeatedFieldEncoding{}
b, x := &b0, m0
_, _ = b, x
return m0
}
var file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_extTypes = []protoimpl.ExtensionInfo{
{
ExtendedType: (*TestFeatureResolution)(nil),
ExtensionType: ([]int32)(nil),
Field: 6,
Name: "hybrid.goproto.proto.testeditions.other_file_global_expanded_extension_overriden",
Tag: "varint,6,rep,name=other_file_global_expanded_extension_overriden",
Filename: "internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid.proto",
},
{
ExtendedType: (*TestFeatureResolution)(nil),
ExtensionType: ([]int32)(nil),
Field: 7,
Name: "hybrid.goproto.proto.testeditions.other_file_global_packed_extension",
Tag: "varint,7,rep,packed,name=other_file_global_packed_extension",
Filename: "internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid.proto",
},
{
ExtendedType: (*TestFeatureResolution)(nil),
ExtensionType: ([]int32)(nil),
Field: 8,
Name: "hybrid.goproto.proto.testeditions.OtherRepeatedFieldEncoding.other_file_message_expanded_extension_overriden",
Tag: "varint,8,rep,name=other_file_message_expanded_extension_overriden",
Filename: "internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid.proto",
},
{
ExtendedType: (*TestFeatureResolution)(nil),
ExtensionType: ([]int32)(nil),
Field: 9,
Name: "hybrid.goproto.proto.testeditions.OtherRepeatedFieldEncoding.other_file_message_packed_extension",
Tag: "varint,9,rep,packed,name=other_file_message_packed_extension",
Filename: "internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid.proto",
},
}
// Extension fields to TestFeatureResolution.
var (
// repeated int32 other_file_global_expanded_extension_overriden = 6;
E_OtherFileGlobalExpandedExtensionOverriden = &file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_extTypes[0]
// repeated int32 other_file_global_packed_extension = 7;
E_OtherFileGlobalPackedExtension = &file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_extTypes[1]
// repeated int32 other_file_message_expanded_extension_overriden = 8;
E_OtherRepeatedFieldEncoding_OtherFileMessageExpandedExtensionOverriden = &file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_extTypes[2]
// repeated int32 other_file_message_packed_extension = 9;
E_OtherRepeatedFieldEncoding_OtherFileMessagePackedExtension = &file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_extTypes[3]
)
var File_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto protoreflect.FileDescriptor
var file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_rawDesc = []byte{
0x0a, 0x51, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f,
0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65,
0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x32, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x21, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x50, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74,
0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2f, 0x74, 0x65, 0x73,
0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x68, 0x79, 0x62, 0x72,
0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x5f, 0x66, 0x65, 0x61,
0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x02, 0x0a, 0x1a,
0x4f, 0x74, 0x68, 0x65, 0x72, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65,
0x6c, 0x64, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x32, 0xa4, 0x01, 0x0a, 0x2f, 0x6f,
0x74, 0x68, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x5f, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x6e, 0x12, 0x38,
0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65,
0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x03, 0x28, 0x05, 0x42, 0x05,
0xaa, 0x01, 0x02, 0x18, 0x02, 0x52, 0x2a, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65,
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x65, 0x64, 0x45,
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65,
0x6e, 0x32, 0x86, 0x01, 0x0a, 0x23, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x6c, 0x65,
0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f,
0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x2e, 0x68, 0x79, 0x62, 0x72,
0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2e, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x65,
0x73, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74,
0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x03, 0x28, 0x05, 0x52, 0x1f, 0x6f, 0x74, 0x68, 0x65, 0x72,
0x46, 0x69, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65,
0x64, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x3a, 0xa2, 0x01, 0x0a, 0x2e, 0x6f,
0x74, 0x68, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c,
0x5f, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x6e, 0x12, 0x38, 0x2e,
0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73,
0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, 0x05, 0x42, 0x05, 0xaa,
0x01, 0x02, 0x18, 0x02, 0x52, 0x29, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x47,
0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x65, 0x64, 0x45, 0x78, 0x74,
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x6e, 0x3a,
0x84, 0x01, 0x0a, 0x22, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x67,
0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x74,
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e,
0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65,
0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x46,
0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e,
0x18, 0x07, 0x20, 0x03, 0x28, 0x05, 0x52, 0x1e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x46, 0x69, 0x6c,
0x65, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x45, 0x78, 0x74,
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x5b, 0x5a, 0x4f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65,
0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x5f, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x92, 0x03, 0x07, 0xd2, 0x3e, 0x02, 0x10,
0x02, 0x18, 0x01, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_goTypes = []any{
(*OtherRepeatedFieldEncoding)(nil), // 0: hybrid.goproto.proto.testeditions.OtherRepeatedFieldEncoding
(*TestFeatureResolution)(nil), // 1: hybrid.goproto.proto.testeditions.TestFeatureResolution
}
var file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_depIdxs = []int32{
1, // 0: hybrid.goproto.proto.testeditions.other_file_global_expanded_extension_overriden:extendee -> hybrid.goproto.proto.testeditions.TestFeatureResolution
1, // 1: hybrid.goproto.proto.testeditions.other_file_global_packed_extension:extendee -> hybrid.goproto.proto.testeditions.TestFeatureResolution
1, // 2: hybrid.goproto.proto.testeditions.OtherRepeatedFieldEncoding.other_file_message_expanded_extension_overriden:extendee -> hybrid.goproto.proto.testeditions.TestFeatureResolution
1, // 3: hybrid.goproto.proto.testeditions.OtherRepeatedFieldEncoding.other_file_message_packed_extension:extendee -> hybrid.goproto.proto.testeditions.TestFeatureResolution
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
0, // [0:4] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() {
file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_init()
}
func file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_init() {
if File_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto != nil {
return
}
file_internal_testprotos_testeditions_testeditions_hybrid_test_extension_hybrid_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 4,
NumServices: 0,
},
GoTypes: file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_goTypes,
DependencyIndexes: file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_depIdxs,
MessageInfos: file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_msgTypes,
ExtensionInfos: file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_extTypes,
}.Build()
File_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto = out.File
file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_rawDesc = nil
file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_goTypes = nil
file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_depIdxs = nil
}

View File

@ -5,6 +5,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/testeditions/testeditions_hybrid/test_import.hybrid.proto
//go:build !protoopaque
package testeditions_hybrid
import (

View File

@ -0,0 +1,164 @@
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/testeditions/testeditions_hybrid/test_import.hybrid.proto
//go:build protoopaque
package testeditions_hybrid
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/gofeaturespb"
reflect "reflect"
)
type ImportEnum int32
const (
ImportEnum_IMPORT_ZERO ImportEnum = 0
)
// Enum value maps for ImportEnum.
var (
ImportEnum_name = map[int32]string{
0: "IMPORT_ZERO",
}
ImportEnum_value = map[string]int32{
"IMPORT_ZERO": 0,
}
)
func (x ImportEnum) Enum() *ImportEnum {
p := new(ImportEnum)
*p = x
return p
}
func (x ImportEnum) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ImportEnum) Descriptor() protoreflect.EnumDescriptor {
return file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_enumTypes[0].Descriptor()
}
func (ImportEnum) Type() protoreflect.EnumType {
return &file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_enumTypes[0]
}
func (x ImportEnum) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
type ImportMessage struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ImportMessage) Reset() {
*x = ImportMessage{}
mi := &file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ImportMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImportMessage) ProtoMessage() {}
func (x *ImportMessage) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
type ImportMessage_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
}
func (b0 ImportMessage_builder) Build() *ImportMessage {
m0 := &ImportMessage{}
b, x := &b0, m0
_, _ = b, x
return m0
}
var File_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto protoreflect.FileDescriptor
var file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_rawDesc = []byte{
0x0a, 0x4d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f,
0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f,
0x72, 0x74, 0x2e, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x21, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f,
0x6e, 0x73, 0x1a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, 0x0d, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x1d, 0x0a, 0x0a, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74,
0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x4d, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x5a,
0x45, 0x52, 0x4f, 0x10, 0x00, 0x42, 0x59, 0x5a, 0x4f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73,
0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x5f, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x92, 0x03, 0x05, 0xd2, 0x3e, 0x02, 0x10, 0x02,
0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_goTypes = []any{
(ImportEnum)(0), // 0: hybrid.goproto.proto.testeditions.ImportEnum
(*ImportMessage)(nil), // 1: hybrid.goproto.proto.testeditions.ImportMessage
}
var file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() {
file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_init()
}
func file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_init() {
if File_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_rawDesc,
NumEnums: 1,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_goTypes,
DependencyIndexes: file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_depIdxs,
EnumInfos: file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_enumTypes,
MessageInfos: file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_msgTypes,
}.Build()
File_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto = out.File
file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_rawDesc = nil
file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_goTypes = nil
file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_depIdxs = nil
}

View File

@ -7,6 +7,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/textpbeditions/textpbeditions_hybrid/test2.hybrid.proto
//go:build !protoopaque
package textpbeditions_hybrid
import (