all: regenerate.bash for Opaque API

For golang/protobuf#1657

Change-Id: I8081e04050a38b0cb1b48ad674b683de61d36770
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/634816
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
This commit is contained in:
Michael Stapelberg 2024-12-04 14:38:31 +01:00
parent eb7b468655
commit 9eda3d5059
144 changed files with 62192 additions and 4729 deletions

View File

@ -69,13 +69,13 @@ func (AnnotationsTestEnum) EnumDescriptor() ([]byte, []int) {
}
type AnnotationsTestMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
AnnotationsTestField *string `protobuf:"bytes,1,opt,name=AnnotationsTestField" json:"AnnotationsTestField,omitempty"`
// Deprecated: Do not use. This will be deleted in the near future.
XXX_weak_M struct{} `protobuf:"bytes,2,opt,name=m,weak=fmt.M" json:"m,omitempty"`
weakFields protoimpl.WeakFields
unknownFields protoimpl.UnknownFields
AnnotationsTestField *string `protobuf:"bytes,1,opt,name=AnnotationsTestField" json:"AnnotationsTestField,omitempty"`
XXX_weak_M struct{} `protobuf:"bytes,2,opt,name=m,weak=fmt.M" json:"m,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *AnnotationsTestMessage) Reset() {

View File

@ -1 +1 @@
annotation:{path:5 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:512 end:531} annotation:{path:5 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:548 end:595} annotation:{path:4 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:1954 end:1976} annotation:{path:4 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:2136 end:2156} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:2256 end:2266} annotation:{path:4 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3334 end:3357} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3500 end:3504} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3667 end:3671 semantic:SET}
annotation:{path:5 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:512 end:531} annotation:{path:5 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:548 end:595} annotation:{path:4 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:1954 end:1976} annotation:{path:4 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:2053 end:2073} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:2256 end:2266} annotation:{path:4 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3437 end:3460} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3603 end:3607} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3770 end:3774 semantic:SET}

View File

@ -77,19 +77,18 @@ func (Enum1) EnumDescriptor() ([]byte, []int) {
// COMMENT: Message1.Leading
type Message1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
state protoimpl.MessageState `protogen:"open.v1"`
// COMMENT: Field1A.Leading
Field1A *string `protobuf:"bytes,1,opt,name=Field1A" json:"Field1A,omitempty"` // COMMENT: Field1A.Trailing
// COMMENT: Oneof1A.Leading
//
// Types that are assignable to Oneof1A:
// Types that are valid to be assigned to Oneof1A:
//
// *Message1_Oneof1AField1
Oneof1A isMessage1_Oneof1A `protobuf_oneof:"Oneof1a"`
Oneof1A isMessage1_Oneof1A `protobuf_oneof:"Oneof1a"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message1) Reset() {
@ -129,16 +128,18 @@ func (x *Message1) GetField1A() string {
return ""
}
func (m *Message1) GetOneof1A() isMessage1_Oneof1A {
if m != nil {
return m.Oneof1A
func (x *Message1) GetOneof1A() isMessage1_Oneof1A {
if x != nil {
return x.Oneof1A
}
return nil
}
func (x *Message1) GetOneof1AField1() string {
if x, ok := x.GetOneof1A().(*Message1_Oneof1AField1); ok {
return x.Oneof1AField1
if x != nil {
if x, ok := x.Oneof1A.(*Message1_Oneof1AField1); ok {
return x.Oneof1AField1
}
}
return ""
}
@ -156,9 +157,9 @@ func (*Message1_Oneof1AField1) isMessage1_Oneof1A() {}
// COMMENT: Message2
type Message2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message2) Reset() {
@ -193,9 +194,9 @@ func (*Message2) Descriptor() ([]byte, []int) {
// COMMENT: Message1A.Leading
type Message1_Message1A struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message1_Message1A) Reset() {
@ -230,9 +231,9 @@ func (*Message1_Message1A) Descriptor() ([]byte, []int) {
// COMMENT: Message1B
type Message1_Message1B struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message1_Message1B) Reset() {
@ -267,9 +268,9 @@ func (*Message1_Message1B) Descriptor() ([]byte, []int) {
// COMMENT: Message2A
type Message2_Message2A struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message2_Message2A) Reset() {
@ -304,9 +305,9 @@ func (*Message2_Message2A) Descriptor() ([]byte, []int) {
// COMMENT: Message2B
type Message2_Message2B struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message2_Message2B) Reset() {

View File

@ -61,12 +61,11 @@ func (DeprecatedEnum) EnumDescriptor() ([]byte, []int) {
// Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated.
type DeprecatedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated.
DeprecatedField string `protobuf:"bytes,1,opt,name=deprecated_field,json=deprecatedField,proto3" json:"deprecated_field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeprecatedMessage) Reset() {

View File

@ -12,7 +12,6 @@ import (
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/gofeaturespb"
reflect "reflect"
sync "sync"
)
type Strip int32
@ -56,11 +55,6 @@ func (x Strip) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Strip.Descriptor instead.
func (Strip) EnumDescriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescGZIP(), []int{0}
}
type Both int32
const (
@ -108,11 +102,6 @@ func (x Both) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Both.Descriptor instead.
func (Both) EnumDescriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescGZIP(), []int{1}
}
type BothNoPrefix int32
const (
@ -154,11 +143,6 @@ func (x BothNoPrefix) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BothNoPrefix.Descriptor instead.
func (BothNoPrefix) EnumDescriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescGZIP(), []int{2}
}
type BothButOne int32
const (
@ -205,11 +189,6 @@ func (x BothButOne) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BothButOne.Descriptor instead.
func (BothButOne) EnumDescriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescGZIP(), []int{3}
}
var File_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto protoreflect.FileDescriptor
var file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDesc = []byte{
@ -241,18 +220,6 @@ var file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDesc = []byte
0x03, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe9, 0x07,
}
var (
file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescOnce sync.Once
file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescData = file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDesc
)
func file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescGZIP() []byte {
file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescOnce.Do(func() {
file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescData)
})
return file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDescData
}
var file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
var file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_goTypes = []any{
(Strip)(0), // 0: goproto.protoc.enumprefix.Strip

View File

@ -15,12 +15,11 @@ import (
)
type BaseMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
Field *string `protobuf:"bytes,1,opt,name=field" json:"field,omitempty"`
extensionFields protoimpl.ExtensionFields
Field *string `protobuf:"bytes,1,opt,name=field" json:"field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BaseMessage) Reset() {
@ -61,10 +60,10 @@ func (x *BaseMessage) GetField() string {
}
type MessageSetWireFormatMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MessageSetWireFormatMessage) Reset() {

View File

@ -70,11 +70,10 @@ func (Enum) EnumDescriptor() ([]byte, []int) {
}
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Data []byte `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
Data []byte `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Message) Reset() {
@ -115,11 +114,10 @@ func (x *Message) GetData() []byte {
}
type ExtensionGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ExtensionGroup *string `protobuf:"bytes,120,opt,name=extension_group,json=extensionGroup" json:"extension_group,omitempty"`
state protoimpl.MessageState `protogen:"open.v1"`
ExtensionGroup *string `protobuf:"bytes,120,opt,name=extension_group,json=extensionGroup" json:"extension_group,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExtensionGroup) Reset() {
@ -161,9 +159,9 @@ func (x *ExtensionGroup) GetExtensionGroup() string {
// Extend in the scope of another type.
type ExtendingMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExtendingMessage) Reset() {
@ -197,11 +195,10 @@ func (*ExtendingMessage) Descriptor() ([]byte, []int) {
}
type RepeatedGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RepeatedXGroup []string `protobuf:"bytes,319,rep,name=repeated_x_group,json=repeatedXGroup" json:"repeated_x_group,omitempty"`
state protoimpl.MessageState `protogen:"open.v1"`
RepeatedXGroup []string `protobuf:"bytes,319,rep,name=repeated_x_group,json=repeatedXGroup" json:"repeated_x_group,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RepeatedGroup) Reset() {
@ -243,10 +240,10 @@ func (x *RepeatedGroup) GetRepeatedXGroup() []string {
// An extension of an extension.
type Extendable struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Extendable) Reset() {
@ -281,9 +278,9 @@ func (*Extendable) Descriptor() ([]byte, []int) {
// Message set wire format.
type MessageSetWireFormatExtension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MessageSetWireFormatExtension) Reset() {
@ -317,9 +314,9 @@ func (*MessageSetWireFormatExtension) Descriptor() ([]byte, []int) {
}
type Message_M struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message_M) Reset() {
@ -353,9 +350,9 @@ func (*Message_M) Descriptor() ([]byte, []int) {
}
type ExtendingMessage_ExtendingMessageSubmessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExtendingMessage_ExtendingMessageSubmessage) Reset() {

View File

@ -15,11 +15,10 @@ import (
)
type ExtraMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Data []byte `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
Data []byte `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ExtraMessage) Reset() {

View File

@ -59,9 +59,9 @@ func (Enum) EnumDescriptor() ([]byte, []int) {
}
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message) Reset() {

View File

@ -20,10 +20,7 @@ import (
// This exists to demonstrate the current behavior and catch unintended
// changes in it.
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// Various CamelCase conversions.
FieldOne *string `protobuf:"bytes,1,opt,name=field_one,json=fieldOne" json:"field_one,omitempty"`
FieldTwo *string `protobuf:"bytes,2,opt,name=FieldTwo" json:"FieldTwo,omitempty"`
@ -44,23 +41,25 @@ type Message struct {
Name_ *string `protobuf:"bytes,31,opt,name=name" json:"name,omitempty"`
// Oneof that conflicts with its first field: The oneof is renamed.
//
// Types that are assignable to OneofConflictA_:
// Types that are valid to be assigned to OneofConflictA_:
//
// *Message_OneofConflictA
OneofConflictA_ isMessage_OneofConflictA_ `protobuf_oneof:"oneof_conflict_a"`
// Oneof that conflicts with its second field: The field is renamed.
//
// Types that are assignable to OneofConflictB:
// Types that are valid to be assigned to OneofConflictB:
//
// *Message_OneofNoConflict
// *Message_OneofConflictB_
OneofConflictB isMessage_OneofConflictB `protobuf_oneof:"oneof_conflict_b"`
// Oneof with a field name that conflicts with a nested message.
//
// Types that are assignable to OneofConflictC:
// Types that are valid to be assigned to OneofConflictC:
//
// *Message_OneofMessageConflict_
OneofConflictC isMessage_OneofConflictC `protobuf_oneof:"oneof_conflict_c"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message) Reset() {
@ -191,51 +190,59 @@ func (x *Message) GetName_() string {
return ""
}
func (m *Message) GetOneofConflictA_() isMessage_OneofConflictA_ {
if m != nil {
return m.OneofConflictA_
func (x *Message) GetOneofConflictA_() isMessage_OneofConflictA_ {
if x != nil {
return x.OneofConflictA_
}
return nil
}
func (x *Message) GetOneofConflictA() string {
if x, ok := x.GetOneofConflictA_().(*Message_OneofConflictA); ok {
return x.OneofConflictA
if x != nil {
if x, ok := x.OneofConflictA_.(*Message_OneofConflictA); ok {
return x.OneofConflictA
}
}
return ""
}
func (m *Message) GetOneofConflictB() isMessage_OneofConflictB {
if m != nil {
return m.OneofConflictB
func (x *Message) GetOneofConflictB() isMessage_OneofConflictB {
if x != nil {
return x.OneofConflictB
}
return nil
}
func (x *Message) GetOneofNoConflict() string {
if x, ok := x.GetOneofConflictB().(*Message_OneofNoConflict); ok {
return x.OneofNoConflict
if x != nil {
if x, ok := x.OneofConflictB.(*Message_OneofNoConflict); ok {
return x.OneofNoConflict
}
}
return ""
}
func (x *Message) GetOneofConflictB_() string {
if x, ok := x.GetOneofConflictB().(*Message_OneofConflictB_); ok {
return x.OneofConflictB_
if x != nil {
if x, ok := x.OneofConflictB.(*Message_OneofConflictB_); ok {
return x.OneofConflictB_
}
}
return ""
}
func (m *Message) GetOneofConflictC() isMessage_OneofConflictC {
if m != nil {
return m.OneofConflictC
func (x *Message) GetOneofConflictC() isMessage_OneofConflictC {
if x != nil {
return x.OneofConflictC
}
return nil
}
func (x *Message) GetOneofMessageConflict() string {
if x, ok := x.GetOneofConflictC().(*Message_OneofMessageConflict_); ok {
return x.OneofMessageConflict
if x != nil {
if x, ok := x.OneofConflictC.(*Message_OneofMessageConflict_); ok {
return x.OneofMessageConflict
}
}
return ""
}
@ -277,9 +284,9 @@ type Message_OneofMessageConflict_ struct {
func (*Message_OneofMessageConflict_) isMessage_OneofConflictC() {}
type Message_OneofMessageConflict struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message_OneofMessageConflict) Reset() {

View File

@ -24,6 +24,7 @@ import (
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/issue780_oneof_conflict"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/nameclash"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/nopackage"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2"
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3"

View File

@ -54,13 +54,12 @@ type M_Submessage_SubmessageOneofInt64 = sub.M_Submessage_SubmessageOneofInt64
var E_ExtensionField = sub.E_ExtensionField
type Public struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"`
Local *Local `protobuf:"bytes,3,opt,name=local" json:"local,omitempty"`
unknownFields protoimpl.UnknownFields
M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"`
Local *Local `protobuf:"bytes,3,opt,name=local" json:"local,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Public) Reset() {

View File

@ -16,12 +16,11 @@ import (
)
type Local struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"`
unknownFields protoimpl.UnknownFields
M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Local) Reset() {

View File

@ -16,15 +16,14 @@ import (
)
type UsingPublicImport struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// Local is declared in b.proto, which is a public import of a.proto.
Local *Local `protobuf:"bytes,1,opt,name=local" json:"local,omitempty"`
// Sub2Message is declared in sub2/a.proto, which is a public import of
// sub/a.proto, which is a public import of a.proto.
Sub2 *sub2.Sub2Message `protobuf:"bytes,2,opt,name=sub2" json:"sub2,omitempty"` // declared in sub2/a.proto
Sub2 *sub2.Sub2Message `protobuf:"bytes,2,opt,name=sub2" json:"sub2,omitempty"` // declared in sub2/a.proto
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UsingPublicImport) Reset() {

View File

@ -180,21 +180,20 @@ func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int) {
}
type M struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
state protoimpl.MessageState `protogen:"open.v1"`
// Field using a type in the same Go package, but a different source file.
M2 *M2 `protobuf:"bytes,1,opt,name=m2" json:"m2,omitempty"`
S *string `protobuf:"bytes,4,opt,name=s,def=default" json:"s,omitempty"`
B []byte `protobuf:"bytes,5,opt,name=b,def=default" json:"b,omitempty"`
F *float64 `protobuf:"fixed64,6,opt,name=f,def=nan" json:"f,omitempty"`
// Types that are assignable to OneofField:
// Types that are valid to be assigned to OneofField:
//
// *M_OneofInt32
// *M_OneofInt64
OneofField isM_OneofField `protobuf_oneof:"oneof_field"`
OneofField isM_OneofField `protobuf_oneof:"oneof_field"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for M fields.
@ -266,23 +265,27 @@ func (x *M) GetF() float64 {
return Default_M_F
}
func (m *M) GetOneofField() isM_OneofField {
if m != nil {
return m.OneofField
func (x *M) GetOneofField() isM_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *M) GetOneofInt32() int32 {
if x, ok := x.GetOneofField().(*M_OneofInt32); ok {
return x.OneofInt32
if x != nil {
if x, ok := x.OneofField.(*M_OneofInt32); ok {
return x.OneofInt32
}
}
return 0
}
func (x *M) GetOneofInt64() int64 {
if x, ok := x.GetOneofField().(*M_OneofInt64); ok {
return x.OneofInt64
if x != nil {
if x, ok := x.OneofField.(*M_OneofInt64); ok {
return x.OneofInt64
}
}
return 0
}
@ -304,15 +307,14 @@ func (*M_OneofInt32) isM_OneofField() {}
func (*M_OneofInt64) isM_OneofField() {}
type M_Submessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to SubmessageOneofField:
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to SubmessageOneofField:
//
// *M_Submessage_SubmessageOneofInt32
// *M_Submessage_SubmessageOneofInt64
SubmessageOneofField isM_Submessage_SubmessageOneofField `protobuf_oneof:"submessage_oneof_field"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M_Submessage) Reset() {
@ -345,23 +347,27 @@ func (*M_Submessage) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
}
func (m *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField {
if m != nil {
return m.SubmessageOneofField
func (x *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField {
if x != nil {
return x.SubmessageOneofField
}
return nil
}
func (x *M_Submessage) GetSubmessageOneofInt32() int32 {
if x, ok := x.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt32); ok {
return x.SubmessageOneofInt32
if x != nil {
if x, ok := x.SubmessageOneofField.(*M_Submessage_SubmessageOneofInt32); ok {
return x.SubmessageOneofInt32
}
}
return 0
}
func (x *M_Submessage) GetSubmessageOneofInt64() int64 {
if x, ok := x.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt64); ok {
return x.SubmessageOneofInt64
if x != nil {
if x, ok := x.SubmessageOneofField.(*M_Submessage_SubmessageOneofInt64); ok {
return x.SubmessageOneofInt64
}
}
return 0
}

View File

@ -15,9 +15,9 @@ import (
)
type M2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M2) Reset() {

View File

@ -15,9 +15,9 @@ import (
)
type Sub2Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Sub2Message) Reset() {

View File

@ -15,9 +15,9 @@ import (
)
type M struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M) Reset() {

View File

@ -58,9 +58,9 @@ func (E1) EnumDescriptor() ([]byte, []int) {
}
type M1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M1) Reset() {
@ -94,11 +94,10 @@ func (*M1) Descriptor() ([]byte, []int) {
}
type M1_1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
M1 *M1 `protobuf:"bytes,1,opt,name=m1,proto3" json:"m1,omitempty"`
unknownFields protoimpl.UnknownFields
M1 *M1 `protobuf:"bytes,1,opt,name=m1,proto3" json:"m1,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *M1_1) Reset() {

View File

@ -15,9 +15,9 @@ import (
)
type M2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M2) Reset() {

View File

@ -15,9 +15,9 @@ import (
)
type M3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M3) Reset() {

View File

@ -15,9 +15,9 @@ import (
)
type M4 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M4) Reset() {

View File

@ -15,9 +15,9 @@ import (
)
type M1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M1) Reset() {

View File

@ -15,9 +15,9 @@ import (
)
type M2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M2) Reset() {

View File

@ -16,11 +16,10 @@ import (
)
type A1M1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
F *test_a_1.M1 `protobuf:"bytes,1,opt,name=f,proto3" json:"f,omitempty"`
unknownFields protoimpl.UnknownFields
F *test_a_1.M1 `protobuf:"bytes,1,opt,name=f,proto3" json:"f,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *A1M1) Reset() {

View File

@ -16,11 +16,10 @@ import (
)
type A1M2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
F *test_a_1.M2 `protobuf:"bytes,1,opt,name=f,proto3" json:"f,omitempty"`
unknownFields protoimpl.UnknownFields
F *test_a_1.M2 `protobuf:"bytes,1,opt,name=f,proto3" json:"f,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *A1M2) Reset() {

View File

@ -19,15 +19,14 @@ import (
)
type All struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Am1 *test_a_1.M1 `protobuf:"bytes,1,opt,name=am1,proto3" json:"am1,omitempty"`
Am2 *test_a_1.M2 `protobuf:"bytes,2,opt,name=am2,proto3" json:"am2,omitempty"`
Bm1 *test_b_1.M1 `protobuf:"bytes,5,opt,name=bm1,proto3" json:"bm1,omitempty"`
Bm2 *test_b_1.M2 `protobuf:"bytes,6,opt,name=bm2,proto3" json:"bm2,omitempty"`
Fmt *fmt.M `protobuf:"bytes,7,opt,name=fmt,proto3" json:"fmt,omitempty"`
unknownFields protoimpl.UnknownFields
Am1 *test_a_1.M1 `protobuf:"bytes,1,opt,name=am1,proto3" json:"am1,omitempty"`
Am2 *test_a_1.M2 `protobuf:"bytes,2,opt,name=am2,proto3" json:"am2,omitempty"`
Bm1 *test_b_1.M1 `protobuf:"bytes,5,opt,name=bm1,proto3" json:"bm1,omitempty"`
Bm2 *test_b_1.M2 `protobuf:"bytes,6,opt,name=bm2,proto3" json:"bm2,omitempty"`
Fmt *fmt.M `protobuf:"bytes,7,opt,name=fmt,proto3" json:"fmt,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *All) Reset() {

View File

@ -15,14 +15,13 @@ import (
)
type Foo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Bar:
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Bar:
//
// *Foo_GetBar
Bar isFoo_Bar `protobuf_oneof:"bar"`
Bar isFoo_Bar `protobuf_oneof:"bar"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Foo) Reset() {
@ -55,16 +54,18 @@ func (*Foo) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_rawDescGZIP(), []int{0}
}
func (m *Foo) GetBar() isFoo_Bar {
if m != nil {
return m.Bar
func (x *Foo) GetBar() isFoo_Bar {
if x != nil {
return x.Bar
}
return nil
}
func (x *Foo) GetGetBar() string {
if x, ok := x.GetBar().(*Foo_GetBar); ok {
return x.GetBar
if x != nil {
if x, ok := x.Bar.(*Foo_GetBar); ok {
return x.GetBar
}
}
return ""
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,943 @@
// 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.
// This proto verifies that we keep the name mangling algorithm (which is
// position dependent) intact in the protoc_gen_go generator. The field names
// and the getter names have to be kept intact over time, both in the OPEN and
// in the HYBRID API. How fields are "mangled" is described in a comment per
// field.
// The order of "evaluation" of fields is important. Fields are evaluated in
// order of appearance, except the oneof union names, that are evaluated after
// their first member. For each field, check if there is a previous field name
// or getter name that clashes with this field or it's getter. In case there is
// a clash, add an _ to the field name and repeat. In the case of oneof's, the
// union will be renamed if it clashes with it's first member, but not if it
// clashes with it's second.
// This scheme is here for backwards compatibility.
// The type of clashes that can be are the following:
// 1 - My field name clashes with their getter name
// 2 - My getter name clashes with their field name
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open.proto
package test_name_clash_open
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/gofeaturespb"
reflect "reflect"
sync "sync"
)
type M1 struct {
state protoimpl.MessageState `protogen:"open.v1"`
// initial name in Go | Clashes with field | type | final name
// Foo | - | - | Foo
// GetFoo | foo | 1 | GetFoo_
// GetGetFoo | - | - | GetGetFoo
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
GetFoo_ *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"`
GetGetFoo *int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo" json:"get_get_foo,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M1) Reset() {
*x = M1{}
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *M1) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*M1) ProtoMessage() {}
func (x *M1) ProtoReflect() protoreflect.Message {
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_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)
}
// Deprecated: Use M1.ProtoReflect.Descriptor instead.
func (*M1) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{0}
}
func (x *M1) GetFoo() int32 {
if x != nil && x.Foo != nil {
return *x.Foo
}
return 0
}
func (x *M1) GetGetFoo_() int32 {
if x != nil && x.GetFoo_ != nil {
return *x.GetFoo_
}
return 0
}
func (x *M1) GetGetGetFoo() int32 {
if x != nil && x.GetGetFoo != nil {
return *x.GetGetFoo
}
return 0
}
type M2 struct {
state protoimpl.MessageState `protogen:"open.v1"`
// initial name in Go | Clashes with field | type | final name
// GetGetFoo | - | - | GetGetFoo
// GetFoo | get_get_foo | 2 | GetFoo_
// Foo | - | - | Foo
GetGetFoo *int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo" json:"get_get_foo,omitempty"`
GetFoo_ *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"`
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M2) Reset() {
*x = M2{}
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *M2) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*M2) ProtoMessage() {}
func (x *M2) ProtoReflect() protoreflect.Message {
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_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)
}
// Deprecated: Use M2.ProtoReflect.Descriptor instead.
func (*M2) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{1}
}
func (x *M2) GetGetGetFoo() int32 {
if x != nil && x.GetGetFoo != nil {
return *x.GetGetFoo
}
return 0
}
func (x *M2) GetGetFoo_() int32 {
if x != nil && x.GetFoo_ != nil {
return *x.GetFoo_
}
return 0
}
func (x *M2) GetFoo() int32 {
if x != nil && x.Foo != nil {
return *x.Foo
}
return 0
}
type M3 struct {
state protoimpl.MessageState `protogen:"open.v1"`
// initial name in Go | Clashes with field | type | final name
// GetFoo | - | - | GetFoo
// GetGetFoo | get_foo | 1 | GetGetFoo_
// Foo | get_foo | 2 | Foo_
GetFoo *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"`
GetGetFoo_ *int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo" json:"get_get_foo,omitempty"`
Foo_ *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M3) Reset() {
*x = M3{}
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *M3) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*M3) ProtoMessage() {}
func (x *M3) ProtoReflect() protoreflect.Message {
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_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)
}
// Deprecated: Use M3.ProtoReflect.Descriptor instead.
func (*M3) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{2}
}
func (x *M3) GetGetFoo() int32 {
if x != nil && x.GetFoo != nil {
return *x.GetFoo
}
return 0
}
func (x *M3) GetGetGetFoo_() int32 {
if x != nil && x.GetGetFoo_ != nil {
return *x.GetGetFoo_
}
return 0
}
func (x *M3) GetFoo_() int32 {
if x != nil && x.Foo_ != nil {
return *x.Foo_
}
return 0
}
type M4 struct {
state protoimpl.MessageState `protogen:"open.v1"`
// initial name in Go | Clashes with field | type | final name
// GetFoo | - | - | GetFoo
// GetGetFoo | get_foo | 1 | GetGetFoo_
//
// GetGetGetFoo | - | - | GetGetGetFoo
// | | |
//
// Foo | get_foo | 2 | Foo_
GetFoo *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"`
// Types that are valid to be assigned to GetGetFoo_:
//
// *M4_GetGetGetFoo
GetGetFoo_ isM4_GetGetFoo_ `protobuf_oneof:"get_get_foo"`
Foo_ *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M4) Reset() {
*x = M4{}
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *M4) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*M4) ProtoMessage() {}
func (x *M4) ProtoReflect() protoreflect.Message {
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_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)
}
// Deprecated: Use M4.ProtoReflect.Descriptor instead.
func (*M4) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{3}
}
func (x *M4) GetGetFoo() int32 {
if x != nil && x.GetFoo != nil {
return *x.GetFoo
}
return 0
}
func (x *M4) GetGetGetFoo_() isM4_GetGetFoo_ {
if x != nil {
return x.GetGetFoo_
}
return nil
}
func (x *M4) GetGetGetGetFoo() int32 {
if x != nil {
if x, ok := x.GetGetFoo_.(*M4_GetGetGetFoo); ok {
return x.GetGetGetFoo
}
}
return 0
}
func (x *M4) GetFoo_() int32 {
if x != nil && x.Foo_ != nil {
return *x.Foo_
}
return 0
}
type isM4_GetGetFoo_ interface {
isM4_GetGetFoo_()
}
type M4_GetGetGetFoo struct {
GetGetGetFoo int32 `protobuf:"varint,3,opt,name=get_get_get_foo,json=getGetGetFoo,oneof"`
}
func (*M4_GetGetGetFoo) isM4_GetGetFoo_() {}
type M5 struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Note evaluation order - get_get_foo before get_get_get_foo
// initial name in Go | Clashes with field | type | final name
// GetFoo | - | - | GetFoo
// GetGetGetFoo | - | - | GetGetGetFoo
//
// GetGetFoo | get_foo | 1 | GetGetFoo_
// | | |
//
// Foo | get_foo | 2 | Foo_
GetFoo *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"`
// Types that are valid to be assigned to GetGetGetFoo:
//
// *M5_GetGetFoo_
GetGetGetFoo isM5_GetGetGetFoo `protobuf_oneof:"get_get_get_foo"`
Foo_ *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M5) Reset() {
*x = M5{}
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *M5) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*M5) ProtoMessage() {}
func (x *M5) ProtoReflect() protoreflect.Message {
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use M5.ProtoReflect.Descriptor instead.
func (*M5) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{4}
}
func (x *M5) GetGetFoo() int32 {
if x != nil && x.GetFoo != nil {
return *x.GetFoo
}
return 0
}
func (x *M5) GetGetGetGetFoo() isM5_GetGetGetFoo {
if x != nil {
return x.GetGetGetFoo
}
return nil
}
func (x *M5) GetGetGetFoo_() int32 {
if x != nil {
if x, ok := x.GetGetGetFoo.(*M5_GetGetFoo_); ok {
return x.GetGetFoo_
}
}
return 0
}
func (x *M5) GetFoo_() int32 {
if x != nil && x.Foo_ != nil {
return *x.Foo_
}
return 0
}
type isM5_GetGetGetFoo interface {
isM5_GetGetGetFoo()
}
type M5_GetGetFoo_ struct {
GetGetFoo_ int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo,oneof"`
}
func (*M5_GetGetFoo_) isM5_GetGetGetFoo() {}
type M6 struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Note evaluation order - get_get_get_foo before get_get_foo
// initial name in Go | Clashes with field | type | final name
// GetGetFoo | - | - | GetGetFoo
//
// GetGetGetFoo | - | - | GetGetGetFoo
// | | |
//
// GetFoo | get_get_foo | 2 | GetFoo_
// Foo | - | - | Foo
//
// Types that are valid to be assigned to GetGetFoo:
//
// *M6_GetGetGetFoo
GetGetFoo isM6_GetGetFoo `protobuf_oneof:"get_get_foo"`
GetFoo_ *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"`
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M6) Reset() {
*x = M6{}
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *M6) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*M6) ProtoMessage() {}
func (x *M6) ProtoReflect() protoreflect.Message {
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use M6.ProtoReflect.Descriptor instead.
func (*M6) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{5}
}
func (x *M6) GetGetGetFoo() isM6_GetGetFoo {
if x != nil {
return x.GetGetFoo
}
return nil
}
func (x *M6) GetGetGetGetFoo() int32 {
if x != nil {
if x, ok := x.GetGetFoo.(*M6_GetGetGetFoo); ok {
return x.GetGetGetFoo
}
}
return 0
}
func (x *M6) GetGetFoo_() int32 {
if x != nil && x.GetFoo_ != nil {
return *x.GetFoo_
}
return 0
}
func (x *M6) GetFoo() int32 {
if x != nil && x.Foo != nil {
return *x.Foo
}
return 0
}
type isM6_GetGetFoo interface {
isM6_GetGetFoo()
}
type M6_GetGetGetFoo struct {
GetGetGetFoo int32 `protobuf:"varint,3,opt,name=get_get_get_foo,json=getGetGetFoo,oneof"`
}
func (*M6_GetGetGetFoo) isM6_GetGetFoo() {}
type M7 struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Note evaluation order - bar before get_get_foo, then get_get_get_foo
// initial name in Go | Clashes with field | type | final name
// GetGetFoo | - | - | GetGetFoo
//
// Bar | - | - | Bar
// GetFoo | foo | 1 | GetFoo_
// | | |
//
// Foo | - | - | Foo
//
// Types that are valid to be assigned to GetGetFoo:
//
// *M7_Bar
// *M7_GetFoo_
GetGetFoo isM7_GetGetFoo `protobuf_oneof:"get_get_foo"`
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M7) Reset() {
*x = M7{}
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *M7) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*M7) ProtoMessage() {}
func (x *M7) ProtoReflect() protoreflect.Message {
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use M7.ProtoReflect.Descriptor instead.
func (*M7) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{6}
}
func (x *M7) GetGetGetFoo() isM7_GetGetFoo {
if x != nil {
return x.GetGetFoo
}
return nil
}
func (x *M7) GetBar() bool {
if x != nil {
if x, ok := x.GetGetFoo.(*M7_Bar); ok {
return x.Bar
}
}
return false
}
func (x *M7) GetGetFoo_() int32 {
if x != nil {
if x, ok := x.GetGetFoo.(*M7_GetFoo_); ok {
return x.GetFoo_
}
}
return 0
}
func (x *M7) GetFoo() int32 {
if x != nil && x.Foo != nil {
return *x.Foo
}
return 0
}
type isM7_GetGetFoo interface {
isM7_GetGetFoo()
}
type M7_Bar struct {
Bar bool `protobuf:"varint,4,opt,name=bar,oneof"`
}
type M7_GetFoo_ struct {
GetFoo_ int32 `protobuf:"varint,3,opt,name=get_foo,json=getFoo,oneof"`
}
func (*M7_Bar) isM7_GetGetFoo() {}
func (*M7_GetFoo_) isM7_GetGetFoo() {}
type M8 struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Note evaluation order - get_get_foo before get_get_get_foo
// initial name in Go | Clashes with field | type | final name
// GetGetGetFoo | get_get_foo | 1 | GetGetGetFoo_
//
// GetGetFoo | - | - | GetGetFoo
// | | |
//
// GetFoo | get_get_foo | 2 | GetFoo_
// Foo | - | - | Foo
//
// Types that are valid to be assigned to GetGetGetFoo_:
//
// *M8_GetGetFoo
GetGetGetFoo_ isM8_GetGetGetFoo_ `protobuf_oneof:"get_get_get_foo"`
GetFoo_ *int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo" json:"get_foo,omitempty"`
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M8) Reset() {
*x = M8{}
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *M8) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*M8) ProtoMessage() {}
func (x *M8) ProtoReflect() protoreflect.Message {
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use M8.ProtoReflect.Descriptor instead.
func (*M8) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{7}
}
func (x *M8) GetGetGetGetFoo_() isM8_GetGetGetFoo_ {
if x != nil {
return x.GetGetGetFoo_
}
return nil
}
func (x *M8) GetGetGetFoo() int32 {
if x != nil {
if x, ok := x.GetGetGetFoo_.(*M8_GetGetFoo); ok {
return x.GetGetFoo
}
}
return 0
}
func (x *M8) GetGetFoo_() int32 {
if x != nil && x.GetFoo_ != nil {
return *x.GetFoo_
}
return 0
}
func (x *M8) GetFoo() int32 {
if x != nil && x.Foo != nil {
return *x.Foo
}
return 0
}
type isM8_GetGetGetFoo_ interface {
isM8_GetGetGetFoo_()
}
type M8_GetGetFoo struct {
GetGetFoo int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo,oneof"`
}
func (*M8_GetGetFoo) isM8_GetGetGetFoo_() {}
type M9 struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Note evaluation order - get_get_foo before get_get_get_foo, then get_foo
// initial name in Go | Clashes with field | type | final name
// GetGetGetFoo | get_get_foo | 1 | GetGetGetFoo_
//
// GetGetFoo | - | - | GetGetFoo
// GetFoo | get_get_foo | 2 | GetFoo_
// | | |
//
// Foo | - | - | Foo
//
// Types that are valid to be assigned to GetGetGetFoo_:
//
// *M9_GetGetFoo
// *M9_GetFoo_
GetGetGetFoo_ isM9_GetGetGetFoo_ `protobuf_oneof:"get_get_get_foo"`
Foo *int32 `protobuf:"varint,1,opt,name=foo" json:"foo,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *M9) Reset() {
*x = M9{}
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *M9) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*M9) ProtoMessage() {}
func (x *M9) ProtoReflect() protoreflect.Message {
mi := &file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use M9.ProtoReflect.Descriptor instead.
func (*M9) Descriptor() ([]byte, []int) {
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP(), []int{8}
}
func (x *M9) GetGetGetGetFoo_() isM9_GetGetGetFoo_ {
if x != nil {
return x.GetGetGetFoo_
}
return nil
}
func (x *M9) GetGetGetFoo() int32 {
if x != nil {
if x, ok := x.GetGetGetFoo_.(*M9_GetGetFoo); ok {
return x.GetGetFoo
}
}
return 0
}
func (x *M9) GetGetFoo_() int32 {
if x != nil {
if x, ok := x.GetGetGetFoo_.(*M9_GetFoo_); ok {
return x.GetFoo_
}
}
return 0
}
func (x *M9) GetFoo() int32 {
if x != nil && x.Foo != nil {
return *x.Foo
}
return 0
}
type isM9_GetGetGetFoo_ interface {
isM9_GetGetGetFoo_()
}
type M9_GetGetFoo struct {
GetGetFoo int32 `protobuf:"varint,3,opt,name=get_get_foo,json=getGetFoo,oneof"`
}
type M9_GetFoo_ struct {
GetFoo_ int32 `protobuf:"varint,2,opt,name=get_foo,json=getFoo,oneof"`
}
func (*M9_GetGetFoo) isM9_GetGetGetFoo_() {}
func (*M9_GetFoo_) isM9_GetGetGetFoo_() {}
var File_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto protoreflect.FileDescriptor
var file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc = []byte{
0x0a, 0x3f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6e, 0x61, 0x6d,
0x65, 0x63, 0x6c, 0x61, 0x73, 0x68, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x5f, 0x63, 0x6c, 0x61, 0x73, 0x68, 0x5f, 0x6f, 0x70, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x24, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x67, 0x6f,
0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x63, 0x6c,
0x61, 0x73, 0x68, 0x6f, 0x70, 0x65, 0x6e, 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, 0x4f, 0x0a, 0x02, 0x4d, 0x31,
0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x66,
0x6f, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x02, 0x20,
0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x1e, 0x0a, 0x0b, 0x67,
0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
0x52, 0x09, 0x67, 0x65, 0x74, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x22, 0x4f, 0x0a, 0x02, 0x4d,
0x32, 0x12, 0x1e, 0x0a, 0x0b, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f,
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, 0x65, 0x74, 0x47, 0x65, 0x74, 0x46, 0x6f,
0x6f, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x02, 0x20, 0x01,
0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f,
0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x22, 0x4f, 0x0a, 0x02,
0x4d, 0x33, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x02, 0x20,
0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x1e, 0x0a, 0x0b, 0x67,
0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
0x52, 0x09, 0x67, 0x65, 0x74, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x66,
0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x22, 0x67, 0x0a,
0x02, 0x4d, 0x34, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x02,
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x27, 0x0a, 0x0f,
0x67, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18,
0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0c, 0x67, 0x65, 0x74, 0x47, 0x65, 0x74, 0x47,
0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01,
0x28, 0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x42, 0x0d, 0x0a, 0x0b, 0x67, 0x65, 0x74, 0x5f, 0x67,
0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x22, 0x64, 0x0a, 0x02, 0x4d, 0x35, 0x12, 0x17, 0x0a, 0x07,
0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67,
0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x74,
0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x09, 0x67, 0x65,
0x74, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01,
0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x42, 0x11, 0x0a, 0x0f, 0x67, 0x65, 0x74,
0x5f, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x22, 0x67, 0x0a, 0x02,
0x4d, 0x36, 0x12, 0x27, 0x0a, 0x0f, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65,
0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0c, 0x67,
0x65, 0x74, 0x47, 0x65, 0x74, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x67,
0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65,
0x74, 0x46, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x42, 0x0d, 0x0a, 0x0b, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65,
0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x22, 0x54, 0x0a, 0x02, 0x4d, 0x37, 0x12, 0x12, 0x0a, 0x03, 0x62,
0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x03, 0x62, 0x61, 0x72, 0x12,
0x19, 0x0a, 0x07, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
0x48, 0x00, 0x52, 0x06, 0x67, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f,
0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x42, 0x0d, 0x0a, 0x0b,
0x67, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x22, 0x64, 0x0a, 0x02, 0x4d,
0x38, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f,
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x09, 0x67, 0x65, 0x74, 0x47, 0x65, 0x74,
0x46, 0x6f, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x02,
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03,
0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x42, 0x11,
0x0a, 0x0f, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f,
0x6f, 0x22, 0x66, 0x0a, 0x02, 0x4d, 0x39, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x65, 0x74, 0x5f, 0x67,
0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x09,
0x67, 0x65, 0x74, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x6f, 0x12, 0x19, 0x0a, 0x07, 0x67, 0x65, 0x74,
0x5f, 0x66, 0x6f, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x06, 0x67, 0x65,
0x74, 0x46, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
0x05, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x42, 0x11, 0x0a, 0x0f, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x65,
0x74, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x6f, 0x6f, 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, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61,
0x74, 0x61, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x63, 0x6c, 0x61, 0x73, 0x68, 0x2f, 0x74, 0x65, 0x73,
0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x68, 0x5f, 0x6f, 0x70, 0x65,
0x6e, 0x92, 0x03, 0x05, 0xd2, 0x3e, 0x02, 0x10, 0x01, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69,
0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var (
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescOnce sync.Once
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescData = file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc
)
func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescGZIP() []byte {
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescOnce.Do(func() {
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescData)
})
return file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDescData
}
var file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_goTypes = []any{
(*M1)(nil), // 0: net.proto2.go.testdata.nameclashopen.M1
(*M2)(nil), // 1: net.proto2.go.testdata.nameclashopen.M2
(*M3)(nil), // 2: net.proto2.go.testdata.nameclashopen.M3
(*M4)(nil), // 3: net.proto2.go.testdata.nameclashopen.M4
(*M5)(nil), // 4: net.proto2.go.testdata.nameclashopen.M5
(*M6)(nil), // 5: net.proto2.go.testdata.nameclashopen.M6
(*M7)(nil), // 6: net.proto2.go.testdata.nameclashopen.M7
(*M8)(nil), // 7: net.proto2.go.testdata.nameclashopen.M8
(*M9)(nil), // 8: net.proto2.go.testdata.nameclashopen.M9
}
var file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_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_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_init() }
func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_init() {
if File_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto != nil {
return
}
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[3].OneofWrappers = []any{
(*M4_GetGetGetFoo)(nil),
}
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[4].OneofWrappers = []any{
(*M5_GetGetFoo_)(nil),
}
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[5].OneofWrappers = []any{
(*M6_GetGetGetFoo)(nil),
}
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[6].OneofWrappers = []any{
(*M7_Bar)(nil),
(*M7_GetFoo_)(nil),
}
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[7].OneofWrappers = []any{
(*M8_GetGetFoo)(nil),
}
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes[8].OneofWrappers = []any{
(*M9_GetGetFoo)(nil),
(*M9_GetFoo_)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc,
NumEnums: 0,
NumMessages: 9,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_goTypes,
DependencyIndexes: file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_depIdxs,
MessageInfos: file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_msgTypes,
}.Build()
File_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto = out.File
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc = nil
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_goTypes = nil
file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_depIdxs = nil
}

File diff suppressed because it is too large Load Diff

View File

@ -68,12 +68,11 @@ func (Enum) EnumDescriptor() ([]byte, []int) {
}
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
StringField *string `protobuf:"bytes,1,opt,name=string_field,json=stringField" json:"string_field,omitempty"`
EnumField *Enum `protobuf:"varint,2,opt,name=enum_field,json=enumField,enum=Enum,def=0" json:"enum_field,omitempty"`
unknownFields protoimpl.UnknownFields
StringField *string `protobuf:"bytes,1,opt,name=string_field,json=stringField" json:"string_field,omitempty"`
EnumField *Enum `protobuf:"varint,2,opt,name=enum_field,json=enumField,enum=Enum,def=0" json:"enum_field,omitempty"`
sizeCache protoimpl.SizeCache
}
// Default values for Message fields.

View File

@ -346,12 +346,11 @@ func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescript
}
type EnumContainerMessage1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
state protoimpl.MessageState `protogen:"open.v1"`
DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for EnumContainerMessage1 fields.
@ -405,9 +404,9 @@ func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
}
type EnumContainerMessage1_EnumContainerMessage2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() {

View File

@ -72,10 +72,7 @@ func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int) {
}
type FieldTestMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
OptionalBool *bool `protobuf:"varint,1,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"`
OptionalEnum *FieldTestMessage_Enum `protobuf:"varint,2,opt,name=optional_enum,json=optionalEnum,enum=goproto.protoc.proto2.FieldTestMessage_Enum" json:"optional_enum,omitempty"`
OptionalInt32 *int32 `protobuf:"varint,3,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
@ -157,7 +154,7 @@ type FieldTestMessage struct {
MapInt32Int64 map[int32]int64 `protobuf:"bytes,500,rep,name=map_int32_int64,json=mapInt32Int64" json:"map_int32_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapStringMessage map[string]*FieldTestMessage_Message `protobuf:"bytes,501,rep,name=map_string_message,json=mapStringMessage" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapFixed64Enum map[uint64]FieldTestMessage_Enum `protobuf:"bytes,502,rep,name=map_fixed64_enum,json=mapFixed64Enum" json:"map_fixed64_enum,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.protoc.proto2.FieldTestMessage_Enum"`
// Types that are assignable to OneofField:
// Types that are valid to be assigned to OneofField:
//
// *FieldTestMessage_OneofBool
// *FieldTestMessage_OneofEnum
@ -179,11 +176,13 @@ type FieldTestMessage struct {
// *FieldTestMessage_Oneofgroup
// *FieldTestMessage_OneofLargestTag
OneofField isFieldTestMessage_OneofField `protobuf_oneof:"oneof_field"`
// Types that are assignable to OneofTwo:
// Types that are valid to be assigned to OneofTwo:
//
// *FieldTestMessage_OneofTwo_1
// *FieldTestMessage_OneofTwo_2
OneofTwo isFieldTestMessage_OneofTwo `protobuf_oneof:"oneof_two"`
OneofTwo isFieldTestMessage_OneofTwo `protobuf_oneof:"oneof_two"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for FieldTestMessage fields.
@ -815,163 +814,205 @@ func (x *FieldTestMessage) GetMapFixed64Enum() map[uint64]FieldTestMessage_Enum
return nil
}
func (m *FieldTestMessage) GetOneofField() isFieldTestMessage_OneofField {
if m != nil {
return m.OneofField
func (x *FieldTestMessage) GetOneofField() isFieldTestMessage_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *FieldTestMessage) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *FieldTestMessage) GetOneofEnum() FieldTestMessage_Enum {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofEnum); ok {
return x.OneofEnum
}
}
return FieldTestMessage_ZERO
}
func (x *FieldTestMessage) GetOneofInt32() int32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofInt32); ok {
return x.OneofInt32
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofInt32); ok {
return x.OneofInt32
}
}
return 0
}
func (x *FieldTestMessage) GetOneofSint32() int32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofSint32); ok {
return x.OneofSint32
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofSint32); ok {
return x.OneofSint32
}
}
return 0
}
func (x *FieldTestMessage) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *FieldTestMessage) GetOneofInt64() int64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofInt64); ok {
return x.OneofInt64
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofInt64); ok {
return x.OneofInt64
}
}
return 0
}
func (x *FieldTestMessage) GetOneofSint64() int64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofSint64); ok {
return x.OneofSint64
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofSint64); ok {
return x.OneofSint64
}
}
return 0
}
func (x *FieldTestMessage) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *FieldTestMessage) GetOneofSfixed32() int32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofSfixed32); ok {
return x.OneofSfixed32
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofSfixed32); ok {
return x.OneofSfixed32
}
}
return 0
}
func (x *FieldTestMessage) GetOneofFixed32() uint32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofFixed32); ok {
return x.OneofFixed32
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofFixed32); ok {
return x.OneofFixed32
}
}
return 0
}
func (x *FieldTestMessage) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *FieldTestMessage) GetOneofSfixed64() int64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofSfixed64); ok {
return x.OneofSfixed64
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofSfixed64); ok {
return x.OneofSfixed64
}
}
return 0
}
func (x *FieldTestMessage) GetOneofFixed64() uint64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofFixed64); ok {
return x.OneofFixed64
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofFixed64); ok {
return x.OneofFixed64
}
}
return 0
}
func (x *FieldTestMessage) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *FieldTestMessage) GetOneofString() string {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *FieldTestMessage) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *FieldTestMessage) GetOneof_Message() *FieldTestMessage_Message {
if x, ok := x.GetOneofField().(*FieldTestMessage_Oneof_Message); ok {
return x.Oneof_Message
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_Oneof_Message); ok {
return x.Oneof_Message
}
}
return nil
}
func (x *FieldTestMessage) GetOneofgroup() *FieldTestMessage_OneofGroup {
if x, ok := x.GetOneofField().(*FieldTestMessage_Oneofgroup); ok {
return x.Oneofgroup
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_Oneofgroup); ok {
return x.Oneofgroup
}
}
return nil
}
func (x *FieldTestMessage) GetOneofLargestTag() int32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofLargestTag); ok {
return x.OneofLargestTag
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofLargestTag); ok {
return x.OneofLargestTag
}
}
return 0
}
func (m *FieldTestMessage) GetOneofTwo() isFieldTestMessage_OneofTwo {
if m != nil {
return m.OneofTwo
func (x *FieldTestMessage) GetOneofTwo() isFieldTestMessage_OneofTwo {
if x != nil {
return x.OneofTwo
}
return nil
}
func (x *FieldTestMessage) GetOneofTwo_1() int32 {
if x, ok := x.GetOneofTwo().(*FieldTestMessage_OneofTwo_1); ok {
return x.OneofTwo_1
if x != nil {
if x, ok := x.OneofTwo.(*FieldTestMessage_OneofTwo_1); ok {
return x.OneofTwo_1
}
}
return 0
}
func (x *FieldTestMessage) GetOneofTwo_2() int64 {
if x, ok := x.GetOneofTwo().(*FieldTestMessage_OneofTwo_2); ok {
return x.OneofTwo_2
if x != nil {
if x, ok := x.OneofTwo.(*FieldTestMessage_OneofTwo_2); ok {
return x.OneofTwo_2
}
}
return 0
}
@ -1111,11 +1152,10 @@ func (*FieldTestMessage_OneofTwo_1) isFieldTestMessage_OneofTwo() {}
func (*FieldTestMessage_OneofTwo_2) isFieldTestMessage_OneofTwo() {}
type FieldTestMessage_OptionalGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
OptionalGroup *string `protobuf:"bytes,19,opt,name=optional_group,json=optionalGroup" json:"optional_group,omitempty"`
unknownFields protoimpl.UnknownFields
OptionalGroup *string `protobuf:"bytes,19,opt,name=optional_group,json=optionalGroup" json:"optional_group,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_OptionalGroup) Reset() {
@ -1156,11 +1196,10 @@ func (x *FieldTestMessage_OptionalGroup) GetOptionalGroup() string {
}
type FieldTestMessage_RequiredGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
RequiredGroup *string `protobuf:"bytes,119,req,name=required_group,json=requiredGroup" json:"required_group,omitempty"`
unknownFields protoimpl.UnknownFields
RequiredGroup *string `protobuf:"bytes,119,req,name=required_group,json=requiredGroup" json:"required_group,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_RequiredGroup) Reset() {
@ -1201,11 +1240,10 @@ func (x *FieldTestMessage_RequiredGroup) GetRequiredGroup() string {
}
type FieldTestMessage_RepeatedGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
RepeatedGroup []string `protobuf:"bytes,219,rep,name=repeated_group,json=repeatedGroup" json:"repeated_group,omitempty"`
unknownFields protoimpl.UnknownFields
RepeatedGroup []string `protobuf:"bytes,219,rep,name=repeated_group,json=repeatedGroup" json:"repeated_group,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_RepeatedGroup) Reset() {
@ -1246,11 +1284,10 @@ func (x *FieldTestMessage_RepeatedGroup) GetRepeatedGroup() []string {
}
type FieldTestMessage_OneofGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
OneofGroupField *string `protobuf:"bytes,619,opt,name=oneof_group_field,json=oneofGroupField" json:"oneof_group_field,omitempty"`
state protoimpl.MessageState `protogen:"open.v1"`
OneofGroupField *string `protobuf:"bytes,619,opt,name=oneof_group_field,json=oneofGroupField" json:"oneof_group_field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_OneofGroup) Reset() {
@ -1291,9 +1328,9 @@ func (x *FieldTestMessage_OneofGroup) GetOneofGroupField() string {
}
type FieldTestMessage_Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_Message) Reset() {

View File

@ -15,12 +15,11 @@ import (
)
type Layer1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
L2 *Layer1_Layer2 `protobuf:"bytes,1,opt,name=l2" json:"l2,omitempty"`
L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,2,opt,name=l3" json:"l3,omitempty"`
unknownFields protoimpl.UnknownFields
L2 *Layer1_Layer2 `protobuf:"bytes,1,opt,name=l2" json:"l2,omitempty"`
L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,2,opt,name=l3" json:"l3,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Layer1) Reset() {
@ -68,11 +67,10 @@ func (x *Layer1) GetL3() *Layer1_Layer2_Layer3 {
}
type Layer1_Layer2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,1,opt,name=l3" json:"l3,omitempty"`
unknownFields protoimpl.UnknownFields
L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,1,opt,name=l3" json:"l3,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Layer1_Layer2) Reset() {
@ -113,9 +111,9 @@ func (x *Layer1_Layer2) GetL3() *Layer1_Layer2_Layer3 {
}
type Layer1_Layer2_Layer3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Layer1_Layer2_Layer3) Reset() {

View File

@ -15,12 +15,11 @@ import (
)
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
I32 *int32 `protobuf:"varint,1,opt,name=i32" json:"i32,omitempty"`
M *Message `protobuf:"bytes,2,opt,name=m" json:"m,omitempty"`
unknownFields protoimpl.UnknownFields
I32 *int32 `protobuf:"varint,1,opt,name=i32" json:"i32,omitempty"`
M *Message `protobuf:"bytes,2,opt,name=m" json:"m,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Message) Reset() {

View File

@ -58,10 +58,7 @@ func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int) {
}
type FieldTestMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
OptionalBool string `protobuf:"bytes,1,opt,name=optional_bool,json=optionalBool,proto3" json:"optional_bool,omitempty"`
OptionalEnum FieldTestMessage_Enum `protobuf:"varint,2,opt,name=optional_enum,json=optionalEnum,proto3,enum=goproto.protoc.proto3.FieldTestMessage_Enum" json:"optional_enum,omitempty"`
OptionalInt32 int32 `protobuf:"varint,3,opt,name=optional_int32,json=optionalInt32,proto3" json:"optional_int32,omitempty"`
@ -96,9 +93,11 @@ type FieldTestMessage struct {
RepeatedString []string `protobuf:"bytes,215,rep,name=repeated_string,json=repeatedString,proto3" json:"repeated_string,omitempty"`
RepeatedBytes [][]byte `protobuf:"bytes,216,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"`
Repeated_Message []*FieldTestMessage_Message `protobuf:"bytes,217,rep,name=repeated_Message,json=repeatedMessage,proto3" json:"repeated_Message,omitempty"`
MapInt32Int64 map[int32]int64 `protobuf:"bytes,500,rep,name=map_int32_int64,json=mapInt32Int64,proto3" json:"map_int32_int64,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapStringMessage map[string]*FieldTestMessage_Message `protobuf:"bytes,501,rep,name=map_string_message,json=mapStringMessage,proto3" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
MapFixed64Enum map[uint64]FieldTestMessage_Enum `protobuf:"bytes,502,rep,name=map_fixed64_enum,json=mapFixed64Enum,proto3" json:"map_fixed64_enum,omitempty" protobuf_key:"fixed64,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=goproto.protoc.proto3.FieldTestMessage_Enum"`
MapInt32Int64 map[int32]int64 `protobuf:"bytes,500,rep,name=map_int32_int64,json=mapInt32Int64,proto3" json:"map_int32_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapStringMessage map[string]*FieldTestMessage_Message `protobuf:"bytes,501,rep,name=map_string_message,json=mapStringMessage,proto3" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapFixed64Enum map[uint64]FieldTestMessage_Enum `protobuf:"bytes,502,rep,name=map_fixed64_enum,json=mapFixed64Enum,proto3" json:"map_fixed64_enum,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.protoc.proto3.FieldTestMessage_Enum"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage) Reset() {
@ -391,9 +390,9 @@ func (x *FieldTestMessage) GetMapFixed64Enum() map[uint64]FieldTestMessage_Enum
}
type FieldTestMessage_Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_Message) Reset() {

View File

@ -346,12 +346,11 @@ func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescript
}
type EnumContainerMessage1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.protoeditions.EnumType2,def=1" json:"default_duplicate1,omitempty"`
DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.protoeditions.EnumType2,def=1" json:"default_duplicate2,omitempty"`
state protoimpl.MessageState `protogen:"open.v1"`
DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.protoeditions.EnumType2,def=1" json:"default_duplicate1,omitempty"`
DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.protoeditions.EnumType2,def=1" json:"default_duplicate2,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for EnumContainerMessage1 fields.
@ -405,9 +404,9 @@ func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
}
type EnumContainerMessage1_EnumContainerMessage2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() {

View File

@ -62,10 +62,7 @@ func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int) {
}
type FieldTestMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
OptionalBool *bool `protobuf:"varint,1,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"`
OptionalEnum *FieldTestMessage_Enum `protobuf:"varint,2,opt,name=optional_enum,json=optionalEnum,enum=goproto.protoc.protoeditions.FieldTestMessage_Enum" json:"optional_enum,omitempty"`
OptionalInt32 *int32 `protobuf:"varint,3,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
@ -147,7 +144,7 @@ type FieldTestMessage struct {
MapInt32Int64 map[int32]int64 `protobuf:"bytes,500,rep,name=map_int32_int64,json=mapInt32Int64" json:"map_int32_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapStringMessage map[string]*FieldTestMessage_Message `protobuf:"bytes,501,rep,name=map_string_message,json=mapStringMessage" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapFixed64Enum map[uint64]FieldTestMessage_Enum `protobuf:"bytes,502,rep,name=map_fixed64_enum,json=mapFixed64Enum" json:"map_fixed64_enum,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.protoc.protoeditions.FieldTestMessage_Enum"`
// Types that are assignable to OneofField:
// Types that are valid to be assigned to OneofField:
//
// *FieldTestMessage_OneofBool
// *FieldTestMessage_OneofEnum
@ -169,11 +166,13 @@ type FieldTestMessage struct {
// *FieldTestMessage_Oneofgroup
// *FieldTestMessage_OneofLargestTag
OneofField isFieldTestMessage_OneofField `protobuf_oneof:"oneof_field"`
// Types that are assignable to OneofTwo:
// Types that are valid to be assigned to OneofTwo:
//
// *FieldTestMessage_OneofTwo_1
// *FieldTestMessage_OneofTwo_2
OneofTwo isFieldTestMessage_OneofTwo `protobuf_oneof:"oneof_two"`
OneofTwo isFieldTestMessage_OneofTwo `protobuf_oneof:"oneof_two"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for FieldTestMessage fields.
@ -805,163 +804,205 @@ func (x *FieldTestMessage) GetMapFixed64Enum() map[uint64]FieldTestMessage_Enum
return nil
}
func (m *FieldTestMessage) GetOneofField() isFieldTestMessage_OneofField {
if m != nil {
return m.OneofField
func (x *FieldTestMessage) GetOneofField() isFieldTestMessage_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *FieldTestMessage) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *FieldTestMessage) GetOneofEnum() FieldTestMessage_Enum {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofEnum); ok {
return x.OneofEnum
}
}
return FieldTestMessage_ZERO
}
func (x *FieldTestMessage) GetOneofInt32() int32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofInt32); ok {
return x.OneofInt32
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofInt32); ok {
return x.OneofInt32
}
}
return 0
}
func (x *FieldTestMessage) GetOneofSint32() int32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofSint32); ok {
return x.OneofSint32
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofSint32); ok {
return x.OneofSint32
}
}
return 0
}
func (x *FieldTestMessage) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *FieldTestMessage) GetOneofInt64() int64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofInt64); ok {
return x.OneofInt64
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofInt64); ok {
return x.OneofInt64
}
}
return 0
}
func (x *FieldTestMessage) GetOneofSint64() int64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofSint64); ok {
return x.OneofSint64
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofSint64); ok {
return x.OneofSint64
}
}
return 0
}
func (x *FieldTestMessage) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *FieldTestMessage) GetOneofSfixed32() int32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofSfixed32); ok {
return x.OneofSfixed32
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofSfixed32); ok {
return x.OneofSfixed32
}
}
return 0
}
func (x *FieldTestMessage) GetOneofFixed32() uint32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofFixed32); ok {
return x.OneofFixed32
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofFixed32); ok {
return x.OneofFixed32
}
}
return 0
}
func (x *FieldTestMessage) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *FieldTestMessage) GetOneofSfixed64() int64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofSfixed64); ok {
return x.OneofSfixed64
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofSfixed64); ok {
return x.OneofSfixed64
}
}
return 0
}
func (x *FieldTestMessage) GetOneofFixed64() uint64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofFixed64); ok {
return x.OneofFixed64
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofFixed64); ok {
return x.OneofFixed64
}
}
return 0
}
func (x *FieldTestMessage) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *FieldTestMessage) GetOneofString() string {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *FieldTestMessage) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *FieldTestMessage) GetOneof_Message() *FieldTestMessage_Message {
if x, ok := x.GetOneofField().(*FieldTestMessage_Oneof_Message); ok {
return x.Oneof_Message
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_Oneof_Message); ok {
return x.Oneof_Message
}
}
return nil
}
func (x *FieldTestMessage) GetOneofgroup() *FieldTestMessage_OneofGroup {
if x, ok := x.GetOneofField().(*FieldTestMessage_Oneofgroup); ok {
return x.Oneofgroup
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_Oneofgroup); ok {
return x.Oneofgroup
}
}
return nil
}
func (x *FieldTestMessage) GetOneofLargestTag() int32 {
if x, ok := x.GetOneofField().(*FieldTestMessage_OneofLargestTag); ok {
return x.OneofLargestTag
if x != nil {
if x, ok := x.OneofField.(*FieldTestMessage_OneofLargestTag); ok {
return x.OneofLargestTag
}
}
return 0
}
func (m *FieldTestMessage) GetOneofTwo() isFieldTestMessage_OneofTwo {
if m != nil {
return m.OneofTwo
func (x *FieldTestMessage) GetOneofTwo() isFieldTestMessage_OneofTwo {
if x != nil {
return x.OneofTwo
}
return nil
}
func (x *FieldTestMessage) GetOneofTwo_1() int32 {
if x, ok := x.GetOneofTwo().(*FieldTestMessage_OneofTwo_1); ok {
return x.OneofTwo_1
if x != nil {
if x, ok := x.OneofTwo.(*FieldTestMessage_OneofTwo_1); ok {
return x.OneofTwo_1
}
}
return 0
}
func (x *FieldTestMessage) GetOneofTwo_2() int64 {
if x, ok := x.GetOneofTwo().(*FieldTestMessage_OneofTwo_2); ok {
return x.OneofTwo_2
if x != nil {
if x, ok := x.OneofTwo.(*FieldTestMessage_OneofTwo_2); ok {
return x.OneofTwo_2
}
}
return 0
}
@ -1101,11 +1142,10 @@ func (*FieldTestMessage_OneofTwo_1) isFieldTestMessage_OneofTwo() {}
func (*FieldTestMessage_OneofTwo_2) isFieldTestMessage_OneofTwo() {}
type FieldTestMessage_OptionalGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Optionalgroup *string `protobuf:"bytes,19,opt,name=optionalgroup" json:"optionalgroup,omitempty"`
unknownFields protoimpl.UnknownFields
Optionalgroup *string `protobuf:"bytes,19,opt,name=optionalgroup" json:"optionalgroup,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_OptionalGroup) Reset() {
@ -1146,11 +1186,10 @@ func (x *FieldTestMessage_OptionalGroup) GetOptionalgroup() string {
}
type FieldTestMessage_RequiredGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
RequiredGroup *string `protobuf:"bytes,119,req,name=required_group,json=requiredGroup" json:"required_group,omitempty"`
unknownFields protoimpl.UnknownFields
RequiredGroup *string `protobuf:"bytes,119,req,name=required_group,json=requiredGroup" json:"required_group,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_RequiredGroup) Reset() {
@ -1191,11 +1230,10 @@ func (x *FieldTestMessage_RequiredGroup) GetRequiredGroup() string {
}
type FieldTestMessage_RepeatedGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
RepeatedGroup []string `protobuf:"bytes,219,rep,name=repeated_group,json=repeatedGroup" json:"repeated_group,omitempty"`
unknownFields protoimpl.UnknownFields
RepeatedGroup []string `protobuf:"bytes,219,rep,name=repeated_group,json=repeatedGroup" json:"repeated_group,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_RepeatedGroup) Reset() {
@ -1236,11 +1274,10 @@ func (x *FieldTestMessage_RepeatedGroup) GetRepeatedGroup() []string {
}
type FieldTestMessage_OneofGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
OneofGroupField *string `protobuf:"bytes,619,opt,name=oneof_group_field,json=oneofGroupField" json:"oneof_group_field,omitempty"`
state protoimpl.MessageState `protogen:"open.v1"`
OneofGroupField *string `protobuf:"bytes,619,opt,name=oneof_group_field,json=oneofGroupField" json:"oneof_group_field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_OneofGroup) Reset() {
@ -1281,9 +1318,9 @@ func (x *FieldTestMessage_OneofGroup) GetOneofGroupField() string {
}
type FieldTestMessage_Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FieldTestMessage_Message) Reset() {

View File

@ -179,9 +179,9 @@ func (ContainerForNestedEnum_NestedEnum) EnumDescriptor() ([]byte, []int) {
}
type ContainerForNestedEnum struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ContainerForNestedEnum) Reset() {

View File

@ -15,15 +15,14 @@ import (
)
type MessageWithMaps struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
MapWithoutMessage map[string]string `protobuf:"bytes,1,rep,name=map_without_message,json=mapWithoutMessage" json:"map_without_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapWithoutMessageB map[uint32][]byte `protobuf:"bytes,2,rep,name=map_without_message_b,json=mapWithoutMessageB" json:"map_without_message_b,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapWithMessage map[int64]*MessageWithMaps_NestedMessage `protobuf:"bytes,3,rep,name=map_with_message,json=mapWithMessage" json:"map_with_message,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
NestedMessage *MessageWithMaps_NestedMessage `protobuf:"group,4,opt,name=NestedMessage,json=nestedMessage" json:"nested_message,omitempty"`
RepeatedMessage []*MessageWithMaps_NestedMessage `protobuf:"group,5,rep,name=NestedMessage,json=repeatedMessage" json:"repeated_message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MessageWithMaps) Reset() {
@ -92,12 +91,11 @@ func (x *MessageWithMaps) GetRepeatedMessage() []*MessageWithMaps_NestedMessage
}
type MessageWithMaps_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Id *uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
Id *uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *MessageWithMaps_NestedMessage) Reset() {

View File

@ -15,12 +15,11 @@ import (
)
type Layer1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
L2 *Layer1_Layer2 `protobuf:"bytes,1,opt,name=l2" json:"l2,omitempty"`
L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,2,opt,name=l3" json:"l3,omitempty"`
unknownFields protoimpl.UnknownFields
L2 *Layer1_Layer2 `protobuf:"bytes,1,opt,name=l2" json:"l2,omitempty"`
L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,2,opt,name=l3" json:"l3,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Layer1) Reset() {
@ -68,11 +67,10 @@ func (x *Layer1) GetL3() *Layer1_Layer2_Layer3 {
}
type Layer1_Layer2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,1,opt,name=l3" json:"l3,omitempty"`
unknownFields protoimpl.UnknownFields
L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,1,opt,name=l3" json:"l3,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Layer1_Layer2) Reset() {
@ -113,9 +111,9 @@ func (x *Layer1_Layer2) GetL3() *Layer1_Layer2_Layer3 {
}
type Layer1_Layer2_Layer3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Layer1_Layer2_Layer3) Reset() {

View File

@ -17,13 +17,12 @@ import (
// Retention attributes set on fields nested within a message
type OptionsMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PlainField *int32 `protobuf:"varint,1,opt,name=plain_field,json=plainField" json:"plain_field,omitempty"`
RuntimeRetentionField *int32 `protobuf:"varint,2,opt,name=runtime_retention_field,json=runtimeRetentionField" json:"runtime_retention_field,omitempty"`
SourceRetentionField *int32 `protobuf:"varint,3,opt,name=source_retention_field,json=sourceRetentionField" json:"source_retention_field,omitempty"`
state protoimpl.MessageState `protogen:"open.v1"`
PlainField *int32 `protobuf:"varint,1,opt,name=plain_field,json=plainField" json:"plain_field,omitempty"`
RuntimeRetentionField *int32 `protobuf:"varint,2,opt,name=runtime_retention_field,json=runtimeRetentionField" json:"runtime_retention_field,omitempty"`
SourceRetentionField *int32 `protobuf:"varint,3,opt,name=source_retention_field,json=sourceRetentionField" json:"source_retention_field,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OptionsMessage) Reset() {

View File

@ -122,10 +122,10 @@ func (TopLevelMessage_NestedEnum) EnumDescriptor() ([]byte, []int) {
}
type Extendee struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Extendee) Reset() {
@ -159,16 +159,15 @@ func (*Extendee) Descriptor() ([]byte, []int) {
}
type TopLevelMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
F *float32 `protobuf:"fixed32,1,opt,name=f" json:"f,omitempty"`
// Types that are assignable to O:
state protoimpl.MessageState `protogen:"open.v1"`
F *float32 `protobuf:"fixed32,1,opt,name=f" json:"f,omitempty"`
// Types that are valid to be assigned to O:
//
// *TopLevelMessage_I
O isTopLevelMessage_O `protobuf_oneof:"o"`
O isTopLevelMessage_O `protobuf_oneof:"o"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TopLevelMessage) Reset() {
@ -208,16 +207,18 @@ func (x *TopLevelMessage) GetF() float32 {
return 0
}
func (m *TopLevelMessage) GetO() isTopLevelMessage_O {
if m != nil {
return m.O
func (x *TopLevelMessage) GetO() isTopLevelMessage_O {
if x != nil {
return x.O
}
return nil
}
func (x *TopLevelMessage) GetI() int64 {
if x, ok := x.GetO().(*TopLevelMessage_I); ok {
return x.I
if x != nil {
if x, ok := x.O.(*TopLevelMessage_I); ok {
return x.I
}
}
return 0
}
@ -233,9 +234,9 @@ type TopLevelMessage_I struct {
func (*TopLevelMessage_I) isTopLevelMessage_O() {}
type TopLevelMessage_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TopLevelMessage_NestedMessage) Reset() {

View File

@ -1120,26 +1120,20 @@ const (
// Field names for google.protobuf.FeatureSetDefaults.
const (
FeatureSetDefaults_Defaults_field_name protoreflect.Name = "defaults"
FeatureSetDefaults_MinimumEditionDeprecated_field_name protoreflect.Name = "minimum_edition"
FeatureSetDefaults_MaximumEditionDeprecated_field_name protoreflect.Name = "maximum_edition"
FeatureSetDefaults_MinimumEdition_field_name protoreflect.Name = "minimum_edition"
FeatureSetDefaults_MaximumEdition_field_name protoreflect.Name = "maximum_edition"
FeatureSetDefaults_Defaults_field_name protoreflect.Name = "defaults"
FeatureSetDefaults_MinimumEdition_field_name protoreflect.Name = "minimum_edition"
FeatureSetDefaults_MaximumEdition_field_name protoreflect.Name = "maximum_edition"
FeatureSetDefaults_Defaults_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.defaults"
FeatureSetDefaults_MinimumEditionDeprecated_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.minimum_edition"
FeatureSetDefaults_MaximumEditionDeprecated_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.maximum_edition"
FeatureSetDefaults_MinimumEdition_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.minimum_edition"
FeatureSetDefaults_MaximumEdition_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.maximum_edition"
FeatureSetDefaults_Defaults_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.defaults"
FeatureSetDefaults_MinimumEdition_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.minimum_edition"
FeatureSetDefaults_MaximumEdition_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.maximum_edition"
)
// Field numbers for google.protobuf.FeatureSetDefaults.
const (
FeatureSetDefaults_Defaults_field_number protoreflect.FieldNumber = 1
FeatureSetDefaults_MinimumEditionDeprecated_field_number protoreflect.FieldNumber = 2
FeatureSetDefaults_MaximumEditionDeprecated_field_number protoreflect.FieldNumber = 3
FeatureSetDefaults_MinimumEdition_field_number protoreflect.FieldNumber = 4
FeatureSetDefaults_MaximumEdition_field_number protoreflect.FieldNumber = 5
FeatureSetDefaults_Defaults_field_number protoreflect.FieldNumber = 1
FeatureSetDefaults_MinimumEdition_field_number protoreflect.FieldNumber = 4
FeatureSetDefaults_MaximumEdition_field_number protoreflect.FieldNumber = 5
)
// Names for google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
@ -1153,12 +1147,10 @@ const (
FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_name protoreflect.Name = "edition"
FeatureSetDefaults_FeatureSetEditionDefault_OverridableFeatures_field_name protoreflect.Name = "overridable_features"
FeatureSetDefaults_FeatureSetEditionDefault_FixedFeatures_field_name protoreflect.Name = "fixed_features"
FeatureSetDefaults_FeatureSetEditionDefault_Features_field_name protoreflect.Name = "features"
FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.edition"
FeatureSetDefaults_FeatureSetEditionDefault_OverridableFeatures_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridable_features"
FeatureSetDefaults_FeatureSetEditionDefault_FixedFeatures_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixed_features"
FeatureSetDefaults_FeatureSetEditionDefault_Features_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features"
)
// Field numbers for google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
@ -1166,7 +1158,6 @@ const (
FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_number protoreflect.FieldNumber = 3
FeatureSetDefaults_FeatureSetEditionDefault_OverridableFeatures_field_number protoreflect.FieldNumber = 4
FeatureSetDefaults_FeatureSetEditionDefault_FixedFeatures_field_number protoreflect.FieldNumber = 5
FeatureSetDefaults_FeatureSetEditionDefault_Features_field_number protoreflect.FieldNumber = 2
)
// Names for google.protobuf.SourceCodeInfo.

View File

@ -15,26 +15,25 @@ import (
)
type SixteenRequired struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
F1 *int32 `protobuf:"varint,1,req,name=f1" json:"f1,omitempty"`
F2 *int32 `protobuf:"varint,2,req,name=f2" json:"f2,omitempty"`
F3 *int32 `protobuf:"varint,3,req,name=f3" json:"f3,omitempty"`
F4 *int32 `protobuf:"varint,4,req,name=f4" json:"f4,omitempty"`
F5 *int32 `protobuf:"varint,5,req,name=f5" json:"f5,omitempty"`
F6 *int32 `protobuf:"varint,6,req,name=f6" json:"f6,omitempty"`
F7 *int32 `protobuf:"varint,7,req,name=f7" json:"f7,omitempty"`
F8 *int32 `protobuf:"varint,8,req,name=f8" json:"f8,omitempty"`
F9 *int32 `protobuf:"varint,9,req,name=f9" json:"f9,omitempty"`
F10 *int32 `protobuf:"varint,10,req,name=f10" json:"f10,omitempty"`
F11 *int32 `protobuf:"varint,11,req,name=f11" json:"f11,omitempty"`
F12 *int32 `protobuf:"varint,12,req,name=f12" json:"f12,omitempty"`
F13 *int32 `protobuf:"varint,13,req,name=f13" json:"f13,omitempty"`
F14 *int32 `protobuf:"varint,14,req,name=f14" json:"f14,omitempty"`
F15 *int32 `protobuf:"varint,15,req,name=f15" json:"f15,omitempty"`
F16 *int32 `protobuf:"varint,16,req,name=f16" json:"f16,omitempty"`
unknownFields protoimpl.UnknownFields
F1 *int32 `protobuf:"varint,1,req,name=f1" json:"f1,omitempty"`
F2 *int32 `protobuf:"varint,2,req,name=f2" json:"f2,omitempty"`
F3 *int32 `protobuf:"varint,3,req,name=f3" json:"f3,omitempty"`
F4 *int32 `protobuf:"varint,4,req,name=f4" json:"f4,omitempty"`
F5 *int32 `protobuf:"varint,5,req,name=f5" json:"f5,omitempty"`
F6 *int32 `protobuf:"varint,6,req,name=f6" json:"f6,omitempty"`
F7 *int32 `protobuf:"varint,7,req,name=f7" json:"f7,omitempty"`
F8 *int32 `protobuf:"varint,8,req,name=f8" json:"f8,omitempty"`
F9 *int32 `protobuf:"varint,9,req,name=f9" json:"f9,omitempty"`
F10 *int32 `protobuf:"varint,10,req,name=f10" json:"f10,omitempty"`
F11 *int32 `protobuf:"varint,11,req,name=f11" json:"f11,omitempty"`
F12 *int32 `protobuf:"varint,12,req,name=f12" json:"f12,omitempty"`
F13 *int32 `protobuf:"varint,13,req,name=f13" json:"f13,omitempty"`
F14 *int32 `protobuf:"varint,14,req,name=f14" json:"f14,omitempty"`
F15 *int32 `protobuf:"varint,15,req,name=f15" json:"f15,omitempty"`
F16 *int32 `protobuf:"varint,16,req,name=f16" json:"f16,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *SixteenRequired) Reset() {

View File

@ -143,15 +143,14 @@ func (TestCategory) EnumDescriptor() ([]byte, []int) {
// Therefore, this may or may not have a failure message. Failure messages
// may be truncated for our failure lists.
type TestStatus struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
FailureMessage string `protobuf:"bytes,2,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"`
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
FailureMessage string `protobuf:"bytes,2,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"`
// What an actual test name matched to in a failure list. Can be wildcarded or
// an exact match without wildcards.
MatchedName string `protobuf:"bytes,3,opt,name=matched_name,json=matchedName,proto3" json:"matched_name,omitempty"`
MatchedName string `protobuf:"bytes,3,opt,name=matched_name,json=matchedName,proto3" json:"matched_name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestStatus) Reset() {
@ -209,11 +208,10 @@ func (x *TestStatus) GetMatchedName() string {
// This will be known by message_type == "conformance.FailureSet", a conformance
// test should return a serialized FailureSet in protobuf_payload.
type FailureSet struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Test []*TestStatus `protobuf:"bytes,2,rep,name=test,proto3" json:"test,omitempty"`
unknownFields protoimpl.UnknownFields
Test []*TestStatus `protobuf:"bytes,2,rep,name=test,proto3" json:"test,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *FailureSet) Reset() {
@ -259,15 +257,12 @@ func (x *FailureSet) GetTest() []*TestStatus {
// 2. parse the protobuf or JSON payload in "payload" (which may fail)
// 3. if the parse succeeded, serialize the message in the requested format.
type ConformanceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// The payload (whether protobuf of JSON) is always for a
// protobuf_test_messages.proto3.TestAllTypes proto (as defined in
// src/google/protobuf/proto3_test_messages.proto).
//
// Types that are assignable to Payload:
// Types that are valid to be assigned to Payload:
//
// *ConformanceRequest_ProtobufPayload
// *ConformanceRequest_JsonPayload
@ -292,6 +287,8 @@ type ConformanceRequest struct {
// This can be used in json and text format. If true, testee should print
// unknown fields instead of ignore. This feature is optional.
PrintUnknownFields bool `protobuf:"varint,9,opt,name=print_unknown_fields,json=printUnknownFields,proto3" json:"print_unknown_fields,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ConformanceRequest) Reset() {
@ -324,37 +321,45 @@ func (*ConformanceRequest) Descriptor() ([]byte, []int) {
return file_conformance_conformance_proto_rawDescGZIP(), []int{2}
}
func (m *ConformanceRequest) GetPayload() isConformanceRequest_Payload {
if m != nil {
return m.Payload
func (x *ConformanceRequest) GetPayload() isConformanceRequest_Payload {
if x != nil {
return x.Payload
}
return nil
}
func (x *ConformanceRequest) GetProtobufPayload() []byte {
if x, ok := x.GetPayload().(*ConformanceRequest_ProtobufPayload); ok {
return x.ProtobufPayload
if x != nil {
if x, ok := x.Payload.(*ConformanceRequest_ProtobufPayload); ok {
return x.ProtobufPayload
}
}
return nil
}
func (x *ConformanceRequest) GetJsonPayload() string {
if x, ok := x.GetPayload().(*ConformanceRequest_JsonPayload); ok {
return x.JsonPayload
if x != nil {
if x, ok := x.Payload.(*ConformanceRequest_JsonPayload); ok {
return x.JsonPayload
}
}
return ""
}
func (x *ConformanceRequest) GetJspbPayload() string {
if x, ok := x.GetPayload().(*ConformanceRequest_JspbPayload); ok {
return x.JspbPayload
if x != nil {
if x, ok := x.Payload.(*ConformanceRequest_JspbPayload); ok {
return x.JspbPayload
}
}
return ""
}
func (x *ConformanceRequest) GetTextPayload() string {
if x, ok := x.GetPayload().(*ConformanceRequest_TextPayload); ok {
return x.TextPayload
if x != nil {
if x, ok := x.Payload.(*ConformanceRequest_TextPayload); ok {
return x.TextPayload
}
}
return ""
}
@ -425,11 +430,8 @@ func (*ConformanceRequest_TextPayload) isConformanceRequest_Payload() {}
// Represents a single test case's output.
type ConformanceResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Result:
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Result:
//
// *ConformanceResponse_ParseError
// *ConformanceResponse_SerializeError
@ -440,7 +442,9 @@ type ConformanceResponse struct {
// *ConformanceResponse_Skipped
// *ConformanceResponse_JspbPayload
// *ConformanceResponse_TextPayload
Result isConformanceResponse_Result `protobuf_oneof:"result"`
Result isConformanceResponse_Result `protobuf_oneof:"result"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ConformanceResponse) Reset() {
@ -473,72 +477,90 @@ func (*ConformanceResponse) Descriptor() ([]byte, []int) {
return file_conformance_conformance_proto_rawDescGZIP(), []int{3}
}
func (m *ConformanceResponse) GetResult() isConformanceResponse_Result {
if m != nil {
return m.Result
func (x *ConformanceResponse) GetResult() isConformanceResponse_Result {
if x != nil {
return x.Result
}
return nil
}
func (x *ConformanceResponse) GetParseError() string {
if x, ok := x.GetResult().(*ConformanceResponse_ParseError); ok {
return x.ParseError
if x != nil {
if x, ok := x.Result.(*ConformanceResponse_ParseError); ok {
return x.ParseError
}
}
return ""
}
func (x *ConformanceResponse) GetSerializeError() string {
if x, ok := x.GetResult().(*ConformanceResponse_SerializeError); ok {
return x.SerializeError
if x != nil {
if x, ok := x.Result.(*ConformanceResponse_SerializeError); ok {
return x.SerializeError
}
}
return ""
}
func (x *ConformanceResponse) GetTimeoutError() string {
if x, ok := x.GetResult().(*ConformanceResponse_TimeoutError); ok {
return x.TimeoutError
if x != nil {
if x, ok := x.Result.(*ConformanceResponse_TimeoutError); ok {
return x.TimeoutError
}
}
return ""
}
func (x *ConformanceResponse) GetRuntimeError() string {
if x, ok := x.GetResult().(*ConformanceResponse_RuntimeError); ok {
return x.RuntimeError
if x != nil {
if x, ok := x.Result.(*ConformanceResponse_RuntimeError); ok {
return x.RuntimeError
}
}
return ""
}
func (x *ConformanceResponse) GetProtobufPayload() []byte {
if x, ok := x.GetResult().(*ConformanceResponse_ProtobufPayload); ok {
return x.ProtobufPayload
if x != nil {
if x, ok := x.Result.(*ConformanceResponse_ProtobufPayload); ok {
return x.ProtobufPayload
}
}
return nil
}
func (x *ConformanceResponse) GetJsonPayload() string {
if x, ok := x.GetResult().(*ConformanceResponse_JsonPayload); ok {
return x.JsonPayload
if x != nil {
if x, ok := x.Result.(*ConformanceResponse_JsonPayload); ok {
return x.JsonPayload
}
}
return ""
}
func (x *ConformanceResponse) GetSkipped() string {
if x, ok := x.GetResult().(*ConformanceResponse_Skipped); ok {
return x.Skipped
if x != nil {
if x, ok := x.Result.(*ConformanceResponse_Skipped); ok {
return x.Skipped
}
}
return ""
}
func (x *ConformanceResponse) GetJspbPayload() string {
if x, ok := x.GetResult().(*ConformanceResponse_JspbPayload); ok {
return x.JspbPayload
if x != nil {
if x, ok := x.Result.(*ConformanceResponse_JspbPayload); ok {
return x.JspbPayload
}
}
return ""
}
func (x *ConformanceResponse) GetTextPayload() string {
if x, ok := x.GetResult().(*ConformanceResponse_TextPayload); ok {
return x.TextPayload
if x != nil {
if x, ok := x.Result.(*ConformanceResponse_TextPayload); ok {
return x.TextPayload
}
}
return ""
}
@ -628,12 +650,11 @@ func (*ConformanceResponse_TextPayload) isConformanceResponse_Result() {}
// Encoding options for jspb format.
type JspbEncodingConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// Encode the value field of Any as jspb array if true, otherwise binary.
UseJspbArrayAnyFormat bool `protobuf:"varint,1,opt,name=use_jspb_array_any_format,json=useJspbArrayAnyFormat,proto3" json:"use_jspb_array_any_format,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *JspbEncodingConfig) Reset() {

View File

@ -119,11 +119,10 @@ func (TestAllTypesEdition2023_NestedEnum) EnumDescriptor() ([]byte, []int) {
}
type ComplexMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
D *int32 `protobuf:"varint,1,opt,name=d" json:"d,omitempty"`
unknownFields protoimpl.UnknownFields
D *int32 `protobuf:"varint,1,opt,name=d" json:"d,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ComplexMessage) Reset() {
@ -164,11 +163,7 @@ func (x *ComplexMessage) GetD() int32 {
}
type TestAllTypesEdition2023 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
state protoimpl.MessageState `protogen:"open.v1"`
// Singular
OptionalInt32 *int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
OptionalInt64 *int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
@ -264,7 +259,7 @@ type TestAllTypesEdition2023 struct {
MapStringForeignMessage map[string]*ForeignMessageEdition2023 `protobuf:"bytes,72,rep,name=map_string_foreign_message,json=mapStringForeignMessage" json:"map_string_foreign_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringNestedEnum map[string]TestAllTypesEdition2023_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.editions.TestAllTypesEdition2023_NestedEnum"`
MapStringForeignEnum map[string]ForeignEnumEdition2023 `protobuf:"bytes,74,rep,name=map_string_foreign_enum,json=mapStringForeignEnum" json:"map_string_foreign_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.editions.ForeignEnumEdition2023"`
// Types that are assignable to OneofField:
// Types that are valid to be assigned to OneofField:
//
// *TestAllTypesEdition2023_OneofUint32
// *TestAllTypesEdition2023_OneofNestedMessage
@ -275,9 +270,12 @@ type TestAllTypesEdition2023 struct {
// *TestAllTypesEdition2023_OneofFloat
// *TestAllTypesEdition2023_OneofDouble
// *TestAllTypesEdition2023_OneofEnum
OneofField isTestAllTypesEdition2023_OneofField `protobuf_oneof:"oneof_field"`
Groupliketype *TestAllTypesEdition2023_GroupLikeType `protobuf:"group,201,opt,name=GroupLikeType,json=groupliketype" json:"groupliketype,omitempty"`
DelimitedField *TestAllTypesEdition2023_GroupLikeType `protobuf:"group,202,opt,name=GroupLikeType,json=delimitedField" json:"delimited_field,omitempty"`
OneofField isTestAllTypesEdition2023_OneofField `protobuf_oneof:"oneof_field"`
Groupliketype *TestAllTypesEdition2023_GroupLikeType `protobuf:"group,201,opt,name=GroupLikeType,json=groupliketype" json:"groupliketype,omitempty"`
DelimitedField *TestAllTypesEdition2023_GroupLikeType `protobuf:"group,202,opt,name=GroupLikeType,json=delimitedField" json:"delimited_field,omitempty"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesEdition2023) Reset() {
@ -940,72 +938,90 @@ func (x *TestAllTypesEdition2023) GetMapStringForeignEnum() map[string]ForeignEn
return nil
}
func (m *TestAllTypesEdition2023) GetOneofField() isTestAllTypesEdition2023_OneofField {
if m != nil {
return m.OneofField
func (x *TestAllTypesEdition2023) GetOneofField() isTestAllTypesEdition2023_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *TestAllTypesEdition2023) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*TestAllTypesEdition2023_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesEdition2023_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *TestAllTypesEdition2023) GetOneofNestedMessage() *TestAllTypesEdition2023_NestedMessage {
if x, ok := x.GetOneofField().(*TestAllTypesEdition2023_OneofNestedMessage); ok {
return x.OneofNestedMessage
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesEdition2023_OneofNestedMessage); ok {
return x.OneofNestedMessage
}
}
return nil
}
func (x *TestAllTypesEdition2023) GetOneofString() string {
if x, ok := x.GetOneofField().(*TestAllTypesEdition2023_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesEdition2023_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *TestAllTypesEdition2023) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*TestAllTypesEdition2023_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesEdition2023_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *TestAllTypesEdition2023) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*TestAllTypesEdition2023_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesEdition2023_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *TestAllTypesEdition2023) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*TestAllTypesEdition2023_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesEdition2023_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *TestAllTypesEdition2023) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*TestAllTypesEdition2023_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesEdition2023_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *TestAllTypesEdition2023) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*TestAllTypesEdition2023_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesEdition2023_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *TestAllTypesEdition2023) GetOneofEnum() TestAllTypesEdition2023_NestedEnum {
if x, ok := x.GetOneofField().(*TestAllTypesEdition2023_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesEdition2023_OneofEnum); ok {
return x.OneofEnum
}
}
return TestAllTypesEdition2023_FOO
}
@ -1083,11 +1099,10 @@ func (*TestAllTypesEdition2023_OneofDouble) isTestAllTypesEdition2023_OneofField
func (*TestAllTypesEdition2023_OneofEnum) isTestAllTypesEdition2023_OneofField() {}
type ForeignMessageEdition2023 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
C *int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
unknownFields protoimpl.UnknownFields
C *int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ForeignMessageEdition2023) Reset() {
@ -1128,11 +1143,10 @@ func (x *ForeignMessageEdition2023) GetC() int32 {
}
type GroupLikeType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
C *int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
unknownFields protoimpl.UnknownFields
C *int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *GroupLikeType) Reset() {
@ -1173,12 +1187,11 @@ func (x *GroupLikeType) GetC() int32 {
}
type TestAllTypesEdition2023_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesEdition2023 `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesEdition2023 `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesEdition2023_NestedMessage) Reset() {
@ -1227,12 +1240,11 @@ func (x *TestAllTypesEdition2023_NestedMessage) GetCorecursive() *TestAllTypesEd
// groups
type TestAllTypesEdition2023_GroupLikeType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
GroupInt32 *int32 `protobuf:"varint,202,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,203,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
unknownFields protoimpl.UnknownFields
GroupInt32 *int32 `protobuf:"varint,202,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,203,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesEdition2023_GroupLikeType) Reset() {

View File

@ -230,11 +230,7 @@ func (TestAllRequiredTypesProto2_NestedEnum) EnumDescriptor() ([]byte, []int) {
// could trigger bugs that occur in any message type in this file. We verify
// this stays true in a unit test.
type TestAllTypesProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
state protoimpl.MessageState `protogen:"open.v1"`
// Singular
OptionalInt32 *int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
OptionalInt64 *int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
@ -330,7 +326,7 @@ type TestAllTypesProto2 struct {
MapStringForeignMessage map[string]*ForeignMessageProto2 `protobuf:"bytes,72,rep,name=map_string_foreign_message,json=mapStringForeignMessage" json:"map_string_foreign_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringNestedEnum map[string]TestAllTypesProto2_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.editions.proto2.TestAllTypesProto2_NestedEnum"`
MapStringForeignEnum map[string]ForeignEnumProto2 `protobuf:"bytes,74,rep,name=map_string_foreign_enum,json=mapStringForeignEnum" json:"map_string_foreign_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.editions.proto2.ForeignEnumProto2"`
// Types that are assignable to OneofField:
// Types that are valid to be assigned to OneofField:
//
// *TestAllTypesProto2_OneofUint32
// *TestAllTypesProto2_OneofNestedMessage
@ -362,24 +358,27 @@ type TestAllTypesProto2 struct {
DefaultBytes []byte `protobuf:"bytes,255,opt,name=default_bytes,json=defaultBytes,def=joshua" json:"default_bytes,omitempty"`
// Test field-name-to-JSON-name convention.
// (protobuf says names can be any valid C/C++ identifier.)
Fieldname1 *int32 `protobuf:"varint,401,opt,name=fieldname1" json:"fieldname1,omitempty"`
FieldName2 *int32 `protobuf:"varint,402,opt,name=field_name2,json=fieldName2" json:"field_name2,omitempty"`
XFieldName3 *int32 `protobuf:"varint,403,opt,name=_field_name3,json=FieldName3" json:"_field_name3,omitempty"`
Field_Name4_ *int32 `protobuf:"varint,404,opt,name=field__name4_,json=fieldName4" json:"field__name4_,omitempty"`
Field0Name5 *int32 `protobuf:"varint,405,opt,name=field0name5" json:"field0name5,omitempty"`
Field_0Name6 *int32 `protobuf:"varint,406,opt,name=field_0_name6,json=field0Name6" json:"field_0_name6,omitempty"`
FieldName7 *int32 `protobuf:"varint,407,opt,name=fieldName7" json:"fieldName7,omitempty"`
FieldName8 *int32 `protobuf:"varint,408,opt,name=FieldName8" json:"FieldName8,omitempty"`
Field_Name9 *int32 `protobuf:"varint,409,opt,name=field_Name9,json=fieldName9" json:"field_Name9,omitempty"`
Field_Name10 *int32 `protobuf:"varint,410,opt,name=Field_Name10,json=FieldName10" json:"Field_Name10,omitempty"`
FIELD_NAME11 *int32 `protobuf:"varint,411,opt,name=FIELD_NAME11,json=FIELDNAME11" json:"FIELD_NAME11,omitempty"`
FIELDName12 *int32 `protobuf:"varint,412,opt,name=FIELD_name12,json=FIELDName12" json:"FIELD_name12,omitempty"`
XFieldName13 *int32 `protobuf:"varint,413,opt,name=__field_name13,json=FieldName13" json:"__field_name13,omitempty"`
X_FieldName14 *int32 `protobuf:"varint,414,opt,name=__Field_name14,json=FieldName14" json:"__Field_name14,omitempty"`
Field_Name15 *int32 `protobuf:"varint,415,opt,name=field__name15,json=fieldName15" json:"field__name15,omitempty"`
Field__Name16 *int32 `protobuf:"varint,416,opt,name=field__Name16,json=fieldName16" json:"field__Name16,omitempty"`
FieldName17__ *int32 `protobuf:"varint,417,opt,name=field_name17__,json=fieldName17" json:"field_name17__,omitempty"`
FieldName18__ *int32 `protobuf:"varint,418,opt,name=Field_name18__,json=FieldName18" json:"Field_name18__,omitempty"`
Fieldname1 *int32 `protobuf:"varint,401,opt,name=fieldname1" json:"fieldname1,omitempty"`
FieldName2 *int32 `protobuf:"varint,402,opt,name=field_name2,json=fieldName2" json:"field_name2,omitempty"`
XFieldName3 *int32 `protobuf:"varint,403,opt,name=_field_name3,json=FieldName3" json:"_field_name3,omitempty"`
Field_Name4_ *int32 `protobuf:"varint,404,opt,name=field__name4_,json=fieldName4" json:"field__name4_,omitempty"`
Field0Name5 *int32 `protobuf:"varint,405,opt,name=field0name5" json:"field0name5,omitempty"`
Field_0Name6 *int32 `protobuf:"varint,406,opt,name=field_0_name6,json=field0Name6" json:"field_0_name6,omitempty"`
FieldName7 *int32 `protobuf:"varint,407,opt,name=fieldName7" json:"fieldName7,omitempty"`
FieldName8 *int32 `protobuf:"varint,408,opt,name=FieldName8" json:"FieldName8,omitempty"`
Field_Name9 *int32 `protobuf:"varint,409,opt,name=field_Name9,json=fieldName9" json:"field_Name9,omitempty"`
Field_Name10 *int32 `protobuf:"varint,410,opt,name=Field_Name10,json=FieldName10" json:"Field_Name10,omitempty"`
FIELD_NAME11 *int32 `protobuf:"varint,411,opt,name=FIELD_NAME11,json=FIELDNAME11" json:"FIELD_NAME11,omitempty"`
FIELDName12 *int32 `protobuf:"varint,412,opt,name=FIELD_name12,json=FIELDName12" json:"FIELD_name12,omitempty"`
XFieldName13 *int32 `protobuf:"varint,413,opt,name=__field_name13,json=FieldName13" json:"__field_name13,omitempty"`
X_FieldName14 *int32 `protobuf:"varint,414,opt,name=__Field_name14,json=FieldName14" json:"__Field_name14,omitempty"`
Field_Name15 *int32 `protobuf:"varint,415,opt,name=field__name15,json=fieldName15" json:"field__name15,omitempty"`
Field__Name16 *int32 `protobuf:"varint,416,opt,name=field__Name16,json=fieldName16" json:"field__Name16,omitempty"`
FieldName17__ *int32 `protobuf:"varint,417,opt,name=field_name17__,json=fieldName17" json:"field_name17__,omitempty"`
FieldName18__ *int32 `protobuf:"varint,418,opt,name=Field_name18__,json=FieldName18" json:"Field_name18__,omitempty"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for TestAllTypesProto2 fields.
@ -1065,72 +1064,90 @@ func (x *TestAllTypesProto2) GetMapStringForeignEnum() map[string]ForeignEnumPro
return nil
}
func (m *TestAllTypesProto2) GetOneofField() isTestAllTypesProto2_OneofField {
if m != nil {
return m.OneofField
func (x *TestAllTypesProto2) GetOneofField() isTestAllTypesProto2_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *TestAllTypesProto2) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofNestedMessage() *TestAllTypesProto2_NestedMessage {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofNestedMessage); ok {
return x.OneofNestedMessage
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofNestedMessage); ok {
return x.OneofNestedMessage
}
}
return nil
}
func (x *TestAllTypesProto2) GetOneofString() string {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *TestAllTypesProto2) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *TestAllTypesProto2) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *TestAllTypesProto2) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofEnum() TestAllTypesProto2_NestedEnum {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofEnum); ok {
return x.OneofEnum
}
}
return TestAllTypesProto2_FOO
}
@ -1439,11 +1456,10 @@ func (*TestAllTypesProto2_OneofDouble) isTestAllTypesProto2_OneofField() {}
func (*TestAllTypesProto2_OneofEnum) isTestAllTypesProto2_OneofField() {}
type ForeignMessageProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
C *int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
unknownFields protoimpl.UnknownFields
C *int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ForeignMessageProto2) Reset() {
@ -1484,12 +1500,11 @@ func (x *ForeignMessageProto2) GetC() int32 {
}
type GroupField struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
GroupInt32 *int32 `protobuf:"varint,122,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,123,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
unknownFields protoimpl.UnknownFields
GroupInt32 *int32 `protobuf:"varint,122,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,123,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *GroupField) Reset() {
@ -1537,16 +1552,15 @@ func (x *GroupField) GetGroupUint32() uint32 {
}
type UnknownToTestAllTypes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
OptionalInt32 *int32 `protobuf:"varint,1001,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
OptionalString *string `protobuf:"bytes,1002,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"`
NestedMessage *ForeignMessageProto2 `protobuf:"bytes,1003,opt,name=nested_message,json=nestedMessage" json:"nested_message,omitempty"`
Optionalgroup *UnknownToTestAllTypes_OptionalGroup `protobuf:"group,1004,opt,name=OptionalGroup,json=optionalgroup" json:"optionalgroup,omitempty"`
OptionalBool *bool `protobuf:"varint,1006,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"`
RepeatedInt32 []int32 `protobuf:"varint,1011,rep,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnknownToTestAllTypes) Reset() {
@ -1622,9 +1636,9 @@ func (x *UnknownToTestAllTypes) GetRepeatedInt32() []int32 {
}
type NullHypothesisProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NullHypothesisProto2) Reset() {
@ -1658,9 +1672,9 @@ func (*NullHypothesisProto2) Descriptor() ([]byte, []int) {
}
type EnumOnlyProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnumOnlyProto2) Reset() {
@ -1694,11 +1708,10 @@ func (*EnumOnlyProto2) Descriptor() ([]byte, []int) {
}
type OneStringProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *OneStringProto2) Reset() {
@ -1739,13 +1752,12 @@ func (x *OneStringProto2) GetData() string {
}
type ProtoWithKeywords struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Inline *int32 `protobuf:"varint,1,opt,name=inline" json:"inline,omitempty"`
Concept *string `protobuf:"bytes,2,opt,name=concept" json:"concept,omitempty"`
Requires []string `protobuf:"bytes,3,rep,name=requires" json:"requires,omitempty"`
unknownFields protoimpl.UnknownFields
Inline *int32 `protobuf:"varint,1,opt,name=inline" json:"inline,omitempty"`
Concept *string `protobuf:"bytes,2,opt,name=concept" json:"concept,omitempty"`
Requires []string `protobuf:"bytes,3,rep,name=requires" json:"requires,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ProtoWithKeywords) Reset() {
@ -1800,11 +1812,7 @@ func (x *ProtoWithKeywords) GetRequires() []string {
}
type TestAllRequiredTypesProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
state protoimpl.MessageState `protogen:"open.v1"`
// Singular
RequiredInt32 *int32 `protobuf:"varint,1,req,name=required_int32,json=requiredInt32" json:"required_int32,omitempty"`
RequiredInt64 *int64 `protobuf:"varint,2,req,name=required_int64,json=requiredInt64" json:"required_int64,omitempty"`
@ -1846,6 +1854,9 @@ type TestAllRequiredTypesProto2 struct {
DefaultBool *bool `protobuf:"varint,253,req,name=default_bool,json=defaultBool,def=1" json:"default_bool,omitempty"`
DefaultString *string `protobuf:"bytes,254,req,name=default_string,json=defaultString,def=Rosebud" json:"default_string,omitempty"`
DefaultBytes []byte `protobuf:"bytes,255,req,name=default_bytes,json=defaultBytes,def=joshua" json:"default_bytes,omitempty"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for TestAllRequiredTypesProto2 fields.
@ -2175,12 +2186,11 @@ func (x *TestAllRequiredTypesProto2) GetDefaultBytes() []byte {
}
type TestAllTypesProto2_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto2 `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto2 `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_NestedMessage) Reset() {
@ -2229,12 +2239,11 @@ func (x *TestAllTypesProto2_NestedMessage) GetCorecursive() *TestAllTypesProto2
// groups
type TestAllTypesProto2_Data struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
GroupInt32 *int32 `protobuf:"varint,202,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,203,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
unknownFields protoimpl.UnknownFields
GroupInt32 *int32 `protobuf:"varint,202,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,203,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_Data) Reset() {
@ -2282,12 +2291,11 @@ func (x *TestAllTypesProto2_Data) GetGroupUint32() uint32 {
}
type TestAllTypesProto2_MultiWordGroupField struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
GroupInt32 *int32 `protobuf:"varint,205,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,206,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
unknownFields protoimpl.UnknownFields
GroupInt32 *int32 `protobuf:"varint,205,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,206,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_MultiWordGroupField) Reset() {
@ -2336,10 +2344,10 @@ func (x *TestAllTypesProto2_MultiWordGroupField) GetGroupUint32() uint32 {
// message_set test case.
type TestAllTypesProto2_MessageSetCorrect struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_MessageSetCorrect) Reset() {
@ -2373,11 +2381,10 @@ func (*TestAllTypesProto2_MessageSetCorrect) Descriptor() ([]byte, []int) {
}
type TestAllTypesProto2_MessageSetCorrectExtension1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Str *string `protobuf:"bytes,25,opt,name=str" json:"str,omitempty"`
unknownFields protoimpl.UnknownFields
Str *string `protobuf:"bytes,25,opt,name=str" json:"str,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_MessageSetCorrectExtension1) Reset() {
@ -2418,11 +2425,10 @@ func (x *TestAllTypesProto2_MessageSetCorrectExtension1) GetStr() string {
}
type TestAllTypesProto2_MessageSetCorrectExtension2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
I *int32 `protobuf:"varint,9,opt,name=i" json:"i,omitempty"`
unknownFields protoimpl.UnknownFields
I *int32 `protobuf:"varint,9,opt,name=i" json:"i,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_MessageSetCorrectExtension2) Reset() {
@ -2463,11 +2469,10 @@ func (x *TestAllTypesProto2_MessageSetCorrectExtension2) GetI() int32 {
}
type UnknownToTestAllTypes_OptionalGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
unknownFields protoimpl.UnknownFields
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *UnknownToTestAllTypes_OptionalGroup) Reset() {
@ -2508,13 +2513,12 @@ func (x *UnknownToTestAllTypes_OptionalGroup) GetA() int32 {
}
type TestAllRequiredTypesProto2_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,req,name=a" json:"a,omitempty"`
Corecursive *TestAllRequiredTypesProto2 `protobuf:"bytes,2,req,name=corecursive" json:"corecursive,omitempty"`
OptionalCorecursive *TestAllRequiredTypesProto2 `protobuf:"bytes,3,opt,name=optional_corecursive,json=optionalCorecursive" json:"optional_corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllRequiredTypesProto2_NestedMessage) Reset() {
@ -2570,12 +2574,11 @@ func (x *TestAllRequiredTypesProto2_NestedMessage) GetOptionalCorecursive() *Tes
// groups
type TestAllRequiredTypesProto2_Data struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
GroupInt32 *int32 `protobuf:"varint,202,req,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,203,req,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
unknownFields protoimpl.UnknownFields
GroupInt32 *int32 `protobuf:"varint,202,req,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,203,req,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllRequiredTypesProto2_Data) Reset() {
@ -2624,10 +2627,10 @@ func (x *TestAllRequiredTypesProto2_Data) GetGroupUint32() uint32 {
// message_set test case.
type TestAllRequiredTypesProto2_MessageSetCorrect struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllRequiredTypesProto2_MessageSetCorrect) Reset() {
@ -2661,11 +2664,10 @@ func (*TestAllRequiredTypesProto2_MessageSetCorrect) Descriptor() ([]byte, []int
}
type TestAllRequiredTypesProto2_MessageSetCorrectExtension1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Str *string `protobuf:"bytes,25,req,name=str" json:"str,omitempty"`
unknownFields protoimpl.UnknownFields
Str *string `protobuf:"bytes,25,req,name=str" json:"str,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension1) Reset() {
@ -2706,11 +2708,10 @@ func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension1) GetStr() string
}
type TestAllRequiredTypesProto2_MessageSetCorrectExtension2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
I *int32 `protobuf:"varint,9,req,name=i" json:"i,omitempty"`
unknownFields protoimpl.UnknownFields
I *int32 `protobuf:"varint,9,req,name=i" json:"i,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension2) Reset() {

View File

@ -242,10 +242,7 @@ func (EnumOnlyProto3_Bool) EnumDescriptor() ([]byte, []int) {
// could trigger bugs that occur in any message type in this file. We verify
// this stays true in a unit test.
type TestAllTypesProto3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// Singular
OptionalInt32 int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
OptionalInt64 int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
@ -342,7 +339,7 @@ type TestAllTypesProto3 struct {
MapStringForeignMessage map[string]*ForeignMessage `protobuf:"bytes,72,rep,name=map_string_foreign_message,json=mapStringForeignMessage" json:"map_string_foreign_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringNestedEnum map[string]TestAllTypesProto3_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.editions.proto3.TestAllTypesProto3_NestedEnum"`
MapStringForeignEnum map[string]ForeignEnum `protobuf:"bytes,74,rep,name=map_string_foreign_enum,json=mapStringForeignEnum" json:"map_string_foreign_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.editions.proto3.ForeignEnum"`
// Types that are assignable to OneofField:
// Types that are valid to be assigned to OneofField:
//
// *TestAllTypesProto3_OneofUint32
// *TestAllTypesProto3_OneofNestedMessage
@ -408,6 +405,8 @@ type TestAllTypesProto3 struct {
Field__Name16 int32 `protobuf:"varint,416,opt,name=field__Name16,json=fieldName16" json:"field__Name16,omitempty"`
FieldName17__ int32 `protobuf:"varint,417,opt,name=field_name17__,json=fieldName17" json:"field_name17__,omitempty"`
FieldName18__ int32 `protobuf:"varint,418,opt,name=Field_name18__,json=FieldName18" json:"Field_name18__,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto3) Reset() {
@ -1077,79 +1076,99 @@ func (x *TestAllTypesProto3) GetMapStringForeignEnum() map[string]ForeignEnum {
return nil
}
func (m *TestAllTypesProto3) GetOneofField() isTestAllTypesProto3_OneofField {
if m != nil {
return m.OneofField
func (x *TestAllTypesProto3) GetOneofField() isTestAllTypesProto3_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *TestAllTypesProto3) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofNestedMessage() *TestAllTypesProto3_NestedMessage {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofNestedMessage); ok {
return x.OneofNestedMessage
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofNestedMessage); ok {
return x.OneofNestedMessage
}
}
return nil
}
func (x *TestAllTypesProto3) GetOneofString() string {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *TestAllTypesProto3) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *TestAllTypesProto3) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *TestAllTypesProto3) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofEnum() TestAllTypesProto3_NestedEnum {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofEnum); ok {
return x.OneofEnum
}
}
return TestAllTypesProto3_FOO
}
func (x *TestAllTypesProto3) GetOneofNullValue() structpb.NullValue {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofNullValue); ok {
return x.OneofNullValue
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofNullValue); ok {
return x.OneofNullValue
}
}
return structpb.NullValue(0)
}
@ -1569,11 +1588,10 @@ func (*TestAllTypesProto3_OneofEnum) isTestAllTypesProto3_OneofField() {}
func (*TestAllTypesProto3_OneofNullValue) isTestAllTypesProto3_OneofField() {}
type ForeignMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
C int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
unknownFields protoimpl.UnknownFields
C int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ForeignMessage) Reset() {
@ -1614,9 +1632,9 @@ func (x *ForeignMessage) GetC() int32 {
}
type NullHypothesisProto3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NullHypothesisProto3) Reset() {
@ -1650,9 +1668,9 @@ func (*NullHypothesisProto3) Descriptor() ([]byte, []int) {
}
type EnumOnlyProto3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnumOnlyProto3) Reset() {
@ -1686,12 +1704,11 @@ func (*EnumOnlyProto3) Descriptor() ([]byte, []int) {
}
type TestAllTypesProto3_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto3 `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
A int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto3 `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto3_NestedMessage) Reset() {

View File

@ -271,11 +271,7 @@ func (TestAllRequiredTypesProto2_NestedEnum) EnumDescriptor() ([]byte, []int) {
// could trigger bugs that occur in any message type in this file. We verify
// this stays true in a unit test.
type TestAllTypesProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
state protoimpl.MessageState `protogen:"open.v1"`
// Singular
OptionalInt32 *int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
OptionalInt64 *int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
@ -371,7 +367,7 @@ type TestAllTypesProto2 struct {
MapStringForeignMessage map[string]*ForeignMessageProto2 `protobuf:"bytes,72,rep,name=map_string_foreign_message,json=mapStringForeignMessage" json:"map_string_foreign_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringNestedEnum map[string]TestAllTypesProto2_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.proto2.TestAllTypesProto2_NestedEnum"`
MapStringForeignEnum map[string]ForeignEnumProto2 `protobuf:"bytes,74,rep,name=map_string_foreign_enum,json=mapStringForeignEnum" json:"map_string_foreign_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.proto2.ForeignEnumProto2"`
// Types that are assignable to OneofField:
// Types that are valid to be assigned to OneofField:
//
// *TestAllTypesProto2_OneofUint32
// *TestAllTypesProto2_OneofNestedMessage
@ -403,24 +399,27 @@ type TestAllTypesProto2 struct {
DefaultBytes []byte `protobuf:"bytes,255,opt,name=default_bytes,json=defaultBytes,def=joshua" json:"default_bytes,omitempty"`
// Test field-name-to-JSON-name convention.
// (protobuf says names can be any valid C/C++ identifier.)
Fieldname1 *int32 `protobuf:"varint,401,opt,name=fieldname1" json:"fieldname1,omitempty"`
FieldName2 *int32 `protobuf:"varint,402,opt,name=field_name2,json=fieldName2" json:"field_name2,omitempty"`
XFieldName3 *int32 `protobuf:"varint,403,opt,name=_field_name3,json=FieldName3" json:"_field_name3,omitempty"`
Field_Name4_ *int32 `protobuf:"varint,404,opt,name=field__name4_,json=fieldName4" json:"field__name4_,omitempty"`
Field0Name5 *int32 `protobuf:"varint,405,opt,name=field0name5" json:"field0name5,omitempty"`
Field_0Name6 *int32 `protobuf:"varint,406,opt,name=field_0_name6,json=field0Name6" json:"field_0_name6,omitempty"`
FieldName7 *int32 `protobuf:"varint,407,opt,name=fieldName7" json:"fieldName7,omitempty"`
FieldName8 *int32 `protobuf:"varint,408,opt,name=FieldName8" json:"FieldName8,omitempty"`
Field_Name9 *int32 `protobuf:"varint,409,opt,name=field_Name9,json=fieldName9" json:"field_Name9,omitempty"`
Field_Name10 *int32 `protobuf:"varint,410,opt,name=Field_Name10,json=FieldName10" json:"Field_Name10,omitempty"`
FIELD_NAME11 *int32 `protobuf:"varint,411,opt,name=FIELD_NAME11,json=FIELDNAME11" json:"FIELD_NAME11,omitempty"`
FIELDName12 *int32 `protobuf:"varint,412,opt,name=FIELD_name12,json=FIELDName12" json:"FIELD_name12,omitempty"`
XFieldName13 *int32 `protobuf:"varint,413,opt,name=__field_name13,json=FieldName13" json:"__field_name13,omitempty"`
X_FieldName14 *int32 `protobuf:"varint,414,opt,name=__Field_name14,json=FieldName14" json:"__Field_name14,omitempty"`
Field_Name15 *int32 `protobuf:"varint,415,opt,name=field__name15,json=fieldName15" json:"field__name15,omitempty"`
Field__Name16 *int32 `protobuf:"varint,416,opt,name=field__Name16,json=fieldName16" json:"field__Name16,omitempty"`
FieldName17__ *int32 `protobuf:"varint,417,opt,name=field_name17__,json=fieldName17" json:"field_name17__,omitempty"`
FieldName18__ *int32 `protobuf:"varint,418,opt,name=Field_name18__,json=FieldName18" json:"Field_name18__,omitempty"`
Fieldname1 *int32 `protobuf:"varint,401,opt,name=fieldname1" json:"fieldname1,omitempty"`
FieldName2 *int32 `protobuf:"varint,402,opt,name=field_name2,json=fieldName2" json:"field_name2,omitempty"`
XFieldName3 *int32 `protobuf:"varint,403,opt,name=_field_name3,json=FieldName3" json:"_field_name3,omitempty"`
Field_Name4_ *int32 `protobuf:"varint,404,opt,name=field__name4_,json=fieldName4" json:"field__name4_,omitempty"`
Field0Name5 *int32 `protobuf:"varint,405,opt,name=field0name5" json:"field0name5,omitempty"`
Field_0Name6 *int32 `protobuf:"varint,406,opt,name=field_0_name6,json=field0Name6" json:"field_0_name6,omitempty"`
FieldName7 *int32 `protobuf:"varint,407,opt,name=fieldName7" json:"fieldName7,omitempty"`
FieldName8 *int32 `protobuf:"varint,408,opt,name=FieldName8" json:"FieldName8,omitempty"`
Field_Name9 *int32 `protobuf:"varint,409,opt,name=field_Name9,json=fieldName9" json:"field_Name9,omitempty"`
Field_Name10 *int32 `protobuf:"varint,410,opt,name=Field_Name10,json=FieldName10" json:"Field_Name10,omitempty"`
FIELD_NAME11 *int32 `protobuf:"varint,411,opt,name=FIELD_NAME11,json=FIELDNAME11" json:"FIELD_NAME11,omitempty"`
FIELDName12 *int32 `protobuf:"varint,412,opt,name=FIELD_name12,json=FIELDName12" json:"FIELD_name12,omitempty"`
XFieldName13 *int32 `protobuf:"varint,413,opt,name=__field_name13,json=FieldName13" json:"__field_name13,omitempty"`
X_FieldName14 *int32 `protobuf:"varint,414,opt,name=__Field_name14,json=FieldName14" json:"__Field_name14,omitempty"`
Field_Name15 *int32 `protobuf:"varint,415,opt,name=field__name15,json=fieldName15" json:"field__name15,omitempty"`
Field__Name16 *int32 `protobuf:"varint,416,opt,name=field__Name16,json=fieldName16" json:"field__Name16,omitempty"`
FieldName17__ *int32 `protobuf:"varint,417,opt,name=field_name17__,json=fieldName17" json:"field_name17__,omitempty"`
FieldName18__ *int32 `protobuf:"varint,418,opt,name=Field_name18__,json=FieldName18" json:"Field_name18__,omitempty"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for TestAllTypesProto2 fields.
@ -1106,72 +1105,90 @@ func (x *TestAllTypesProto2) GetMapStringForeignEnum() map[string]ForeignEnumPro
return nil
}
func (m *TestAllTypesProto2) GetOneofField() isTestAllTypesProto2_OneofField {
if m != nil {
return m.OneofField
func (x *TestAllTypesProto2) GetOneofField() isTestAllTypesProto2_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *TestAllTypesProto2) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofNestedMessage() *TestAllTypesProto2_NestedMessage {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofNestedMessage); ok {
return x.OneofNestedMessage
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofNestedMessage); ok {
return x.OneofNestedMessage
}
}
return nil
}
func (x *TestAllTypesProto2) GetOneofString() string {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *TestAllTypesProto2) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *TestAllTypesProto2) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *TestAllTypesProto2) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofEnum() TestAllTypesProto2_NestedEnum {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofEnum); ok {
return x.OneofEnum
}
}
return TestAllTypesProto2_FOO
}
@ -1480,11 +1497,10 @@ func (*TestAllTypesProto2_OneofDouble) isTestAllTypesProto2_OneofField() {}
func (*TestAllTypesProto2_OneofEnum) isTestAllTypesProto2_OneofField() {}
type ForeignMessageProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
C *int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
unknownFields protoimpl.UnknownFields
C *int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ForeignMessageProto2) Reset() {
@ -1525,12 +1541,11 @@ func (x *ForeignMessageProto2) GetC() int32 {
}
type GroupField struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
GroupInt32 *int32 `protobuf:"varint,122,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,123,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
unknownFields protoimpl.UnknownFields
GroupInt32 *int32 `protobuf:"varint,122,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,123,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *GroupField) Reset() {
@ -1578,16 +1593,15 @@ func (x *GroupField) GetGroupUint32() uint32 {
}
type UnknownToTestAllTypes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
OptionalInt32 *int32 `protobuf:"varint,1001,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
OptionalString *string `protobuf:"bytes,1002,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"`
NestedMessage *ForeignMessageProto2 `protobuf:"bytes,1003,opt,name=nested_message,json=nestedMessage" json:"nested_message,omitempty"`
Optionalgroup *UnknownToTestAllTypes_OptionalGroup `protobuf:"group,1004,opt,name=OptionalGroup,json=optionalgroup" json:"optionalgroup,omitempty"`
OptionalBool *bool `protobuf:"varint,1006,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"`
RepeatedInt32 []int32 `protobuf:"varint,1011,rep,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnknownToTestAllTypes) Reset() {
@ -1663,9 +1677,9 @@ func (x *UnknownToTestAllTypes) GetRepeatedInt32() []int32 {
}
type NullHypothesisProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NullHypothesisProto2) Reset() {
@ -1699,9 +1713,9 @@ func (*NullHypothesisProto2) Descriptor() ([]byte, []int) {
}
type EnumOnlyProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnumOnlyProto2) Reset() {
@ -1735,11 +1749,10 @@ func (*EnumOnlyProto2) Descriptor() ([]byte, []int) {
}
type OneStringProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *OneStringProto2) Reset() {
@ -1780,13 +1793,12 @@ func (x *OneStringProto2) GetData() string {
}
type ProtoWithKeywords struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Inline *int32 `protobuf:"varint,1,opt,name=inline" json:"inline,omitempty"`
Concept *string `protobuf:"bytes,2,opt,name=concept" json:"concept,omitempty"`
Requires []string `protobuf:"bytes,3,rep,name=requires" json:"requires,omitempty"`
unknownFields protoimpl.UnknownFields
Inline *int32 `protobuf:"varint,1,opt,name=inline" json:"inline,omitempty"`
Concept *string `protobuf:"bytes,2,opt,name=concept" json:"concept,omitempty"`
Requires []string `protobuf:"bytes,3,rep,name=requires" json:"requires,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ProtoWithKeywords) Reset() {
@ -1841,11 +1853,7 @@ func (x *ProtoWithKeywords) GetRequires() []string {
}
type TestAllRequiredTypesProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
state protoimpl.MessageState `protogen:"open.v1"`
// Singular
RequiredInt32 *int32 `protobuf:"varint,1,req,name=required_int32,json=requiredInt32" json:"required_int32,omitempty"`
RequiredInt64 *int64 `protobuf:"varint,2,req,name=required_int64,json=requiredInt64" json:"required_int64,omitempty"`
@ -1887,6 +1895,9 @@ type TestAllRequiredTypesProto2 struct {
DefaultBool *bool `protobuf:"varint,253,req,name=default_bool,json=defaultBool,def=1" json:"default_bool,omitempty"`
DefaultString *string `protobuf:"bytes,254,req,name=default_string,json=defaultString,def=Rosebud" json:"default_string,omitempty"`
DefaultBytes []byte `protobuf:"bytes,255,req,name=default_bytes,json=defaultBytes,def=joshua" json:"default_bytes,omitempty"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for TestAllRequiredTypesProto2 fields.
@ -2216,12 +2227,11 @@ func (x *TestAllRequiredTypesProto2) GetDefaultBytes() []byte {
}
type TestAllTypesProto2_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto2 `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto2 `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_NestedMessage) Reset() {
@ -2270,12 +2280,11 @@ func (x *TestAllTypesProto2_NestedMessage) GetCorecursive() *TestAllTypesProto2
// groups
type TestAllTypesProto2_Data struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
GroupInt32 *int32 `protobuf:"varint,202,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,203,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
unknownFields protoimpl.UnknownFields
GroupInt32 *int32 `protobuf:"varint,202,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,203,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_Data) Reset() {
@ -2323,12 +2332,11 @@ func (x *TestAllTypesProto2_Data) GetGroupUint32() uint32 {
}
type TestAllTypesProto2_MultiWordGroupField struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
GroupInt32 *int32 `protobuf:"varint,205,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,206,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
unknownFields protoimpl.UnknownFields
GroupInt32 *int32 `protobuf:"varint,205,opt,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,206,opt,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_MultiWordGroupField) Reset() {
@ -2377,10 +2385,10 @@ func (x *TestAllTypesProto2_MultiWordGroupField) GetGroupUint32() uint32 {
// message_set test case.
type TestAllTypesProto2_MessageSetCorrect struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_MessageSetCorrect) Reset() {
@ -2414,11 +2422,10 @@ func (*TestAllTypesProto2_MessageSetCorrect) Descriptor() ([]byte, []int) {
}
type TestAllTypesProto2_MessageSetCorrectExtension1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Str *string `protobuf:"bytes,25,opt,name=str" json:"str,omitempty"`
unknownFields protoimpl.UnknownFields
Str *string `protobuf:"bytes,25,opt,name=str" json:"str,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_MessageSetCorrectExtension1) Reset() {
@ -2459,11 +2466,10 @@ func (x *TestAllTypesProto2_MessageSetCorrectExtension1) GetStr() string {
}
type TestAllTypesProto2_MessageSetCorrectExtension2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
I *int32 `protobuf:"varint,9,opt,name=i" json:"i,omitempty"`
unknownFields protoimpl.UnknownFields
I *int32 `protobuf:"varint,9,opt,name=i" json:"i,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_MessageSetCorrectExtension2) Reset() {
@ -2504,11 +2510,10 @@ func (x *TestAllTypesProto2_MessageSetCorrectExtension2) GetI() int32 {
}
type UnknownToTestAllTypes_OptionalGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
unknownFields protoimpl.UnknownFields
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *UnknownToTestAllTypes_OptionalGroup) Reset() {
@ -2549,13 +2554,12 @@ func (x *UnknownToTestAllTypes_OptionalGroup) GetA() int32 {
}
type TestAllRequiredTypesProto2_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,req,name=a" json:"a,omitempty"`
Corecursive *TestAllRequiredTypesProto2 `protobuf:"bytes,2,req,name=corecursive" json:"corecursive,omitempty"`
OptionalCorecursive *TestAllRequiredTypesProto2 `protobuf:"bytes,3,opt,name=optional_corecursive,json=optionalCorecursive" json:"optional_corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllRequiredTypesProto2_NestedMessage) Reset() {
@ -2611,12 +2615,11 @@ func (x *TestAllRequiredTypesProto2_NestedMessage) GetOptionalCorecursive() *Tes
// groups
type TestAllRequiredTypesProto2_Data struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
GroupInt32 *int32 `protobuf:"varint,202,req,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,203,req,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
unknownFields protoimpl.UnknownFields
GroupInt32 *int32 `protobuf:"varint,202,req,name=group_int32,json=groupInt32" json:"group_int32,omitempty"`
GroupUint32 *uint32 `protobuf:"varint,203,req,name=group_uint32,json=groupUint32" json:"group_uint32,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllRequiredTypesProto2_Data) Reset() {
@ -2665,10 +2668,10 @@ func (x *TestAllRequiredTypesProto2_Data) GetGroupUint32() uint32 {
// message_set test case.
type TestAllRequiredTypesProto2_MessageSetCorrect struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllRequiredTypesProto2_MessageSetCorrect) Reset() {
@ -2702,11 +2705,10 @@ func (*TestAllRequiredTypesProto2_MessageSetCorrect) Descriptor() ([]byte, []int
}
type TestAllRequiredTypesProto2_MessageSetCorrectExtension1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Str *string `protobuf:"bytes,25,req,name=str" json:"str,omitempty"`
unknownFields protoimpl.UnknownFields
Str *string `protobuf:"bytes,25,req,name=str" json:"str,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension1) Reset() {
@ -2747,11 +2749,10 @@ func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension1) GetStr() string
}
type TestAllRequiredTypesProto2_MessageSetCorrectExtension2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
I *int32 `protobuf:"varint,9,req,name=i" json:"i,omitempty"`
unknownFields protoimpl.UnknownFields
I *int32 `protobuf:"varint,9,req,name=i" json:"i,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension2) Reset() {

View File

@ -243,10 +243,7 @@ func (EnumOnlyProto3_Bool) EnumDescriptor() ([]byte, []int) {
// could trigger bugs that occur in any message type in this file. We verify
// this stays true in a unit test.
type TestAllTypesProto3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
// Singular
OptionalInt32 int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32,proto3" json:"optional_int32,omitempty"`
OptionalInt64 int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64,proto3" json:"optional_int64,omitempty"`
@ -324,26 +321,26 @@ type TestAllTypesProto3 struct {
UnpackedBool []bool `protobuf:"varint,101,rep,name=unpacked_bool,json=unpackedBool,proto3" json:"unpacked_bool,omitempty"`
UnpackedNestedEnum []TestAllTypesProto3_NestedEnum `protobuf:"varint,102,rep,name=unpacked_nested_enum,json=unpackedNestedEnum,proto3,enum=protobuf_test_messages.proto3.TestAllTypesProto3_NestedEnum" json:"unpacked_nested_enum,omitempty"`
// Map
MapInt32Int32 map[int32]int32 `protobuf:"bytes,56,rep,name=map_int32_int32,json=mapInt32Int32,proto3" json:"map_int32_int32,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapInt64Int64 map[int64]int64 `protobuf:"bytes,57,rep,name=map_int64_int64,json=mapInt64Int64,proto3" json:"map_int64_int64,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapUint32Uint32 map[uint32]uint32 `protobuf:"bytes,58,rep,name=map_uint32_uint32,json=mapUint32Uint32,proto3" json:"map_uint32_uint32,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapUint64Uint64 map[uint64]uint64 `protobuf:"bytes,59,rep,name=map_uint64_uint64,json=mapUint64Uint64,proto3" json:"map_uint64_uint64,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapSint32Sint32 map[int32]int32 `protobuf:"bytes,60,rep,name=map_sint32_sint32,json=mapSint32Sint32,proto3" json:"map_sint32_sint32,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"zigzag32,2,opt,name=value,proto3"`
MapSint64Sint64 map[int64]int64 `protobuf:"bytes,61,rep,name=map_sint64_sint64,json=mapSint64Sint64,proto3" json:"map_sint64_sint64,omitempty" protobuf_key:"zigzag64,1,opt,name=key,proto3" protobuf_val:"zigzag64,2,opt,name=value,proto3"`
MapFixed32Fixed32 map[uint32]uint32 `protobuf:"bytes,62,rep,name=map_fixed32_fixed32,json=mapFixed32Fixed32,proto3" json:"map_fixed32_fixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
MapFixed64Fixed64 map[uint64]uint64 `protobuf:"bytes,63,rep,name=map_fixed64_fixed64,json=mapFixed64Fixed64,proto3" json:"map_fixed64_fixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
MapSfixed32Sfixed32 map[int32]int32 `protobuf:"bytes,64,rep,name=map_sfixed32_sfixed32,json=mapSfixed32Sfixed32,proto3" json:"map_sfixed32_sfixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
MapSfixed64Sfixed64 map[int64]int64 `protobuf:"bytes,65,rep,name=map_sfixed64_sfixed64,json=mapSfixed64Sfixed64,proto3" json:"map_sfixed64_sfixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
MapInt32Float map[int32]float32 `protobuf:"bytes,66,rep,name=map_int32_float,json=mapInt32Float,proto3" json:"map_int32_float,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
MapInt32Double map[int32]float64 `protobuf:"bytes,67,rep,name=map_int32_double,json=mapInt32Double,proto3" json:"map_int32_double,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
MapBoolBool map[bool]bool `protobuf:"bytes,68,rep,name=map_bool_bool,json=mapBoolBool,proto3" json:"map_bool_bool,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapStringString map[string]string `protobuf:"bytes,69,rep,name=map_string_string,json=mapStringString,proto3" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
MapStringBytes map[string][]byte `protobuf:"bytes,70,rep,name=map_string_bytes,json=mapStringBytes,proto3" json:"map_string_bytes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
MapStringNestedMessage map[string]*TestAllTypesProto3_NestedMessage `protobuf:"bytes,71,rep,name=map_string_nested_message,json=mapStringNestedMessage,proto3" json:"map_string_nested_message,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
MapStringForeignMessage map[string]*ForeignMessage `protobuf:"bytes,72,rep,name=map_string_foreign_message,json=mapStringForeignMessage,proto3" json:"map_string_foreign_message,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
MapStringNestedEnum map[string]TestAllTypesProto3_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum,proto3" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=protobuf_test_messages.proto3.TestAllTypesProto3_NestedEnum"`
MapStringForeignEnum map[string]ForeignEnum `protobuf:"bytes,74,rep,name=map_string_foreign_enum,json=mapStringForeignEnum,proto3" json:"map_string_foreign_enum,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=protobuf_test_messages.proto3.ForeignEnum"`
// Types that are assignable to OneofField:
MapInt32Int32 map[int32]int32 `protobuf:"bytes,56,rep,name=map_int32_int32,json=mapInt32Int32,proto3" json:"map_int32_int32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapInt64Int64 map[int64]int64 `protobuf:"bytes,57,rep,name=map_int64_int64,json=mapInt64Int64,proto3" json:"map_int64_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapUint32Uint32 map[uint32]uint32 `protobuf:"bytes,58,rep,name=map_uint32_uint32,json=mapUint32Uint32,proto3" json:"map_uint32_uint32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapUint64Uint64 map[uint64]uint64 `protobuf:"bytes,59,rep,name=map_uint64_uint64,json=mapUint64Uint64,proto3" json:"map_uint64_uint64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapSint32Sint32 map[int32]int32 `protobuf:"bytes,60,rep,name=map_sint32_sint32,json=mapSint32Sint32,proto3" json:"map_sint32_sint32,omitempty" protobuf_key:"zigzag32,1,opt,name=key" protobuf_val:"zigzag32,2,opt,name=value"`
MapSint64Sint64 map[int64]int64 `protobuf:"bytes,61,rep,name=map_sint64_sint64,json=mapSint64Sint64,proto3" json:"map_sint64_sint64,omitempty" protobuf_key:"zigzag64,1,opt,name=key" protobuf_val:"zigzag64,2,opt,name=value"`
MapFixed32Fixed32 map[uint32]uint32 `protobuf:"bytes,62,rep,name=map_fixed32_fixed32,json=mapFixed32Fixed32,proto3" json:"map_fixed32_fixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
MapFixed64Fixed64 map[uint64]uint64 `protobuf:"bytes,63,rep,name=map_fixed64_fixed64,json=mapFixed64Fixed64,proto3" json:"map_fixed64_fixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
MapSfixed32Sfixed32 map[int32]int32 `protobuf:"bytes,64,rep,name=map_sfixed32_sfixed32,json=mapSfixed32Sfixed32,proto3" json:"map_sfixed32_sfixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
MapSfixed64Sfixed64 map[int64]int64 `protobuf:"bytes,65,rep,name=map_sfixed64_sfixed64,json=mapSfixed64Sfixed64,proto3" json:"map_sfixed64_sfixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
MapInt32Float map[int32]float32 `protobuf:"bytes,66,rep,name=map_int32_float,json=mapInt32Float,proto3" json:"map_int32_float,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
MapInt32Double map[int32]float64 `protobuf:"bytes,67,rep,name=map_int32_double,json=mapInt32Double,proto3" json:"map_int32_double,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
MapBoolBool map[bool]bool `protobuf:"bytes,68,rep,name=map_bool_bool,json=mapBoolBool,proto3" json:"map_bool_bool,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapStringString map[string]string `protobuf:"bytes,69,rep,name=map_string_string,json=mapStringString,proto3" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringBytes map[string][]byte `protobuf:"bytes,70,rep,name=map_string_bytes,json=mapStringBytes,proto3" json:"map_string_bytes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringNestedMessage map[string]*TestAllTypesProto3_NestedMessage `protobuf:"bytes,71,rep,name=map_string_nested_message,json=mapStringNestedMessage,proto3" json:"map_string_nested_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringForeignMessage map[string]*ForeignMessage `protobuf:"bytes,72,rep,name=map_string_foreign_message,json=mapStringForeignMessage,proto3" json:"map_string_foreign_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringNestedEnum map[string]TestAllTypesProto3_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum,proto3" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.proto3.TestAllTypesProto3_NestedEnum"`
MapStringForeignEnum map[string]ForeignEnum `protobuf:"bytes,74,rep,name=map_string_foreign_enum,json=mapStringForeignEnum,proto3" json:"map_string_foreign_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.proto3.ForeignEnum"`
// Types that are valid to be assigned to OneofField:
//
// *TestAllTypesProto3_OneofUint32
// *TestAllTypesProto3_OneofNestedMessage
@ -409,6 +406,8 @@ type TestAllTypesProto3 struct {
Field__Name16 int32 `protobuf:"varint,416,opt,name=field__Name16,json=fieldName16,proto3" json:"field__Name16,omitempty"`
FieldName17__ int32 `protobuf:"varint,417,opt,name=field_name17__,json=fieldName17,proto3" json:"field_name17__,omitempty"`
FieldName18__ int32 `protobuf:"varint,418,opt,name=Field_name18__,json=FieldName18,proto3" json:"Field_name18__,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto3) Reset() {
@ -1078,79 +1077,99 @@ func (x *TestAllTypesProto3) GetMapStringForeignEnum() map[string]ForeignEnum {
return nil
}
func (m *TestAllTypesProto3) GetOneofField() isTestAllTypesProto3_OneofField {
if m != nil {
return m.OneofField
func (x *TestAllTypesProto3) GetOneofField() isTestAllTypesProto3_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *TestAllTypesProto3) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofNestedMessage() *TestAllTypesProto3_NestedMessage {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofNestedMessage); ok {
return x.OneofNestedMessage
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofNestedMessage); ok {
return x.OneofNestedMessage
}
}
return nil
}
func (x *TestAllTypesProto3) GetOneofString() string {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *TestAllTypesProto3) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *TestAllTypesProto3) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *TestAllTypesProto3) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofEnum() TestAllTypesProto3_NestedEnum {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofEnum); ok {
return x.OneofEnum
}
}
return TestAllTypesProto3_FOO
}
func (x *TestAllTypesProto3) GetOneofNullValue() structpb.NullValue {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofNullValue); ok {
return x.OneofNullValue
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofNullValue); ok {
return x.OneofNullValue
}
}
return structpb.NullValue(0)
}
@ -1570,11 +1589,10 @@ func (*TestAllTypesProto3_OneofEnum) isTestAllTypesProto3_OneofField() {}
func (*TestAllTypesProto3_OneofNullValue) isTestAllTypesProto3_OneofField() {}
type ForeignMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
C int32 `protobuf:"varint,1,opt,name=c,proto3" json:"c,omitempty"`
unknownFields protoimpl.UnknownFields
C int32 `protobuf:"varint,1,opt,name=c,proto3" json:"c,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ForeignMessage) Reset() {
@ -1615,9 +1633,9 @@ func (x *ForeignMessage) GetC() int32 {
}
type NullHypothesisProto3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NullHypothesisProto3) Reset() {
@ -1651,9 +1669,9 @@ func (*NullHypothesisProto3) Descriptor() ([]byte, []int) {
}
type EnumOnlyProto3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnumOnlyProto3) Reset() {
@ -1687,12 +1705,11 @@ func (*EnumOnlyProto3) Descriptor() ([]byte, []int) {
}
type TestAllTypesProto3_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
Corecursive *TestAllTypesProto3 `protobuf:"bytes,2,opt,name=corecursive,proto3" json:"corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
Corecursive *TestAllTypesProto3 `protobuf:"bytes,2,opt,name=corecursive,proto3" json:"corecursive,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto3_NestedMessage) Reset() {

View File

@ -77,10 +77,7 @@ func (TestAllTypesProto2_NestedEnum) EnumDescriptor() ([]byte, []int) {
}
type TestAllTypesProto2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
OptionalInt32 *int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
OptionalInt64 *int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
OptionalUint32 *uint32 `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty"`
@ -151,7 +148,7 @@ type TestAllTypesProto2 struct {
DefaultString *string `protobuf:"bytes,94,opt,name=default_string,json=defaultString,def=hello" json:"default_string,omitempty"`
DefaultBytes []byte `protobuf:"bytes,95,opt,name=default_bytes,json=defaultBytes,def=world" json:"default_bytes,omitempty"`
DefaultNestedEnum *TestAllTypesProto2_NestedEnum `protobuf:"varint,96,opt,name=default_nested_enum,json=defaultNestedEnum,enum=goproto.proto.test.TestAllTypesProto2_NestedEnum,def=1" json:"default_nested_enum,omitempty"`
// Types that are assignable to OneofField:
// Types that are valid to be assigned to OneofField:
//
// *TestAllTypesProto2_OneofUint32
// *TestAllTypesProto2_OneofNestedMessage
@ -166,10 +163,12 @@ type TestAllTypesProto2 struct {
OneofField isTestAllTypesProto2_OneofField `protobuf_oneof:"oneof_field"`
// A oneof with exactly one field.
//
// Types that are assignable to OneofOptional:
// Types that are valid to be assigned to OneofOptional:
//
// *TestAllTypesProto2_OneofOptionalUint32
OneofOptional isTestAllTypesProto2_OneofOptional `protobuf_oneof:"oneof_optional"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for TestAllTypesProto2 fields.
@ -709,93 +708,115 @@ func (x *TestAllTypesProto2) GetDefaultNestedEnum() TestAllTypesProto2_NestedEnu
return Default_TestAllTypesProto2_DefaultNestedEnum
}
func (m *TestAllTypesProto2) GetOneofField() isTestAllTypesProto2_OneofField {
if m != nil {
return m.OneofField
func (x *TestAllTypesProto2) GetOneofField() isTestAllTypesProto2_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *TestAllTypesProto2) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofNestedMessage() *TestAllTypesProto2_NestedMessage {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofNestedMessage); ok {
return x.OneofNestedMessage
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofNestedMessage); ok {
return x.OneofNestedMessage
}
}
return nil
}
func (x *TestAllTypesProto2) GetOneofString() string {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *TestAllTypesProto2) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *TestAllTypesProto2) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *TestAllTypesProto2) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *TestAllTypesProto2) GetOneofEnum() TestAllTypesProto2_NestedEnum {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_OneofEnum); ok {
return x.OneofEnum
}
}
return TestAllTypesProto2_FOO
}
func (x *TestAllTypesProto2) GetOneofgroup() *TestAllTypesProto2_OneofGroup {
if x, ok := x.GetOneofField().(*TestAllTypesProto2_Oneofgroup); ok {
return x.Oneofgroup
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2_Oneofgroup); ok {
return x.Oneofgroup
}
}
return nil
}
func (m *TestAllTypesProto2) GetOneofOptional() isTestAllTypesProto2_OneofOptional {
if m != nil {
return m.OneofOptional
func (x *TestAllTypesProto2) GetOneofOptional() isTestAllTypesProto2_OneofOptional {
if x != nil {
return x.OneofOptional
}
return nil
}
func (x *TestAllTypesProto2) GetOneofOptionalUint32() uint32 {
if x, ok := x.GetOneofOptional().(*TestAllTypesProto2_OneofOptionalUint32); ok {
return x.OneofOptionalUint32
if x != nil {
if x, ok := x.OneofOptional.(*TestAllTypesProto2_OneofOptionalUint32); ok {
return x.OneofOptionalUint32
}
}
return 0
}
@ -875,12 +896,11 @@ type TestAllTypesProto2_OneofOptionalUint32 struct {
func (*TestAllTypesProto2_OneofOptionalUint32) isTestAllTypesProto2_OneofOptional() {}
type TestAllTypesProto2_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto2 `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto2 `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_NestedMessage) Reset() {
@ -928,13 +948,12 @@ func (x *TestAllTypesProto2_NestedMessage) GetCorecursive() *TestAllTypesProto2
}
type TestAllTypesProto2_OptionalGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,17,opt,name=a" json:"a,omitempty"`
OptionalNestedMessage *TestAllTypesProto2_NestedMessage `protobuf:"bytes,1000,opt,name=optional_nested_message,json=optionalNestedMessage" json:"optional_nested_message,omitempty"`
SameFieldNumber *int32 `protobuf:"varint,16,opt,name=same_field_number,json=sameFieldNumber" json:"same_field_number,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_OptionalGroup) Reset() {
@ -989,12 +1008,11 @@ func (x *TestAllTypesProto2_OptionalGroup) GetSameFieldNumber() int32 {
}
type TestAllTypesProto2_RepeatedGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,47,opt,name=a" json:"a,omitempty"`
OptionalNestedMessage *TestAllTypesProto2_NestedMessage `protobuf:"bytes,1001,opt,name=optional_nested_message,json=optionalNestedMessage" json:"optional_nested_message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_RepeatedGroup) Reset() {
@ -1042,12 +1060,11 @@ func (x *TestAllTypesProto2_RepeatedGroup) GetOptionalNestedMessage() *TestAllTy
}
type TestAllTypesProto2_OneofGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
B *int32 `protobuf:"varint,2,opt,name=b" json:"b,omitempty"`
unknownFields protoimpl.UnknownFields
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
B *int32 `protobuf:"varint,2,opt,name=b" json:"b,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2_OneofGroup) Reset() {

View File

@ -78,10 +78,7 @@ func (TestAllTypesProto2Editions_NestedEnum) EnumDescriptor() ([]byte, []int) {
}
type TestAllTypesProto2Editions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
OptionalInt32 *int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
OptionalInt64 *int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
OptionalUint32 *uint32 `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty"`
@ -152,7 +149,7 @@ type TestAllTypesProto2Editions struct {
DefaultString *string `protobuf:"bytes,94,opt,name=default_string,json=defaultString,def=hello" json:"default_string,omitempty"`
DefaultBytes []byte `protobuf:"bytes,95,opt,name=default_bytes,json=defaultBytes,def=world" json:"default_bytes,omitempty"`
DefaultNestedEnum *TestAllTypesProto2Editions_NestedEnum `protobuf:"varint,96,opt,name=default_nested_enum,json=defaultNestedEnum,enum=goproto.proto.test.TestAllTypesProto2Editions_NestedEnum,def=1" json:"default_nested_enum,omitempty"`
// Types that are assignable to OneofField:
// Types that are valid to be assigned to OneofField:
//
// *TestAllTypesProto2Editions_OneofUint32
// *TestAllTypesProto2Editions_OneofNestedMessage
@ -167,10 +164,12 @@ type TestAllTypesProto2Editions struct {
OneofField isTestAllTypesProto2Editions_OneofField `protobuf_oneof:"oneof_field"`
// A oneof with exactly one field.
//
// Types that are assignable to OneofOptional:
// Types that are valid to be assigned to OneofOptional:
//
// *TestAllTypesProto2Editions_OneofOptionalUint32
OneofOptional isTestAllTypesProto2Editions_OneofOptional `protobuf_oneof:"oneof_optional"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
// Default values for TestAllTypesProto2Editions fields.
@ -710,93 +709,115 @@ func (x *TestAllTypesProto2Editions) GetDefaultNestedEnum() TestAllTypesProto2Ed
return Default_TestAllTypesProto2Editions_DefaultNestedEnum
}
func (m *TestAllTypesProto2Editions) GetOneofField() isTestAllTypesProto2Editions_OneofField {
if m != nil {
return m.OneofField
func (x *TestAllTypesProto2Editions) GetOneofField() isTestAllTypesProto2Editions_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *TestAllTypesProto2Editions) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2Editions_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2Editions_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *TestAllTypesProto2Editions) GetOneofNestedMessage() *TestAllTypesProto2Editions_NestedMessage {
if x, ok := x.GetOneofField().(*TestAllTypesProto2Editions_OneofNestedMessage); ok {
return x.OneofNestedMessage
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2Editions_OneofNestedMessage); ok {
return x.OneofNestedMessage
}
}
return nil
}
func (x *TestAllTypesProto2Editions) GetOneofString() string {
if x, ok := x.GetOneofField().(*TestAllTypesProto2Editions_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2Editions_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *TestAllTypesProto2Editions) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*TestAllTypesProto2Editions_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2Editions_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *TestAllTypesProto2Editions) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*TestAllTypesProto2Editions_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2Editions_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *TestAllTypesProto2Editions) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2Editions_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2Editions_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *TestAllTypesProto2Editions) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2Editions_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2Editions_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *TestAllTypesProto2Editions) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto2Editions_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2Editions_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *TestAllTypesProto2Editions) GetOneofEnum() TestAllTypesProto2Editions_NestedEnum {
if x, ok := x.GetOneofField().(*TestAllTypesProto2Editions_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2Editions_OneofEnum); ok {
return x.OneofEnum
}
}
return TestAllTypesProto2Editions_FOO
}
func (x *TestAllTypesProto2Editions) GetOneofgroup() *TestAllTypesProto2Editions_OneofGroup {
if x, ok := x.GetOneofField().(*TestAllTypesProto2Editions_Oneofgroup); ok {
return x.Oneofgroup
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto2Editions_Oneofgroup); ok {
return x.Oneofgroup
}
}
return nil
}
func (m *TestAllTypesProto2Editions) GetOneofOptional() isTestAllTypesProto2Editions_OneofOptional {
if m != nil {
return m.OneofOptional
func (x *TestAllTypesProto2Editions) GetOneofOptional() isTestAllTypesProto2Editions_OneofOptional {
if x != nil {
return x.OneofOptional
}
return nil
}
func (x *TestAllTypesProto2Editions) GetOneofOptionalUint32() uint32 {
if x, ok := x.GetOneofOptional().(*TestAllTypesProto2Editions_OneofOptionalUint32); ok {
return x.OneofOptionalUint32
if x != nil {
if x, ok := x.OneofOptional.(*TestAllTypesProto2Editions_OneofOptionalUint32); ok {
return x.OneofOptionalUint32
}
}
return 0
}
@ -876,12 +897,11 @@ type TestAllTypesProto2Editions_OneofOptionalUint32 struct {
func (*TestAllTypesProto2Editions_OneofOptionalUint32) isTestAllTypesProto2Editions_OneofOptional() {}
type TestAllTypesProto2Editions_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto2Editions `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto2Editions `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2Editions_NestedMessage) Reset() {
@ -929,13 +949,12 @@ func (x *TestAllTypesProto2Editions_NestedMessage) GetCorecursive() *TestAllType
}
type TestAllTypesProto2Editions_OptionalGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,17,opt,name=a" json:"a,omitempty"`
OptionalNestedMessage *TestAllTypesProto2Editions_NestedMessage `protobuf:"bytes,1000,opt,name=optional_nested_message,json=optionalNestedMessage" json:"optional_nested_message,omitempty"`
SameFieldNumber *int32 `protobuf:"varint,16,opt,name=same_field_number,json=sameFieldNumber" json:"same_field_number,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2Editions_OptionalGroup) Reset() {
@ -990,12 +1009,11 @@ func (x *TestAllTypesProto2Editions_OptionalGroup) GetSameFieldNumber() int32 {
}
type TestAllTypesProto2Editions_RepeatedGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,47,opt,name=a" json:"a,omitempty"`
OptionalNestedMessage *TestAllTypesProto2Editions_NestedMessage `protobuf:"bytes,1001,opt,name=optional_nested_message,json=optionalNestedMessage" json:"optional_nested_message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2Editions_RepeatedGroup) Reset() {
@ -1043,12 +1061,11 @@ func (x *TestAllTypesProto2Editions_RepeatedGroup) GetOptionalNestedMessage() *T
}
type TestAllTypesProto2Editions_OneofGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
B *int32 `protobuf:"varint,2,opt,name=b" json:"b,omitempty"`
unknownFields protoimpl.UnknownFields
A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
B *int32 `protobuf:"varint,2,opt,name=b" json:"b,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto2Editions_OneofGroup) Reset() {

View File

@ -119,10 +119,7 @@ func (TestAllTypesProto3_NestedEnum) EnumDescriptor() ([]byte, []int) {
}
type TestAllTypesProto3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
SingularInt32 int32 `protobuf:"varint,81,opt,name=singular_int32,json=singularInt32,proto3" json:"singular_int32,omitempty"`
SingularInt64 int64 `protobuf:"varint,82,opt,name=singular_int64,json=singularInt64,proto3" json:"singular_int64,omitempty"`
SingularUint32 uint32 `protobuf:"varint,83,opt,name=singular_uint32,json=singularUint32,proto3" json:"singular_uint32,omitempty"`
@ -180,24 +177,24 @@ type TestAllTypesProto3 struct {
RepeatedForeignMessage []*ForeignMessageProto3 `protobuf:"bytes,49,rep,name=repeated_foreign_message,json=repeatedForeignMessage,proto3" json:"repeated_foreign_message,omitempty"`
RepeatedNestedEnum []TestAllTypesProto3_NestedEnum `protobuf:"varint,51,rep,packed,name=repeated_nested_enum,json=repeatedNestedEnum,proto3,enum=goproto.proto.test.TestAllTypesProto3_NestedEnum" json:"repeated_nested_enum,omitempty"`
RepeatedForeignEnum []ForeignEnumProto3 `protobuf:"varint,52,rep,packed,name=repeated_foreign_enum,json=repeatedForeignEnum,proto3,enum=goproto.proto.test.ForeignEnumProto3" json:"repeated_foreign_enum,omitempty"`
MapInt32Int32 map[int32]int32 `protobuf:"bytes,56,rep,name=map_int32_int32,json=mapInt32Int32,proto3" json:"map_int32_int32,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapInt64Int64 map[int64]int64 `protobuf:"bytes,57,rep,name=map_int64_int64,json=mapInt64Int64,proto3" json:"map_int64_int64,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapUint32Uint32 map[uint32]uint32 `protobuf:"bytes,58,rep,name=map_uint32_uint32,json=mapUint32Uint32,proto3" json:"map_uint32_uint32,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapUint64Uint64 map[uint64]uint64 `protobuf:"bytes,59,rep,name=map_uint64_uint64,json=mapUint64Uint64,proto3" json:"map_uint64_uint64,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapSint32Sint32 map[int32]int32 `protobuf:"bytes,60,rep,name=map_sint32_sint32,json=mapSint32Sint32,proto3" json:"map_sint32_sint32,omitempty" protobuf_key:"zigzag32,1,opt,name=key,proto3" protobuf_val:"zigzag32,2,opt,name=value,proto3"`
MapSint64Sint64 map[int64]int64 `protobuf:"bytes,61,rep,name=map_sint64_sint64,json=mapSint64Sint64,proto3" json:"map_sint64_sint64,omitempty" protobuf_key:"zigzag64,1,opt,name=key,proto3" protobuf_val:"zigzag64,2,opt,name=value,proto3"`
MapFixed32Fixed32 map[uint32]uint32 `protobuf:"bytes,62,rep,name=map_fixed32_fixed32,json=mapFixed32Fixed32,proto3" json:"map_fixed32_fixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
MapFixed64Fixed64 map[uint64]uint64 `protobuf:"bytes,63,rep,name=map_fixed64_fixed64,json=mapFixed64Fixed64,proto3" json:"map_fixed64_fixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
MapSfixed32Sfixed32 map[int32]int32 `protobuf:"bytes,64,rep,name=map_sfixed32_sfixed32,json=mapSfixed32Sfixed32,proto3" json:"map_sfixed32_sfixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
MapSfixed64Sfixed64 map[int64]int64 `protobuf:"bytes,65,rep,name=map_sfixed64_sfixed64,json=mapSfixed64Sfixed64,proto3" json:"map_sfixed64_sfixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
MapInt32Float map[int32]float32 `protobuf:"bytes,66,rep,name=map_int32_float,json=mapInt32Float,proto3" json:"map_int32_float,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
MapInt32Double map[int32]float64 `protobuf:"bytes,67,rep,name=map_int32_double,json=mapInt32Double,proto3" json:"map_int32_double,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
MapBoolBool map[bool]bool `protobuf:"bytes,68,rep,name=map_bool_bool,json=mapBoolBool,proto3" json:"map_bool_bool,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
MapStringString map[string]string `protobuf:"bytes,69,rep,name=map_string_string,json=mapStringString,proto3" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
MapStringBytes map[string][]byte `protobuf:"bytes,70,rep,name=map_string_bytes,json=mapStringBytes,proto3" json:"map_string_bytes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
MapStringNestedMessage map[string]*TestAllTypesProto3_NestedMessage `protobuf:"bytes,71,rep,name=map_string_nested_message,json=mapStringNestedMessage,proto3" json:"map_string_nested_message,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
MapStringNestedEnum map[string]TestAllTypesProto3_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum,proto3" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=goproto.proto.test.TestAllTypesProto3_NestedEnum"`
// Types that are assignable to OneofField:
MapInt32Int32 map[int32]int32 `protobuf:"bytes,56,rep,name=map_int32_int32,json=mapInt32Int32,proto3" json:"map_int32_int32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapInt64Int64 map[int64]int64 `protobuf:"bytes,57,rep,name=map_int64_int64,json=mapInt64Int64,proto3" json:"map_int64_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapUint32Uint32 map[uint32]uint32 `protobuf:"bytes,58,rep,name=map_uint32_uint32,json=mapUint32Uint32,proto3" json:"map_uint32_uint32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapUint64Uint64 map[uint64]uint64 `protobuf:"bytes,59,rep,name=map_uint64_uint64,json=mapUint64Uint64,proto3" json:"map_uint64_uint64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapSint32Sint32 map[int32]int32 `protobuf:"bytes,60,rep,name=map_sint32_sint32,json=mapSint32Sint32,proto3" json:"map_sint32_sint32,omitempty" protobuf_key:"zigzag32,1,opt,name=key" protobuf_val:"zigzag32,2,opt,name=value"`
MapSint64Sint64 map[int64]int64 `protobuf:"bytes,61,rep,name=map_sint64_sint64,json=mapSint64Sint64,proto3" json:"map_sint64_sint64,omitempty" protobuf_key:"zigzag64,1,opt,name=key" protobuf_val:"zigzag64,2,opt,name=value"`
MapFixed32Fixed32 map[uint32]uint32 `protobuf:"bytes,62,rep,name=map_fixed32_fixed32,json=mapFixed32Fixed32,proto3" json:"map_fixed32_fixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
MapFixed64Fixed64 map[uint64]uint64 `protobuf:"bytes,63,rep,name=map_fixed64_fixed64,json=mapFixed64Fixed64,proto3" json:"map_fixed64_fixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
MapSfixed32Sfixed32 map[int32]int32 `protobuf:"bytes,64,rep,name=map_sfixed32_sfixed32,json=mapSfixed32Sfixed32,proto3" json:"map_sfixed32_sfixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
MapSfixed64Sfixed64 map[int64]int64 `protobuf:"bytes,65,rep,name=map_sfixed64_sfixed64,json=mapSfixed64Sfixed64,proto3" json:"map_sfixed64_sfixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
MapInt32Float map[int32]float32 `protobuf:"bytes,66,rep,name=map_int32_float,json=mapInt32Float,proto3" json:"map_int32_float,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
MapInt32Double map[int32]float64 `protobuf:"bytes,67,rep,name=map_int32_double,json=mapInt32Double,proto3" json:"map_int32_double,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
MapBoolBool map[bool]bool `protobuf:"bytes,68,rep,name=map_bool_bool,json=mapBoolBool,proto3" json:"map_bool_bool,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapStringString map[string]string `protobuf:"bytes,69,rep,name=map_string_string,json=mapStringString,proto3" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringBytes map[string][]byte `protobuf:"bytes,70,rep,name=map_string_bytes,json=mapStringBytes,proto3" json:"map_string_bytes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringNestedMessage map[string]*TestAllTypesProto3_NestedMessage `protobuf:"bytes,71,rep,name=map_string_nested_message,json=mapStringNestedMessage,proto3" json:"map_string_nested_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringNestedEnum map[string]TestAllTypesProto3_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum,proto3" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.proto.test.TestAllTypesProto3_NestedEnum"`
// Types that are valid to be assigned to OneofField:
//
// *TestAllTypesProto3_OneofUint32
// *TestAllTypesProto3_OneofNestedMessage
@ -208,7 +205,9 @@ type TestAllTypesProto3 struct {
// *TestAllTypesProto3_OneofFloat
// *TestAllTypesProto3_OneofDouble
// *TestAllTypesProto3_OneofEnum
OneofField isTestAllTypesProto3_OneofField `protobuf_oneof:"oneof_field"`
OneofField isTestAllTypesProto3_OneofField `protobuf_oneof:"oneof_field"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto3) Reset() {
@ -759,72 +758,90 @@ func (x *TestAllTypesProto3) GetMapStringNestedEnum() map[string]TestAllTypesPro
return nil
}
func (m *TestAllTypesProto3) GetOneofField() isTestAllTypesProto3_OneofField {
if m != nil {
return m.OneofField
func (x *TestAllTypesProto3) GetOneofField() isTestAllTypesProto3_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *TestAllTypesProto3) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofNestedMessage() *TestAllTypesProto3_NestedMessage {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofNestedMessage); ok {
return x.OneofNestedMessage
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofNestedMessage); ok {
return x.OneofNestedMessage
}
}
return nil
}
func (x *TestAllTypesProto3) GetOneofString() string {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *TestAllTypesProto3) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *TestAllTypesProto3) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *TestAllTypesProto3) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *TestAllTypesProto3) GetOneofEnum() TestAllTypesProto3_NestedEnum {
if x, ok := x.GetOneofField().(*TestAllTypesProto3_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3_OneofEnum); ok {
return x.OneofEnum
}
}
return TestAllTypesProto3_FOO
}
@ -888,12 +905,11 @@ func (*TestAllTypesProto3_OneofDouble) isTestAllTypesProto3_OneofField() {}
func (*TestAllTypesProto3_OneofEnum) isTestAllTypesProto3_OneofField() {}
type ForeignMessageProto3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
C int32 `protobuf:"varint,1,opt,name=c,proto3" json:"c,omitempty"`
D int32 `protobuf:"varint,2,opt,name=d,proto3" json:"d,omitempty"`
unknownFields protoimpl.UnknownFields
C int32 `protobuf:"varint,1,opt,name=c,proto3" json:"c,omitempty"`
D int32 `protobuf:"varint,2,opt,name=d,proto3" json:"d,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ForeignMessageProto3) Reset() {
@ -941,12 +957,11 @@ func (x *ForeignMessageProto3) GetD() int32 {
}
type TestAllTypesProto3_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
Corecursive *TestAllTypesProto3 `protobuf:"bytes,2,opt,name=corecursive,proto3" json:"corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
Corecursive *TestAllTypesProto3 `protobuf:"bytes,2,opt,name=corecursive,proto3" json:"corecursive,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto3_NestedMessage) Reset() {

View File

@ -119,10 +119,7 @@ func (TestAllTypesProto3Editions_NestedEnum) EnumDescriptor() ([]byte, []int) {
}
type TestAllTypesProto3Editions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
SingularInt32 int32 `protobuf:"varint,81,opt,name=singular_int32,json=singularInt32" json:"singular_int32,omitempty"`
SingularInt64 int64 `protobuf:"varint,82,opt,name=singular_int64,json=singularInt64" json:"singular_int64,omitempty"`
SingularUint32 uint32 `protobuf:"varint,83,opt,name=singular_uint32,json=singularUint32" json:"singular_uint32,omitempty"`
@ -197,7 +194,7 @@ type TestAllTypesProto3Editions struct {
MapStringBytes map[string][]byte `protobuf:"bytes,70,rep,name=map_string_bytes,json=mapStringBytes" json:"map_string_bytes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringNestedMessage map[string]*TestAllTypesProto3Editions_NestedMessage `protobuf:"bytes,71,rep,name=map_string_nested_message,json=mapStringNestedMessage" json:"map_string_nested_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapStringNestedEnum map[string]TestAllTypesProto3Editions_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.proto.test.TestAllTypesProto3Editions_NestedEnum"`
// Types that are assignable to OneofField:
// Types that are valid to be assigned to OneofField:
//
// *TestAllTypesProto3Editions_OneofUint32
// *TestAllTypesProto3Editions_OneofNestedMessage
@ -208,7 +205,9 @@ type TestAllTypesProto3Editions struct {
// *TestAllTypesProto3Editions_OneofFloat
// *TestAllTypesProto3Editions_OneofDouble
// *TestAllTypesProto3Editions_OneofEnum
OneofField isTestAllTypesProto3Editions_OneofField `protobuf_oneof:"oneof_field"`
OneofField isTestAllTypesProto3Editions_OneofField `protobuf_oneof:"oneof_field"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto3Editions) Reset() {
@ -759,72 +758,90 @@ func (x *TestAllTypesProto3Editions) GetMapStringNestedEnum() map[string]TestAll
return nil
}
func (m *TestAllTypesProto3Editions) GetOneofField() isTestAllTypesProto3Editions_OneofField {
if m != nil {
return m.OneofField
func (x *TestAllTypesProto3Editions) GetOneofField() isTestAllTypesProto3Editions_OneofField {
if x != nil {
return x.OneofField
}
return nil
}
func (x *TestAllTypesProto3Editions) GetOneofUint32() uint32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3Editions_OneofUint32); ok {
return x.OneofUint32
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3Editions_OneofUint32); ok {
return x.OneofUint32
}
}
return 0
}
func (x *TestAllTypesProto3Editions) GetOneofNestedMessage() *TestAllTypesProto3Editions_NestedMessage {
if x, ok := x.GetOneofField().(*TestAllTypesProto3Editions_OneofNestedMessage); ok {
return x.OneofNestedMessage
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3Editions_OneofNestedMessage); ok {
return x.OneofNestedMessage
}
}
return nil
}
func (x *TestAllTypesProto3Editions) GetOneofString() string {
if x, ok := x.GetOneofField().(*TestAllTypesProto3Editions_OneofString); ok {
return x.OneofString
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3Editions_OneofString); ok {
return x.OneofString
}
}
return ""
}
func (x *TestAllTypesProto3Editions) GetOneofBytes() []byte {
if x, ok := x.GetOneofField().(*TestAllTypesProto3Editions_OneofBytes); ok {
return x.OneofBytes
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3Editions_OneofBytes); ok {
return x.OneofBytes
}
}
return nil
}
func (x *TestAllTypesProto3Editions) GetOneofBool() bool {
if x, ok := x.GetOneofField().(*TestAllTypesProto3Editions_OneofBool); ok {
return x.OneofBool
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3Editions_OneofBool); ok {
return x.OneofBool
}
}
return false
}
func (x *TestAllTypesProto3Editions) GetOneofUint64() uint64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3Editions_OneofUint64); ok {
return x.OneofUint64
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3Editions_OneofUint64); ok {
return x.OneofUint64
}
}
return 0
}
func (x *TestAllTypesProto3Editions) GetOneofFloat() float32 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3Editions_OneofFloat); ok {
return x.OneofFloat
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3Editions_OneofFloat); ok {
return x.OneofFloat
}
}
return 0
}
func (x *TestAllTypesProto3Editions) GetOneofDouble() float64 {
if x, ok := x.GetOneofField().(*TestAllTypesProto3Editions_OneofDouble); ok {
return x.OneofDouble
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3Editions_OneofDouble); ok {
return x.OneofDouble
}
}
return 0
}
func (x *TestAllTypesProto3Editions) GetOneofEnum() TestAllTypesProto3Editions_NestedEnum {
if x, ok := x.GetOneofField().(*TestAllTypesProto3Editions_OneofEnum); ok {
return x.OneofEnum
if x != nil {
if x, ok := x.OneofField.(*TestAllTypesProto3Editions_OneofEnum); ok {
return x.OneofEnum
}
}
return TestAllTypesProto3Editions_FOO
}
@ -888,12 +905,11 @@ func (*TestAllTypesProto3Editions_OneofDouble) isTestAllTypesProto3Editions_Oneo
func (*TestAllTypesProto3Editions_OneofEnum) isTestAllTypesProto3Editions_OneofField() {}
type ForeignMessageProto3Editions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
C int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
D int32 `protobuf:"varint,2,opt,name=d" json:"d,omitempty"`
unknownFields protoimpl.UnknownFields
C int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
D int32 `protobuf:"varint,2,opt,name=d" json:"d,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *ForeignMessageProto3Editions) Reset() {
@ -941,12 +957,11 @@ func (x *ForeignMessageProto3Editions) GetD() int32 {
}
type TestAllTypesProto3Editions_NestedMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto3Editions `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
unknownFields protoimpl.UnknownFields
A int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Corecursive *TestAllTypesProto3Editions `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *TestAllTypesProto3Editions_NestedMessage) Reset() {

View File

@ -73,16 +73,6 @@ func (x Enum) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Do not use.
func (x *Enum) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = Enum(num)
return nil
}
// Deprecated: Use Enum.Descriptor instead.
func (Enum) EnumDescriptor() ([]byte, []int) {
return file_internal_testprotos_enums_enums_proto_rawDescGZIP(), []int{0}
@ -102,11 +92,12 @@ var file_internal_testprotos_enums_enums_proto_rawDesc = []byte{
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, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x6f,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x42, 0x3b, 0x5a, 0x34, 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,
0x73, 0x92, 0x03, 0x02, 0x10, 0x02, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x70, 0xe8, 0x07,
}
var (

View File

@ -0,0 +1,138 @@
// 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
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

@ -0,0 +1,24 @@
// 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.
edition = "2023";
package hybrid.goproto.proto.enums;
option go_package = "google.golang.org/protobuf/internal/testprotos/enums/enums_hybrid";
import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_HYBRID;
option features.enum_type = CLOSED;
enum Enum {
DEFAULT = 1337;
ZERO = 0;
ONE = 1;
ELEVENT = 11;
SEVENTEEN = 17;
THIRTYSEVEN = 37;
SIXTYSEVEN = 67;
NEGATIVE = -1;
}

View File

@ -0,0 +1,138 @@
// 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_opaque/enums.opaque.proto
package enums_opaque
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_opaque_enums_opaque_proto_enumTypes[0].Descriptor()
}
func (Enum) Type() protoreflect.EnumType {
return &file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_enumTypes[0]
}
func (x Enum) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
var File_internal_testprotos_enums_enums_opaque_enums_opaque_proto protoreflect.FileDescriptor
var file_internal_testprotos_enums_enums_opaque_enums_opaque_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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x6f,
0x70, 0x61, 0x71, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x6f, 0x70, 0x61,
0x71, 0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x92, 0x03, 0x07, 0xd2,
0x3e, 0x02, 0x10, 0x03, 0x10, 0x02, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x70, 0xe8, 0x07,
}
var file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_goTypes = []any{
(Enum)(0), // 0: opaque.goproto.proto.enums.Enum
}
var file_internal_testprotos_enums_enums_opaque_enums_opaque_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_opaque_enums_opaque_proto_init() }
func file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_init() {
if File_internal_testprotos_enums_enums_opaque_enums_opaque_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_rawDesc,
NumEnums: 1,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_goTypes,
DependencyIndexes: file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_depIdxs,
EnumInfos: file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_enumTypes,
}.Build()
File_internal_testprotos_enums_enums_opaque_enums_opaque_proto = out.File
file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_rawDesc = nil
file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_goTypes = nil
file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_depIdxs = nil
}

View File

@ -0,0 +1,24 @@
// 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.
edition = "2023";
package opaque.goproto.proto.enums;
option go_package = "google.golang.org/protobuf/internal/testprotos/enums/enums_opaque";
import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_OPAQUE;
option features.enum_type = CLOSED;
enum Enum {
DEFAULT = 1337;
ZERO = 0;
ONE = 1;
ELEVENT = 11;
SEVENTEEN = 17;
THIRTYSEVEN = 37;
SIXTYSEVEN = 67;
NEGATIVE = -1;
}

View File

@ -18,64 +18,65 @@ import (
)
type TestFieldTrack struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
weakFields protoimpl.WeakFields
unknownFields protoimpl.UnknownFields
OptionalInt32 *int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty" go:"track"`
OptionalInt64 *int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty" go:"track"`
OptionalUint32 *uint32 `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty" go:"track"`
OptionalUint64 *uint64 `protobuf:"varint,4,opt,name=optional_uint64,json=optionalUint64" json:"optional_uint64,omitempty" go:"track"`
OptionalSint32 *int32 `protobuf:"zigzag32,5,opt,name=optional_sint32,json=optionalSint32" json:"optional_sint32,omitempty" go:"track"`
OptionalSint64 *int64 `protobuf:"zigzag64,6,opt,name=optional_sint64,json=optionalSint64" json:"optional_sint64,omitempty" go:"track"`
OptionalFixed32 *uint32 `protobuf:"fixed32,7,opt,name=optional_fixed32,json=optionalFixed32" json:"optional_fixed32,omitempty" go:"track"`
OptionalFixed64 *uint64 `protobuf:"fixed64,8,opt,name=optional_fixed64,json=optionalFixed64" json:"optional_fixed64,omitempty" go:"track"`
OptionalSfixed32 *int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32" json:"optional_sfixed32,omitempty" go:"track"`
OptionalSfixed64 *int64 `protobuf:"fixed64,10,opt,name=optional_sfixed64,json=optionalSfixed64" json:"optional_sfixed64,omitempty" go:"track"`
OptionalFloat *float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat" json:"optional_float,omitempty" go:"track"`
OptionalDouble *float64 `protobuf:"fixed64,12,opt,name=optional_double,json=optionalDouble" json:"optional_double,omitempty" go:"track"`
OptionalBool *bool `protobuf:"varint,13,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty" go:"track"`
OptionalString *string `protobuf:"bytes,14,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty" go:"track"`
OptionalBytes []byte `protobuf:"bytes,15,opt,name=optional_bytes,json=optionalBytes" json:"optional_bytes,omitempty" go:"track"`
OptionalEnum *test.TestAllTypes_NestedEnum `protobuf:"varint,16,opt,name=optional_enum,json=optionalEnum,enum=goproto.proto.test.TestAllTypes_NestedEnum" json:"optional_enum,omitempty" go:"track"`
OptionalMessage *test.TestAllTypes_NestedMessage `protobuf:"bytes,17,opt,name=optional_message,json=optionalMessage" json:"optional_message,omitempty" go:"track"`
RepeatedInt32 []int32 `protobuf:"varint,21,rep,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty" go:"track"`
RepeatedInt64 []int64 `protobuf:"varint,22,rep,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty" go:"track"`
RepeatedUint32 []uint32 `protobuf:"varint,23,rep,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty" go:"track"`
RepeatedUint64 []uint64 `protobuf:"varint,24,rep,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty" go:"track"`
RepeatedSint32 []int32 `protobuf:"zigzag32,25,rep,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty" go:"track"`
RepeatedSint64 []int64 `protobuf:"zigzag64,26,rep,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty" go:"track"`
RepeatedFixed32 []uint32 `protobuf:"fixed32,27,rep,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty" go:"track"`
RepeatedFixed64 []uint64 `protobuf:"fixed64,28,rep,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty" go:"track"`
RepeatedSfixed32 []int32 `protobuf:"fixed32,29,rep,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty" go:"track"`
RepeatedSfixed64 []int64 `protobuf:"fixed64,30,rep,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty" go:"track"`
RepeatedFloat []float32 `protobuf:"fixed32,31,rep,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty" go:"track"`
RepeatedDouble []float64 `protobuf:"fixed64,32,rep,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty" go:"track"`
RepeatedBool []bool `protobuf:"varint,33,rep,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty" go:"track"`
RepeatedString []string `protobuf:"bytes,34,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty" go:"track"`
RepeatedBytes [][]byte `protobuf:"bytes,35,rep,name=repeated_bytes,json=repeatedBytes" json:"repeated_bytes,omitempty" go:"track"`
RepeatedEnum []test.TestAllTypes_NestedEnum `protobuf:"varint,36,rep,name=repeated_enum,json=repeatedEnum,enum=goproto.proto.test.TestAllTypes_NestedEnum" json:"repeated_enum,omitempty" go:"track"`
RepeatedMessage []*test.TestAllTypes_NestedMessage `protobuf:"bytes,37,rep,name=repeated_message,json=repeatedMessage" json:"repeated_message,omitempty" go:"track"`
MapStringInt32 map[string]int32 `protobuf:"bytes,41,rep,name=map_string_int32,json=mapStringInt32" json:"map_string_int32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"`
MapStringInt64 map[string]int64 `protobuf:"bytes,42,rep,name=map_string_int64,json=mapStringInt64" json:"map_string_int64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"`
MapStringUint32 map[string]uint32 `protobuf:"bytes,43,rep,name=map_string_uint32,json=mapStringUint32" json:"map_string_uint32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"`
MapStringUint64 map[string]uint64 `protobuf:"bytes,44,rep,name=map_string_uint64,json=mapStringUint64" json:"map_string_uint64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"`
MapStringSint32 map[string]int32 `protobuf:"bytes,45,rep,name=map_string_sint32,json=mapStringSint32" json:"map_string_sint32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"zigzag32,2,opt,name=value" go:"track"`
MapStringSint64 map[string]int64 `protobuf:"bytes,46,rep,name=map_string_sint64,json=mapStringSint64" json:"map_string_sint64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"zigzag64,2,opt,name=value" go:"track"`
MapStringFixed32 map[string]uint32 `protobuf:"bytes,47,rep,name=map_string_fixed32,json=mapStringFixed32" json:"map_string_fixed32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value" go:"track"`
MapStringFixed64 map[string]uint64 `protobuf:"bytes,48,rep,name=map_string_fixed64,json=mapStringFixed64" json:"map_string_fixed64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value" go:"track"`
MapStringSfixed32 map[string]int32 `protobuf:"bytes,49,rep,name=map_string_sfixed32,json=mapStringSfixed32" json:"map_string_sfixed32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value" go:"track"`
MapStringSfixed64 map[string]int64 `protobuf:"bytes,50,rep,name=map_string_sfixed64,json=mapStringSfixed64" json:"map_string_sfixed64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value" go:"track"`
MapStringFloat map[string]float32 `protobuf:"bytes,51,rep,name=map_string_float,json=mapStringFloat" json:"map_string_float,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value" go:"track"`
MapStringDouble map[string]float64 `protobuf:"bytes,52,rep,name=map_string_double,json=mapStringDouble" json:"map_string_double,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value" go:"track"`
MapStringBool map[string]bool `protobuf:"bytes,53,rep,name=map_string_bool,json=mapStringBool" json:"map_string_bool,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"`
MapStringString map[string]string `protobuf:"bytes,54,rep,name=map_string_string,json=mapStringString" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value" go:"track"`
MapStringBytes map[string][]byte `protobuf:"bytes,55,rep,name=map_string_bytes,json=mapStringBytes" json:"map_string_bytes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value" go:"track"`
MapStringEnum map[string]test.TestAllTypes_NestedEnum `protobuf:"bytes,56,rep,name=map_string_enum,json=mapStringEnum" json:"map_string_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.proto.test.TestAllTypes_NestedEnum" go:"track"`
MapStringMessage map[string]*test.TestAllTypes_NestedMessage `protobuf:"bytes,57,rep,name=map_string_message,json=mapStringMessage" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value" go:"track"`
XXX_weak_WeakMessage1 struct{} `protobuf:"bytes,100,opt,name=weak_message1,json=weakMessage1,weak=goproto.proto.test.weak.WeakImportMessage1" json:"weak_message1,omitempty" go:"track"`
XXX_weak_WeakMessage2 struct{} `protobuf:"bytes,101,opt,name=weak_message2,json=weakMessage2,weak=goproto.proto.test.weak.WeakImportMessage2" json:"weak_message2,omitempty" go:"track"`
state protoimpl.MessageState `protogen:"open.v1"`
OptionalInt32 *int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty" go:"track"`
OptionalInt64 *int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty" go:"track"`
OptionalUint32 *uint32 `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty" go:"track"`
OptionalUint64 *uint64 `protobuf:"varint,4,opt,name=optional_uint64,json=optionalUint64" json:"optional_uint64,omitempty" go:"track"`
OptionalSint32 *int32 `protobuf:"zigzag32,5,opt,name=optional_sint32,json=optionalSint32" json:"optional_sint32,omitempty" go:"track"`
OptionalSint64 *int64 `protobuf:"zigzag64,6,opt,name=optional_sint64,json=optionalSint64" json:"optional_sint64,omitempty" go:"track"`
OptionalFixed32 *uint32 `protobuf:"fixed32,7,opt,name=optional_fixed32,json=optionalFixed32" json:"optional_fixed32,omitempty" go:"track"`
OptionalFixed64 *uint64 `protobuf:"fixed64,8,opt,name=optional_fixed64,json=optionalFixed64" json:"optional_fixed64,omitempty" go:"track"`
OptionalSfixed32 *int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32" json:"optional_sfixed32,omitempty" go:"track"`
OptionalSfixed64 *int64 `protobuf:"fixed64,10,opt,name=optional_sfixed64,json=optionalSfixed64" json:"optional_sfixed64,omitempty" go:"track"`
OptionalFloat *float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat" json:"optional_float,omitempty" go:"track"`
OptionalDouble *float64 `protobuf:"fixed64,12,opt,name=optional_double,json=optionalDouble" json:"optional_double,omitempty" go:"track"`
OptionalBool *bool `protobuf:"varint,13,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty" go:"track"`
OptionalString *string `protobuf:"bytes,14,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty" go:"track"`
OptionalBytes []byte `protobuf:"bytes,15,opt,name=optional_bytes,json=optionalBytes" json:"optional_bytes,omitempty" go:"track"`
OptionalEnum *test.TestAllTypes_NestedEnum `protobuf:"varint,16,opt,name=optional_enum,json=optionalEnum,enum=goproto.proto.test.TestAllTypes_NestedEnum" json:"optional_enum,omitempty" go:"track"`
OptionalMessage *test.TestAllTypes_NestedMessage `protobuf:"bytes,17,opt,name=optional_message,json=optionalMessage" json:"optional_message,omitempty" go:"track"`
RepeatedInt32 []int32 `protobuf:"varint,21,rep,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty" go:"track"`
RepeatedInt64 []int64 `protobuf:"varint,22,rep,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty" go:"track"`
RepeatedUint32 []uint32 `protobuf:"varint,23,rep,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty" go:"track"`
RepeatedUint64 []uint64 `protobuf:"varint,24,rep,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty" go:"track"`
RepeatedSint32 []int32 `protobuf:"zigzag32,25,rep,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty" go:"track"`
RepeatedSint64 []int64 `protobuf:"zigzag64,26,rep,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty" go:"track"`
RepeatedFixed32 []uint32 `protobuf:"fixed32,27,rep,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty" go:"track"`
RepeatedFixed64 []uint64 `protobuf:"fixed64,28,rep,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty" go:"track"`
RepeatedSfixed32 []int32 `protobuf:"fixed32,29,rep,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty" go:"track"`
RepeatedSfixed64 []int64 `protobuf:"fixed64,30,rep,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty" go:"track"`
RepeatedFloat []float32 `protobuf:"fixed32,31,rep,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty" go:"track"`
RepeatedDouble []float64 `protobuf:"fixed64,32,rep,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty" go:"track"`
RepeatedBool []bool `protobuf:"varint,33,rep,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty" go:"track"`
RepeatedString []string `protobuf:"bytes,34,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty" go:"track"`
RepeatedBytes [][]byte `protobuf:"bytes,35,rep,name=repeated_bytes,json=repeatedBytes" json:"repeated_bytes,omitempty" go:"track"`
RepeatedEnum []test.TestAllTypes_NestedEnum `protobuf:"varint,36,rep,name=repeated_enum,json=repeatedEnum,enum=goproto.proto.test.TestAllTypes_NestedEnum" json:"repeated_enum,omitempty" go:"track"`
RepeatedMessage []*test.TestAllTypes_NestedMessage `protobuf:"bytes,37,rep,name=repeated_message,json=repeatedMessage" json:"repeated_message,omitempty" go:"track"`
MapStringInt32 map[string]int32 `protobuf:"bytes,41,rep,name=map_string_int32,json=mapStringInt32" json:"map_string_int32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"`
MapStringInt64 map[string]int64 `protobuf:"bytes,42,rep,name=map_string_int64,json=mapStringInt64" json:"map_string_int64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"`
MapStringUint32 map[string]uint32 `protobuf:"bytes,43,rep,name=map_string_uint32,json=mapStringUint32" json:"map_string_uint32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"`
MapStringUint64 map[string]uint64 `protobuf:"bytes,44,rep,name=map_string_uint64,json=mapStringUint64" json:"map_string_uint64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"`
MapStringSint32 map[string]int32 `protobuf:"bytes,45,rep,name=map_string_sint32,json=mapStringSint32" json:"map_string_sint32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"zigzag32,2,opt,name=value" go:"track"`
MapStringSint64 map[string]int64 `protobuf:"bytes,46,rep,name=map_string_sint64,json=mapStringSint64" json:"map_string_sint64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"zigzag64,2,opt,name=value" go:"track"`
MapStringFixed32 map[string]uint32 `protobuf:"bytes,47,rep,name=map_string_fixed32,json=mapStringFixed32" json:"map_string_fixed32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value" go:"track"`
MapStringFixed64 map[string]uint64 `protobuf:"bytes,48,rep,name=map_string_fixed64,json=mapStringFixed64" json:"map_string_fixed64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value" go:"track"`
MapStringSfixed32 map[string]int32 `protobuf:"bytes,49,rep,name=map_string_sfixed32,json=mapStringSfixed32" json:"map_string_sfixed32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value" go:"track"`
MapStringSfixed64 map[string]int64 `protobuf:"bytes,50,rep,name=map_string_sfixed64,json=mapStringSfixed64" json:"map_string_sfixed64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value" go:"track"`
MapStringFloat map[string]float32 `protobuf:"bytes,51,rep,name=map_string_float,json=mapStringFloat" json:"map_string_float,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value" go:"track"`
MapStringDouble map[string]float64 `protobuf:"bytes,52,rep,name=map_string_double,json=mapStringDouble" json:"map_string_double,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value" go:"track"`
MapStringBool map[string]bool `protobuf:"bytes,53,rep,name=map_string_bool,json=mapStringBool" json:"map_string_bool,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"`
MapStringString map[string]string `protobuf:"bytes,54,rep,name=map_string_string,json=mapStringString" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value" go:"track"`
MapStringBytes map[string][]byte `protobuf:"bytes,55,rep,name=map_string_bytes,json=mapStringBytes" json:"map_string_bytes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value" go:"track"`
MapStringEnum map[string]test.TestAllTypes_NestedEnum `protobuf:"bytes,56,rep,name=map_string_enum,json=mapStringEnum" json:"map_string_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.proto.test.TestAllTypes_NestedEnum" go:"track"`
MapStringMessage map[string]*test.TestAllTypes_NestedMessage `protobuf:"bytes,57,rep,name=map_string_message,json=mapStringMessage" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value" go:"track"`
// Deprecated: Do not use. This will be deleted in the near future.
XXX_weak_WeakMessage1 struct{} `protobuf:"bytes,100,opt,name=weak_message1,json=weakMessage1,weak=goproto.proto.test.weak.WeakImportMessage1" json:"weak_message1,omitempty" go:"track"`
// Deprecated: Do not use. This will be deleted in the near future.
XXX_weak_WeakMessage2 struct{} `protobuf:"bytes,101,opt,name=weak_message2,json=weakMessage2,weak=goproto.proto.test.weak.WeakImportMessage2" json:"weak_message2,omitempty" go:"track"`
weakFields protoimpl.WeakFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TestFieldTrack) Reset() {
@ -109,7 +110,6 @@ func (*TestFieldTrack) Descriptor() ([]byte, []int) {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalInt32() int32 {
if x != nil && x.OptionalInt32 != nil {
return *x.OptionalInt32
@ -118,7 +118,6 @@ func (x *TestFieldTrack) GetOptionalInt32() int32 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalInt64() int64 {
if x != nil && x.OptionalInt64 != nil {
return *x.OptionalInt64
@ -127,7 +126,6 @@ func (x *TestFieldTrack) GetOptionalInt64() int64 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalUint32() uint32 {
if x != nil && x.OptionalUint32 != nil {
return *x.OptionalUint32
@ -136,7 +134,6 @@ func (x *TestFieldTrack) GetOptionalUint32() uint32 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalUint64() uint64 {
if x != nil && x.OptionalUint64 != nil {
return *x.OptionalUint64
@ -145,7 +142,6 @@ func (x *TestFieldTrack) GetOptionalUint64() uint64 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalSint32() int32 {
if x != nil && x.OptionalSint32 != nil {
return *x.OptionalSint32
@ -154,7 +150,6 @@ func (x *TestFieldTrack) GetOptionalSint32() int32 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalSint64() int64 {
if x != nil && x.OptionalSint64 != nil {
return *x.OptionalSint64
@ -163,7 +158,6 @@ func (x *TestFieldTrack) GetOptionalSint64() int64 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalFixed32() uint32 {
if x != nil && x.OptionalFixed32 != nil {
return *x.OptionalFixed32
@ -172,7 +166,6 @@ func (x *TestFieldTrack) GetOptionalFixed32() uint32 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalFixed64() uint64 {
if x != nil && x.OptionalFixed64 != nil {
return *x.OptionalFixed64
@ -181,7 +174,6 @@ func (x *TestFieldTrack) GetOptionalFixed64() uint64 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalSfixed32() int32 {
if x != nil && x.OptionalSfixed32 != nil {
return *x.OptionalSfixed32
@ -190,7 +182,6 @@ func (x *TestFieldTrack) GetOptionalSfixed32() int32 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalSfixed64() int64 {
if x != nil && x.OptionalSfixed64 != nil {
return *x.OptionalSfixed64
@ -199,7 +190,6 @@ func (x *TestFieldTrack) GetOptionalSfixed64() int64 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalFloat() float32 {
if x != nil && x.OptionalFloat != nil {
return *x.OptionalFloat
@ -208,7 +198,6 @@ func (x *TestFieldTrack) GetOptionalFloat() float32 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalDouble() float64 {
if x != nil && x.OptionalDouble != nil {
return *x.OptionalDouble
@ -217,7 +206,6 @@ func (x *TestFieldTrack) GetOptionalDouble() float64 {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalBool() bool {
if x != nil && x.OptionalBool != nil {
return *x.OptionalBool
@ -226,7 +214,6 @@ func (x *TestFieldTrack) GetOptionalBool() bool {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalString() string {
if x != nil && x.OptionalString != nil {
return *x.OptionalString
@ -235,7 +222,6 @@ func (x *TestFieldTrack) GetOptionalString() string {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalBytes() []byte {
if x != nil {
return x.OptionalBytes
@ -244,7 +230,6 @@ func (x *TestFieldTrack) GetOptionalBytes() []byte {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalEnum() test.TestAllTypes_NestedEnum {
if x != nil && x.OptionalEnum != nil {
return *x.OptionalEnum
@ -253,7 +238,6 @@ func (x *TestFieldTrack) GetOptionalEnum() test.TestAllTypes_NestedEnum {
}
//go:nointerface
func (x *TestFieldTrack) GetOptionalMessage() *test.TestAllTypes_NestedMessage {
if x != nil {
return x.OptionalMessage
@ -262,7 +246,6 @@ func (x *TestFieldTrack) GetOptionalMessage() *test.TestAllTypes_NestedMessage {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedInt32() []int32 {
if x != nil {
return x.RepeatedInt32
@ -271,7 +254,6 @@ func (x *TestFieldTrack) GetRepeatedInt32() []int32 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedInt64() []int64 {
if x != nil {
return x.RepeatedInt64
@ -280,7 +262,6 @@ func (x *TestFieldTrack) GetRepeatedInt64() []int64 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedUint32() []uint32 {
if x != nil {
return x.RepeatedUint32
@ -289,7 +270,6 @@ func (x *TestFieldTrack) GetRepeatedUint32() []uint32 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedUint64() []uint64 {
if x != nil {
return x.RepeatedUint64
@ -298,7 +278,6 @@ func (x *TestFieldTrack) GetRepeatedUint64() []uint64 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedSint32() []int32 {
if x != nil {
return x.RepeatedSint32
@ -307,7 +286,6 @@ func (x *TestFieldTrack) GetRepeatedSint32() []int32 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedSint64() []int64 {
if x != nil {
return x.RepeatedSint64
@ -316,7 +294,6 @@ func (x *TestFieldTrack) GetRepeatedSint64() []int64 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedFixed32() []uint32 {
if x != nil {
return x.RepeatedFixed32
@ -325,7 +302,6 @@ func (x *TestFieldTrack) GetRepeatedFixed32() []uint32 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedFixed64() []uint64 {
if x != nil {
return x.RepeatedFixed64
@ -334,7 +310,6 @@ func (x *TestFieldTrack) GetRepeatedFixed64() []uint64 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedSfixed32() []int32 {
if x != nil {
return x.RepeatedSfixed32
@ -343,7 +318,6 @@ func (x *TestFieldTrack) GetRepeatedSfixed32() []int32 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedSfixed64() []int64 {
if x != nil {
return x.RepeatedSfixed64
@ -352,7 +326,6 @@ func (x *TestFieldTrack) GetRepeatedSfixed64() []int64 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedFloat() []float32 {
if x != nil {
return x.RepeatedFloat
@ -361,7 +334,6 @@ func (x *TestFieldTrack) GetRepeatedFloat() []float32 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedDouble() []float64 {
if x != nil {
return x.RepeatedDouble
@ -370,7 +342,6 @@ func (x *TestFieldTrack) GetRepeatedDouble() []float64 {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedBool() []bool {
if x != nil {
return x.RepeatedBool
@ -379,7 +350,6 @@ func (x *TestFieldTrack) GetRepeatedBool() []bool {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedString() []string {
if x != nil {
return x.RepeatedString
@ -388,7 +358,6 @@ func (x *TestFieldTrack) GetRepeatedString() []string {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedBytes() [][]byte {
if x != nil {
return x.RepeatedBytes
@ -397,7 +366,6 @@ func (x *TestFieldTrack) GetRepeatedBytes() [][]byte {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedEnum() []test.TestAllTypes_NestedEnum {
if x != nil {
return x.RepeatedEnum
@ -406,7 +374,6 @@ func (x *TestFieldTrack) GetRepeatedEnum() []test.TestAllTypes_NestedEnum {
}
//go:nointerface
func (x *TestFieldTrack) GetRepeatedMessage() []*test.TestAllTypes_NestedMessage {
if x != nil {
return x.RepeatedMessage
@ -415,7 +382,6 @@ func (x *TestFieldTrack) GetRepeatedMessage() []*test.TestAllTypes_NestedMessage
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringInt32() map[string]int32 {
if x != nil {
return x.MapStringInt32
@ -424,7 +390,6 @@ func (x *TestFieldTrack) GetMapStringInt32() map[string]int32 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringInt64() map[string]int64 {
if x != nil {
return x.MapStringInt64
@ -433,7 +398,6 @@ func (x *TestFieldTrack) GetMapStringInt64() map[string]int64 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringUint32() map[string]uint32 {
if x != nil {
return x.MapStringUint32
@ -442,7 +406,6 @@ func (x *TestFieldTrack) GetMapStringUint32() map[string]uint32 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringUint64() map[string]uint64 {
if x != nil {
return x.MapStringUint64
@ -451,7 +414,6 @@ func (x *TestFieldTrack) GetMapStringUint64() map[string]uint64 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringSint32() map[string]int32 {
if x != nil {
return x.MapStringSint32
@ -460,7 +422,6 @@ func (x *TestFieldTrack) GetMapStringSint32() map[string]int32 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringSint64() map[string]int64 {
if x != nil {
return x.MapStringSint64
@ -469,7 +430,6 @@ func (x *TestFieldTrack) GetMapStringSint64() map[string]int64 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringFixed32() map[string]uint32 {
if x != nil {
return x.MapStringFixed32
@ -478,7 +438,6 @@ func (x *TestFieldTrack) GetMapStringFixed32() map[string]uint32 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringFixed64() map[string]uint64 {
if x != nil {
return x.MapStringFixed64
@ -487,7 +446,6 @@ func (x *TestFieldTrack) GetMapStringFixed64() map[string]uint64 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringSfixed32() map[string]int32 {
if x != nil {
return x.MapStringSfixed32
@ -496,7 +454,6 @@ func (x *TestFieldTrack) GetMapStringSfixed32() map[string]int32 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringSfixed64() map[string]int64 {
if x != nil {
return x.MapStringSfixed64
@ -505,7 +462,6 @@ func (x *TestFieldTrack) GetMapStringSfixed64() map[string]int64 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringFloat() map[string]float32 {
if x != nil {
return x.MapStringFloat
@ -514,7 +470,6 @@ func (x *TestFieldTrack) GetMapStringFloat() map[string]float32 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringDouble() map[string]float64 {
if x != nil {
return x.MapStringDouble
@ -523,7 +478,6 @@ func (x *TestFieldTrack) GetMapStringDouble() map[string]float64 {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringBool() map[string]bool {
if x != nil {
return x.MapStringBool
@ -532,7 +486,6 @@ func (x *TestFieldTrack) GetMapStringBool() map[string]bool {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringString() map[string]string {
if x != nil {
return x.MapStringString
@ -541,7 +494,6 @@ func (x *TestFieldTrack) GetMapStringString() map[string]string {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringBytes() map[string][]byte {
if x != nil {
return x.MapStringBytes
@ -550,7 +502,6 @@ func (x *TestFieldTrack) GetMapStringBytes() map[string][]byte {
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringEnum() map[string]test.TestAllTypes_NestedEnum {
if x != nil {
return x.MapStringEnum
@ -559,7 +510,6 @@ func (x *TestFieldTrack) GetMapStringEnum() map[string]test.TestAllTypes_NestedE
}
//go:nointerface
func (x *TestFieldTrack) GetMapStringMessage() map[string]*test.TestAllTypes_NestedMessage {
if x != nil {
return x.MapStringMessage
@ -568,7 +518,6 @@ func (x *TestFieldTrack) GetMapStringMessage() map[string]*test.TestAllTypes_Nes
}
//go:nointerface
func (x *TestFieldTrack) GetWeakMessage1() proto.Message {
var w protoimpl.WeakFields
if x != nil {
@ -579,7 +528,6 @@ func (x *TestFieldTrack) GetWeakMessage1() proto.Message {
}
//go:nointerface
func (x *TestFieldTrack) GetWeakMessage2() proto.Message {
var w protoimpl.WeakFields
if x != nil {
@ -589,8 +537,6 @@ func (x *TestFieldTrack) GetWeakMessage2() proto.Message {
return protoimpl.X.GetWeak(w, 101, "goproto.proto.test.weak.WeakImportMessage2")
}
//go:nointerface
func (x *TestFieldTrack) SetWeakMessage1(v proto.Message) {
var w *protoimpl.WeakFields
if x != nil {
@ -600,8 +546,6 @@ func (x *TestFieldTrack) SetWeakMessage1(v proto.Message) {
protoimpl.X.SetWeak(w, 100, "goproto.proto.test.weak.WeakImportMessage1", v)
}
//go:nointerface
func (x *TestFieldTrack) SetWeakMessage2(v proto.Message) {
var w *protoimpl.WeakFields
if x != nil {

View File

@ -19,10 +19,7 @@ import (
// Fuzz is a container for every message we want to make available to the
// fuzzer.
type Fuzz struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
TestAllTypes *test.TestAllTypes `protobuf:"bytes,1,opt,name=test_all_types,json=testAllTypes" json:"test_all_types,omitempty"`
TestAllExtensions *test.TestAllExtensions `protobuf:"bytes,2,opt,name=test_all_extensions,json=testAllExtensions" json:"test_all_extensions,omitempty"`
TestRequired *test.TestRequired `protobuf:"bytes,3,opt,name=test_required,json=testRequired" json:"test_required,omitempty"`
@ -31,6 +28,8 @@ type Fuzz struct {
TestPackedTypes *test.TestPackedTypes `protobuf:"bytes,6,opt,name=test_packed_types,json=testPackedTypes" json:"test_packed_types,omitempty"`
TestPackedExtensions *test.TestPackedExtensions `protobuf:"bytes,7,opt,name=test_packed_extensions,json=testPackedExtensions" json:"test_packed_extensions,omitempty"`
TestAllTypes3 *test3.TestAllTypes `protobuf:"bytes,8,opt,name=test_all_types3,json=testAllTypes3" json:"test_all_types3,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Fuzz) Reset() {

View File

@ -19,15 +19,12 @@ import (
)
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
OptionalMessage *IrregularMessage `protobuf:"bytes,1,opt,name=optional_message,json=optionalMessage" json:"optional_message,omitempty"`
RepeatedMessage []*IrregularMessage `protobuf:"bytes,2,rep,name=repeated_message,json=repeatedMessage" json:"repeated_message,omitempty"`
RequiredMessage *IrregularMessage `protobuf:"bytes,3,req,name=required_message,json=requiredMessage" json:"required_message,omitempty"`
MapMessage map[string]*IrregularMessage `protobuf:"bytes,4,rep,name=map_message,json=mapMessage" json:"map_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Types that are assignable to Union:
// Types that are valid to be assigned to Union:
//
// *Message_OneofMessage
// *Message_OneofAberrantMessage
@ -36,6 +33,8 @@ type Message struct {
RepeatedAberrantMessage []*AberrantMessage `protobuf:"bytes,8,rep,name=repeated_aberrant_message,json=repeatedAberrantMessage" json:"repeated_aberrant_message,omitempty"`
RequiredAberrantMessage *AberrantMessage `protobuf:"bytes,9,req,name=required_aberrant_message,json=requiredAberrantMessage" json:"required_aberrant_message,omitempty"`
MapAberrantMessage map[string]*AberrantMessage `protobuf:"bytes,10,rep,name=map_aberrant_message,json=mapAberrantMessage" json:"map_aberrant_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message) Reset() {
@ -96,23 +95,27 @@ func (x *Message) GetMapMessage() map[string]*IrregularMessage {
return nil
}
func (m *Message) GetUnion() isMessage_Union {
if m != nil {
return m.Union
func (x *Message) GetUnion() isMessage_Union {
if x != nil {
return x.Union
}
return nil
}
func (x *Message) GetOneofMessage() *IrregularMessage {
if x, ok := x.GetUnion().(*Message_OneofMessage); ok {
return x.OneofMessage
if x != nil {
if x, ok := x.Union.(*Message_OneofMessage); ok {
return x.OneofMessage
}
}
return nil
}
func (x *Message) GetOneofAberrantMessage() *AberrantMessage {
if x, ok := x.GetUnion().(*Message_OneofAberrantMessage); ok {
return x.OneofAberrantMessage
if x != nil {
if x, ok := x.Union.(*Message_OneofAberrantMessage); ok {
return x.OneofAberrantMessage
}
}
return nil
}

View File

@ -15,13 +15,12 @@ import (
)
type Sub struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
C *uint32 `protobuf:"varint,3,opt,name=c" json:"c,omitempty"`
Grandchild *Sub `protobuf:"bytes,4,opt,name=grandchild" json:"grandchild,omitempty"`
extensionFields protoimpl.ExtensionFields
C *uint32 `protobuf:"varint,3,opt,name=c" json:"c,omitempty"`
Grandchild *Sub `protobuf:"bytes,4,opt,name=grandchild" json:"grandchild,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Sub) Reset() {
@ -69,12 +68,11 @@ func (x *Sub) GetGrandchild() *Sub {
}
type Top struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
A *uint32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Child *Sub `protobuf:"bytes,2,opt,name=child" json:"child,omitempty"`
unknownFields protoimpl.UnknownFields
A *uint32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Child *Sub `protobuf:"bytes,2,opt,name=child" json:"child,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Top) Reset() {
@ -122,11 +120,10 @@ func (x *Top) GetChild() *Sub {
}
type Ext struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
SomeFlag *bool `protobuf:"varint,1,opt,name=some_flag,json=someFlag" json:"some_flag,omitempty"`
unknownFields protoimpl.UnknownFields
SomeFlag *bool `protobuf:"varint,1,opt,name=some_flag,json=someFlag" json:"some_flag,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Ext) Reset() {

View File

@ -159,11 +159,10 @@ func (PipistrelleSpecies) EnumDescriptor() ([]byte, []int) {
// This message contains a message set.
type Holder struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Data *messagesetpb.MessageSet `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
Data *messagesetpb.MessageSet `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Holder) Reset() {
@ -205,11 +204,10 @@ func (x *Holder) GetData() *messagesetpb.MessageSet {
// This message may be inserted into a message set.
type Rabbit struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Rabbit) Reset() {
@ -250,11 +248,10 @@ func (x *Rabbit) GetName() string {
}
type FlyingFox struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Species *FlyingFoxSpecies `protobuf:"varint,1,opt,name=species,enum=lazy_extension_test.FlyingFoxSpecies" json:"species,omitempty"`
unknownFields protoimpl.UnknownFields
Species *FlyingFoxSpecies `protobuf:"varint,1,opt,name=species,enum=lazy_extension_test.FlyingFoxSpecies" json:"species,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *FlyingFox) Reset() {
@ -295,12 +292,11 @@ func (x *FlyingFox) GetSpecies() FlyingFoxSpecies {
}
type Tree struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
Eucalyptus *bool `protobuf:"varint,1,opt,name=eucalyptus" json:"eucalyptus,omitempty"`
extensionFields protoimpl.ExtensionFields
Eucalyptus *bool `protobuf:"varint,1,opt,name=eucalyptus" json:"eucalyptus,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Tree) Reset() {
@ -341,11 +337,10 @@ func (x *Tree) GetEucalyptus() bool {
}
type Pipistrelle struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Species *PipistrelleSpecies `protobuf:"varint,1,opt,name=species,enum=lazy_extension_test.PipistrelleSpecies" json:"species,omitempty"`
unknownFields protoimpl.UnknownFields
Species *PipistrelleSpecies `protobuf:"varint,1,opt,name=species,enum=lazy_extension_test.PipistrelleSpecies" json:"species,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Pipistrelle) Reset() {
@ -386,11 +381,10 @@ func (x *Pipistrelle) GetSpecies() PipistrelleSpecies {
}
type Pipistrelles struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Species *PipistrelleSpecies `protobuf:"varint,1,opt,name=species,enum=lazy_extension_test.PipistrelleSpecies" json:"species,omitempty"`
unknownFields protoimpl.UnknownFields
Species *PipistrelleSpecies `protobuf:"varint,1,opt,name=species,enum=lazy_extension_test.PipistrelleSpecies" json:"species,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Pipistrelles) Reset() {
@ -432,9 +426,9 @@ func (x *Pipistrelles) GetSpecies() PipistrelleSpecies {
// And the ugly version that is not encouraged
type BatNest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatNest) Reset() {

View File

@ -0,0 +1,548 @@
// 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
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:"hybrid.v1"`
Nested *Node `protobuf:"bytes,99,opt,name=nested" json:"nested,omitempty"`
Int32 *int32 `protobuf:"varint,1,opt,name=int32" json:"int32,omitempty"`
Int64 *int64 `protobuf:"varint,2,opt,name=int64" json:"int64,omitempty"`
Uint32 *uint32 `protobuf:"varint,3,opt,name=uint32" json:"uint32,omitempty"`
Uint64 *uint64 `protobuf:"varint,4,opt,name=uint64" json:"uint64,omitempty"`
Sint32 *int32 `protobuf:"zigzag32,5,opt,name=sint32" json:"sint32,omitempty"`
Sint64 *int64 `protobuf:"zigzag64,6,opt,name=sint64" json:"sint64,omitempty"`
Fixed32 *uint32 `protobuf:"fixed32,7,opt,name=fixed32" json:"fixed32,omitempty"`
Fixed64 *uint64 `protobuf:"fixed64,8,opt,name=fixed64" json:"fixed64,omitempty"`
Sfixed32 *int32 `protobuf:"fixed32,9,opt,name=sfixed32" json:"sfixed32,omitempty"`
Sfixed64 *int64 `protobuf:"fixed64,10,opt,name=sfixed64" json:"sfixed64,omitempty"`
Float *float32 `protobuf:"fixed32,11,opt,name=float" json:"float,omitempty"`
Double *float64 `protobuf:"fixed64,12,opt,name=double" json:"double,omitempty"`
Bool *bool `protobuf:"varint,13,opt,name=bool" json:"bool,omitempty"`
String_ *string `protobuf:"bytes,14,opt,name=string" json:"string,omitempty"`
Bytes []byte `protobuf:"bytes,15,opt,name=bytes" json:"bytes,omitempty"`
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 {
return x.Nested
}
return nil
}
func (x *Node) GetInt32() int32 {
if x != nil && x.Int32 != nil {
return *x.Int32
}
return 0
}
func (x *Node) GetInt64() int64 {
if x != nil && x.Int64 != nil {
return *x.Int64
}
return 0
}
func (x *Node) GetUint32() uint32 {
if x != nil && x.Uint32 != nil {
return *x.Uint32
}
return 0
}
func (x *Node) GetUint64() uint64 {
if x != nil && x.Uint64 != nil {
return *x.Uint64
}
return 0
}
func (x *Node) GetSint32() int32 {
if x != nil && x.Sint32 != nil {
return *x.Sint32
}
return 0
}
func (x *Node) GetSint64() int64 {
if x != nil && x.Sint64 != nil {
return *x.Sint64
}
return 0
}
func (x *Node) GetFixed32() uint32 {
if x != nil && x.Fixed32 != nil {
return *x.Fixed32
}
return 0
}
func (x *Node) GetFixed64() uint64 {
if x != nil && x.Fixed64 != nil {
return *x.Fixed64
}
return 0
}
func (x *Node) GetSfixed32() int32 {
if x != nil && x.Sfixed32 != nil {
return *x.Sfixed32
}
return 0
}
func (x *Node) GetSfixed64() int64 {
if x != nil && x.Sfixed64 != nil {
return *x.Sfixed64
}
return 0
}
func (x *Node) GetFloat() float32 {
if x != nil && x.Float != nil {
return *x.Float
}
return 0
}
func (x *Node) GetDouble() float64 {
if x != nil && x.Double != nil {
return *x.Double
}
return 0
}
func (x *Node) GetBool() bool {
if x != nil && x.Bool != nil {
return *x.Bool
}
return false
}
func (x *Node) GetString() string {
if x != nil && x.String_ != nil {
return *x.String_
}
return ""
}
// Deprecated: Use GetString instead.
func (x *Node) GetString_() string {
return x.GetString()
}
func (x *Node) GetBytes() []byte {
if x != nil {
return x.Bytes
}
return nil
}
func (x *Node) SetNested(v *Node) {
x.Nested = v
}
func (x *Node) SetInt32(v int32) {
x.Int32 = &v
}
func (x *Node) SetInt64(v int64) {
x.Int64 = &v
}
func (x *Node) SetUint32(v uint32) {
x.Uint32 = &v
}
func (x *Node) SetUint64(v uint64) {
x.Uint64 = &v
}
func (x *Node) SetSint32(v int32) {
x.Sint32 = &v
}
func (x *Node) SetSint64(v int64) {
x.Sint64 = &v
}
func (x *Node) SetFixed32(v uint32) {
x.Fixed32 = &v
}
func (x *Node) SetFixed64(v uint64) {
x.Fixed64 = &v
}
func (x *Node) SetSfixed32(v int32) {
x.Sfixed32 = &v
}
func (x *Node) SetSfixed64(v int64) {
x.Sfixed64 = &v
}
func (x *Node) SetFloat(v float32) {
x.Float = &v
}
func (x *Node) SetDouble(v float64) {
x.Double = &v
}
func (x *Node) SetBool(v bool) {
x.Bool = &v
}
func (x *Node) SetString(v string) {
x.String_ = &v
}
func (x *Node) SetBytes(v []byte) {
if v == nil {
v = []byte{}
}
x.Bytes = v
}
func (x *Node) HasNested() bool {
if x == nil {
return false
}
return x.Nested != nil
}
func (x *Node) HasInt32() bool {
if x == nil {
return false
}
return x.Int32 != nil
}
func (x *Node) HasInt64() bool {
if x == nil {
return false
}
return x.Int64 != nil
}
func (x *Node) HasUint32() bool {
if x == nil {
return false
}
return x.Uint32 != nil
}
func (x *Node) HasUint64() bool {
if x == nil {
return false
}
return x.Uint64 != nil
}
func (x *Node) HasSint32() bool {
if x == nil {
return false
}
return x.Sint32 != nil
}
func (x *Node) HasSint64() bool {
if x == nil {
return false
}
return x.Sint64 != nil
}
func (x *Node) HasFixed32() bool {
if x == nil {
return false
}
return x.Fixed32 != nil
}
func (x *Node) HasFixed64() bool {
if x == nil {
return false
}
return x.Fixed64 != nil
}
func (x *Node) HasSfixed32() bool {
if x == nil {
return false
}
return x.Sfixed32 != nil
}
func (x *Node) HasSfixed64() bool {
if x == nil {
return false
}
return x.Sfixed64 != nil
}
func (x *Node) HasFloat() bool {
if x == nil {
return false
}
return x.Float != nil
}
func (x *Node) HasDouble() bool {
if x == nil {
return false
}
return x.Double != nil
}
func (x *Node) HasBool() bool {
if x == nil {
return false
}
return x.Bool != nil
}
func (x *Node) HasString() bool {
if x == nil {
return false
}
return x.String_ != nil
}
func (x *Node) HasBytes() bool {
if x == nil {
return false
}
return x.Bytes != nil
}
func (x *Node) ClearNested() {
x.Nested = nil
}
func (x *Node) ClearInt32() {
x.Int32 = nil
}
func (x *Node) ClearInt64() {
x.Int64 = nil
}
func (x *Node) ClearUint32() {
x.Uint32 = nil
}
func (x *Node) ClearUint64() {
x.Uint64 = nil
}
func (x *Node) ClearSint32() {
x.Sint32 = nil
}
func (x *Node) ClearSint64() {
x.Sint64 = nil
}
func (x *Node) ClearFixed32() {
x.Fixed32 = nil
}
func (x *Node) ClearFixed64() {
x.Fixed64 = nil
}
func (x *Node) ClearSfixed32() {
x.Sfixed32 = nil
}
func (x *Node) ClearSfixed64() {
x.Sfixed64 = nil
}
func (x *Node) ClearFloat() {
x.Float = nil
}
func (x *Node) ClearDouble() {
x.Double = nil
}
func (x *Node) ClearBool() {
x.Bool = nil
}
func (x *Node) ClearString() {
x.String_ = nil
}
func (x *Node) ClearBytes() {
x.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
x.Nested = b.Nested
x.Int32 = b.Int32
x.Int64 = b.Int64
x.Uint32 = b.Uint32
x.Uint64 = b.Uint64
x.Sint32 = b.Sint32
x.Sint64 = b.Sint64
x.Fixed32 = b.Fixed32
x.Fixed64 = b.Fixed64
x.Sfixed32 = b.Sfixed32
x.Sfixed64 = b.Sfixed64
x.Float = b.Float
x.Double = b.Double
x.Bool = b.Bool
x.String_ = b.String
x.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

@ -0,0 +1,31 @@
// 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.
edition = "2023";
package hybrid.lazy_tree;
option go_package = "google.golang.org/protobuf/internal/testprotos/lazy/lazy_hybrid";
import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_HYBRID;
message Node {
Node nested = 99 [lazy = true];
int32 int32 = 1;
int64 int64 = 2;
uint32 uint32 = 3;
uint64 uint64 = 4;
sint32 sint32 = 5;
sint64 sint64 = 6;
fixed32 fixed32 = 7;
fixed64 fixed64 = 8;
sfixed32 sfixed32 = 9;
sfixed64 sfixed64 = 10;
float float = 11;
double double = 12;
bool bool = 13;
string string = 14;
bytes bytes = 15;
}

View File

@ -0,0 +1,205 @@
// 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_normalized_wire_test.proto
package lazy
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
type FSub struct {
state protoimpl.MessageState `protogen:"open.v1"`
B *uint32 `protobuf:"varint,2,opt,name=b" json:"b,omitempty"`
C *uint32 `protobuf:"varint,3,opt,name=c" json:"c,omitempty"`
Grandchild *FSub `protobuf:"bytes,4,opt,name=grandchild" json:"grandchild,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FSub) Reset() {
*x = FSub{}
mi := &file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FSub) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FSub) ProtoMessage() {}
func (x *FSub) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_lazy_lazy_normalized_wire_test_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)
}
// Deprecated: Use FSub.ProtoReflect.Descriptor instead.
func (*FSub) Descriptor() ([]byte, []int) {
return file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDescGZIP(), []int{0}
}
func (x *FSub) GetB() uint32 {
if x != nil && x.B != nil {
return *x.B
}
return 0
}
func (x *FSub) GetC() uint32 {
if x != nil && x.C != nil {
return *x.C
}
return 0
}
func (x *FSub) GetGrandchild() *FSub {
if x != nil {
return x.Grandchild
}
return nil
}
type FTop struct {
state protoimpl.MessageState `protogen:"open.v1"`
A *uint32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
Child *FSub `protobuf:"bytes,2,opt,name=child" json:"child,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FTop) Reset() {
*x = FTop{}
mi := &file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FTop) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FTop) ProtoMessage() {}
func (x *FTop) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_lazy_lazy_normalized_wire_test_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)
}
// Deprecated: Use FTop.ProtoReflect.Descriptor instead.
func (*FTop) Descriptor() ([]byte, []int) {
return file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDescGZIP(), []int{1}
}
func (x *FTop) GetA() uint32 {
if x != nil && x.A != nil {
return *x.A
}
return 0
}
func (x *FTop) GetChild() *FSub {
if x != nil {
return x.Child
}
return nil
}
var File_internal_testprotos_lazy_lazy_normalized_wire_test_proto protoreflect.FileDescriptor
var file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDesc = []byte{
0x0a, 0x38, 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,
0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x77, 0x69, 0x72, 0x65, 0x5f,
0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x6c, 0x61, 0x7a, 0x79,
0x5f, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x77, 0x69, 0x72, 0x65,
0x5f, 0x74, 0x65, 0x73, 0x74, 0x22, 0x67, 0x0a, 0x04, 0x46, 0x53, 0x75, 0x62, 0x12, 0x0c, 0x0a,
0x01, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x01, 0x62, 0x12, 0x0c, 0x0a, 0x01, 0x63,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x01, 0x63, 0x12, 0x43, 0x0a, 0x0a, 0x67, 0x72, 0x61,
0x6e, 0x64, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
0x6c, 0x61, 0x7a, 0x79, 0x5f, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f,
0x77, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x53, 0x75, 0x62, 0x42, 0x02,
0x28, 0x01, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x64, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x22, 0x4b,
0x0a, 0x04, 0x46, 0x54, 0x6f, 0x70, 0x12, 0x0c, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x01, 0x61, 0x12, 0x35, 0x0a, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x61, 0x7a, 0x79, 0x5f, 0x6e, 0x6f, 0x72, 0x6d, 0x61,
0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x77, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x2e,
0x46, 0x53, 0x75, 0x62, 0x52, 0x05, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x42, 0x35, 0x5a, 0x33, 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,
}
var (
file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDescOnce sync.Once
file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDescData = file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDesc
)
func file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDescGZIP() []byte {
file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDescOnce.Do(func() {
file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDescData)
})
return file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDescData
}
var file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_goTypes = []any{
(*FSub)(nil), // 0: lazy_normalized_wire_test.FSub
(*FTop)(nil), // 1: lazy_normalized_wire_test.FTop
}
var file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_depIdxs = []int32{
0, // 0: lazy_normalized_wire_test.FSub.grandchild:type_name -> lazy_normalized_wire_test.FSub
0, // 1: lazy_normalized_wire_test.FTop.child:type_name -> lazy_normalized_wire_test.FSub
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_init() }
func file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_init() {
if File_internal_testprotos_lazy_lazy_normalized_wire_test_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_goTypes,
DependencyIndexes: file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_depIdxs,
MessageInfos: file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_msgTypes,
}.Build()
File_internal_testprotos_lazy_lazy_normalized_wire_test_proto = out.File
file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDesc = nil
file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_goTypes = nil
file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_depIdxs = nil
}

View File

@ -0,0 +1,641 @@
// 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_opaque/lazy_tree.opaque.proto
package lazy_opaque
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_opaque_lazy_tree_opaque_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_opaque_lazy_tree_opaque_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_opaque_lazy_tree_opaque_proto protoreflect.FileDescriptor
var file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_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,
0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x2f, 0x6c, 0x61, 0x7a, 0x79, 0x5f, 0x74, 0x72, 0x65, 0x65,
0x2e, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6f,
0x70, 0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x92, 0x03, 0x05, 0xd2, 0x3e, 0x02,
0x10, 0x03, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_goTypes = []any{
(*Node)(nil), // 0: opaque.lazy_tree.Node
}
var file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_depIdxs = []int32{
0, // 0: opaque.lazy_tree.Node.nested:type_name -> opaque.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_opaque_lazy_tree_opaque_proto_init() }
func file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_init() {
if File_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_goTypes,
DependencyIndexes: file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_depIdxs,
MessageInfos: file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_msgTypes,
}.Build()
File_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto = out.File
file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_rawDesc = nil
file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_goTypes = nil
file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_depIdxs = nil
}

View File

@ -0,0 +1,31 @@
// 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.
edition = "2023";
package opaque.lazy_tree;
option go_package = "google.golang.org/protobuf/internal/testprotos/lazy/lazy_opaque";
import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_OPAQUE;
message Node {
Node nested = 99 [lazy = true];
int32 int32 = 1;
int64 int64 = 2;
uint32 uint32 = 3;
uint64 uint64 = 4;
sint32 sint32 = 5;
sint64 sint64 = 6;
fixed32 fixed32 = 7;
fixed64 fixed64 = 8;
sfixed32 sfixed32 = 9;
sfixed64 sfixed64 = 10;
float float = 11;
double double = 12;
bool bool = 13;
string string = 14;
bytes bytes = 15;
}

View File

@ -0,0 +1,268 @@
// 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_tree.proto
package lazy
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
type Node struct {
state protoimpl.MessageState `protogen:"open.v1"`
Nested *Node `protobuf:"bytes,99,opt,name=nested" json:"nested,omitempty"`
Int32 *int32 `protobuf:"varint,1,opt,name=int32" json:"int32,omitempty"`
Int64 *int64 `protobuf:"varint,2,opt,name=int64" json:"int64,omitempty"`
Uint32 *uint32 `protobuf:"varint,3,opt,name=uint32" json:"uint32,omitempty"`
Uint64 *uint64 `protobuf:"varint,4,opt,name=uint64" json:"uint64,omitempty"`
Sint32 *int32 `protobuf:"zigzag32,5,opt,name=sint32" json:"sint32,omitempty"`
Sint64 *int64 `protobuf:"zigzag64,6,opt,name=sint64" json:"sint64,omitempty"`
Fixed32 *uint32 `protobuf:"fixed32,7,opt,name=fixed32" json:"fixed32,omitempty"`
Fixed64 *uint64 `protobuf:"fixed64,8,opt,name=fixed64" json:"fixed64,omitempty"`
Sfixed32 *int32 `protobuf:"fixed32,9,opt,name=sfixed32" json:"sfixed32,omitempty"`
Sfixed64 *int64 `protobuf:"fixed64,10,opt,name=sfixed64" json:"sfixed64,omitempty"`
Float *float32 `protobuf:"fixed32,11,opt,name=float" json:"float,omitempty"`
Double *float64 `protobuf:"fixed64,12,opt,name=double" json:"double,omitempty"`
Bool *bool `protobuf:"varint,13,opt,name=bool" json:"bool,omitempty"`
String_ *string `protobuf:"bytes,14,opt,name=string" json:"string,omitempty"`
Bytes []byte `protobuf:"bytes,15,opt,name=bytes" json:"bytes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Node) Reset() {
*x = Node{}
mi := &file_internal_testprotos_lazy_lazy_tree_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_tree_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)
}
// Deprecated: Use Node.ProtoReflect.Descriptor instead.
func (*Node) Descriptor() ([]byte, []int) {
return file_internal_testprotos_lazy_lazy_tree_proto_rawDescGZIP(), []int{0}
}
func (x *Node) GetNested() *Node {
if x != nil {
return x.Nested
}
return nil
}
func (x *Node) GetInt32() int32 {
if x != nil && x.Int32 != nil {
return *x.Int32
}
return 0
}
func (x *Node) GetInt64() int64 {
if x != nil && x.Int64 != nil {
return *x.Int64
}
return 0
}
func (x *Node) GetUint32() uint32 {
if x != nil && x.Uint32 != nil {
return *x.Uint32
}
return 0
}
func (x *Node) GetUint64() uint64 {
if x != nil && x.Uint64 != nil {
return *x.Uint64
}
return 0
}
func (x *Node) GetSint32() int32 {
if x != nil && x.Sint32 != nil {
return *x.Sint32
}
return 0
}
func (x *Node) GetSint64() int64 {
if x != nil && x.Sint64 != nil {
return *x.Sint64
}
return 0
}
func (x *Node) GetFixed32() uint32 {
if x != nil && x.Fixed32 != nil {
return *x.Fixed32
}
return 0
}
func (x *Node) GetFixed64() uint64 {
if x != nil && x.Fixed64 != nil {
return *x.Fixed64
}
return 0
}
func (x *Node) GetSfixed32() int32 {
if x != nil && x.Sfixed32 != nil {
return *x.Sfixed32
}
return 0
}
func (x *Node) GetSfixed64() int64 {
if x != nil && x.Sfixed64 != nil {
return *x.Sfixed64
}
return 0
}
func (x *Node) GetFloat() float32 {
if x != nil && x.Float != nil {
return *x.Float
}
return 0
}
func (x *Node) GetDouble() float64 {
if x != nil && x.Double != nil {
return *x.Double
}
return 0
}
func (x *Node) GetBool() bool {
if x != nil && x.Bool != nil {
return *x.Bool
}
return false
}
func (x *Node) GetString_() string {
if x != nil && x.String_ != nil {
return *x.String_
}
return ""
}
func (x *Node) GetBytes() []byte {
if x != nil {
return x.Bytes
}
return nil
}
var File_internal_testprotos_lazy_lazy_tree_proto protoreflect.FileDescriptor
var file_internal_testprotos_lazy_lazy_tree_proto_rawDesc = []byte{
0x0a, 0x28, 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,
0x74, 0x72, 0x65, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6c, 0x61, 0x7a, 0x79,
0x5f, 0x74, 0x72, 0x65, 0x65, 0x22, 0x9b, 0x03, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2b,
0x0a, 0x06, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f,
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, 0x35, 0x5a, 0x33, 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, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var (
file_internal_testprotos_lazy_lazy_tree_proto_rawDescOnce sync.Once
file_internal_testprotos_lazy_lazy_tree_proto_rawDescData = file_internal_testprotos_lazy_lazy_tree_proto_rawDesc
)
func file_internal_testprotos_lazy_lazy_tree_proto_rawDescGZIP() []byte {
file_internal_testprotos_lazy_lazy_tree_proto_rawDescOnce.Do(func() {
file_internal_testprotos_lazy_lazy_tree_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_lazy_lazy_tree_proto_rawDescData)
})
return file_internal_testprotos_lazy_lazy_tree_proto_rawDescData
}
var file_internal_testprotos_lazy_lazy_tree_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_internal_testprotos_lazy_lazy_tree_proto_goTypes = []any{
(*Node)(nil), // 0: lazy_tree.Node
}
var file_internal_testprotos_lazy_lazy_tree_proto_depIdxs = []int32{
0, // 0: lazy_tree.Node.nested:type_name -> 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_tree_proto_init() }
func file_internal_testprotos_lazy_lazy_tree_proto_init() {
if File_internal_testprotos_lazy_lazy_tree_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_lazy_lazy_tree_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_internal_testprotos_lazy_lazy_tree_proto_goTypes,
DependencyIndexes: file_internal_testprotos_lazy_lazy_tree_proto_depIdxs,
MessageInfos: file_internal_testprotos_lazy_lazy_tree_proto_msgTypes,
}.Build()
File_internal_testprotos_lazy_lazy_tree_proto = out.File
file_internal_testprotos_lazy_lazy_tree_proto_rawDesc = nil
file_internal_testprotos_lazy_lazy_tree_proto_goTypes = nil
file_internal_testprotos_lazy_lazy_tree_proto_depIdxs = nil
}

View File

@ -27,22 +27,21 @@ import (
)
type Legacy struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
F1 *proto2_20160225_2fc053c5.Message `protobuf:"bytes,1,opt,name=f1,proto3" json:"f1,omitempty"`
F2 *proto3_20160225_2fc053c5.Message `protobuf:"bytes,2,opt,name=f2,proto3" json:"f2,omitempty"`
F3 *proto2_20160519_a4ab9ec5.Message `protobuf:"bytes,3,opt,name=f3,proto3" json:"f3,omitempty"`
F4 *proto3_20160519_a4ab9ec5.Message `protobuf:"bytes,4,opt,name=f4,proto3" json:"f4,omitempty"`
F5 *proto2_20180125_92554152.Message `protobuf:"bytes,5,opt,name=f5,proto3" json:"f5,omitempty"`
F6 *proto3_20180125_92554152.Message `protobuf:"bytes,6,opt,name=f6,proto3" json:"f6,omitempty"`
F7 *proto2_20180430_b4deda09.Message `protobuf:"bytes,7,opt,name=f7,proto3" json:"f7,omitempty"`
F8 *proto3_20180430_b4deda09.Message `protobuf:"bytes,8,opt,name=f8,proto3" json:"f8,omitempty"`
F9 *proto2_20180814_aa810b61.Message `protobuf:"bytes,9,opt,name=f9,proto3" json:"f9,omitempty"`
F10 *proto3_20180814_aa810b61.Message `protobuf:"bytes,10,opt,name=f10,proto3" json:"f10,omitempty"`
F11 *proto2_20190205_c823c79e.Message `protobuf:"bytes,11,opt,name=f11,proto3" json:"f11,omitempty"`
F12 *proto3_20190205_c823c79e.Message `protobuf:"bytes,12,opt,name=f12,proto3" json:"f12,omitempty"`
unknownFields protoimpl.UnknownFields
F1 *proto2_20160225_2fc053c5.Message `protobuf:"bytes,1,opt,name=f1,proto3" json:"f1,omitempty"`
F2 *proto3_20160225_2fc053c5.Message `protobuf:"bytes,2,opt,name=f2,proto3" json:"f2,omitempty"`
F3 *proto2_20160519_a4ab9ec5.Message `protobuf:"bytes,3,opt,name=f3,proto3" json:"f3,omitempty"`
F4 *proto3_20160519_a4ab9ec5.Message `protobuf:"bytes,4,opt,name=f4,proto3" json:"f4,omitempty"`
F5 *proto2_20180125_92554152.Message `protobuf:"bytes,5,opt,name=f5,proto3" json:"f5,omitempty"`
F6 *proto3_20180125_92554152.Message `protobuf:"bytes,6,opt,name=f6,proto3" json:"f6,omitempty"`
F7 *proto2_20180430_b4deda09.Message `protobuf:"bytes,7,opt,name=f7,proto3" json:"f7,omitempty"`
F8 *proto3_20180430_b4deda09.Message `protobuf:"bytes,8,opt,name=f8,proto3" json:"f8,omitempty"`
F9 *proto2_20180814_aa810b61.Message `protobuf:"bytes,9,opt,name=f9,proto3" json:"f9,omitempty"`
F10 *proto3_20180814_aa810b61.Message `protobuf:"bytes,10,opt,name=f10,proto3" json:"f10,omitempty"`
F11 *proto2_20190205_c823c79e.Message `protobuf:"bytes,11,opt,name=f11,proto3" json:"f11,omitempty"`
F12 *proto3_20190205_c823c79e.Message `protobuf:"bytes,12,opt,name=f12,proto3" json:"f12,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Legacy) Reset() {

View File

@ -15,10 +15,10 @@ import (
)
type MessageSet struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MessageSet) Reset() {
@ -52,11 +52,10 @@ func (*MessageSet) Descriptor() ([]byte, []int) {
}
type MessageSetContainer struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
MessageSet *MessageSet `protobuf:"bytes,1,opt,name=message_set,json=messageSet" json:"message_set,omitempty"`
unknownFields protoimpl.UnknownFields
MessageSet *MessageSet `protobuf:"bytes,1,opt,name=message_set,json=messageSet" json:"message_set,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *MessageSetContainer) Reset() {
@ -104,20 +103,20 @@ var file_internal_testprotos_messageset_messagesetpb_message_set_proto_rawDesc =
0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x18, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x22, 0x28, 0x0a, 0x0a, 0x4d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x2a, 0x08, 0x08, 0x04, 0x10, 0x80, 0xd1, 0xdc, 0xfc,
0x01, 0x2a, 0x0c, 0x08, 0x80, 0xd1, 0xdc, 0xfc, 0x01, 0x10, 0xff, 0xff, 0xff, 0xff, 0x07, 0x3a,
0x02, 0x08, 0x01, 0x22, 0x5c, 0x0a, 0x13, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65,
0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x0b, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x24, 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, 0x48, 0x5a, 0x46, 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,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 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, 0x5c, 0x0a, 0x13, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x0b,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x24, 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, 0x48, 0x5a, 0x46, 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, 0x62, 0x08, 0x65,
0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var (

View File

@ -0,0 +1,199 @@
// 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
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:"hybrid.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:"hybrid.v1"`
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.MessageSet
}
return nil
}
func (x *MessageSetContainer) SetMessageSet(v *MessageSet) {
x.MessageSet = v
}
func (x *MessageSetContainer) HasMessageSet() bool {
if x == nil {
return false
}
return x.MessageSet != nil
}
func (x *MessageSetContainer) ClearMessageSet() {
x.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.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

@ -0,0 +1,21 @@
// 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.
edition = "2023";
package hybrid.goproto.proto.messageset;
option go_package = "google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid";
import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_HYBRID;
message MessageSet {
option message_set_wire_format = true;
extensions 4 to max;
}
message MessageSetContainer {
MessageSet message_set = 1;
}

View File

@ -0,0 +1,199 @@
// 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_opaque/message_set.opaque.proto
package messagesetpb_opaque
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_opaque_message_set_opaque_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_opaque_message_set_opaque_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_opaque_message_set_opaque_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_opaque_message_set_opaque_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_opaque_message_set_opaque_proto protoreflect.FileDescriptor
var file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_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, 0x6f, 0x70, 0x61, 0x71, 0x75,
0x65, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x6f, 0x70, 0x61, 0x71,
0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x92, 0x03, 0x05,
0xd2, 0x3e, 0x02, 0x10, 0x03, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70,
0xe8, 0x07,
}
var file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_goTypes = []any{
(*MessageSet)(nil), // 0: opaque.goproto.proto.messageset.MessageSet
(*MessageSetContainer)(nil), // 1: opaque.goproto.proto.messageset.MessageSetContainer
}
var file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_depIdxs = []int32{
0, // 0: opaque.goproto.proto.messageset.MessageSetContainer.message_set:type_name -> opaque.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_opaque_message_set_opaque_proto_init()
}
func file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_init() {
if File_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_goTypes,
DependencyIndexes: file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_depIdxs,
MessageInfos: file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_msgTypes,
}.Build()
File_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto = out.File
file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_rawDesc = nil
file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_goTypes = nil
file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_depIdxs = nil
}

View File

@ -0,0 +1,21 @@
// 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.
edition = "2023";
package opaque.goproto.proto.messageset;
option go_package = "google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb/messagesetpb_opaque";
import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_OPAQUE;
message MessageSet {
option message_set_wire_format = true;
extensions 4 to max;
}
message MessageSetContainer {
MessageSet message_set = 1;
}

View File

@ -16,12 +16,11 @@ import (
)
type Ext1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Ext1Field1 *int32 `protobuf:"varint,1,opt,name=ext1_field1,json=ext1Field1" json:"ext1_field1,omitempty"`
Ext1Field2 *int32 `protobuf:"varint,2,opt,name=ext1_field2,json=ext1Field2" json:"ext1_field2,omitempty"`
unknownFields protoimpl.UnknownFields
Ext1Field1 *int32 `protobuf:"varint,1,opt,name=ext1_field1,json=ext1Field1" json:"ext1_field1,omitempty"`
Ext1Field2 *int32 `protobuf:"varint,2,opt,name=ext1_field2,json=ext1Field2" json:"ext1_field2,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Ext1) Reset() {
@ -69,11 +68,10 @@ func (x *Ext1) GetExt1Field2() int32 {
}
type Ext2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Ext2Field1 *int32 `protobuf:"varint,1,opt,name=ext2_field1,json=ext2Field1" json:"ext2_field1,omitempty"`
unknownFields protoimpl.UnknownFields
Ext2Field1 *int32 `protobuf:"varint,1,opt,name=ext2_field1,json=ext2Field1" json:"ext2_field1,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Ext2) Reset() {
@ -114,11 +112,10 @@ func (x *Ext2) GetExt2Field1() int32 {
}
type ExtRequired struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RequiredField1 *int32 `protobuf:"varint,1,req,name=required_field1,json=requiredField1" json:"required_field1,omitempty"`
state protoimpl.MessageState `protogen:"open.v1"`
RequiredField1 *int32 `protobuf:"varint,1,req,name=required_field1,json=requiredField1" json:"required_field1,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExtRequired) Reset() {
@ -159,9 +156,9 @@ func (x *ExtRequired) GetRequiredField1() int32 {
}
type ExtLargeNumber struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExtLargeNumber) Reset() {
@ -274,33 +271,34 @@ var file_internal_testprotos_messageset_msetextpb_msetextpb_proto_rawDesc = []by
0x53, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 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, 0xbd, 0x01, 0x0a, 0x0b, 0x45,
0x78, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65,
0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74, 0x32, 0x22, 0xc4, 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,
0x02, 0x28, 0x05, 0x52, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65,
0x6c, 0x64, 0x31, 0x32, 0x84, 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,
0x24, 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, 0x25, 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, 0x97, 0x01, 0x0a, 0x0e, 0x45,
0x78, 0x74, 0x4c, 0x61, 0x72, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x32, 0x84, 0x01,
0x0a, 0x14, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78,
0x74, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
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, 0x84, 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, 0x24, 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, 0x28, 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, 0x45, 0x5a, 0x43, 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,
0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xea, 0x07, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x25, 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, 0x97, 0x01, 0x0a, 0x0e, 0x45, 0x78, 0x74, 0x4c, 0x61, 0x72, 0x67, 0x65, 0x4e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x32, 0x84, 0x01, 0x0a, 0x14, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x12, 0x24, 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, 0x28, 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, 0x45, 0x5a, 0x43, 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, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var (

View File

@ -0,0 +1,461 @@
// 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
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:"hybrid.v1"`
Ext1Field1 *int32 `protobuf:"varint,1,opt,name=ext1_field1,json=ext1Field1" json:"ext1_field1,omitempty"`
Ext1Field2 *int32 `protobuf:"varint,2,opt,name=ext1_field2,json=ext1Field2" json:"ext1_field2,omitempty"`
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 && x.Ext1Field1 != nil {
return *x.Ext1Field1
}
return 0
}
func (x *Ext1) GetExt1Field2() int32 {
if x != nil && x.Ext1Field2 != nil {
return *x.Ext1Field2
}
return 0
}
func (x *Ext1) SetExt1Field1(v int32) {
x.Ext1Field1 = &v
}
func (x *Ext1) SetExt1Field2(v int32) {
x.Ext1Field2 = &v
}
func (x *Ext1) HasExt1Field1() bool {
if x == nil {
return false
}
return x.Ext1Field1 != nil
}
func (x *Ext1) HasExt1Field2() bool {
if x == nil {
return false
}
return x.Ext1Field2 != nil
}
func (x *Ext1) ClearExt1Field1() {
x.Ext1Field1 = nil
}
func (x *Ext1) ClearExt1Field2() {
x.Ext1Field2 = nil
}
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
x.Ext1Field1 = b.Ext1Field1
x.Ext1Field2 = b.Ext1Field2
return m0
}
type Ext2 struct {
state protoimpl.MessageState `protogen:"hybrid.v1"`
Ext2Field1 *int32 `protobuf:"varint,1,opt,name=ext2_field1,json=ext2Field1" json:"ext2_field1,omitempty"`
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 && x.Ext2Field1 != nil {
return *x.Ext2Field1
}
return 0
}
func (x *Ext2) SetExt2Field1(v int32) {
x.Ext2Field1 = &v
}
func (x *Ext2) HasExt2Field1() bool {
if x == nil {
return false
}
return x.Ext2Field1 != nil
}
func (x *Ext2) ClearExt2Field1() {
x.Ext2Field1 = nil
}
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
x.Ext2Field1 = b.Ext2Field1
return m0
}
type ExtRequired struct {
state protoimpl.MessageState `protogen:"hybrid.v1"`
RequiredField1 *int32 `protobuf:"varint,1,req,name=required_field1,json=requiredField1" json:"required_field1,omitempty"`
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 && x.RequiredField1 != nil {
return *x.RequiredField1
}
return 0
}
func (x *ExtRequired) SetRequiredField1(v int32) {
x.RequiredField1 = &v
}
func (x *ExtRequired) HasRequiredField1() bool {
if x == nil {
return false
}
return x.RequiredField1 != nil
}
func (x *ExtRequired) ClearRequiredField1() {
x.RequiredField1 = nil
}
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
x.RequiredField1 = b.RequiredField1
return m0
}
type ExtLargeNumber struct {
state protoimpl.MessageState `protogen:"hybrid.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

@ -0,0 +1,41 @@
// 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.
edition = "2023";
package hybrid.goproto.proto.messageset;
import "internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid.proto";
option go_package = "google.golang.org/protobuf/internal/testprotos/messageset/msetextpb/msetextpb_hybrid";
import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_HYBRID;
message Ext1 {
extend MessageSet {
Ext1 message_set_ext1 = 1000;
}
int32 ext1_field1 = 1;
int32 ext1_field2 = 2;
}
message Ext2 {
extend MessageSet {
Ext2 message_set_ext2 = 1001;
}
int32 ext2_field1 = 1;
}
message ExtRequired {
extend MessageSet {
ExtRequired message_set_extrequired = 1002;
}
int32 required_field1 = 1 [features.field_presence = LEGACY_REQUIRED];
}
message ExtLargeNumber {
extend MessageSet {
ExtLargeNumber message_set_extlarge = 536870912; // 1<<29
}
}

View File

@ -0,0 +1,487 @@
// 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_opaque/msetextpb.opaque.proto
package msetextpb_opaque
import (
messagesetpb_opaque "google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb/messagesetpb_opaque"
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_opaque_msetextpb_opaque_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_opaque_msetextpb_opaque_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_opaque_msetextpb_opaque_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_opaque_msetextpb_opaque_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_opaque_msetextpb_opaque_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_opaque_msetextpb_opaque_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_opaque_msetextpb_opaque_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_opaque_msetextpb_opaque_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_opaque_msetextpb_opaque_proto_extTypes = []protoimpl.ExtensionInfo{
{
ExtendedType: (*messagesetpb_opaque.MessageSet)(nil),
ExtensionType: (*Ext1)(nil),
Field: 1000,
Name: "opaque.goproto.proto.messageset.Ext1.message_set_ext1",
Tag: "bytes,1000,opt,name=message_set_ext1",
Filename: "internal/testprotos/messageset/msetextpb/msetextpb_opaque/msetextpb.opaque.proto",
},
{
ExtendedType: (*messagesetpb_opaque.MessageSet)(nil),
ExtensionType: (*Ext2)(nil),
Field: 1001,
Name: "opaque.goproto.proto.messageset.Ext2.message_set_ext2",
Tag: "bytes,1001,opt,name=message_set_ext2",
Filename: "internal/testprotos/messageset/msetextpb/msetextpb_opaque/msetextpb.opaque.proto",
},
{
ExtendedType: (*messagesetpb_opaque.MessageSet)(nil),
ExtensionType: (*ExtRequired)(nil),
Field: 1002,
Name: "opaque.goproto.proto.messageset.ExtRequired.message_set_extrequired",
Tag: "bytes,1002,opt,name=message_set_extrequired",
Filename: "internal/testprotos/messageset/msetextpb/msetextpb_opaque/msetextpb.opaque.proto",
},
{
ExtendedType: (*messagesetpb_opaque.MessageSet)(nil),
ExtensionType: (*ExtLargeNumber)(nil),
Field: 536870912,
Name: "opaque.goproto.proto.messageset.ExtLargeNumber.message_set_extlarge",
Tag: "bytes,536870912,opt,name=message_set_extlarge",
Filename: "internal/testprotos/messageset/msetextpb/msetextpb_opaque/msetextpb.opaque.proto",
},
}
// Extension fields to messagesetpb_opaque.MessageSet.
var (
// optional opaque.goproto.proto.messageset.Ext1 message_set_ext1 = 1000;
E_Ext1_MessageSetExt1 = &file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_extTypes[0]
// optional opaque.goproto.proto.messageset.Ext2 message_set_ext2 = 1001;
E_Ext2_MessageSetExt2 = &file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_extTypes[1]
// optional opaque.goproto.proto.messageset.ExtRequired message_set_extrequired = 1002;
E_ExtRequired_MessageSetExtrequired = &file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_extTypes[2]
// optional opaque.goproto.proto.messageset.ExtLargeNumber message_set_extlarge = 536870912;
E_ExtLargeNumber_MessageSetExtlarge = &file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_extTypes[3] // 1<<29
)
var File_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto protoreflect.FileDescriptor
var file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x2f, 0x6d, 0x73, 0x65, 0x74,
0x65, 0x78, 0x74, 0x70, 0x62, 0x2e, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x1f, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74,
0x2e, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75,
0x65, 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, 0x6f,
0x70, 0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 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, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x92, 0x03, 0x05, 0xd2, 0x3e, 0x02, 0x10, 0x03,
0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_goTypes = []any{
(*Ext1)(nil), // 0: opaque.goproto.proto.messageset.Ext1
(*Ext2)(nil), // 1: opaque.goproto.proto.messageset.Ext2
(*ExtRequired)(nil), // 2: opaque.goproto.proto.messageset.ExtRequired
(*ExtLargeNumber)(nil), // 3: opaque.goproto.proto.messageset.ExtLargeNumber
(*messagesetpb_opaque.MessageSet)(nil), // 4: opaque.goproto.proto.messageset.MessageSet
}
var file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_depIdxs = []int32{
4, // 0: opaque.goproto.proto.messageset.Ext1.message_set_ext1:extendee -> opaque.goproto.proto.messageset.MessageSet
4, // 1: opaque.goproto.proto.messageset.Ext2.message_set_ext2:extendee -> opaque.goproto.proto.messageset.MessageSet
4, // 2: opaque.goproto.proto.messageset.ExtRequired.message_set_extrequired:extendee -> opaque.goproto.proto.messageset.MessageSet
4, // 3: opaque.goproto.proto.messageset.ExtLargeNumber.message_set_extlarge:extendee -> opaque.goproto.proto.messageset.MessageSet
0, // 4: opaque.goproto.proto.messageset.Ext1.message_set_ext1:type_name -> opaque.goproto.proto.messageset.Ext1
1, // 5: opaque.goproto.proto.messageset.Ext2.message_set_ext2:type_name -> opaque.goproto.proto.messageset.Ext2
2, // 6: opaque.goproto.proto.messageset.ExtRequired.message_set_extrequired:type_name -> opaque.goproto.proto.messageset.ExtRequired
3, // 7: opaque.goproto.proto.messageset.ExtLargeNumber.message_set_extlarge:type_name -> opaque.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_opaque_msetextpb_opaque_proto_init()
}
func file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_init() {
if File_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 4,
NumServices: 0,
},
GoTypes: file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_goTypes,
DependencyIndexes: file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_depIdxs,
MessageInfos: file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_msgTypes,
ExtensionInfos: file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_extTypes,
}.Build()
File_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto = out.File
file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_rawDesc = nil
file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_goTypes = nil
file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_depIdxs = nil
}

View File

@ -0,0 +1,41 @@
// 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.
edition = "2023";
package opaque.goproto.proto.messageset;
import "internal/testprotos/messageset/messagesetpb/messagesetpb_opaque/message_set.opaque.proto";
option go_package = "google.golang.org/protobuf/internal/testprotos/messageset/msetextpb/msetextpb_opaque";
import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_OPAQUE;
message Ext1 {
extend MessageSet {
Ext1 message_set_ext1 = 1000;
}
int32 ext1_field1 = 1;
int32 ext1_field2 = 2;
}
message Ext2 {
extend MessageSet {
Ext2 message_set_ext2 = 1001;
}
int32 ext2_field1 = 1;
}
message ExtRequired {
extend MessageSet {
ExtRequired message_set_extrequired = 1002;
}
int32 required_field1 = 1 [features.field_presence = LEGACY_REQUIRED];
}
message ExtLargeNumber {
extend MessageSet {
ExtLargeNumber message_set_extlarge = 536870912; // 1<<29
}
}

View File

@ -0,0 +1,971 @@
// 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.
// This testproto explicitly configures the API level of each message.
//
// This allows creating mixed trees of proto messages on different API levels.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/testprotos/mixed/mixed.proto
package mixed
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/gofeaturespb"
reflect "reflect"
sync "sync"
)
type Open struct {
state protoimpl.MessageState `protogen:"open.v1"`
// These fields allow for arbitrary mixing.
Open *Open `protobuf:"bytes,1,opt,name=open" json:"open,omitempty"`
Hybrid *Hybrid `protobuf:"bytes,2,opt,name=hybrid" json:"hybrid,omitempty"`
Opaque *Opaque `protobuf:"bytes,3,opt,name=opaque" json:"opaque,omitempty"`
OptionalInt32 *int32 `protobuf:"varint,4,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Open) Reset() {
*x = Open{}
mi := &file_internal_testprotos_mixed_mixed_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Open) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Open) ProtoMessage() {}
func (x *Open) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_mixed_mixed_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)
}
// Deprecated: Use Open.ProtoReflect.Descriptor instead.
func (*Open) Descriptor() ([]byte, []int) {
return file_internal_testprotos_mixed_mixed_proto_rawDescGZIP(), []int{0}
}
func (x *Open) GetOpen() *Open {
if x != nil {
return x.Open
}
return nil
}
func (x *Open) GetHybrid() *Hybrid {
if x != nil {
return x.Hybrid
}
return nil
}
func (x *Open) GetOpaque() *Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (x *Open) GetOptionalInt32() int32 {
if x != nil && x.OptionalInt32 != nil {
return *x.OptionalInt32
}
return 0
}
type Hybrid struct {
state protoimpl.MessageState `protogen:"hybrid.v1"`
// These fields allow for arbitrary mixing.
Open *Open `protobuf:"bytes,1,opt,name=open" json:"open,omitempty"`
Hybrid *Hybrid `protobuf:"bytes,2,opt,name=hybrid" json:"hybrid,omitempty"`
Opaque *Opaque `protobuf:"bytes,3,opt,name=opaque" json:"opaque,omitempty"`
OptionalInt32 *int32 `protobuf:"varint,4,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Hybrid) Reset() {
*x = Hybrid{}
mi := &file_internal_testprotos_mixed_mixed_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Hybrid) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Hybrid) ProtoMessage() {}
func (x *Hybrid) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_mixed_mixed_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 *Hybrid) GetOpen() *Open {
if x != nil {
return x.Open
}
return nil
}
func (x *Hybrid) GetHybrid() *Hybrid {
if x != nil {
return x.Hybrid
}
return nil
}
func (x *Hybrid) GetOpaque() *Opaque {
if x != nil {
return x.Opaque
}
return nil
}
func (x *Hybrid) GetOptionalInt32() int32 {
if x != nil && x.OptionalInt32 != nil {
return *x.OptionalInt32
}
return 0
}
func (x *Hybrid) SetOpen(v *Open) {
x.Open = v
}
func (x *Hybrid) SetHybrid(v *Hybrid) {
x.Hybrid = v
}
func (x *Hybrid) SetOpaque(v *Opaque) {
x.Opaque = v
}
func (x *Hybrid) SetOptionalInt32(v int32) {
x.OptionalInt32 = &v
}
func (x *Hybrid) HasOpen() bool {
if x == nil {
return false
}
return x.Open != nil
}
func (x *Hybrid) HasHybrid() bool {
if x == nil {
return false
}
return x.Hybrid != nil
}
func (x *Hybrid) HasOpaque() bool {
if x == nil {
return false
}
return x.Opaque != nil
}
func (x *Hybrid) HasOptionalInt32() bool {
if x == nil {
return false
}
return x.OptionalInt32 != nil
}
func (x *Hybrid) ClearOpen() {
x.Open = nil
}
func (x *Hybrid) ClearHybrid() {
x.Hybrid = nil
}
func (x *Hybrid) ClearOpaque() {
x.Opaque = nil
}
func (x *Hybrid) ClearOptionalInt32() {
x.OptionalInt32 = nil
}
type Hybrid_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
// These fields allow for arbitrary mixing.
Open *Open
Hybrid *Hybrid
Opaque *Opaque
OptionalInt32 *int32
}
func (b0 Hybrid_builder) Build() *Hybrid {
m0 := &Hybrid{}
b, x := &b0, m0
_, _ = b, x
x.Open = b.Open
x.Hybrid = b.Hybrid
x.Opaque = b.Opaque
x.OptionalInt32 = b.OptionalInt32
return m0
}
type Opaque struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
xxx_hidden_Open *Open `protobuf:"bytes,1,opt,name=open" json:"open,omitempty"`
xxx_hidden_Hybrid *Hybrid `protobuf:"bytes,2,opt,name=hybrid" json:"hybrid,omitempty"`
xxx_hidden_Opaque *Opaque `protobuf:"bytes,3,opt,name=opaque" json:"opaque,omitempty"`
xxx_hidden_OptionalInt32 int32 `protobuf:"varint,4,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Opaque) Reset() {
*x = Opaque{}
mi := &file_internal_testprotos_mixed_mixed_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Opaque) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Opaque) ProtoMessage() {}
func (x *Opaque) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_mixed_mixed_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 *Opaque) GetOpen() *Open {
if x != nil {
return x.xxx_hidden_Open
}
return nil
}
func (x *Opaque) GetHybrid() *Hybrid {
if x != nil {
return x.xxx_hidden_Hybrid
}
return nil
}
func (x *Opaque) GetOpaque() *Opaque {
if x != nil {
return x.xxx_hidden_Opaque
}
return nil
}
func (x *Opaque) GetOptionalInt32() int32 {
if x != nil {
return x.xxx_hidden_OptionalInt32
}
return 0
}
func (x *Opaque) SetOpen(v *Open) {
x.xxx_hidden_Open = v
}
func (x *Opaque) SetHybrid(v *Hybrid) {
x.xxx_hidden_Hybrid = v
}
func (x *Opaque) SetOpaque(v *Opaque) {
x.xxx_hidden_Opaque = v
}
func (x *Opaque) SetOptionalInt32(v int32) {
x.xxx_hidden_OptionalInt32 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 3, 4)
}
func (x *Opaque) HasOpen() bool {
if x == nil {
return false
}
return x.xxx_hidden_Open != nil
}
func (x *Opaque) HasHybrid() bool {
if x == nil {
return false
}
return x.xxx_hidden_Hybrid != nil
}
func (x *Opaque) HasOpaque() bool {
if x == nil {
return false
}
return x.xxx_hidden_Opaque != nil
}
func (x *Opaque) HasOptionalInt32() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 3)
}
func (x *Opaque) ClearOpen() {
x.xxx_hidden_Open = nil
}
func (x *Opaque) ClearHybrid() {
x.xxx_hidden_Hybrid = nil
}
func (x *Opaque) ClearOpaque() {
x.xxx_hidden_Opaque = nil
}
func (x *Opaque) ClearOptionalInt32() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 3)
x.xxx_hidden_OptionalInt32 = 0
}
type Opaque_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
// These fields allow for arbitrary mixing.
Open *Open
Hybrid *Hybrid
Opaque *Opaque
OptionalInt32 *int32
}
func (b0 Opaque_builder) Build() *Opaque {
m0 := &Opaque{}
b, x := &b0, m0
_, _ = b, x
x.xxx_hidden_Open = b.Open
x.xxx_hidden_Hybrid = b.Hybrid
x.xxx_hidden_Opaque = b.Opaque
if b.OptionalInt32 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 4)
x.xxx_hidden_OptionalInt32 = *b.OptionalInt32
}
return m0
}
type OpenLazy struct {
state protoimpl.MessageState `protogen:"open.v1"`
// These fields allow for arbitrary mixing.
Open *OpenLazy `protobuf:"bytes,1,opt,name=open" json:"open,omitempty"`
Hybrid *HybridLazy `protobuf:"bytes,2,opt,name=hybrid" json:"hybrid,omitempty"`
Opaque *OpaqueLazy `protobuf:"bytes,3,opt,name=opaque" json:"opaque,omitempty"`
OptionalInt32 *int32 `protobuf:"varint,4,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OpenLazy) Reset() {
*x = OpenLazy{}
mi := &file_internal_testprotos_mixed_mixed_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *OpenLazy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OpenLazy) ProtoMessage() {}
func (x *OpenLazy) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_mixed_mixed_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)
}
// Deprecated: Use OpenLazy.ProtoReflect.Descriptor instead.
func (*OpenLazy) Descriptor() ([]byte, []int) {
return file_internal_testprotos_mixed_mixed_proto_rawDescGZIP(), []int{3}
}
func (x *OpenLazy) GetOpen() *OpenLazy {
if x != nil {
return x.Open
}
return nil
}
func (x *OpenLazy) GetHybrid() *HybridLazy {
if x != nil {
return x.Hybrid
}
return nil
}
func (x *OpenLazy) GetOpaque() *OpaqueLazy {
if x != nil {
return x.Opaque
}
return nil
}
func (x *OpenLazy) GetOptionalInt32() int32 {
if x != nil && x.OptionalInt32 != nil {
return *x.OptionalInt32
}
return 0
}
type HybridLazy struct {
state protoimpl.MessageState `protogen:"hybrid.v1"`
// These fields allow for arbitrary mixing.
Open *OpenLazy `protobuf:"bytes,1,opt,name=open" json:"open,omitempty"`
Hybrid *HybridLazy `protobuf:"bytes,2,opt,name=hybrid" json:"hybrid,omitempty"`
Opaque *OpaqueLazy `protobuf:"bytes,3,opt,name=opaque" json:"opaque,omitempty"`
OptionalInt32 *int32 `protobuf:"varint,4,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HybridLazy) Reset() {
*x = HybridLazy{}
mi := &file_internal_testprotos_mixed_mixed_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HybridLazy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HybridLazy) ProtoMessage() {}
func (x *HybridLazy) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_mixed_mixed_proto_msgTypes[4]
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 *HybridLazy) GetOpen() *OpenLazy {
if x != nil {
return x.Open
}
return nil
}
func (x *HybridLazy) GetHybrid() *HybridLazy {
if x != nil {
return x.Hybrid
}
return nil
}
func (x *HybridLazy) GetOpaque() *OpaqueLazy {
if x != nil {
return x.Opaque
}
return nil
}
func (x *HybridLazy) GetOptionalInt32() int32 {
if x != nil && x.OptionalInt32 != nil {
return *x.OptionalInt32
}
return 0
}
func (x *HybridLazy) SetOpen(v *OpenLazy) {
x.Open = v
}
func (x *HybridLazy) SetHybrid(v *HybridLazy) {
x.Hybrid = v
}
func (x *HybridLazy) SetOpaque(v *OpaqueLazy) {
x.Opaque = v
}
func (x *HybridLazy) SetOptionalInt32(v int32) {
x.OptionalInt32 = &v
}
func (x *HybridLazy) HasOpen() bool {
if x == nil {
return false
}
return x.Open != nil
}
func (x *HybridLazy) HasHybrid() bool {
if x == nil {
return false
}
return x.Hybrid != nil
}
func (x *HybridLazy) HasOpaque() bool {
if x == nil {
return false
}
return x.Opaque != nil
}
func (x *HybridLazy) HasOptionalInt32() bool {
if x == nil {
return false
}
return x.OptionalInt32 != nil
}
func (x *HybridLazy) ClearOpen() {
x.Open = nil
}
func (x *HybridLazy) ClearHybrid() {
x.Hybrid = nil
}
func (x *HybridLazy) ClearOpaque() {
x.Opaque = nil
}
func (x *HybridLazy) ClearOptionalInt32() {
x.OptionalInt32 = nil
}
type HybridLazy_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
// These fields allow for arbitrary mixing.
Open *OpenLazy
Hybrid *HybridLazy
Opaque *OpaqueLazy
OptionalInt32 *int32
}
func (b0 HybridLazy_builder) Build() *HybridLazy {
m0 := &HybridLazy{}
b, x := &b0, m0
_, _ = b, x
x.Open = b.Open
x.Hybrid = b.Hybrid
x.Opaque = b.Opaque
x.OptionalInt32 = b.OptionalInt32
return m0
}
type OpaqueLazy struct {
state protoimpl.MessageState `protogen:"opaque.v1"`
xxx_hidden_Open *OpenLazy `protobuf:"bytes,1,opt,name=open" json:"open,omitempty"`
xxx_hidden_Hybrid *HybridLazy `protobuf:"bytes,2,opt,name=hybrid" json:"hybrid,omitempty"`
xxx_hidden_Opaque *OpaqueLazy `protobuf:"bytes,3,opt,name=opaque" json:"opaque,omitempty"`
xxx_hidden_OptionalInt32 int32 `protobuf:"varint,4,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,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 *OpaqueLazy) Reset() {
*x = OpaqueLazy{}
mi := &file_internal_testprotos_mixed_mixed_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *OpaqueLazy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OpaqueLazy) ProtoMessage() {}
func (x *OpaqueLazy) ProtoReflect() protoreflect.Message {
mi := &file_internal_testprotos_mixed_mixed_proto_msgTypes[5]
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 *OpaqueLazy) GetOpen() *OpenLazy {
if x != nil {
if protoimpl.X.Present(&(x.XXX_presence[0]), 0) {
if protoimpl.X.AtomicCheckPointerIsNil(&x.xxx_hidden_Open) {
protoimpl.X.UnmarshalField(x, 1)
}
var rv *OpenLazy
protoimpl.X.AtomicLoadPointer(protoimpl.Pointer(&x.xxx_hidden_Open), protoimpl.Pointer(&rv))
return rv
}
}
return nil
}
func (x *OpaqueLazy) GetHybrid() *HybridLazy {
if x != nil {
if protoimpl.X.Present(&(x.XXX_presence[0]), 1) {
if protoimpl.X.AtomicCheckPointerIsNil(&x.xxx_hidden_Hybrid) {
protoimpl.X.UnmarshalField(x, 2)
}
var rv *HybridLazy
protoimpl.X.AtomicLoadPointer(protoimpl.Pointer(&x.xxx_hidden_Hybrid), protoimpl.Pointer(&rv))
return rv
}
}
return nil
}
func (x *OpaqueLazy) GetOpaque() *OpaqueLazy {
if x != nil {
if protoimpl.X.Present(&(x.XXX_presence[0]), 2) {
if protoimpl.X.AtomicCheckPointerIsNil(&x.xxx_hidden_Opaque) {
protoimpl.X.UnmarshalField(x, 3)
}
var rv *OpaqueLazy
protoimpl.X.AtomicLoadPointer(protoimpl.Pointer(&x.xxx_hidden_Opaque), protoimpl.Pointer(&rv))
return rv
}
}
return nil
}
func (x *OpaqueLazy) GetOptionalInt32() int32 {
if x != nil {
return x.xxx_hidden_OptionalInt32
}
return 0
}
func (x *OpaqueLazy) SetOpen(v *OpenLazy) {
protoimpl.X.AtomicSetPointer(&x.xxx_hidden_Open, v)
if v == nil {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0)
} else {
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 4)
}
}
func (x *OpaqueLazy) SetHybrid(v *HybridLazy) {
protoimpl.X.AtomicSetPointer(&x.xxx_hidden_Hybrid, v)
if v == nil {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1)
} else {
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 4)
}
}
func (x *OpaqueLazy) SetOpaque(v *OpaqueLazy) {
protoimpl.X.AtomicSetPointer(&x.xxx_hidden_Opaque, v)
if v == nil {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2)
} else {
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 4)
}
}
func (x *OpaqueLazy) SetOptionalInt32(v int32) {
x.xxx_hidden_OptionalInt32 = v
protoimpl.X.SetPresent(&(x.XXX_presence[0]), 3, 4)
}
func (x *OpaqueLazy) HasOpen() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 0)
}
func (x *OpaqueLazy) HasHybrid() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 1)
}
func (x *OpaqueLazy) HasOpaque() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 2)
}
func (x *OpaqueLazy) HasOptionalInt32() bool {
if x == nil {
return false
}
return protoimpl.X.Present(&(x.XXX_presence[0]), 3)
}
func (x *OpaqueLazy) ClearOpen() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0)
protoimpl.X.AtomicSetPointer(&x.xxx_hidden_Open, (*OpenLazy)(nil))
}
func (x *OpaqueLazy) ClearHybrid() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1)
protoimpl.X.AtomicSetPointer(&x.xxx_hidden_Hybrid, (*HybridLazy)(nil))
}
func (x *OpaqueLazy) ClearOpaque() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2)
protoimpl.X.AtomicSetPointer(&x.xxx_hidden_Opaque, (*OpaqueLazy)(nil))
}
func (x *OpaqueLazy) ClearOptionalInt32() {
protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 3)
x.xxx_hidden_OptionalInt32 = 0
}
type OpaqueLazy_builder struct {
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
// These fields allow for arbitrary mixing.
Open *OpenLazy
Hybrid *HybridLazy
Opaque *OpaqueLazy
OptionalInt32 *int32
}
func (b0 OpaqueLazy_builder) Build() *OpaqueLazy {
m0 := &OpaqueLazy{}
b, x := &b0, m0
_, _ = b, x
if b.Open != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 4)
x.xxx_hidden_Open = b.Open
}
if b.Hybrid != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 4)
x.xxx_hidden_Hybrid = b.Hybrid
}
if b.Opaque != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 4)
x.xxx_hidden_Opaque = b.Opaque
}
if b.OptionalInt32 != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 4)
x.xxx_hidden_OptionalInt32 = *b.OptionalInt32
}
return m0
}
var File_internal_testprotos_mixed_mixed_proto protoreflect.FileDescriptor
var file_internal_testprotos_mixed_mixed_proto_rawDesc = []byte{
0x0a, 0x25, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x69, 0x78, 0x65, 0x64, 0x2f, 0x6d, 0x69, 0x78, 0x65,
0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 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, 0xcc,
0x01, 0x0a, 0x04, 0x4f, 0x70, 0x65, 0x6e, 0x12, 0x2c, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x52,
0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x32, 0x0a, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x79, 0x62, 0x72, 0x69,
0x64, 0x52, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x6f, 0x70, 0x61,
0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f,
0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x25, 0x0a,
0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18,
0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x49,
0x6e, 0x74, 0x33, 0x32, 0x3a, 0x07, 0x62, 0x05, 0xd2, 0x3e, 0x02, 0x10, 0x01, 0x22, 0xce, 0x01,
0x0a, 0x06, 0x48, 0x79, 0x62, 0x72, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x65, 0x6e,
0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x32, 0x0a, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x79, 0x62, 0x72,
0x69, 0x64, 0x52, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e,
0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x25,
0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32,
0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
0x49, 0x6e, 0x74, 0x33, 0x32, 0x3a, 0x07, 0x62, 0x05, 0xd2, 0x3e, 0x02, 0x10, 0x02, 0x22, 0xce,
0x01, 0x0a, 0x06, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x04, 0x6f, 0x70, 0x65,
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x65,
0x6e, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x32, 0x0a, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x79, 0x62,
0x72, 0x69, 0x64, 0x52, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x6f,
0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74,
0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12,
0x25, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33,
0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61,
0x6c, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x3a, 0x07, 0x62, 0x05, 0xd2, 0x3e, 0x02, 0x10, 0x03, 0x22,
0xe8, 0x01, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x6e, 0x4c, 0x61, 0x7a, 0x79, 0x12, 0x34, 0x0a, 0x04,
0x6f, 0x70, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e,
0x4f, 0x70, 0x65, 0x6e, 0x4c, 0x61, 0x7a, 0x79, 0x42, 0x02, 0x28, 0x01, 0x52, 0x04, 0x6f, 0x70,
0x65, 0x6e, 0x12, 0x3a, 0x0a, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x79, 0x62, 0x72, 0x69, 0x64, 0x4c, 0x61,
0x7a, 0x79, 0x42, 0x02, 0x28, 0x01, 0x52, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x12, 0x3a,
0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e,
0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74,
0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x4c, 0x61, 0x7a, 0x79, 0x42, 0x02,
0x28, 0x01, 0x52, 0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01,
0x28, 0x05, 0x52, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x49, 0x6e, 0x74, 0x33,
0x32, 0x3a, 0x07, 0x62, 0x05, 0xd2, 0x3e, 0x02, 0x10, 0x01, 0x22, 0xea, 0x01, 0x0a, 0x0a, 0x48,
0x79, 0x62, 0x72, 0x69, 0x64, 0x4c, 0x61, 0x7a, 0x79, 0x12, 0x34, 0x0a, 0x04, 0x6f, 0x70, 0x65,
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x65,
0x6e, 0x4c, 0x61, 0x7a, 0x79, 0x42, 0x02, 0x28, 0x01, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12,
0x3a, 0x0a, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1e, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
0x74, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x79, 0x62, 0x72, 0x69, 0x64, 0x4c, 0x61, 0x7a, 0x79, 0x42,
0x02, 0x28, 0x01, 0x52, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x6f,
0x70, 0x61, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74,
0x2e, 0x4f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x4c, 0x61, 0x7a, 0x79, 0x42, 0x02, 0x28, 0x01, 0x52,
0x06, 0x6f, 0x70, 0x61, 0x71, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f,
0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52,
0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x3a, 0x07,
0x62, 0x05, 0xd2, 0x3e, 0x02, 0x10, 0x02, 0x22, 0xea, 0x01, 0x0a, 0x0a, 0x4f, 0x70, 0x61, 0x71,
0x75, 0x65, 0x4c, 0x61, 0x7a, 0x79, 0x12, 0x34, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x4c, 0x61,
0x7a, 0x79, 0x42, 0x02, 0x28, 0x01, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x3a, 0x0a, 0x06,
0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67,
0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73,
0x74, 0x2e, 0x48, 0x79, 0x62, 0x72, 0x69, 0x64, 0x4c, 0x61, 0x7a, 0x79, 0x42, 0x02, 0x28, 0x01,
0x52, 0x06, 0x68, 0x79, 0x62, 0x72, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x6f, 0x70, 0x61, 0x71,
0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x4c, 0x61, 0x7a, 0x79, 0x42, 0x02, 0x28, 0x01, 0x52, 0x06, 0x6f, 0x70,
0x61, 0x71, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c,
0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6f, 0x70,
0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x3a, 0x07, 0x62, 0x05, 0xd2,
0x3e, 0x02, 0x10, 0x03, 0x42, 0x36, 0x5a, 0x34, 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, 0x69, 0x78, 0x65, 0x64, 0x62, 0x08, 0x65, 0x64,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}
var (
file_internal_testprotos_mixed_mixed_proto_rawDescOnce sync.Once
file_internal_testprotos_mixed_mixed_proto_rawDescData = file_internal_testprotos_mixed_mixed_proto_rawDesc
)
func file_internal_testprotos_mixed_mixed_proto_rawDescGZIP() []byte {
file_internal_testprotos_mixed_mixed_proto_rawDescOnce.Do(func() {
file_internal_testprotos_mixed_mixed_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_mixed_mixed_proto_rawDescData)
})
return file_internal_testprotos_mixed_mixed_proto_rawDescData
}
var file_internal_testprotos_mixed_mixed_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_internal_testprotos_mixed_mixed_proto_goTypes = []any{
(*Open)(nil), // 0: goproto.proto.test.Open
(*Hybrid)(nil), // 1: goproto.proto.test.Hybrid
(*Opaque)(nil), // 2: goproto.proto.test.Opaque
(*OpenLazy)(nil), // 3: goproto.proto.test.OpenLazy
(*HybridLazy)(nil), // 4: goproto.proto.test.HybridLazy
(*OpaqueLazy)(nil), // 5: goproto.proto.test.OpaqueLazy
}
var file_internal_testprotos_mixed_mixed_proto_depIdxs = []int32{
0, // 0: goproto.proto.test.Open.open:type_name -> goproto.proto.test.Open
1, // 1: goproto.proto.test.Open.hybrid:type_name -> goproto.proto.test.Hybrid
2, // 2: goproto.proto.test.Open.opaque:type_name -> goproto.proto.test.Opaque
0, // 3: goproto.proto.test.Hybrid.open:type_name -> goproto.proto.test.Open
1, // 4: goproto.proto.test.Hybrid.hybrid:type_name -> goproto.proto.test.Hybrid
2, // 5: goproto.proto.test.Hybrid.opaque:type_name -> goproto.proto.test.Opaque
0, // 6: goproto.proto.test.Opaque.open:type_name -> goproto.proto.test.Open
1, // 7: goproto.proto.test.Opaque.hybrid:type_name -> goproto.proto.test.Hybrid
2, // 8: goproto.proto.test.Opaque.opaque:type_name -> goproto.proto.test.Opaque
3, // 9: goproto.proto.test.OpenLazy.open:type_name -> goproto.proto.test.OpenLazy
4, // 10: goproto.proto.test.OpenLazy.hybrid:type_name -> goproto.proto.test.HybridLazy
5, // 11: goproto.proto.test.OpenLazy.opaque:type_name -> goproto.proto.test.OpaqueLazy
3, // 12: goproto.proto.test.HybridLazy.open:type_name -> goproto.proto.test.OpenLazy
4, // 13: goproto.proto.test.HybridLazy.hybrid:type_name -> goproto.proto.test.HybridLazy
5, // 14: goproto.proto.test.HybridLazy.opaque:type_name -> goproto.proto.test.OpaqueLazy
3, // 15: goproto.proto.test.OpaqueLazy.open:type_name -> goproto.proto.test.OpenLazy
4, // 16: goproto.proto.test.OpaqueLazy.hybrid:type_name -> goproto.proto.test.HybridLazy
5, // 17: goproto.proto.test.OpaqueLazy.opaque:type_name -> goproto.proto.test.OpaqueLazy
18, // [18:18] is the sub-list for method output_type
18, // [18:18] is the sub-list for method input_type
18, // [18:18] is the sub-list for extension type_name
18, // [18:18] is the sub-list for extension extendee
0, // [0:18] is the sub-list for field type_name
}
func init() { file_internal_testprotos_mixed_mixed_proto_init() }
func file_internal_testprotos_mixed_mixed_proto_init() {
if File_internal_testprotos_mixed_mixed_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_internal_testprotos_mixed_mixed_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_internal_testprotos_mixed_mixed_proto_goTypes,
DependencyIndexes: file_internal_testprotos_mixed_mixed_proto_depIdxs,
MessageInfos: file_internal_testprotos_mixed_mixed_proto_msgTypes,
}.Build()
File_internal_testprotos_mixed_mixed_proto = out.File
file_internal_testprotos_mixed_mixed_proto_rawDesc = nil
file_internal_testprotos_mixed_mixed_proto_goTypes = nil
file_internal_testprotos_mixed_mixed_proto_depIdxs = nil
}

View File

@ -66,17 +66,16 @@ func (Article_Status) EnumDescriptor() ([]byte, []int) {
}
type Article struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Author string `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
Date *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
Status Article_Status `protobuf:"varint,8,opt,name=status,proto3,enum=google.golang.org.Article_Status" json:"status,omitempty"`
Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
Attachments []*anypb.Any `protobuf:"bytes,6,rep,name=attachments,proto3" json:"attachments,omitempty"`
unknownFields protoimpl.UnknownFields
Author string `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
Date *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
Status Article_Status `protobuf:"varint,8,opt,name=status,proto3,enum=google.golang.org.Article_Status" json:"status,omitempty"`
Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
Attachments []*anypb.Any `protobuf:"bytes,6,rep,name=attachments,proto3" json:"attachments,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Article) Reset() {
@ -159,12 +158,11 @@ func (x *Article) GetAttachments() []*anypb.Any {
}
type BinaryAttachment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *BinaryAttachment) Reset() {
@ -212,12 +210,11 @@ func (x *BinaryAttachment) GetData() []byte {
}
type KeyValueAttachment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Data map[string]string `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Data map[string]string `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
sizeCache protoimpl.SizeCache
}
func (x *KeyValueAttachment) Reset() {

View File

@ -17,18 +17,17 @@ import (
)
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
extensionFields protoimpl.ExtensionFields
Field_2 *string `protobuf:"bytes,2,opt,name=field_2,json=field2" json:"field_2,omitempty"`
Field_1 *string `protobuf:"bytes,1,opt,name=field_1,json=field1" json:"field_1,omitempty"`
// Types that are assignable to Oneof_1:
state protoimpl.MessageState `protogen:"open.v1"`
Field_2 *string `protobuf:"bytes,2,opt,name=field_2,json=field2" json:"field_2,omitempty"`
Field_1 *string `protobuf:"bytes,1,opt,name=field_1,json=field1" json:"field_1,omitempty"`
// Types that are valid to be assigned to Oneof_1:
//
// *Message_Field_10
Oneof_1 isMessage_Oneof_1 `protobuf_oneof:"oneof_1"`
Field_20 *string `protobuf:"bytes,20,opt,name=field_20,json=field20" json:"field_20,omitempty"`
Oneof_1 isMessage_Oneof_1 `protobuf_oneof:"oneof_1"`
Field_20 *string `protobuf:"bytes,20,opt,name=field_20,json=field20" json:"field_20,omitempty"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message) Reset() {
@ -75,16 +74,18 @@ func (x *Message) GetField_1() string {
return ""
}
func (m *Message) GetOneof_1() isMessage_Oneof_1 {
if m != nil {
return m.Oneof_1
func (x *Message) GetOneof_1() isMessage_Oneof_1 {
if x != nil {
return x.Oneof_1
}
return nil
}
func (x *Message) GetField_10() string {
if x, ok := x.GetOneof_1().(*Message_Field_10); ok {
return x.Field_10
if x != nil {
if x, ok := x.Oneof_1.(*Message_Field_10); ok {
return x.Field_10
}
}
return ""
}

View File

@ -16,11 +16,10 @@ import (
)
type OtherMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
I32 *int32 `protobuf:"varint,1,opt,name=i32" json:"i32,omitempty"`
unknownFields protoimpl.UnknownFields
I32 *int32 `protobuf:"varint,1,opt,name=i32" json:"i32,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *OtherMessage) Reset() {

View File

@ -15,12 +15,11 @@ import (
)
type MyMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
I32 *int32 `protobuf:"varint,1,opt,name=i32" json:"i32,omitempty"`
extensionFields protoimpl.ExtensionFields
I32 *int32 `protobuf:"varint,1,opt,name=i32" json:"i32,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MyMessage) Reset() {

View File

@ -176,10 +176,10 @@ func (Enum3) EnumDescriptor() ([]byte, []int) {
}
type Message1 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
state protoimpl.MessageState `protogen:"open.v1"`
extensionFields protoimpl.ExtensionFields
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message1) Reset() {
@ -213,9 +213,9 @@ func (*Message1) Descriptor() ([]byte, []int) {
}
type Message2 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message2) Reset() {
@ -249,9 +249,9 @@ func (*Message2) Descriptor() ([]byte, []int) {
}
type Message3 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message3) Reset() {
@ -285,11 +285,10 @@ func (*Message3) Descriptor() ([]byte, []int) {
}
type Message4 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
unknownFields protoimpl.UnknownFields
BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Message4) Reset() {

View File

@ -15,11 +15,10 @@ import (
)
type Int32 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *int32 `protobuf:"varint,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *int32 `protobuf:"varint,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Int32) Reset() {
@ -60,11 +59,10 @@ func (x *Int32) GetV() int32 {
}
type Int64 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *int64 `protobuf:"varint,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *int64 `protobuf:"varint,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Int64) Reset() {
@ -105,11 +103,10 @@ func (x *Int64) GetV() int64 {
}
type Uint32 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *uint32 `protobuf:"varint,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *uint32 `protobuf:"varint,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Uint32) Reset() {
@ -150,11 +147,10 @@ func (x *Uint32) GetV() uint32 {
}
type Uint64 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *uint64 `protobuf:"varint,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *uint64 `protobuf:"varint,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Uint64) Reset() {
@ -195,11 +191,10 @@ func (x *Uint64) GetV() uint64 {
}
type Sint32 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *int32 `protobuf:"zigzag32,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *int32 `protobuf:"zigzag32,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Sint32) Reset() {
@ -240,11 +235,10 @@ func (x *Sint32) GetV() int32 {
}
type Sint64 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *int64 `protobuf:"zigzag64,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *int64 `protobuf:"zigzag64,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Sint64) Reset() {
@ -285,11 +279,10 @@ func (x *Sint64) GetV() int64 {
}
type Fixed32 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *uint32 `protobuf:"fixed32,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *uint32 `protobuf:"fixed32,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Fixed32) Reset() {
@ -330,11 +323,10 @@ func (x *Fixed32) GetV() uint32 {
}
type Fixed64 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *uint64 `protobuf:"fixed64,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *uint64 `protobuf:"fixed64,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Fixed64) Reset() {
@ -375,11 +367,10 @@ func (x *Fixed64) GetV() uint64 {
}
type Float struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *float32 `protobuf:"fixed32,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *float32 `protobuf:"fixed32,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Float) Reset() {
@ -420,11 +411,10 @@ func (x *Float) GetV() float32 {
}
type Double struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *float64 `protobuf:"fixed64,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *float64 `protobuf:"fixed64,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Double) Reset() {
@ -465,11 +455,10 @@ func (x *Double) GetV() float64 {
}
type Bool struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *bool `protobuf:"varint,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *bool `protobuf:"varint,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Bool) Reset() {
@ -510,11 +499,10 @@ func (x *Bool) GetV() bool {
}
type String struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *string `protobuf:"bytes,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *string `protobuf:"bytes,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *String) Reset() {
@ -555,11 +543,10 @@ func (x *String) GetV() string {
}
type Bytes struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V []byte `protobuf:"bytes,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V []byte `protobuf:"bytes,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Bytes) Reset() {
@ -600,11 +587,10 @@ func (x *Bytes) GetV() []byte {
}
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *Message_M `protobuf:"bytes,1,req,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *Message_M `protobuf:"bytes,1,req,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Message) Reset() {
@ -645,11 +631,10 @@ func (x *Message) GetV() *Message_M {
}
type Group struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Group *Group_Group `protobuf:"group,1,req,name=Group,json=group" json:"group,omitempty"`
unknownFields protoimpl.UnknownFields
Group *Group_Group `protobuf:"group,1,req,name=Group,json=group" json:"group,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Group) Reset() {
@ -690,9 +675,9 @@ func (x *Group) GetGroup() *Group_Group {
}
type Message_M struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Message_M) Reset() {
@ -726,11 +711,10 @@ func (*Message_M) Descriptor() ([]byte, []int) {
}
type Group_Group struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
V *int32 `protobuf:"varint,1,opt,name=v" json:"v,omitempty"`
unknownFields protoimpl.UnknownFields
V *int32 `protobuf:"varint,1,opt,name=v" json:"v,omitempty"`
sizeCache protoimpl.SizeCache
}
func (x *Group_Group) Reset() {
@ -777,40 +761,48 @@ var file_internal_testprotos_required_required_proto_rawDesc = []byte{
0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x2f, 0x72,
0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67,
0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73,
0x74, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x22, 0x15, 0x0a, 0x05, 0x49, 0x6e, 0x74,
0x33, 0x32, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x02, 0x28, 0x05, 0x52, 0x01, 0x76,
0x22, 0x15, 0x0a, 0x05, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01,
0x20, 0x02, 0x28, 0x03, 0x52, 0x01, 0x76, 0x22, 0x16, 0x0a, 0x06, 0x55, 0x69, 0x6e, 0x74, 0x33,
0x32, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x01, 0x76, 0x22,
0x16, 0x0a, 0x06, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01,
0x20, 0x02, 0x28, 0x04, 0x52, 0x01, 0x76, 0x22, 0x16, 0x0a, 0x06, 0x53, 0x69, 0x6e, 0x74, 0x33,
0x32, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x02, 0x28, 0x11, 0x52, 0x01, 0x76, 0x22,
0x16, 0x0a, 0x06, 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01,
0x20, 0x02, 0x28, 0x12, 0x52, 0x01, 0x76, 0x22, 0x17, 0x0a, 0x07, 0x46, 0x69, 0x78, 0x65, 0x64,
0x33, 0x32, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x02, 0x28, 0x07, 0x52, 0x01, 0x76,
0x22, 0x17, 0x0a, 0x07, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x0c, 0x0a, 0x01, 0x76,
0x18, 0x01, 0x20, 0x02, 0x28, 0x06, 0x52, 0x01, 0x76, 0x22, 0x15, 0x0a, 0x05, 0x46, 0x6c, 0x6f,
0x61, 0x74, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x02, 0x28, 0x02, 0x52, 0x01, 0x76,
0x22, 0x16, 0x0a, 0x06, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18,
0x01, 0x20, 0x02, 0x28, 0x01, 0x52, 0x01, 0x76, 0x22, 0x14, 0x0a, 0x04, 0x42, 0x6f, 0x6f, 0x6c,
0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x02, 0x28, 0x08, 0x52, 0x01, 0x76, 0x22, 0x16,
0x0a, 0x06, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20,
0x02, 0x28, 0x09, 0x52, 0x01, 0x76, 0x22, 0x15, 0x0a, 0x05, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12,
0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x01, 0x76, 0x22, 0x43, 0x0a,
0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20,
0x02, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64,
0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x52, 0x01, 0x76, 0x1a, 0x03, 0x0a,
0x01, 0x4d, 0x22, 0x5d, 0x0a, 0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3d, 0x0a, 0x05, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0a, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x72,
0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x15, 0x0a, 0x05, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x12, 0x0c, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01,
0x76, 0x42, 0x39, 0x5a, 0x37, 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, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64,
0x74, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x22, 0x1c, 0x0a, 0x05, 0x49, 0x6e, 0x74,
0x33, 0x32, 0x12, 0x13, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x05, 0xaa,
0x01, 0x02, 0x08, 0x03, 0x52, 0x01, 0x76, 0x22, 0x1c, 0x0a, 0x05, 0x49, 0x6e, 0x74, 0x36, 0x34,
0x12, 0x13, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x05, 0xaa, 0x01, 0x02,
0x08, 0x03, 0x52, 0x01, 0x76, 0x22, 0x1d, 0x0a, 0x06, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
0x13, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08,
0x03, 0x52, 0x01, 0x76, 0x22, 0x1d, 0x0a, 0x06, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x13,
0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03,
0x52, 0x01, 0x76, 0x22, 0x1d, 0x0a, 0x06, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x13, 0x0a,
0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x11, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03, 0x52,
0x01, 0x76, 0x22, 0x1d, 0x0a, 0x06, 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x13, 0x0a, 0x01,
0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x12, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03, 0x52, 0x01,
0x76, 0x22, 0x1e, 0x0a, 0x07, 0x46, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x13, 0x0a, 0x01,
0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x07, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03, 0x52, 0x01,
0x76, 0x22, 0x1e, 0x0a, 0x07, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x13, 0x0a, 0x01,
0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03, 0x52, 0x01,
0x76, 0x22, 0x1c, 0x0a, 0x05, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x13, 0x0a, 0x01, 0x76, 0x18,
0x01, 0x20, 0x01, 0x28, 0x02, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03, 0x52, 0x01, 0x76, 0x22,
0x1d, 0x0a, 0x06, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x13, 0x0a, 0x01, 0x76, 0x18, 0x01,
0x20, 0x01, 0x28, 0x01, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03, 0x52, 0x01, 0x76, 0x22, 0x1b,
0x0a, 0x04, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x13, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28,
0x08, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03, 0x52, 0x01, 0x76, 0x22, 0x1d, 0x0a, 0x06, 0x53,
0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x13, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03, 0x52, 0x01, 0x76, 0x22, 0x1c, 0x0a, 0x05, 0x42, 0x79,
0x74, 0x65, 0x73, 0x12, 0x13, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x05,
0xaa, 0x01, 0x02, 0x08, 0x03, 0x52, 0x01, 0x76, 0x22, 0x4a, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25,
0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74,
0x65, 0x73, 0x74, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x2e, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x2e, 0x4d, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03, 0x52, 0x01, 0x76, 0x1a,
0x03, 0x0a, 0x01, 0x4d, 0x22, 0x66, 0x0a, 0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x46, 0x0a,
0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67,
0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73,
0x74, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x07, 0xaa, 0x01, 0x04, 0x08, 0x03, 0x28, 0x02, 0x52, 0x05,
0x67, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x15, 0x0a, 0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0c,
0x0a, 0x01, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x76, 0x42, 0x39, 0x5a, 0x37,
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, 0x72,
0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x70, 0xe8, 0x07,
}
var (

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,79 @@
// Copyright 2020 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.
edition = "2023";
package hybrid.goproto.proto.testrequired;
option go_package = "google.golang.org/protobuf/internal/testprotos/required/required_hybrid";
import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_HYBRID;
message Int32 {
int32 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Int64 {
int64 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Uint32 {
uint32 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Uint64 {
uint64 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Sint32 {
sint32 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Sint64 {
sint64 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Fixed32 {
fixed32 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Fixed64 {
fixed64 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Float {
float v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Double {
double v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Bool {
bool v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message String {
string v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Bytes {
bytes v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Message {
message M {}
M v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Group {
message Group {
int32 v = 1;
}
Group group = 1 [
features.field_presence = LEGACY_REQUIRED,
features.message_encoding = DELIMITED
];
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,79 @@
// Copyright 2020 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.
edition = "2023";
package opaque.goproto.proto.testrequired;
option go_package = "google.golang.org/protobuf/internal/testprotos/required/required_opaque";
import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_OPAQUE;
message Int32 {
int32 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Int64 {
int64 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Uint32 {
uint32 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Uint64 {
uint64 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Sint32 {
sint32 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Sint64 {
sint64 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Fixed32 {
fixed32 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Fixed64 {
fixed64 v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Float {
float v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Double {
double v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Bool {
bool v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message String {
string v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Bytes {
bytes v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Message {
message M {}
M v = 1 [features.field_presence = LEGACY_REQUIRED];
}
message Group {
message Group {
int32 v = 1;
}
Group group = 1 [
features.field_presence = LEGACY_REQUIRED,
features.message_encoding = DELIMITED
];
}

File diff suppressed because it is too large Load Diff

View File

@ -68,9 +68,9 @@ func (ImportEnum) EnumDescriptor() ([]byte, []int) {
}
type ImportMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ImportMessage) Reset() {

Some files were not shown because too many files have changed in this diff Show More