mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-07 12:56:47 +00:00
25cc69d405
The XXX_OneofWrappers method is a simplified way to obtain the wrapper structs compared the previous XXX_OneofFuncs method which returned far more information that was strictly necessary. Change-Id: I2670506a2a8f7e8e724846b8c4083e7995371007 Reviewed-on: https://go-review.googlesource.com/c/151679 Reviewed-by: Herbie Ong <herbie@google.com>
198 lines
7.8 KiB
Go
198 lines
7.8 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: internal/testprotos/legacy/legacy.proto
|
|
|
|
package legacy
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
proto2_v0_0 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v0.0.0-20160225-2fc053c5"
|
|
proto2_v0_01 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v0.0.0-20160519-a4ab9ec5"
|
|
proto2_v1_0 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v1.0.0-20180125-92554152"
|
|
proto2_v1_1 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v1.1.0-20180430-b4deda09"
|
|
proto2_v1_2 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v1.2.0-20180814-aa810b61"
|
|
proto2_v1_21 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v1.2.1-20181126-8d0c54c1"
|
|
proto3_v0_0 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v0.0.0-20160225-2fc053c5"
|
|
proto3_v0_01 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v0.0.0-20160519-a4ab9ec5"
|
|
proto3_v1_0 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v1.0.0-20180125-92554152"
|
|
proto3_v1_1 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v1.1.0-20180430-b4deda09"
|
|
proto3_v1_2 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v1.2.0-20180814-aa810b61"
|
|
proto3_v1_21 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v1.2.1-20181126-8d0c54c1"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type Legacy struct {
|
|
F1 *proto2_v0_0.Message `protobuf:"bytes,1,opt,name=f1,proto3" json:"f1,omitempty"`
|
|
F2 *proto3_v0_0.Message `protobuf:"bytes,2,opt,name=f2,proto3" json:"f2,omitempty"`
|
|
F3 *proto2_v0_01.Message `protobuf:"bytes,3,opt,name=f3,proto3" json:"f3,omitempty"`
|
|
F4 *proto3_v0_01.Message `protobuf:"bytes,4,opt,name=f4,proto3" json:"f4,omitempty"`
|
|
F5 *proto2_v1_0.Message `protobuf:"bytes,5,opt,name=f5,proto3" json:"f5,omitempty"`
|
|
F6 *proto3_v1_0.Message `protobuf:"bytes,6,opt,name=f6,proto3" json:"f6,omitempty"`
|
|
F7 *proto2_v1_1.Message `protobuf:"bytes,7,opt,name=f7,proto3" json:"f7,omitempty"`
|
|
F8 *proto3_v1_1.Message `protobuf:"bytes,8,opt,name=f8,proto3" json:"f8,omitempty"`
|
|
F9 *proto2_v1_2.Message `protobuf:"bytes,9,opt,name=f9,proto3" json:"f9,omitempty"`
|
|
F10 *proto3_v1_2.Message `protobuf:"bytes,10,opt,name=f10,proto3" json:"f10,omitempty"`
|
|
F11 *proto2_v1_21.Message `protobuf:"bytes,11,opt,name=f11,proto3" json:"f11,omitempty"`
|
|
F12 *proto3_v1_21.Message `protobuf:"bytes,12,opt,name=f12,proto3" json:"f12,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Legacy) Reset() { *m = Legacy{} }
|
|
func (m *Legacy) String() string { return proto.CompactTextString(m) }
|
|
func (*Legacy) ProtoMessage() {}
|
|
func (*Legacy) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_5fbf266527ec81d8, []int{0}
|
|
}
|
|
|
|
func (m *Legacy) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Legacy.Unmarshal(m, b)
|
|
}
|
|
func (m *Legacy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Legacy.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Legacy) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Legacy.Merge(m, src)
|
|
}
|
|
func (m *Legacy) XXX_Size() int {
|
|
return xxx_messageInfo_Legacy.Size(m)
|
|
}
|
|
func (m *Legacy) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Legacy.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Legacy proto.InternalMessageInfo
|
|
|
|
func (m *Legacy) GetF1() *proto2_v0_0.Message {
|
|
if m != nil {
|
|
return m.F1
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF2() *proto3_v0_0.Message {
|
|
if m != nil {
|
|
return m.F2
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF3() *proto2_v0_01.Message {
|
|
if m != nil {
|
|
return m.F3
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF4() *proto3_v0_01.Message {
|
|
if m != nil {
|
|
return m.F4
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF5() *proto2_v1_0.Message {
|
|
if m != nil {
|
|
return m.F5
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF6() *proto3_v1_0.Message {
|
|
if m != nil {
|
|
return m.F6
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF7() *proto2_v1_1.Message {
|
|
if m != nil {
|
|
return m.F7
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF8() *proto3_v1_1.Message {
|
|
if m != nil {
|
|
return m.F8
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF9() *proto2_v1_2.Message {
|
|
if m != nil {
|
|
return m.F9
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF10() *proto3_v1_2.Message {
|
|
if m != nil {
|
|
return m.F10
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF11() *proto2_v1_21.Message {
|
|
if m != nil {
|
|
return m.F11
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Legacy) GetF12() *proto3_v1_21.Message {
|
|
if m != nil {
|
|
return m.F12
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Legacy)(nil), "google.golang.org.Legacy")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("internal/testprotos/legacy/legacy.proto", fileDescriptor_5fbf266527ec81d8)
|
|
}
|
|
|
|
var fileDescriptor_5fbf266527ec81d8 = []byte{
|
|
// 400 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0xd3, 0xcf, 0xce, 0xd2, 0x40,
|
|
0x14, 0x05, 0xf0, 0x00, 0x82, 0x5a, 0xdc, 0xc8, 0x6a, 0xe2, 0xca, 0xb8, 0xd1, 0x98, 0x74, 0x3a,
|
|
0xf7, 0x76, 0xa6, 0x4c, 0x89, 0x2b, 0x13, 0x77, 0xba, 0x71, 0xe9, 0xc6, 0x4c, 0xcb, 0x74, 0x24,
|
|
0xa9, 0xd4, 0xd0, 0x42, 0xe2, 0xcb, 0xfa, 0x2c, 0x86, 0x5b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