• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: extension_user/extension_user.proto
3
4package extension_user
5
6import (
7	fmt "fmt"
8	proto "github.com/golang/protobuf/proto"
9	extension_base "github.com/golang/protobuf/protoc-gen-go/testdata/extension_base"
10	extension_extra "github.com/golang/protobuf/protoc-gen-go/testdata/extension_extra"
11	math "math"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = 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.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
25type UserMessage struct {
26	Name                 *string  `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
27	Rank                 *string  `protobuf:"bytes,2,opt,name=rank" json:"rank,omitempty"`
28	XXX_NoUnkeyedLiteral struct{} `json:"-"`
29	XXX_unrecognized     []byte   `json:"-"`
30	XXX_sizecache        int32    `json:"-"`
31}
32
33func (m *UserMessage) Reset()         { *m = UserMessage{} }
34func (m *UserMessage) String() string { return proto.CompactTextString(m) }
35func (*UserMessage) ProtoMessage()    {}
36func (*UserMessage) Descriptor() ([]byte, []int) {
37	return fileDescriptor_359ba8abf543ca10, []int{0}
38}
39
40func (m *UserMessage) XXX_Unmarshal(b []byte) error {
41	return xxx_messageInfo_UserMessage.Unmarshal(m, b)
42}
43func (m *UserMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
44	return xxx_messageInfo_UserMessage.Marshal(b, m, deterministic)
45}
46func (m *UserMessage) XXX_Merge(src proto.Message) {
47	xxx_messageInfo_UserMessage.Merge(m, src)
48}
49func (m *UserMessage) XXX_Size() int {
50	return xxx_messageInfo_UserMessage.Size(m)
51}
52func (m *UserMessage) XXX_DiscardUnknown() {
53	xxx_messageInfo_UserMessage.DiscardUnknown(m)
54}
55
56var xxx_messageInfo_UserMessage proto.InternalMessageInfo
57
58func (m *UserMessage) GetName() string {
59	if m != nil && m.Name != nil {
60		return *m.Name
61	}
62	return ""
63}
64
65func (m *UserMessage) GetRank() string {
66	if m != nil && m.Rank != nil {
67		return *m.Rank
68	}
69	return ""
70}
71
72// Extend inside the scope of another type
73type LoudMessage struct {
74	XXX_NoUnkeyedLiteral         struct{} `json:"-"`
75	proto.XXX_InternalExtensions `json:"-"`
76	XXX_unrecognized             []byte `json:"-"`
77	XXX_sizecache                int32  `json:"-"`
78}
79
80func (m *LoudMessage) Reset()         { *m = LoudMessage{} }
81func (m *LoudMessage) String() string { return proto.CompactTextString(m) }
82func (*LoudMessage) ProtoMessage()    {}
83func (*LoudMessage) Descriptor() ([]byte, []int) {
84	return fileDescriptor_359ba8abf543ca10, []int{1}
85}
86
87var extRange_LoudMessage = []proto.ExtensionRange{
88	{Start: 100, End: 536870911},
89}
90
91func (*LoudMessage) ExtensionRangeArray() []proto.ExtensionRange {
92	return extRange_LoudMessage
93}
94
95func (m *LoudMessage) XXX_Unmarshal(b []byte) error {
96	return xxx_messageInfo_LoudMessage.Unmarshal(m, b)
97}
98func (m *LoudMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
99	return xxx_messageInfo_LoudMessage.Marshal(b, m, deterministic)
100}
101func (m *LoudMessage) XXX_Merge(src proto.Message) {
102	xxx_messageInfo_LoudMessage.Merge(m, src)
103}
104func (m *LoudMessage) XXX_Size() int {
105	return xxx_messageInfo_LoudMessage.Size(m)
106}
107func (m *LoudMessage) XXX_DiscardUnknown() {
108	xxx_messageInfo_LoudMessage.DiscardUnknown(m)
109}
110
111var xxx_messageInfo_LoudMessage proto.InternalMessageInfo
112
113var E_LoudMessage_Volume = &proto.ExtensionDesc{
114	ExtendedType:  (*extension_base.BaseMessage)(nil),
115	ExtensionType: (*uint32)(nil),
116	Field:         8,
117	Name:          "extension_user.LoudMessage.volume",
118	Tag:           "varint,8,opt,name=volume",
119	Filename:      "extension_user/extension_user.proto",
120}
121
122// Extend inside the scope of another type, using a message.
123type LoginMessage struct {
124	XXX_NoUnkeyedLiteral struct{} `json:"-"`
125	XXX_unrecognized     []byte   `json:"-"`
126	XXX_sizecache        int32    `json:"-"`
127}
128
129func (m *LoginMessage) Reset()         { *m = LoginMessage{} }
130func (m *LoginMessage) String() string { return proto.CompactTextString(m) }
131func (*LoginMessage) ProtoMessage()    {}
132func (*LoginMessage) Descriptor() ([]byte, []int) {
133	return fileDescriptor_359ba8abf543ca10, []int{2}
134}
135
136func (m *LoginMessage) XXX_Unmarshal(b []byte) error {
137	return xxx_messageInfo_LoginMessage.Unmarshal(m, b)
138}
139func (m *LoginMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
140	return xxx_messageInfo_LoginMessage.Marshal(b, m, deterministic)
141}
142func (m *LoginMessage) XXX_Merge(src proto.Message) {
143	xxx_messageInfo_LoginMessage.Merge(m, src)
144}
145func (m *LoginMessage) XXX_Size() int {
146	return xxx_messageInfo_LoginMessage.Size(m)
147}
148func (m *LoginMessage) XXX_DiscardUnknown() {
149	xxx_messageInfo_LoginMessage.DiscardUnknown(m)
150}
151
152var xxx_messageInfo_LoginMessage proto.InternalMessageInfo
153
154var E_LoginMessage_UserMessage = &proto.ExtensionDesc{
155	ExtendedType:  (*extension_base.BaseMessage)(nil),
156	ExtensionType: (*UserMessage)(nil),
157	Field:         16,
158	Name:          "extension_user.LoginMessage.user_message",
159	Tag:           "bytes,16,opt,name=user_message",
160	Filename:      "extension_user/extension_user.proto",
161}
162
163type Detail struct {
164	Color                *string  `protobuf:"bytes,1,opt,name=color" json:"color,omitempty"`
165	XXX_NoUnkeyedLiteral struct{} `json:"-"`
166	XXX_unrecognized     []byte   `json:"-"`
167	XXX_sizecache        int32    `json:"-"`
168}
169
170func (m *Detail) Reset()         { *m = Detail{} }
171func (m *Detail) String() string { return proto.CompactTextString(m) }
172func (*Detail) ProtoMessage()    {}
173func (*Detail) Descriptor() ([]byte, []int) {
174	return fileDescriptor_359ba8abf543ca10, []int{3}
175}
176
177func (m *Detail) XXX_Unmarshal(b []byte) error {
178	return xxx_messageInfo_Detail.Unmarshal(m, b)
179}
180func (m *Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
181	return xxx_messageInfo_Detail.Marshal(b, m, deterministic)
182}
183func (m *Detail) XXX_Merge(src proto.Message) {
184	xxx_messageInfo_Detail.Merge(m, src)
185}
186func (m *Detail) XXX_Size() int {
187	return xxx_messageInfo_Detail.Size(m)
188}
189func (m *Detail) XXX_DiscardUnknown() {
190	xxx_messageInfo_Detail.DiscardUnknown(m)
191}
192
193var xxx_messageInfo_Detail proto.InternalMessageInfo
194
195func (m *Detail) GetColor() string {
196	if m != nil && m.Color != nil {
197		return *m.Color
198	}
199	return ""
200}
201
202// An extension of an extension
203type Announcement struct {
204	Words                *string  `protobuf:"bytes,1,opt,name=words" json:"words,omitempty"`
205	XXX_NoUnkeyedLiteral struct{} `json:"-"`
206	XXX_unrecognized     []byte   `json:"-"`
207	XXX_sizecache        int32    `json:"-"`
208}
209
210func (m *Announcement) Reset()         { *m = Announcement{} }
211func (m *Announcement) String() string { return proto.CompactTextString(m) }
212func (*Announcement) ProtoMessage()    {}
213func (*Announcement) Descriptor() ([]byte, []int) {
214	return fileDescriptor_359ba8abf543ca10, []int{4}
215}
216
217func (m *Announcement) XXX_Unmarshal(b []byte) error {
218	return xxx_messageInfo_Announcement.Unmarshal(m, b)
219}
220func (m *Announcement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
221	return xxx_messageInfo_Announcement.Marshal(b, m, deterministic)
222}
223func (m *Announcement) XXX_Merge(src proto.Message) {
224	xxx_messageInfo_Announcement.Merge(m, src)
225}
226func (m *Announcement) XXX_Size() int {
227	return xxx_messageInfo_Announcement.Size(m)
228}
229func (m *Announcement) XXX_DiscardUnknown() {
230	xxx_messageInfo_Announcement.DiscardUnknown(m)
231}
232
233var xxx_messageInfo_Announcement proto.InternalMessageInfo
234
235func (m *Announcement) GetWords() string {
236	if m != nil && m.Words != nil {
237		return *m.Words
238	}
239	return ""
240}
241
242var E_Announcement_LoudExt = &proto.ExtensionDesc{
243	ExtendedType:  (*LoudMessage)(nil),
244	ExtensionType: (*Announcement)(nil),
245	Field:         100,
246	Name:          "extension_user.Announcement.loud_ext",
247	Tag:           "bytes,100,opt,name=loud_ext",
248	Filename:      "extension_user/extension_user.proto",
249}
250
251// Something that can be put in a message set.
252type OldStyleParcel struct {
253	Name                 *string  `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
254	Height               *int32   `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
255	XXX_NoUnkeyedLiteral struct{} `json:"-"`
256	XXX_unrecognized     []byte   `json:"-"`
257	XXX_sizecache        int32    `json:"-"`
258}
259
260func (m *OldStyleParcel) Reset()         { *m = OldStyleParcel{} }
261func (m *OldStyleParcel) String() string { return proto.CompactTextString(m) }
262func (*OldStyleParcel) ProtoMessage()    {}
263func (*OldStyleParcel) Descriptor() ([]byte, []int) {
264	return fileDescriptor_359ba8abf543ca10, []int{5}
265}
266
267func (m *OldStyleParcel) XXX_Unmarshal(b []byte) error {
268	return xxx_messageInfo_OldStyleParcel.Unmarshal(m, b)
269}
270func (m *OldStyleParcel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
271	return xxx_messageInfo_OldStyleParcel.Marshal(b, m, deterministic)
272}
273func (m *OldStyleParcel) XXX_Merge(src proto.Message) {
274	xxx_messageInfo_OldStyleParcel.Merge(m, src)
275}
276func (m *OldStyleParcel) XXX_Size() int {
277	return xxx_messageInfo_OldStyleParcel.Size(m)
278}
279func (m *OldStyleParcel) XXX_DiscardUnknown() {
280	xxx_messageInfo_OldStyleParcel.DiscardUnknown(m)
281}
282
283var xxx_messageInfo_OldStyleParcel proto.InternalMessageInfo
284
285func (m *OldStyleParcel) GetName() string {
286	if m != nil && m.Name != nil {
287		return *m.Name
288	}
289	return ""
290}
291
292func (m *OldStyleParcel) GetHeight() int32 {
293	if m != nil && m.Height != nil {
294		return *m.Height
295	}
296	return 0
297}
298
299var E_OldStyleParcel_MessageSetExtension = &proto.ExtensionDesc{
300	ExtendedType:  (*extension_base.OldStyleMessage)(nil),
301	ExtensionType: (*OldStyleParcel)(nil),
302	Field:         2001,
303	Name:          "extension_user.OldStyleParcel",
304	Tag:           "bytes,2001,opt,name=message_set_extension",
305	Filename:      "extension_user/extension_user.proto",
306}
307
308var E_UserMessage = &proto.ExtensionDesc{
309	ExtendedType:  (*extension_base.BaseMessage)(nil),
310	ExtensionType: (*UserMessage)(nil),
311	Field:         5,
312	Name:          "extension_user.user_message",
313	Tag:           "bytes,5,opt,name=user_message",
314	Filename:      "extension_user/extension_user.proto",
315}
316
317var E_ExtraMessage = &proto.ExtensionDesc{
318	ExtendedType:  (*extension_base.BaseMessage)(nil),
319	ExtensionType: (*extension_extra.ExtraMessage)(nil),
320	Field:         9,
321	Name:          "extension_user.extra_message",
322	Tag:           "bytes,9,opt,name=extra_message",
323	Filename:      "extension_user/extension_user.proto",
324}
325
326var E_Width = &proto.ExtensionDesc{
327	ExtendedType:  (*extension_base.BaseMessage)(nil),
328	ExtensionType: (*int32)(nil),
329	Field:         6,
330	Name:          "extension_user.width",
331	Tag:           "varint,6,opt,name=width",
332	Filename:      "extension_user/extension_user.proto",
333}
334
335var E_Area = &proto.ExtensionDesc{
336	ExtendedType:  (*extension_base.BaseMessage)(nil),
337	ExtensionType: (*int64)(nil),
338	Field:         7,
339	Name:          "extension_user.area",
340	Tag:           "varint,7,opt,name=area",
341	Filename:      "extension_user/extension_user.proto",
342}
343
344var E_Detail = &proto.ExtensionDesc{
345	ExtendedType:  (*extension_base.BaseMessage)(nil),
346	ExtensionType: ([]*Detail)(nil),
347	Field:         17,
348	Name:          "extension_user.detail",
349	Tag:           "bytes,17,rep,name=detail",
350	Filename:      "extension_user/extension_user.proto",
351}
352
353func init() {
354	proto.RegisterType((*UserMessage)(nil), "extension_user.UserMessage")
355	proto.RegisterExtension(E_LoudMessage_Volume)
356	proto.RegisterType((*LoudMessage)(nil), "extension_user.LoudMessage")
357	proto.RegisterExtension(E_LoginMessage_UserMessage)
358	proto.RegisterType((*LoginMessage)(nil), "extension_user.LoginMessage")
359	proto.RegisterType((*Detail)(nil), "extension_user.Detail")
360	proto.RegisterExtension(E_Announcement_LoudExt)
361	proto.RegisterType((*Announcement)(nil), "extension_user.Announcement")
362	proto.RegisterExtension(E_OldStyleParcel_MessageSetExtension)
363	proto.RegisterType((*OldStyleParcel)(nil), "extension_user.OldStyleParcel")
364	proto.RegisterExtension(E_UserMessage)
365	proto.RegisterExtension(E_ExtraMessage)
366	proto.RegisterExtension(E_Width)
367	proto.RegisterExtension(E_Area)
368	proto.RegisterExtension(E_Detail)
369}
370
371func init() {
372	proto.RegisterFile("extension_user/extension_user.proto", fileDescriptor_359ba8abf543ca10)
373}
374
375var fileDescriptor_359ba8abf543ca10 = []byte{
376	// 492 bytes of a gzipped FileDescriptorProto
377	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x51, 0x6f, 0x94, 0x40,
378	0x10, 0x0e, 0x6d, 0x8f, 0x5e, 0x87, 0x6b, 0xad, 0xa8, 0xcd, 0xa5, 0x6a, 0x25, 0x18, 0x13, 0x62,
379	0xd2, 0x23, 0x62, 0x7c, 0xe1, 0x49, 0x2f, 0xde, 0x93, 0x67, 0x34, 0x54, 0x5f, 0xf4, 0x81, 0xec,
380	0xc1, 0xc8, 0x91, 0xc2, 0xae, 0xd9, 0x5d, 0xec, 0xe9, 0xd3, 0xfd, 0x26, 0xff, 0x89, 0xff, 0xc8,
381	0xb0, 0x2c, 0x2d, 0x87, 0xc9, 0xc5, 0xbe, 0x90, 0xfd, 0x86, 0x6f, 0xbe, 0x99, 0xfd, 0x66, 0x00,
382	0x9e, 0xe2, 0x4a, 0x22, 0x15, 0x39, 0xa3, 0x71, 0x25, 0x90, 0xfb, 0x9b, 0x70, 0xf2, 0x9d, 0x33,
383	0xc9, 0xec, 0xa3, 0xcd, 0xe8, 0x69, 0x27, 0x69, 0x41, 0x04, 0xfa, 0x9b, 0xb0, 0x49, 0x3a, 0x7d,
384	0x76, 0x13, 0xc5, 0x95, 0xe4, 0xc4, 0xef, 0xe1, 0x86, 0xe6, 0xbe, 0x02, 0xeb, 0xb3, 0x40, 0xfe,
385	0x1e, 0x85, 0x20, 0x19, 0xda, 0x36, 0xec, 0x51, 0x52, 0xe2, 0xd8, 0x70, 0x0c, 0xef, 0x20, 0x52,
386	0xe7, 0x3a, 0xc6, 0x09, 0xbd, 0x1c, 0xef, 0x34, 0xb1, 0xfa, 0xec, 0xce, 0xc1, 0x9a, 0xb3, 0x2a,
387	0xd5, 0x69, 0xcf, 0x87, 0xc3, 0xf4, 0x78, 0xbd, 0x5e, 0xaf, 0x77, 0x82, 0x97, 0x60, 0xfe, 0x60,
388	0x45, 0x55, 0xa2, 0xfd, 0x70, 0xd2, 0xeb, 0x6b, 0x4a, 0x04, 0xea, 0x84, 0xf1, 0xd0, 0x31, 0xbc,
389	0xc3, 0x48, 0x53, 0xdd, 0x4b, 0x18, 0xcd, 0x59, 0x96, 0x53, 0xfd, 0x36, 0xf8, 0x0a, 0xa3, 0xfa,
390	0xa2, 0x71, 0xa9, 0xbb, 0xda, 0x2a, 0x75, 0xec, 0x18, 0x9e, 0x15, 0x74, 0x29, 0xca, 0xba, 0xce,
391	0xad, 0x22, 0xab, 0xba, 0x01, 0xee, 0x19, 0x98, 0x6f, 0x51, 0x92, 0xbc, 0xb0, 0xef, 0xc3, 0x20,
392	0x61, 0x05, 0xe3, 0xfa, 0xb6, 0x0d, 0x70, 0x7f, 0xc1, 0xe8, 0x0d, 0xa5, 0xac, 0xa2, 0x09, 0x96,
393	0x48, 0x65, 0xcd, 0xba, 0x62, 0x3c, 0x15, 0x2d, 0x4b, 0x81, 0xe0, 0x13, 0x0c, 0x0b, 0x56, 0xa5,
394	0xb5, 0x97, 0xf6, 0x3f, 0xb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