github.com/hoveychen/protoreflect@v1.4.7-0.20221103114119-0b4b3385ec76/internal/testprotos/desc_test2.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: desc_test2.proto
     3  
     4  package testprotos
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/golang/protobuf/proto"
     9  	nopkg "github.com/hoveychen/protoreflect/internal/testprotos/nopkg"
    10  	pkg "github.com/hoveychen/protoreflect/internal/testprotos/pkg"
    11  	math "math"
    12  )
    13  
    14  // Reference imports to suppress errors if they are not otherwise used.
    15  var _ = proto.Marshal
    16  var _ = fmt.Errorf
    17  var _ = math.Inf
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the proto package it is being compiled against.
    21  // A compilation error at this line likely means your copy of the
    22  // proto package needs to be updated.
    23  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    24  
    25  type Frobnitz struct {
    26  	A *TestMessage        `protobuf:"bytes,1,opt,name=a" json:"a,omitempty"`
    27  	B *AnotherTestMessage `protobuf:"bytes,2,opt,name=b" json:"b,omitempty"`
    28  	// Types that are valid to be assigned to Abc:
    29  	//	*Frobnitz_C1
    30  	//	*Frobnitz_C2
    31  	Abc isFrobnitz_Abc             `protobuf_oneof:"abc"`
    32  	D   *TestMessage_NestedMessage `protobuf:"bytes,5,opt,name=d" json:"d,omitempty"`
    33  	E   *TestMessage_NestedEnum    `protobuf:"varint,6,opt,name=e,enum=testprotos.TestMessage_NestedEnum,def=2" json:"e,omitempty"`
    34  	F   []string                   `protobuf:"bytes,7,rep,name=f" json:"f,omitempty"` // Deprecated: Do not use.
    35  	// Types that are valid to be assigned to Def:
    36  	//	*Frobnitz_G1
    37  	//	*Frobnitz_G2
    38  	//	*Frobnitz_G3
    39  	Def                  isFrobnitz_Def `protobuf_oneof:"def"`
    40  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    41  	XXX_unrecognized     []byte         `json:"-"`
    42  	XXX_sizecache        int32          `json:"-"`
    43  }
    44  
    45  func (m *Frobnitz) Reset()         { *m = Frobnitz{} }
    46  func (m *Frobnitz) String() string { return proto.CompactTextString(m) }
    47  func (*Frobnitz) ProtoMessage()    {}
    48  func (*Frobnitz) Descriptor() ([]byte, []int) {
    49  	return fileDescriptor_170871a2db6bf927, []int{0}
    50  }
    51  
    52  func (m *Frobnitz) XXX_Unmarshal(b []byte) error {
    53  	return xxx_messageInfo_Frobnitz.Unmarshal(m, b)
    54  }
    55  func (m *Frobnitz) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    56  	return xxx_messageInfo_Frobnitz.Marshal(b, m, deterministic)
    57  }
    58  func (m *Frobnitz) XXX_Merge(src proto.Message) {
    59  	xxx_messageInfo_Frobnitz.Merge(m, src)
    60  }
    61  func (m *Frobnitz) XXX_Size() int {
    62  	return xxx_messageInfo_Frobnitz.Size(m)
    63  }
    64  func (m *Frobnitz) XXX_DiscardUnknown() {
    65  	xxx_messageInfo_Frobnitz.DiscardUnknown(m)
    66  }
    67  
    68  var xxx_messageInfo_Frobnitz proto.InternalMessageInfo
    69  
    70  const Default_Frobnitz_E TestMessage_NestedEnum = TestMessage_VALUE2
    71  
    72  func (m *Frobnitz) GetA() *TestMessage {
    73  	if m != nil {
    74  		return m.A
    75  	}
    76  	return nil
    77  }
    78  
    79  func (m *Frobnitz) GetB() *AnotherTestMessage {
    80  	if m != nil {
    81  		return m.B
    82  	}
    83  	return nil
    84  }
    85  
    86  type isFrobnitz_Abc interface {
    87  	isFrobnitz_Abc()
    88  }
    89  
    90  type Frobnitz_C1 struct {
    91  	C1 *TestMessage_NestedMessage `protobuf:"bytes,3,opt,name=c1,oneof"`
    92  }
    93  
    94  type Frobnitz_C2 struct {
    95  	C2 TestMessage_NestedEnum `protobuf:"varint,4,opt,name=c2,enum=testprotos.TestMessage_NestedEnum,oneof"`
    96  }
    97  
    98  func (*Frobnitz_C1) isFrobnitz_Abc() {}
    99  
   100  func (*Frobnitz_C2) isFrobnitz_Abc() {}
   101  
   102  func (m *Frobnitz) GetAbc() isFrobnitz_Abc {
   103  	if m != nil {
   104  		return m.Abc
   105  	}
   106  	return nil
   107  }
   108  
   109  func (m *Frobnitz) GetC1() *TestMessage_NestedMessage {
   110  	if x, ok := m.GetAbc().(*Frobnitz_C1); ok {
   111  		return x.C1
   112  	}
   113  	return nil
   114  }
   115  
   116  func (m *Frobnitz) GetC2() TestMessage_NestedEnum {
   117  	if x, ok := m.GetAbc().(*Frobnitz_C2); ok {
   118  		return x.C2
   119  	}
   120  	return TestMessage_VALUE1
   121  }
   122  
   123  func (m *Frobnitz) GetD() *TestMessage_NestedMessage {
   124  	if m != nil {
   125  		return m.D
   126  	}
   127  	return nil
   128  }
   129  
   130  func (m *Frobnitz) GetE() TestMessage_NestedEnum {
   131  	if m != nil && m.E != nil {
   132  		return *m.E
   133  	}
   134  	return Default_Frobnitz_E
   135  }
   136  
   137  // Deprecated: Do not use.
   138  func (m *Frobnitz) GetF() []string {
   139  	if m != nil {
   140  		return m.F
   141  	}
   142  	return nil
   143  }
   144  
   145  type isFrobnitz_Def interface {
   146  	isFrobnitz_Def()
   147  }
   148  
   149  type Frobnitz_G1 struct {
   150  	G1 int32 `protobuf:"varint,8,opt,name=g1,oneof"`
   151  }
   152  
   153  type Frobnitz_G2 struct {
   154  	G2 int32 `protobuf:"zigzag32,9,opt,name=g2,oneof"`
   155  }
   156  
   157  type Frobnitz_G3 struct {
   158  	G3 uint32 `protobuf:"varint,10,opt,name=g3,oneof"`
   159  }
   160  
   161  func (*Frobnitz_G1) isFrobnitz_Def() {}
   162  
   163  func (*Frobnitz_G2) isFrobnitz_Def() {}
   164  
   165  func (*Frobnitz_G3) isFrobnitz_Def() {}
   166  
   167  func (m *Frobnitz) GetDef() isFrobnitz_Def {
   168  	if m != nil {
   169  		return m.Def
   170  	}
   171  	return nil
   172  }
   173  
   174  func (m *Frobnitz) GetG1() int32 {
   175  	if x, ok := m.GetDef().(*Frobnitz_G1); ok {
   176  		return x.G1
   177  	}
   178  	return 0
   179  }
   180  
   181  func (m *Frobnitz) GetG2() int32 {
   182  	if x, ok := m.GetDef().(*Frobnitz_G2); ok {
   183  		return x.G2
   184  	}
   185  	return 0
   186  }
   187  
   188  func (m *Frobnitz) GetG3() uint32 {
   189  	if x, ok := m.GetDef().(*Frobnitz_G3); ok {
   190  		return x.G3
   191  	}
   192  	return 0
   193  }
   194  
   195  // XXX_OneofWrappers is for the internal use of the proto package.
   196  func (*Frobnitz) XXX_OneofWrappers() []interface{} {
   197  	return []interface{}{
   198  		(*Frobnitz_C1)(nil),
   199  		(*Frobnitz_C2)(nil),
   200  		(*Frobnitz_G1)(nil),
   201  		(*Frobnitz_G2)(nil),
   202  		(*Frobnitz_G3)(nil),
   203  	}
   204  }
   205  
   206  type Whatchamacallit struct {
   207  	Foos                 *pkg.Foo `protobuf:"varint,1,req,name=foos,enum=hoveychen.protoreflect.desc.Foo" json:"foos,omitempty"`
   208  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   209  	XXX_unrecognized     []byte   `json:"-"`
   210  	XXX_sizecache        int32    `json:"-"`
   211  }
   212  
   213  func (m *Whatchamacallit) Reset()         { *m = Whatchamacallit{} }
   214  func (m *Whatchamacallit) String() string { return proto.CompactTextString(m) }
   215  func (*Whatchamacallit) ProtoMessage()    {}
   216  func (*Whatchamacallit) Descriptor() ([]byte, []int) {
   217  	return fileDescriptor_170871a2db6bf927, []int{1}
   218  }
   219  
   220  func (m *Whatchamacallit) XXX_Unmarshal(b []byte) error {
   221  	return xxx_messageInfo_Whatchamacallit.Unmarshal(m, b)
   222  }
   223  func (m *Whatchamacallit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   224  	return xxx_messageInfo_Whatchamacallit.Marshal(b, m, deterministic)
   225  }
   226  func (m *Whatchamacallit) XXX_Merge(src proto.Message) {
   227  	xxx_messageInfo_Whatchamacallit.Merge(m, src)
   228  }
   229  func (m *Whatchamacallit) XXX_Size() int {
   230  	return xxx_messageInfo_Whatchamacallit.Size(m)
   231  }
   232  func (m *Whatchamacallit) XXX_DiscardUnknown() {
   233  	xxx_messageInfo_Whatchamacallit.DiscardUnknown(m)
   234  }
   235  
   236  var xxx_messageInfo_Whatchamacallit proto.InternalMessageInfo
   237  
   238  func (m *Whatchamacallit) GetFoos() pkg.Foo {
   239  	if m != nil && m.Foos != nil {
   240  		return *m.Foos
   241  	}
   242  	return pkg.Foo_ABC
   243  }
   244  
   245  type Whatzit struct {
   246  	Gyzmeau              []*pkg.Bar `protobuf:"bytes,1,rep,name=gyzmeau" json:"gyzmeau,omitempty"`
   247  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
   248  	XXX_unrecognized     []byte     `json:"-"`
   249  	XXX_sizecache        int32      `json:"-"`
   250  }
   251  
   252  func (m *Whatzit) Reset()         { *m = Whatzit{} }
   253  func (m *Whatzit) String() string { return proto.CompactTextString(m) }
   254  func (*Whatzit) ProtoMessage()    {}
   255  func (*Whatzit) Descriptor() ([]byte, []int) {
   256  	return fileDescriptor_170871a2db6bf927, []int{2}
   257  }
   258  
   259  func (m *Whatzit) XXX_Unmarshal(b []byte) error {
   260  	return xxx_messageInfo_Whatzit.Unmarshal(m, b)
   261  }
   262  func (m *Whatzit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   263  	return xxx_messageInfo_Whatzit.Marshal(b, m, deterministic)
   264  }
   265  func (m *Whatzit) XXX_Merge(src proto.Message) {
   266  	xxx_messageInfo_Whatzit.Merge(m, src)
   267  }
   268  func (m *Whatzit) XXX_Size() int {
   269  	return xxx_messageInfo_Whatzit.Size(m)
   270  }
   271  func (m *Whatzit) XXX_DiscardUnknown() {
   272  	xxx_messageInfo_Whatzit.DiscardUnknown(m)
   273  }
   274  
   275  var xxx_messageInfo_Whatzit proto.InternalMessageInfo
   276  
   277  func (m *Whatzit) GetGyzmeau() []*pkg.Bar {
   278  	if m != nil {
   279  		return m.Gyzmeau
   280  	}
   281  	return nil
   282  }
   283  
   284  type GroupX struct {
   285  	Groupxi              *int64   `protobuf:"varint,1041,opt,name=groupxi" json:"groupxi,omitempty"`
   286  	Groupxs              *string  `protobuf:"bytes,1042,opt,name=groupxs" json:"groupxs,omitempty"`
   287  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   288  	XXX_unrecognized     []byte   `json:"-"`
   289  	XXX_sizecache        int32    `json:"-"`
   290  }
   291  
   292  func (m *GroupX) Reset()         { *m = GroupX{} }
   293  func (m *GroupX) String() string { return proto.CompactTextString(m) }
   294  func (*GroupX) ProtoMessage()    {}
   295  func (*GroupX) Descriptor() ([]byte, []int) {
   296  	return fileDescriptor_170871a2db6bf927, []int{3}
   297  }
   298  
   299  func (m *GroupX) XXX_Unmarshal(b []byte) error {
   300  	return xxx_messageInfo_GroupX.Unmarshal(m, b)
   301  }
   302  func (m *GroupX) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   303  	return xxx_messageInfo_GroupX.Marshal(b, m, deterministic)
   304  }
   305  func (m *GroupX) XXX_Merge(src proto.Message) {
   306  	xxx_messageInfo_GroupX.Merge(m, src)
   307  }
   308  func (m *GroupX) XXX_Size() int {
   309  	return xxx_messageInfo_GroupX.Size(m)
   310  }
   311  func (m *GroupX) XXX_DiscardUnknown() {
   312  	xxx_messageInfo_GroupX.DiscardUnknown(m)
   313  }
   314  
   315  var xxx_messageInfo_GroupX proto.InternalMessageInfo
   316  
   317  func (m *GroupX) GetGroupxi() int64 {
   318  	if m != nil && m.Groupxi != nil {
   319  		return *m.Groupxi
   320  	}
   321  	return 0
   322  }
   323  
   324  func (m *GroupX) GetGroupxs() string {
   325  	if m != nil && m.Groupxs != nil {
   326  		return *m.Groupxs
   327  	}
   328  	return ""
   329  }
   330  
   331  var E_Otl = &proto.ExtensionDesc{
   332  	ExtendedType:  (*nopkg.TopLevel)(nil),
   333  	ExtensionType: (*nopkg.TopLevel)(nil),
   334  	Field:         100,
   335  	Name:          "testprotos.otl",
   336  	Tag:           "bytes,100,opt,name=otl",
   337  	Filename:      "desc_test2.proto",
   338  }
   339  
   340  var E_Groupx = &proto.ExtensionDesc{
   341  	ExtendedType:  (*nopkg.TopLevel)(nil),
   342  	ExtensionType: (*GroupX)(nil),
   343  	Field:         104,
   344  	Name:          "testprotos.groupx",
   345  	Tag:           "group,104,opt,name=GroupX",
   346  	Filename:      "desc_test2.proto",
   347  }
   348  
   349  func init() {
   350  	proto.RegisterType((*Frobnitz)(nil), "testprotos.Frobnitz")
   351  	proto.RegisterType((*Whatchamacallit)(nil), "testprotos.Whatchamacallit")
   352  	proto.RegisterType((*Whatzit)(nil), "testprotos.Whatzit")
   353  	proto.RegisterType((*GroupX)(nil), "testprotos.GroupX")
   354  	proto.RegisterExtension(E_Otl)
   355  	proto.RegisterExtension(E_Groupx)
   356  }
   357  
   358  func init() { proto.RegisterFile("desc_test2.proto", fileDescriptor_170871a2db6bf927) }
   359  
   360  var fileDescriptor_170871a2db6bf927 = []byte{
   361  	// 473 bytes of a gzipped FileDescriptorProto
   362  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x4f, 0x6f, 0xd3, 0x40,
   363  	0x10, 0xc5, 0x19, 0xbb, 0x4d, 0x9a, 0xa9, 0x28, 0x61, 0x2f, 0x5d, 0x0a, 0x42, 0x56, 0xa4, 0x22,
   364  	0x1f, 0x90, 0x83, 0x37, 0xfc, 0x53, 0x0e, 0x48, 0x09, 0x6a, 0xe9, 0xa1, 0x70, 0x58, 0x95, 0x3f,
   365  	0xe2, 0x52, 0x6d, 0xec, 0x8d, 0x6d, 0xea, 0x78, 0x2d, 0xef, 0x06, 0x41, 0xbe, 0x05, 0xf0, 0x85,
   366  	0x91, 0xd7, 0x09, 0x4e, 0x0f, 0x54, 0x70, 0xf2, 0xce, 0x7b, 0xbf, 0x99, 0xf1, 0xe8, 0x61, 0x3f,
   367  	0x96, 0x3a, 0xba, 0x34, 0x52, 0x1b, 0x16, 0x94, 0x95, 0x32, 0x8a, 0x60, 0x5d, 0xd8, 0xa7, 0x3e,
   368  	0x6a, 0xdd, 0xb0, 0x71, 0x8f, 0x0e, 0xcb, 0xab, 0x64, 0xf8, 0x47, 0xbd, 0x2c, 0xaf, 0x92, 0xb5,
   369  	0x71, 0xbf, 0x50, 0xd7, 0x2d, 0x5b, 0x37, 0xe6, 0xe0, 0x97, 0x8b, 0x7b, 0xa7, 0x95, 0x9a, 0x15,
   370  	0x99, 0x59, 0x91, 0x63, 0x04, 0x41, 0xc1, 0x03, 0x7f, 0x9f, 0x1d, 0x06, 0xed, 0xb2, 0xe0, 0x42,
   371  	0x6a, 0xf3, 0x56, 0x6a, 0x2d, 0x12, 0xc9, 0x41, 0x90, 0xc7, 0x08, 0x33, 0xea, 0x58, 0xec, 0xe1,
   372  	0x36, 0x36, 0x29, 0x94, 0x49, 0x65, 0x75, 0x8d, 0x9e, 0x91, 0x17, 0xe8, 0x44, 0x21, 0x75, 0x2d,
   373  	0x7e, 0xfc, 0x97, 0xa9, 0xc1, 0x3b, 0xa9, 0x8d, 0x8c, 0xd7, 0xd5, 0xd9, 0x2d, 0xee, 0x44, 0x21,
   374  	0x79, 0x8a, 0x4e, 0xc4, 0xe8, 0x8e, 0x07, 0xfe, 0x01, 0x1b, 0xdc, 0xdc, 0x78, 0x52, 0x2c, 0x17,
   375  	0xb6, 0x8b, 0x91, 0x11, 0x42, 0x4c, 0x77, 0xff, 0x63, 0x1b, 0x87, 0x98, 0xbc, 0x44, 0x90, 0xb4,
   376  	0xf3, 0xaf, 0x9b, 0xc6, 0x9d, 0x0f, 0x93, 0xf3, 0xf7, 0x27, 0x8c, 0x83, 0x24, 0x7d, 0x84, 0x39,
   377  	0xed, 0x7a, 0xae, 0xdf, 0x9b, 0x3a, 0x14, 0x38, 0xcc, 0x49, 0x1f, 0x9d, 0x24, 0xa4, 0x7b, 0x1e,
   378  	0xf8, 0xbb, 0x67, 0xc0, 0x9d, 0x24, 0xb4, 0x0a, 0xa3, 0x3d, 0x0f, 0xfc, 0xbb, 0x56, 0x61, 0x56,
   379  	0x19, 0x51, 0xf4, 0xc0, 0xbf, 0x6d, 0x95, 0xd1, 0x74, 0x17, 0x5d, 0x31, 0x8b, 0xea, 0x4f, 0x2c,
   380  	0xe7, 0x83, 0xd7, 0x78, 0xe7, 0x63, 0x2a, 0x4c, 0x94, 0x8a, 0x85, 0x88, 0x44, 0x9e, 0x67, 0x86,
   381  	0x3c, 0xc1, 0x9d, 0xb9, 0x52, 0x9a, 0x82, 0xe7, 0xf8, 0x07, 0xec, 0x41, 0xf0, 0x25, 0x5d, 0x2e,
   382  	0xca, 0x26, 0xc4, 0x4a, 0xce, 0x73, 0x19, 0x99, 0xa0, 0x4e, 0x38, 0x38, 0x55, 0x8a, 0x5b, 0x72,
   383  	0x30, 0xc1, 0x6e, 0x3d, 0x64, 0x95, 0x19, 0xf2, 0x1c, 0xbb, 0xc9, 0xf7, 0xd5, 0x42, 0x8a, 0x25,
   384  	0x05, 0xcf, 0xf5, 0xf7, 0x6f, 0xe8, 0x9f, 0x8a, 0x8a, 0x6f, 0xe0, 0xc1, 0x2b, 0xec, 0xbc, 0xa9,
   385  	0xd4, 0xb2, 0xfc, 0x44, 0xee, 0x61, 0x37, 0xa9, 0x5f, 0xdf, 0x32, 0xfa, 0xa3, 0xbe, 0xcd, 0xe5,
   386  	0x9b, 0xba, 0xb5, 0x34, 0xfd, 0x59, 0x5b, 0xbd, 0x8d, 0xa5, 0xc7, 0x8f, 0xd0, 0x55, 0x26, 0x27,
   387  	0xbd, 0xe0, 0x42, 0x95, 0xe7, 0xf2, 0xab, 0xcc, 0x69, 0x6c, 0x93, 0x69, 0x05, 0x5e, 0x03, 0xe3,
   388  	0x67, 0xd8, 0x69, 0x5a, 0xb6, 0xd1, 0xd4, 0x03, 0x1f, 0x19, 0xd9, 0xce, 0xa3, 0xf9, 0x19, 0xbe,
   389  	0x86, 0xa7, 0xa3, 0xcf, 0x61, 0x92, 0x99, 0x74, 0x39, 0x0b, 0x22, 0xb5, 0x18, 0xda, 0x8b, 0x86,
   390  	0xdb, 0x17, 0x0d, 0xb3, 0xc2, 0xc8, 0xaa, 0x10, 0xf9, 0xb0, 0x9d, 0xf1, 0x3b, 0x00, 0x00, 0xff,
   391  	0xff, 0x8e, 0xcf, 0x50, 0x97, 0x58, 0x03, 0x00, 0x00,
   392  }