forked from gogo/protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
merge.pb.go
165 lines (145 loc) · 4.93 KB
/
merge.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: merge.proto
package merge
import (
fmt "fmt"
_ "github.com/coderyw/protobuf/gogoproto"
proto "github.com/coderyw/protobuf/proto"
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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type A struct {
B B `protobuf:"bytes,1,opt,name=B,proto3" json:"B"`
C []C `protobuf:"bytes,2,rep,name=c,proto3" json:"c"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *A) Reset() { *m = A{} }
func (m *A) String() string { return proto.CompactTextString(m) }
func (*A) ProtoMessage() {}
func (*A) Descriptor() ([]byte, []int) {
return fileDescriptor_82caea6f5430298b, []int{0}
}
func (m *A) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_A.Unmarshal(m, b)
}
func (m *A) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_A.Marshal(b, m, deterministic)
}
func (m *A) XXX_Merge(src proto.Message) {
xxx_messageInfo_A.Merge(m, src)
}
func (m *A) XXX_Size() int {
return xxx_messageInfo_A.Size(m)
}
func (m *A) XXX_DiscardUnknown() {
xxx_messageInfo_A.DiscardUnknown(m)
}
var xxx_messageInfo_A proto.InternalMessageInfo
func (m *A) GetB() B {
if m != nil {
return m.B
}
return B{}
}
func (m *A) GetC() []C {
if m != nil {
return m.C
}
return nil
}
type B struct {
C int64 `protobuf:"varint,1,opt,name=c,proto3" json:"c,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *B) Reset() { *m = B{} }
func (m *B) String() string { return proto.CompactTextString(m) }
func (*B) ProtoMessage() {}
func (*B) Descriptor() ([]byte, []int) {
return fileDescriptor_82caea6f5430298b, []int{1}
}
func (m *B) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_B.Unmarshal(m, b)
}
func (m *B) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_B.Marshal(b, m, deterministic)
}
func (m *B) XXX_Merge(src proto.Message) {
xxx_messageInfo_B.Merge(m, src)
}
func (m *B) XXX_Size() int {
return xxx_messageInfo_B.Size(m)
}
func (m *B) XXX_DiscardUnknown() {
xxx_messageInfo_B.DiscardUnknown(m)
}
var xxx_messageInfo_B proto.InternalMessageInfo
func (m *B) GetC() int64 {
if m != nil {
return m.C
}
return 0
}
type C struct {
D int64 `protobuf:"varint,1,opt,name=d,proto3" json:"d,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *C) Reset() { *m = C{} }
func (m *C) String() string { return proto.CompactTextString(m) }
func (*C) ProtoMessage() {}
func (*C) Descriptor() ([]byte, []int) {
return fileDescriptor_82caea6f5430298b, []int{2}
}
func (m *C) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_C.Unmarshal(m, b)
}
func (m *C) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_C.Marshal(b, m, deterministic)
}
func (m *C) XXX_Merge(src proto.Message) {
xxx_messageInfo_C.Merge(m, src)
}
func (m *C) XXX_Size() int {
return xxx_messageInfo_C.Size(m)
}
func (m *C) XXX_DiscardUnknown() {
xxx_messageInfo_C.DiscardUnknown(m)
}
var xxx_messageInfo_C proto.InternalMessageInfo
func (m *C) GetD() int64 {
if m != nil {
return m.D
}
return 0
}
func init() {
proto.RegisterType((*A)(nil), "merge.A")
proto.RegisterType((*B)(nil), "merge.B")
proto.RegisterType((*C)(nil), "merge.C")
}
func init() { proto.RegisterFile("merge.proto", fileDescriptor_82caea6f5430298b) }
var fileDescriptor_82caea6f5430298b = []byte{
// 141 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xce, 0x4d, 0x2d, 0x4a,
0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x73, 0xa4, 0x74, 0xd3, 0x33, 0x4b,
0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, 0xc1, 0xb2, 0x49,
0xa5, 0x69, 0x60, 0x1e, 0x98, 0x03, 0x66, 0x41, 0x74, 0x29, 0xd9, 0x73, 0x31, 0x3a, 0x0a, 0xc9,
0x70, 0x31, 0x3a, 0x49, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x71, 0xe8, 0x41, 0xcc, 0x74, 0x72,
0x62, 0x39, 0x71, 0x4f, 0x9e, 0x21, 0x88, 0xd1, 0x09, 0x24, 0x9b, 0x2c, 0xc1, 0xa4, 0xc0, 0x8c,
0x24, 0xeb, 0x0c, 0x93, 0x4d, 0x56, 0x12, 0xe4, 0x62, 0x74, 0x12, 0xe2, 0x01, 0x29, 0x01, 0x19,
0xc0, 0x0c, 0x15, 0x72, 0x06, 0x09, 0xa5, 0xc0, 0x84, 0x52, 0x92, 0xd8, 0xc0, 0xb6, 0x19, 0x03,
0x02, 0x00, 0x00, 0xff, 0xff, 0x0c, 0xc5, 0xc3, 0x5b, 0xb2, 0x00, 0x00, 0x00,
}