mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-27 03:35:32 +00:00
ea11813c05
Add a corpus of generated protobuf messages generated at specific versions of protoc-gen-go to ensure that we continue to support for generated messages that have may never be updated. Change-Id: I04a1b74306f471d7c99f5daf52399a5bd9adcbbc Reviewed-on: https://go-review.googlesource.com/c/148831 Reviewed-by: Herbie Ong <herbie@google.com>
178 lines
7.0 KiB
Go
178 lines
7.0 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"
|
|
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"
|
|
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.ProtoPackageIsVersion2 // 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"`
|
|
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 init() {
|
|
proto.RegisterType((*Legacy)(nil), "google.golang.org.Legacy")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("internal/testprotos/legacy/legacy.proto", fileDescriptor_5fbf266527ec81d8)
|
|
}
|
|
|
|
var fileDescriptor_5fbf266527ec81d8 = []byte{
|
|
// 364 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0xd2, 0x3d, 0x4f, 0xf3, 0x30,
|
|
0x14, 0x05, 0x60, 0xf5, 0xe3, 0xed, 0x0b, 0x61, 0xa2, 0x93, 0xc5, 0x84, 0x58, 0x40, 0x48, 0x71,
|
|
0xec, 0x1b, 0x3b, 0x4d, 0x2a, 0x26, 0x24, 0x36, 0x58, 0x18, 0x59, 0x90, 0x93, 0x3a, 0xa6, 0x52,
|
|
0xa8, 0x51, 0x93, 0x56, 0xe2, 0xef, 0xf2, 0x4b, 0x10, 0x37, 0x44, 0x4a, 0xf9, 0x68, 0x5d, 0xda,
|
|
0x29, 0x8a, 0xa5, 0xe7, 0x9c, 0x33, 0x5c, 0xef, 0x7c, 0x3a, 0xab, 0xf4, 0x7c, 0xa6, 0x8a, 0xa0,
|
|
0xd2, 0x65, 0xf5, 0x32, 0xb7, 0x95, 0x2d, 0x83, 0x42, 0x1b, 0x95, 0xbd, 0x7e, 0x7e, 0x28, 0x3e,
|
|
0x0e, 0x8f, 0x8d, 0xb5, 0xa6, 0xd0, 0xd4, 0xd8, 0x42, 0xcd, 0x0c, 0xb5, 0x73, 0x73, 0x72, 0xb3,
|
|
0xc6, 0xe2, 0x1f, 0xd0, 0x25, 0xa3, 0x8c, 0x32, 0x1f, 0x18, 0x8f, 0x18, 0x80, 0xf4, 0x21, 0xcf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