test.pb.go 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: my_test/test.proto
  3. package test // import "github.com/golang/protobuf/protoc-gen-go/testdata/my_test"
  4. /*
  5. This package holds interesting messages.
  6. */
  7. import proto "github.com/golang/protobuf/proto"
  8. import fmt "fmt"
  9. import math "math"
  10. import _ "github.com/golang/protobuf/protoc-gen-go/testdata/multi"
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  20. type HatType int32
  21. const (
  22. // deliberately skipping 0
  23. HatType_FEDORA HatType = 1
  24. HatType_FEZ HatType = 2
  25. )
  26. var HatType_name = map[int32]string{
  27. 1: "FEDORA",
  28. 2: "FEZ",
  29. }
  30. var HatType_value = map[string]int32{
  31. "FEDORA": 1,
  32. "FEZ": 2,
  33. }
  34. func (x HatType) Enum() *HatType {
  35. p := new(HatType)
  36. *p = x
  37. return p
  38. }
  39. func (x HatType) String() string {
  40. return proto.EnumName(HatType_name, int32(x))
  41. }
  42. func (x *HatType) UnmarshalJSON(data []byte) error {
  43. value, err := proto.UnmarshalJSONEnum(HatType_value, data, "HatType")
  44. if err != nil {
  45. return err
  46. }
  47. *x = HatType(value)
  48. return nil
  49. }
  50. func (HatType) EnumDescriptor() ([]byte, []int) {
  51. return fileDescriptor_test_2309d445eee26af7, []int{0}
  52. }
  53. // This enum represents days of the week.
  54. type Days int32
  55. const (
  56. Days_MONDAY Days = 1
  57. Days_TUESDAY Days = 2
  58. Days_LUNDI Days = 1
  59. )
  60. var Days_name = map[int32]string{
  61. 1: "MONDAY",
  62. 2: "TUESDAY",
  63. // Duplicate value: 1: "LUNDI",
  64. }
  65. var Days_value = map[string]int32{
  66. "MONDAY": 1,
  67. "TUESDAY": 2,
  68. "LUNDI": 1,
  69. }
  70. func (x Days) Enum() *Days {
  71. p := new(Days)
  72. *p = x
  73. return p
  74. }
  75. func (x Days) String() string {
  76. return proto.EnumName(Days_name, int32(x))
  77. }
  78. func (x *Days) UnmarshalJSON(data []byte) error {
  79. value, err := proto.UnmarshalJSONEnum(Days_value, data, "Days")
  80. if err != nil {
  81. return err
  82. }
  83. *x = Days(value)
  84. return nil
  85. }
  86. func (Days) EnumDescriptor() ([]byte, []int) {
  87. return fileDescriptor_test_2309d445eee26af7, []int{1}
  88. }
  89. type Request_Color int32
  90. const (
  91. Request_RED Request_Color = 0
  92. Request_GREEN Request_Color = 1
  93. Request_BLUE Request_Color = 2
  94. )
  95. var Request_Color_name = map[int32]string{
  96. 0: "RED",
  97. 1: "GREEN",
  98. 2: "BLUE",
  99. }
  100. var Request_Color_value = map[string]int32{
  101. "RED": 0,
  102. "GREEN": 1,
  103. "BLUE": 2,
  104. }
  105. func (x Request_Color) Enum() *Request_Color {
  106. p := new(Request_Color)
  107. *p = x
  108. return p
  109. }
  110. func (x Request_Color) String() string {
  111. return proto.EnumName(Request_Color_name, int32(x))
  112. }
  113. func (x *Request_Color) UnmarshalJSON(data []byte) error {
  114. value, err := proto.UnmarshalJSONEnum(Request_Color_value, data, "Request_Color")
  115. if err != nil {
  116. return err
  117. }
  118. *x = Request_Color(value)
  119. return nil
  120. }
  121. func (Request_Color) EnumDescriptor() ([]byte, []int) {
  122. return fileDescriptor_test_2309d445eee26af7, []int{0, 0}
  123. }
  124. type Reply_Entry_Game int32
  125. const (
  126. Reply_Entry_FOOTBALL Reply_Entry_Game = 1
  127. Reply_Entry_TENNIS Reply_Entry_Game = 2
  128. )
  129. var Reply_Entry_Game_name = map[int32]string{
  130. 1: "FOOTBALL",
  131. 2: "TENNIS",
  132. }
  133. var Reply_Entry_Game_value = map[string]int32{
  134. "FOOTBALL": 1,
  135. "TENNIS": 2,
  136. }
  137. func (x Reply_Entry_Game) Enum() *Reply_Entry_Game {
  138. p := new(Reply_Entry_Game)
  139. *p = x
  140. return p
  141. }
  142. func (x Reply_Entry_Game) String() string {
  143. return proto.EnumName(Reply_Entry_Game_name, int32(x))
  144. }
  145. func (x *Reply_Entry_Game) UnmarshalJSON(data []byte) error {
  146. value, err := proto.UnmarshalJSONEnum(Reply_Entry_Game_value, data, "Reply_Entry_Game")
  147. if err != nil {
  148. return err
  149. }
  150. *x = Reply_Entry_Game(value)
  151. return nil
  152. }
  153. func (Reply_Entry_Game) EnumDescriptor() ([]byte, []int) {
  154. return fileDescriptor_test_2309d445eee26af7, []int{1, 0, 0}
  155. }
  156. // This is a message that might be sent somewhere.
  157. type Request struct {
  158. Key []int64 `protobuf:"varint,1,rep,name=key" json:"key,omitempty"`
  159. // optional imp.ImportedMessage imported_message = 2;
  160. Hue *Request_Color `protobuf:"varint,3,opt,name=hue,enum=my.test.Request_Color" json:"hue,omitempty"`
  161. Hat *HatType `protobuf:"varint,4,opt,name=hat,enum=my.test.HatType,def=1" json:"hat,omitempty"`
  162. // optional imp.ImportedMessage.Owner owner = 6;
  163. Deadline *float32 `protobuf:"fixed32,7,opt,name=deadline,def=inf" json:"deadline,omitempty"`
  164. Somegroup *Request_SomeGroup `protobuf:"group,8,opt,name=SomeGroup,json=somegroup" json:"somegroup,omitempty"`
  165. // This is a map field. It will generate map[int32]string.
  166. NameMapping map[int32]string `protobuf:"bytes,14,rep,name=name_mapping,json=nameMapping" json:"name_mapping,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  167. // This is a map field whose value type is a message.
  168. MsgMapping map[int64]*Reply `protobuf:"bytes,15,rep,name=msg_mapping,json=msgMapping" json:"msg_mapping,omitempty" protobuf_key:"zigzag64,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  169. Reset_ *int32 `protobuf:"varint,12,opt,name=reset" json:"reset,omitempty"`
  170. // This field should not conflict with any getters.
  171. GetKey_ *string `protobuf:"bytes,16,opt,name=get_key,json=getKey" json:"get_key,omitempty"`
  172. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  173. XXX_unrecognized []byte `json:"-"`
  174. XXX_sizecache int32 `json:"-"`
  175. }
  176. func (m *Request) Reset() { *m = Request{} }
  177. func (m *Request) String() string { return proto.CompactTextString(m) }
  178. func (*Request) ProtoMessage() {}
  179. func (*Request) Descriptor() ([]byte, []int) {
  180. return fileDescriptor_test_2309d445eee26af7, []int{0}
  181. }
  182. func (m *Request) XXX_Unmarshal(b []byte) error {
  183. return xxx_messageInfo_Request.Unmarshal(m, b)
  184. }
  185. func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  186. return xxx_messageInfo_Request.Marshal(b, m, deterministic)
  187. }
  188. func (dst *Request) XXX_Merge(src proto.Message) {
  189. xxx_messageInfo_Request.Merge(dst, src)
  190. }
  191. func (m *Request) XXX_Size() int {
  192. return xxx_messageInfo_Request.Size(m)
  193. }
  194. func (m *Request) XXX_DiscardUnknown() {
  195. xxx_messageInfo_Request.DiscardUnknown(m)
  196. }
  197. var xxx_messageInfo_Request proto.InternalMessageInfo
  198. const Default_Request_Hat HatType = HatType_FEDORA
  199. var Default_Request_Deadline float32 = float32(math.Inf(1))
  200. func (m *Request) GetKey() []int64 {
  201. if m != nil {
  202. return m.Key
  203. }
  204. return nil
  205. }
  206. func (m *Request) GetHue() Request_Color {
  207. if m != nil && m.Hue != nil {
  208. return *m.Hue
  209. }
  210. return Request_RED
  211. }
  212. func (m *Request) GetHat() HatType {
  213. if m != nil && m.Hat != nil {
  214. return *m.Hat
  215. }
  216. return Default_Request_Hat
  217. }
  218. func (m *Request) GetDeadline() float32 {
  219. if m != nil && m.Deadline != nil {
  220. return *m.Deadline
  221. }
  222. return Default_Request_Deadline
  223. }
  224. func (m *Request) GetSomegroup() *Request_SomeGroup {
  225. if m != nil {
  226. return m.Somegroup
  227. }
  228. return nil
  229. }
  230. func (m *Request) GetNameMapping() map[int32]string {
  231. if m != nil {
  232. return m.NameMapping
  233. }
  234. return nil
  235. }
  236. func (m *Request) GetMsgMapping() map[int64]*Reply {
  237. if m != nil {
  238. return m.MsgMapping
  239. }
  240. return nil
  241. }
  242. func (m *Request) GetReset_() int32 {
  243. if m != nil && m.Reset_ != nil {
  244. return *m.Reset_
  245. }
  246. return 0
  247. }
  248. func (m *Request) GetGetKey_() string {
  249. if m != nil && m.GetKey_ != nil {
  250. return *m.GetKey_
  251. }
  252. return ""
  253. }
  254. type Request_SomeGroup struct {
  255. GroupField *int32 `protobuf:"varint,9,opt,name=group_field,json=groupField" json:"group_field,omitempty"`
  256. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  257. XXX_unrecognized []byte `json:"-"`
  258. XXX_sizecache int32 `json:"-"`
  259. }
  260. func (m *Request_SomeGroup) Reset() { *m = Request_SomeGroup{} }
  261. func (m *Request_SomeGroup) String() string { return proto.CompactTextString(m) }
  262. func (*Request_SomeGroup) ProtoMessage() {}
  263. func (*Request_SomeGroup) Descriptor() ([]byte, []int) {
  264. return fileDescriptor_test_2309d445eee26af7, []int{0, 0}
  265. }
  266. func (m *Request_SomeGroup) XXX_Unmarshal(b []byte) error {
  267. return xxx_messageInfo_Request_SomeGroup.Unmarshal(m, b)
  268. }
  269. func (m *Request_SomeGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  270. return xxx_messageInfo_Request_SomeGroup.Marshal(b, m, deterministic)
  271. }
  272. func (dst *Request_SomeGroup) XXX_Merge(src proto.Message) {
  273. xxx_messageInfo_Request_SomeGroup.Merge(dst, src)
  274. }
  275. func (m *Request_SomeGroup) XXX_Size() int {
  276. return xxx_messageInfo_Request_SomeGroup.Size(m)
  277. }
  278. func (m *Request_SomeGroup) XXX_DiscardUnknown() {
  279. xxx_messageInfo_Request_SomeGroup.DiscardUnknown(m)
  280. }
  281. var xxx_messageInfo_Request_SomeGroup proto.InternalMessageInfo
  282. func (m *Request_SomeGroup) GetGroupField() int32 {
  283. if m != nil && m.GroupField != nil {
  284. return *m.GroupField
  285. }
  286. return 0
  287. }
  288. type Reply struct {
  289. Found []*Reply_Entry `protobuf:"bytes,1,rep,name=found" json:"found,omitempty"`
  290. CompactKeys []int32 `protobuf:"varint,2,rep,packed,name=compact_keys,json=compactKeys" json:"compact_keys,omitempty"`
  291. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  292. proto.XXX_InternalExtensions `json:"-"`
  293. XXX_unrecognized []byte `json:"-"`
  294. XXX_sizecache int32 `json:"-"`
  295. }
  296. func (m *Reply) Reset() { *m = Reply{} }
  297. func (m *Reply) String() string { return proto.CompactTextString(m) }
  298. func (*Reply) ProtoMessage() {}
  299. func (*Reply) Descriptor() ([]byte, []int) {
  300. return fileDescriptor_test_2309d445eee26af7, []int{1}
  301. }
  302. var extRange_Reply = []proto.ExtensionRange{
  303. {Start: 100, End: 536870911},
  304. }
  305. func (*Reply) ExtensionRangeArray() []proto.ExtensionRange {
  306. return extRange_Reply
  307. }
  308. func (m *Reply) XXX_Unmarshal(b []byte) error {
  309. return xxx_messageInfo_Reply.Unmarshal(m, b)
  310. }
  311. func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  312. return xxx_messageInfo_Reply.Marshal(b, m, deterministic)
  313. }
  314. func (dst *Reply) XXX_Merge(src proto.Message) {
  315. xxx_messageInfo_Reply.Merge(dst, src)
  316. }
  317. func (m *Reply) XXX_Size() int {
  318. return xxx_messageInfo_Reply.Size(m)
  319. }
  320. func (m *Reply) XXX_DiscardUnknown() {
  321. xxx_messageInfo_Reply.DiscardUnknown(m)
  322. }
  323. var xxx_messageInfo_Reply proto.InternalMessageInfo
  324. func (m *Reply) GetFound() []*Reply_Entry {
  325. if m != nil {
  326. return m.Found
  327. }
  328. return nil
  329. }
  330. func (m *Reply) GetCompactKeys() []int32 {
  331. if m != nil {
  332. return m.CompactKeys
  333. }
  334. return nil
  335. }
  336. type Reply_Entry struct {
  337. KeyThatNeeds_1234Camel_CasIng *int64 `protobuf:"varint,1,req,name=key_that_needs_1234camel_CasIng,json=keyThatNeeds1234camelCasIng" json:"key_that_needs_1234camel_CasIng,omitempty"`
  338. Value *int64 `protobuf:"varint,2,opt,name=value,def=7" json:"value,omitempty"`
  339. XMyFieldName_2 *int64 `protobuf:"varint,3,opt,name=_my_field_name_2,json=MyFieldName2" json:"_my_field_name_2,omitempty"`
  340. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  341. XXX_unrecognized []byte `json:"-"`
  342. XXX_sizecache int32 `json:"-"`
  343. }
  344. func (m *Reply_Entry) Reset() { *m = Reply_Entry{} }
  345. func (m *Reply_Entry) String() string { return proto.CompactTextString(m) }
  346. func (*Reply_Entry) ProtoMessage() {}
  347. func (*Reply_Entry) Descriptor() ([]byte, []int) {
  348. return fileDescriptor_test_2309d445eee26af7, []int{1, 0}
  349. }
  350. func (m *Reply_Entry) XXX_Unmarshal(b []byte) error {
  351. return xxx_messageInfo_Reply_Entry.Unmarshal(m, b)
  352. }
  353. func (m *Reply_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  354. return xxx_messageInfo_Reply_Entry.Marshal(b, m, deterministic)
  355. }
  356. func (dst *Reply_Entry) XXX_Merge(src proto.Message) {
  357. xxx_messageInfo_Reply_Entry.Merge(dst, src)
  358. }
  359. func (m *Reply_Entry) XXX_Size() int {
  360. return xxx_messageInfo_Reply_Entry.Size(m)
  361. }
  362. func (m *Reply_Entry) XXX_DiscardUnknown() {
  363. xxx_messageInfo_Reply_Entry.DiscardUnknown(m)
  364. }
  365. var xxx_messageInfo_Reply_Entry proto.InternalMessageInfo
  366. const Default_Reply_Entry_Value int64 = 7
  367. func (m *Reply_Entry) GetKeyThatNeeds_1234Camel_CasIng() int64 {
  368. if m != nil && m.KeyThatNeeds_1234Camel_CasIng != nil {
  369. return *m.KeyThatNeeds_1234Camel_CasIng
  370. }
  371. return 0
  372. }
  373. func (m *Reply_Entry) GetValue() int64 {
  374. if m != nil && m.Value != nil {
  375. return *m.Value
  376. }
  377. return Default_Reply_Entry_Value
  378. }
  379. func (m *Reply_Entry) GetXMyFieldName_2() int64 {
  380. if m != nil && m.XMyFieldName_2 != nil {
  381. return *m.XMyFieldName_2
  382. }
  383. return 0
  384. }
  385. type OtherBase struct {
  386. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  387. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  388. proto.XXX_InternalExtensions `json:"-"`
  389. XXX_unrecognized []byte `json:"-"`
  390. XXX_sizecache int32 `json:"-"`
  391. }
  392. func (m *OtherBase) Reset() { *m = OtherBase{} }
  393. func (m *OtherBase) String() string { return proto.CompactTextString(m) }
  394. func (*OtherBase) ProtoMessage() {}
  395. func (*OtherBase) Descriptor() ([]byte, []int) {
  396. return fileDescriptor_test_2309d445eee26af7, []int{2}
  397. }
  398. var extRange_OtherBase = []proto.ExtensionRange{
  399. {Start: 100, End: 536870911},
  400. }
  401. func (*OtherBase) ExtensionRangeArray() []proto.ExtensionRange {
  402. return extRange_OtherBase
  403. }
  404. func (m *OtherBase) XXX_Unmarshal(b []byte) error {
  405. return xxx_messageInfo_OtherBase.Unmarshal(m, b)
  406. }
  407. func (m *OtherBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  408. return xxx_messageInfo_OtherBase.Marshal(b, m, deterministic)
  409. }
  410. func (dst *OtherBase) XXX_Merge(src proto.Message) {
  411. xxx_messageInfo_OtherBase.Merge(dst, src)
  412. }
  413. func (m *OtherBase) XXX_Size() int {
  414. return xxx_messageInfo_OtherBase.Size(m)
  415. }
  416. func (m *OtherBase) XXX_DiscardUnknown() {
  417. xxx_messageInfo_OtherBase.DiscardUnknown(m)
  418. }
  419. var xxx_messageInfo_OtherBase proto.InternalMessageInfo
  420. func (m *OtherBase) GetName() string {
  421. if m != nil && m.Name != nil {
  422. return *m.Name
  423. }
  424. return ""
  425. }
  426. type ReplyExtensions struct {
  427. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  428. XXX_unrecognized []byte `json:"-"`
  429. XXX_sizecache int32 `json:"-"`
  430. }
  431. func (m *ReplyExtensions) Reset() { *m = ReplyExtensions{} }
  432. func (m *ReplyExtensions) String() string { return proto.CompactTextString(m) }
  433. func (*ReplyExtensions) ProtoMessage() {}
  434. func (*ReplyExtensions) Descriptor() ([]byte, []int) {
  435. return fileDescriptor_test_2309d445eee26af7, []int{3}
  436. }
  437. func (m *ReplyExtensions) XXX_Unmarshal(b []byte) error {
  438. return xxx_messageInfo_ReplyExtensions.Unmarshal(m, b)
  439. }
  440. func (m *ReplyExtensions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  441. return xxx_messageInfo_ReplyExtensions.Marshal(b, m, deterministic)
  442. }
  443. func (dst *ReplyExtensions) XXX_Merge(src proto.Message) {
  444. xxx_messageInfo_ReplyExtensions.Merge(dst, src)
  445. }
  446. func (m *ReplyExtensions) XXX_Size() int {
  447. return xxx_messageInfo_ReplyExtensions.Size(m)
  448. }
  449. func (m *ReplyExtensions) XXX_DiscardUnknown() {
  450. xxx_messageInfo_ReplyExtensions.DiscardUnknown(m)
  451. }
  452. var xxx_messageInfo_ReplyExtensions proto.InternalMessageInfo
  453. var E_ReplyExtensions_Time = &proto.ExtensionDesc{
  454. ExtendedType: (*Reply)(nil),
  455. ExtensionType: (*float64)(nil),
  456. Field: 101,
  457. Name: "my.test.ReplyExtensions.time",
  458. Tag: "fixed64,101,opt,name=time",
  459. Filename: "my_test/test.proto",
  460. }
  461. var E_ReplyExtensions_Carrot = &proto.ExtensionDesc{
  462. ExtendedType: (*Reply)(nil),
  463. ExtensionType: (*ReplyExtensions)(nil),
  464. Field: 105,
  465. Name: "my.test.ReplyExtensions.carrot",
  466. Tag: "bytes,105,opt,name=carrot",
  467. Filename: "my_test/test.proto",
  468. }
  469. var E_ReplyExtensions_Donut = &proto.ExtensionDesc{
  470. ExtendedType: (*OtherBase)(nil),
  471. ExtensionType: (*ReplyExtensions)(nil),
  472. Field: 101,
  473. Name: "my.test.ReplyExtensions.donut",
  474. Tag: "bytes,101,opt,name=donut",
  475. Filename: "my_test/test.proto",
  476. }
  477. type OtherReplyExtensions struct {
  478. Key *int32 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"`
  479. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  480. XXX_unrecognized []byte `json:"-"`
  481. XXX_sizecache int32 `json:"-"`
  482. }
  483. func (m *OtherReplyExtensions) Reset() { *m = OtherReplyExtensions{} }
  484. func (m *OtherReplyExtensions) String() string { return proto.CompactTextString(m) }
  485. func (*OtherReplyExtensions) ProtoMessage() {}
  486. func (*OtherReplyExtensions) Descriptor() ([]byte, []int) {
  487. return fileDescriptor_test_2309d445eee26af7, []int{4}
  488. }
  489. func (m *OtherReplyExtensions) XXX_Unmarshal(b []byte) error {
  490. return xxx_messageInfo_OtherReplyExtensions.Unmarshal(m, b)
  491. }
  492. func (m *OtherReplyExtensions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  493. return xxx_messageInfo_OtherReplyExtensions.Marshal(b, m, deterministic)
  494. }
  495. func (dst *OtherReplyExtensions) XXX_Merge(src proto.Message) {
  496. xxx_messageInfo_OtherReplyExtensions.Merge(dst, src)
  497. }
  498. func (m *OtherReplyExtensions) XXX_Size() int {
  499. return xxx_messageInfo_OtherReplyExtensions.Size(m)
  500. }
  501. func (m *OtherReplyExtensions) XXX_DiscardUnknown() {
  502. xxx_messageInfo_OtherReplyExtensions.DiscardUnknown(m)
  503. }
  504. var xxx_messageInfo_OtherReplyExtensions proto.InternalMessageInfo
  505. func (m *OtherReplyExtensions) GetKey() int32 {
  506. if m != nil && m.Key != nil {
  507. return *m.Key
  508. }
  509. return 0
  510. }
  511. type OldReply struct {
  512. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  513. proto.XXX_InternalExtensions `protobuf_messageset:"1" json:"-"`
  514. XXX_unrecognized []byte `json:"-"`
  515. XXX_sizecache int32 `json:"-"`
  516. }
  517. func (m *OldReply) Reset() { *m = OldReply{} }
  518. func (m *OldReply) String() string { return proto.CompactTextString(m) }
  519. func (*OldReply) ProtoMessage() {}
  520. func (*OldReply) Descriptor() ([]byte, []int) {
  521. return fileDescriptor_test_2309d445eee26af7, []int{5}
  522. }
  523. func (m *OldReply) MarshalJSON() ([]byte, error) {
  524. return proto.MarshalMessageSetJSON(&m.XXX_InternalExtensions)
  525. }
  526. func (m *OldReply) UnmarshalJSON(buf []byte) error {
  527. return proto.UnmarshalMessageSetJSON(buf, &m.XXX_InternalExtensions)
  528. }
  529. var extRange_OldReply = []proto.ExtensionRange{
  530. {Start: 100, End: 2147483646},
  531. }
  532. func (*OldReply) ExtensionRangeArray() []proto.ExtensionRange {
  533. return extRange_OldReply
  534. }
  535. func (m *OldReply) XXX_Unmarshal(b []byte) error {
  536. return xxx_messageInfo_OldReply.Unmarshal(m, b)
  537. }
  538. func (m *OldReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  539. return xxx_messageInfo_OldReply.Marshal(b, m, deterministic)
  540. }
  541. func (dst *OldReply) XXX_Merge(src proto.Message) {
  542. xxx_messageInfo_OldReply.Merge(dst, src)
  543. }
  544. func (m *OldReply) XXX_Size() int {
  545. return xxx_messageInfo_OldReply.Size(m)
  546. }
  547. func (m *OldReply) XXX_DiscardUnknown() {
  548. xxx_messageInfo_OldReply.DiscardUnknown(m)
  549. }
  550. var xxx_messageInfo_OldReply proto.InternalMessageInfo
  551. type Communique struct {
  552. MakeMeCry *bool `protobuf:"varint,1,opt,name=make_me_cry,json=makeMeCry" json:"make_me_cry,omitempty"`
  553. // This is a oneof, called "union".
  554. //
  555. // Types that are valid to be assigned to Union:
  556. // *Communique_Number
  557. // *Communique_Name
  558. // *Communique_Data
  559. // *Communique_TempC
  560. // *Communique_Height
  561. // *Communique_Today
  562. // *Communique_Maybe
  563. // *Communique_Delta_
  564. // *Communique_Msg
  565. // *Communique_Somegroup
  566. Union isCommunique_Union `protobuf_oneof:"union"`
  567. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  568. XXX_unrecognized []byte `json:"-"`
  569. XXX_sizecache int32 `json:"-"`
  570. }
  571. func (m *Communique) Reset() { *m = Communique{} }
  572. func (m *Communique) String() string { return proto.CompactTextString(m) }
  573. func (*Communique) ProtoMessage() {}
  574. func (*Communique) Descriptor() ([]byte, []int) {
  575. return fileDescriptor_test_2309d445eee26af7, []int{6}
  576. }
  577. func (m *Communique) XXX_Unmarshal(b []byte) error {
  578. return xxx_messageInfo_Communique.Unmarshal(m, b)
  579. }
  580. func (m *Communique) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  581. return xxx_messageInfo_Communique.Marshal(b, m, deterministic)
  582. }
  583. func (dst *Communique) XXX_Merge(src proto.Message) {
  584. xxx_messageInfo_Communique.Merge(dst, src)
  585. }
  586. func (m *Communique) XXX_Size() int {
  587. return xxx_messageInfo_Communique.Size(m)
  588. }
  589. func (m *Communique) XXX_DiscardUnknown() {
  590. xxx_messageInfo_Communique.DiscardUnknown(m)
  591. }
  592. var xxx_messageInfo_Communique proto.InternalMessageInfo
  593. type isCommunique_Union interface {
  594. isCommunique_Union()
  595. }
  596. type Communique_Number struct {
  597. Number int32 `protobuf:"varint,5,opt,name=number,oneof"`
  598. }
  599. type Communique_Name struct {
  600. Name string `protobuf:"bytes,6,opt,name=name,oneof"`
  601. }
  602. type Communique_Data struct {
  603. Data []byte `protobuf:"bytes,7,opt,name=data,oneof"`
  604. }
  605. type Communique_TempC struct {
  606. TempC float64 `protobuf:"fixed64,8,opt,name=temp_c,json=tempC,oneof"`
  607. }
  608. type Communique_Height struct {
  609. Height float32 `protobuf:"fixed32,9,opt,name=height,oneof"`
  610. }
  611. type Communique_Today struct {
  612. Today Days `protobuf:"varint,10,opt,name=today,enum=my.test.Days,oneof"`
  613. }
  614. type Communique_Maybe struct {
  615. Maybe bool `protobuf:"varint,11,opt,name=maybe,oneof"`
  616. }
  617. type Communique_Delta_ struct {
  618. Delta int32 `protobuf:"zigzag32,12,opt,name=delta,oneof"`
  619. }
  620. type Communique_Msg struct {
  621. Msg *Reply `protobuf:"bytes,16,opt,name=msg,oneof"`
  622. }
  623. type Communique_Somegroup struct {
  624. Somegroup *Communique_SomeGroup `protobuf:"group,14,opt,name=SomeGroup,json=somegroup,oneof"`
  625. }
  626. func (*Communique_Number) isCommunique_Union() {}
  627. func (*Communique_Name) isCommunique_Union() {}
  628. func (*Communique_Data) isCommunique_Union() {}
  629. func (*Communique_TempC) isCommunique_Union() {}
  630. func (*Communique_Height) isCommunique_Union() {}
  631. func (*Communique_Today) isCommunique_Union() {}
  632. func (*Communique_Maybe) isCommunique_Union() {}
  633. func (*Communique_Delta_) isCommunique_Union() {}
  634. func (*Communique_Msg) isCommunique_Union() {}
  635. func (*Communique_Somegroup) isCommunique_Union() {}
  636. func (m *Communique) GetUnion() isCommunique_Union {
  637. if m != nil {
  638. return m.Union
  639. }
  640. return nil
  641. }
  642. func (m *Communique) GetMakeMeCry() bool {
  643. if m != nil && m.MakeMeCry != nil {
  644. return *m.MakeMeCry
  645. }
  646. return false
  647. }
  648. func (m *Communique) GetNumber() int32 {
  649. if x, ok := m.GetUnion().(*Communique_Number); ok {
  650. return x.Number
  651. }
  652. return 0
  653. }
  654. func (m *Communique) GetName() string {
  655. if x, ok := m.GetUnion().(*Communique_Name); ok {
  656. return x.Name
  657. }
  658. return ""
  659. }
  660. func (m *Communique) GetData() []byte {
  661. if x, ok := m.GetUnion().(*Communique_Data); ok {
  662. return x.Data
  663. }
  664. return nil
  665. }
  666. func (m *Communique) GetTempC() float64 {
  667. if x, ok := m.GetUnion().(*Communique_TempC); ok {
  668. return x.TempC
  669. }
  670. return 0
  671. }
  672. func (m *Communique) GetHeight() float32 {
  673. if x, ok := m.GetUnion().(*Communique_Height); ok {
  674. return x.Height
  675. }
  676. return 0
  677. }
  678. func (m *Communique) GetToday() Days {
  679. if x, ok := m.GetUnion().(*Communique_Today); ok {
  680. return x.Today
  681. }
  682. return Days_MONDAY
  683. }
  684. func (m *Communique) GetMaybe() bool {
  685. if x, ok := m.GetUnion().(*Communique_Maybe); ok {
  686. return x.Maybe
  687. }
  688. return false
  689. }
  690. func (m *Communique) GetDelta() int32 {
  691. if x, ok := m.GetUnion().(*Communique_Delta_); ok {
  692. return x.Delta
  693. }
  694. return 0
  695. }
  696. func (m *Communique) GetMsg() *Reply {
  697. if x, ok := m.GetUnion().(*Communique_Msg); ok {
  698. return x.Msg
  699. }
  700. return nil
  701. }
  702. func (m *Communique) GetSomegroup() *Communique_SomeGroup {
  703. if x, ok := m.GetUnion().(*Communique_Somegroup); ok {
  704. return x.Somegroup
  705. }
  706. return nil
  707. }
  708. // XXX_OneofFuncs is for the internal use of the proto package.
  709. func (*Communique) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  710. return _Communique_OneofMarshaler, _Communique_OneofUnmarshaler, _Communique_OneofSizer, []interface{}{
  711. (*Communique_Number)(nil),
  712. (*Communique_Name)(nil),
  713. (*Communique_Data)(nil),
  714. (*Communique_TempC)(nil),
  715. (*Communique_Height)(nil),
  716. (*Communique_Today)(nil),
  717. (*Communique_Maybe)(nil),
  718. (*Communique_Delta_)(nil),
  719. (*Communique_Msg)(nil),
  720. (*Communique_Somegroup)(nil),
  721. }
  722. }
  723. func _Communique_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  724. m := msg.(*Communique)
  725. // union
  726. switch x := m.Union.(type) {
  727. case *Communique_Number:
  728. b.EncodeVarint(5<<3 | proto.WireVarint)
  729. b.EncodeVarint(uint64(x.Number))
  730. case *Communique_Name:
  731. b.EncodeVarint(6<<3 | proto.WireBytes)
  732. b.EncodeStringBytes(x.Name)
  733. case *Communique_Data:
  734. b.EncodeVarint(7<<3 | proto.WireBytes)
  735. b.EncodeRawBytes(x.Data)
  736. case *Communique_TempC:
  737. b.EncodeVarint(8<<3 | proto.WireFixed64)
  738. b.EncodeFixed64(math.Float64bits(x.TempC))
  739. case *Communique_Height:
  740. b.EncodeVarint(9<<3 | proto.WireFixed32)
  741. b.EncodeFixed32(uint64(math.Float32bits(x.Height)))
  742. case *Communique_Today:
  743. b.EncodeVarint(10<<3 | proto.WireVarint)
  744. b.EncodeVarint(uint64(x.Today))
  745. case *Communique_Maybe:
  746. t := uint64(0)
  747. if x.Maybe {
  748. t = 1
  749. }
  750. b.EncodeVarint(11<<3 | proto.WireVarint)
  751. b.EncodeVarint(t)
  752. case *Communique_Delta_:
  753. b.EncodeVarint(12<<3 | proto.WireVarint)
  754. b.EncodeZigzag32(uint64(x.Delta))
  755. case *Communique_Msg:
  756. b.EncodeVarint(16<<3 | proto.WireBytes)
  757. if err := b.EncodeMessage(x.Msg); err != nil {
  758. return err
  759. }
  760. case *Communique_Somegroup:
  761. b.EncodeVarint(14<<3 | proto.WireStartGroup)
  762. if err := b.Marshal(x.Somegroup); err != nil {
  763. return err
  764. }
  765. b.EncodeVarint(14<<3 | proto.WireEndGroup)
  766. case nil:
  767. default:
  768. return fmt.Errorf("Communique.Union has unexpected type %T", x)
  769. }
  770. return nil
  771. }
  772. func _Communique_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  773. m := msg.(*Communique)
  774. switch tag {
  775. case 5: // union.number
  776. if wire != proto.WireVarint {
  777. return true, proto.ErrInternalBadWireType
  778. }
  779. x, err := b.DecodeVarint()
  780. m.Union = &Communique_Number{int32(x)}
  781. return true, err
  782. case 6: // union.name
  783. if wire != proto.WireBytes {
  784. return true, proto.ErrInternalBadWireType
  785. }
  786. x, err := b.DecodeStringBytes()
  787. m.Union = &Communique_Name{x}
  788. return true, err
  789. case 7: // union.data
  790. if wire != proto.WireBytes {
  791. return true, proto.ErrInternalBadWireType
  792. }
  793. x, err := b.DecodeRawBytes(true)
  794. m.Union = &Communique_Data{x}
  795. return true, err
  796. case 8: // union.temp_c
  797. if wire != proto.WireFixed64 {
  798. return true, proto.ErrInternalBadWireType
  799. }
  800. x, err := b.DecodeFixed64()
  801. m.Union = &Communique_TempC{math.Float64frombits(x)}
  802. return true, err
  803. case 9: // union.height
  804. if wire != proto.WireFixed32 {
  805. return true, proto.ErrInternalBadWireType
  806. }
  807. x, err := b.DecodeFixed32()
  808. m.Union = &Communique_Height{math.Float32frombits(uint32(x))}
  809. return true, err
  810. case 10: // union.today
  811. if wire != proto.WireVarint {
  812. return true, proto.ErrInternalBadWireType
  813. }
  814. x, err := b.DecodeVarint()
  815. m.Union = &Communique_Today{Days(x)}
  816. return true, err
  817. case 11: // union.maybe
  818. if wire != proto.WireVarint {
  819. return true, proto.ErrInternalBadWireType
  820. }
  821. x, err := b.DecodeVarint()
  822. m.Union = &Communique_Maybe{x != 0}
  823. return true, err
  824. case 12: // union.delta
  825. if wire != proto.WireVarint {
  826. return true, proto.ErrInternalBadWireType
  827. }
  828. x, err := b.DecodeZigzag32()
  829. m.Union = &Communique_Delta_{int32(x)}
  830. return true, err
  831. case 16: // union.msg
  832. if wire != proto.WireBytes {
  833. return true, proto.ErrInternalBadWireType
  834. }
  835. msg := new(Reply)
  836. err := b.DecodeMessage(msg)
  837. m.Union = &Communique_Msg{msg}
  838. return true, err
  839. case 14: // union.somegroup
  840. if wire != proto.WireStartGroup {
  841. return true, proto.ErrInternalBadWireType
  842. }
  843. msg := new(Communique_SomeGroup)
  844. err := b.DecodeGroup(msg)
  845. m.Union = &Communique_Somegroup{msg}
  846. return true, err
  847. default:
  848. return false, nil
  849. }
  850. }
  851. func _Communique_OneofSizer(msg proto.Message) (n int) {
  852. m := msg.(*Communique)
  853. // union
  854. switch x := m.Union.(type) {
  855. case *Communique_Number:
  856. n += 1 // tag and wire
  857. n += proto.SizeVarint(uint64(x.Number))
  858. case *Communique_Name:
  859. n += 1 // tag and wire
  860. n += proto.SizeVarint(uint64(len(x.Name)))
  861. n += len(x.Name)
  862. case *Communique_Data:
  863. n += 1 // tag and wire
  864. n += proto.SizeVarint(uint64(len(x.Data)))
  865. n += len(x.Data)
  866. case *Communique_TempC:
  867. n += 1 // tag and wire
  868. n += 8
  869. case *Communique_Height:
  870. n += 1 // tag and wire
  871. n += 4
  872. case *Communique_Today:
  873. n += 1 // tag and wire
  874. n += proto.SizeVarint(uint64(x.Today))
  875. case *Communique_Maybe:
  876. n += 1 // tag and wire
  877. n += 1
  878. case *Communique_Delta_:
  879. n += 1 // tag and wire
  880. n += proto.SizeVarint(uint64((uint32(x.Delta) << 1) ^ uint32((int32(x.Delta) >> 31))))
  881. case *Communique_Msg:
  882. s := proto.Size(x.Msg)
  883. n += 2 // tag and wire
  884. n += proto.SizeVarint(uint64(s))
  885. n += s
  886. case *Communique_Somegroup:
  887. n += 1 // tag and wire
  888. n += proto.Size(x.Somegroup)
  889. n += 1 // tag and wire
  890. case nil:
  891. default:
  892. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  893. }
  894. return n
  895. }
  896. type Communique_SomeGroup struct {
  897. Member *string `protobuf:"bytes,15,opt,name=member" json:"member,omitempty"`
  898. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  899. XXX_unrecognized []byte `json:"-"`
  900. XXX_sizecache int32 `json:"-"`
  901. }
  902. func (m *Communique_SomeGroup) Reset() { *m = Communique_SomeGroup{} }
  903. func (m *Communique_SomeGroup) String() string { return proto.CompactTextString(m) }
  904. func (*Communique_SomeGroup) ProtoMessage() {}
  905. func (*Communique_SomeGroup) Descriptor() ([]byte, []int) {
  906. return fileDescriptor_test_2309d445eee26af7, []int{6, 0}
  907. }
  908. func (m *Communique_SomeGroup) XXX_Unmarshal(b []byte) error {
  909. return xxx_messageInfo_Communique_SomeGroup.Unmarshal(m, b)
  910. }
  911. func (m *Communique_SomeGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  912. return xxx_messageInfo_Communique_SomeGroup.Marshal(b, m, deterministic)
  913. }
  914. func (dst *Communique_SomeGroup) XXX_Merge(src proto.Message) {
  915. xxx_messageInfo_Communique_SomeGroup.Merge(dst, src)
  916. }
  917. func (m *Communique_SomeGroup) XXX_Size() int {
  918. return xxx_messageInfo_Communique_SomeGroup.Size(m)
  919. }
  920. func (m *Communique_SomeGroup) XXX_DiscardUnknown() {
  921. xxx_messageInfo_Communique_SomeGroup.DiscardUnknown(m)
  922. }
  923. var xxx_messageInfo_Communique_SomeGroup proto.InternalMessageInfo
  924. func (m *Communique_SomeGroup) GetMember() string {
  925. if m != nil && m.Member != nil {
  926. return *m.Member
  927. }
  928. return ""
  929. }
  930. type Communique_Delta struct {
  931. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  932. XXX_unrecognized []byte `json:"-"`
  933. XXX_sizecache int32 `json:"-"`
  934. }
  935. func (m *Communique_Delta) Reset() { *m = Communique_Delta{} }
  936. func (m *Communique_Delta) String() string { return proto.CompactTextString(m) }
  937. func (*Communique_Delta) ProtoMessage() {}
  938. func (*Communique_Delta) Descriptor() ([]byte, []int) {
  939. return fileDescriptor_test_2309d445eee26af7, []int{6, 1}
  940. }
  941. func (m *Communique_Delta) XXX_Unmarshal(b []byte) error {
  942. return xxx_messageInfo_Communique_Delta.Unmarshal(m, b)
  943. }
  944. func (m *Communique_Delta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  945. return xxx_messageInfo_Communique_Delta.Marshal(b, m, deterministic)
  946. }
  947. func (dst *Communique_Delta) XXX_Merge(src proto.Message) {
  948. xxx_messageInfo_Communique_Delta.Merge(dst, src)
  949. }
  950. func (m *Communique_Delta) XXX_Size() int {
  951. return xxx_messageInfo_Communique_Delta.Size(m)
  952. }
  953. func (m *Communique_Delta) XXX_DiscardUnknown() {
  954. xxx_messageInfo_Communique_Delta.DiscardUnknown(m)
  955. }
  956. var xxx_messageInfo_Communique_Delta proto.InternalMessageInfo
  957. var E_Tag = &proto.ExtensionDesc{
  958. ExtendedType: (*Reply)(nil),
  959. ExtensionType: (*string)(nil),
  960. Field: 103,
  961. Name: "my.test.tag",
  962. Tag: "bytes,103,opt,name=tag",
  963. Filename: "my_test/test.proto",
  964. }
  965. var E_Donut = &proto.ExtensionDesc{
  966. ExtendedType: (*Reply)(nil),
  967. ExtensionType: (*OtherReplyExtensions)(nil),
  968. Field: 106,
  969. Name: "my.test.donut",
  970. Tag: "bytes,106,opt,name=donut",
  971. Filename: "my_test/test.proto",
  972. }
  973. func init() {
  974. proto.RegisterType((*Request)(nil), "my.test.Request")
  975. proto.RegisterMapType((map[int64]*Reply)(nil), "my.test.Request.MsgMappingEntry")
  976. proto.RegisterMapType((map[int32]string)(nil), "my.test.Request.NameMappingEntry")
  977. proto.RegisterType((*Request_SomeGroup)(nil), "my.test.Request.SomeGroup")
  978. proto.RegisterType((*Reply)(nil), "my.test.Reply")
  979. proto.RegisterType((*Reply_Entry)(nil), "my.test.Reply.Entry")
  980. proto.RegisterType((*OtherBase)(nil), "my.test.OtherBase")
  981. proto.RegisterType((*ReplyExtensions)(nil), "my.test.ReplyExtensions")
  982. proto.RegisterType((*OtherReplyExtensions)(nil), "my.test.OtherReplyExtensions")
  983. proto.RegisterType((*OldReply)(nil), "my.test.OldReply")
  984. proto.RegisterType((*Communique)(nil), "my.test.Communique")
  985. proto.RegisterType((*Communique_SomeGroup)(nil), "my.test.Communique.SomeGroup")
  986. proto.RegisterType((*Communique_Delta)(nil), "my.test.Communique.Delta")
  987. proto.RegisterEnum("my.test.HatType", HatType_name, HatType_value)
  988. proto.RegisterEnum("my.test.Days", Days_name, Days_value)
  989. proto.RegisterEnum("my.test.Request_Color", Request_Color_name, Request_Color_value)
  990. proto.RegisterEnum("my.test.Reply_Entry_Game", Reply_Entry_Game_name, Reply_Entry_Game_value)
  991. proto.RegisterExtension(E_ReplyExtensions_Time)
  992. proto.RegisterExtension(E_ReplyExtensions_Carrot)
  993. proto.RegisterExtension(E_ReplyExtensions_Donut)
  994. proto.RegisterExtension(E_Tag)
  995. proto.RegisterExtension(E_Donut)
  996. }
  997. func init() { proto.RegisterFile("my_test/test.proto", fileDescriptor_test_2309d445eee26af7) }
  998. var fileDescriptor_test_2309d445eee26af7 = []byte{
  999. // 1033 bytes of a gzipped FileDescriptorProto
  1000. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x55, 0xdd, 0x6e, 0xe3, 0x44,
  1001. 0x14, 0xce, 0xd8, 0x71, 0x7e, 0x4e, 0x42, 0x6b, 0x46, 0x55, 0x6b, 0x05, 0xed, 0xd6, 0x04, 0x8a,
  1002. 0x4c, 0xc5, 0xa6, 0xda, 0x80, 0xc4, 0x2a, 0x88, 0xd5, 0x36, 0x3f, 0x6d, 0xaa, 0x6d, 0x12, 0x69,
  1003. 0xda, 0x5e, 0xb0, 0x37, 0xd6, 0x34, 0x9e, 0x3a, 0xa6, 0x19, 0x3b, 0x6b, 0x8f, 0x11, 0xbe, 0xeb,
  1004. 0x53, 0xc0, 0x6b, 0x70, 0xcf, 0x0b, 0xf1, 0x16, 0x45, 0x33, 0x0e, 0x49, 0xda, 0xa0, 0xbd, 0xb1,
  1005. 0x7c, 0xce, 0xf9, 0xce, 0xe7, 0x39, 0x3f, 0xfe, 0x06, 0x30, 0xcf, 0x5c, 0xc1, 0x12, 0x71, 0x22,
  1006. 0x1f, 0xad, 0x45, 0x1c, 0x89, 0x08, 0x97, 0x79, 0xd6, 0x92, 0x66, 0x03, 0xf3, 0x74, 0x2e, 0x82,
  1007. 0x13, 0xf5, 0x7c, 0x9d, 0x07, 0x9b, 0xff, 0x14, 0xa1, 0x4c, 0xd8, 0xc7, 0x94, 0x25, 0x02, 0x9b,
  1008. 0xa0, 0xdf, 0xb3, 0xcc, 0x42, 0xb6, 0xee, 0xe8, 0x44, 0xbe, 0x62, 0x07, 0xf4, 0x59, 0xca, 0x2c,
  1009. 0xdd, 0x46, 0xce, 0x4e, 0x7b, 0xbf, 0xb5, 0x24, 0x6a, 0x2d, 0x13, 0x5a, 0xbd, 0x68, 0x1e, 0xc5,
  1010. 0x44, 0x42, 0xf0, 0x31, 0xe8, 0x33, 0x2a, 0xac, 0xa2, 0x42, 0x9a, 0x2b, 0xe4, 0x90, 0x8a, 0xeb,
  1011. 0x6c, 0xc1, 0x3a, 0xa5, 0xb3, 0x41, 0x7f, 0x42, 0x4e, 0x89, 0x04, 0xe1, 0x43, 0xa8, 0x78, 0x8c,
  1012. 0x7a, 0xf3, 0x20, 0x64, 0x56, 0xd9, 0x46, 0x8e, 0xd6, 0xd1, 0x83, 0xf0, 0x8e, 0xac, 0x9c, 0xf8,
  1013. 0x0d, 0x54, 0x93, 0x88, 0x33, 0x3f, 0x8e, 0xd2, 0x85, 0x55, 0xb1, 0x91, 0x03, 0xed, 0xc6, 0xd6,
  1014. 0xc7, 0xaf, 0x22, 0xce, 0xce, 0x25, 0x82, 0xac, 0xc1, 0xb8, 0x0f, 0xf5, 0x90, 0x72, 0xe6, 0x72,
  1015. 0xba, 0x58, 0x04, 0xa1, 0x6f, 0xed, 0xd8, 0xba, 0x53, 0x6b, 0x7f, 0xb9, 0x95, 0x3c, 0xa6, 0x9c,
  1016. 0x8d, 0x72, 0xcc, 0x20, 0x14, 0x71, 0x46, 0x6a, 0xe1, 0xda, 0x83, 0x4f, 0xa1, 0xc6, 0x13, 0x7f,
  1017. 0x45, 0xb2, 0xab, 0x48, 0xec, 0x2d, 0x92, 0x51, 0xe2, 0x3f, 0xe1, 0x00, 0xbe, 0x72, 0xe0, 0x3d,
  1018. 0x30, 0x62, 0x96, 0x30, 0x61, 0xd5, 0x6d, 0xe4, 0x18, 0x24, 0x37, 0xf0, 0x01, 0x94, 0x7d, 0x26,
  1019. 0x5c, 0xd9, 0x65, 0xd3, 0x46, 0x4e, 0x95, 0x94, 0x7c, 0x26, 0xde, 0xb3, 0xac, 0xf1, 0x1d, 0x54,
  1020. 0x57, 0xf5, 0xe0, 0x43, 0xa8, 0xa9, 0x6a, 0xdc, 0xbb, 0x80, 0xcd, 0x3d, 0xab, 0xaa, 0x18, 0x40,
  1021. 0xb9, 0xce, 0xa4, 0xa7, 0xf1, 0x16, 0xcc, 0xe7, 0x05, 0xac, 0x87, 0x27, 0xc1, 0x6a, 0x78, 0x7b,
  1022. 0x60, 0xfc, 0x46, 0xe7, 0x29, 0xb3, 0x34, 0xf5, 0xa9, 0xdc, 0xe8, 0x68, 0x6f, 0x50, 0x63, 0x04,
  1023. 0xbb, 0xcf, 0xce, 0xbe, 0x99, 0x8e, 0xf3, 0xf4, 0xaf, 0x37, 0xd3, 0x6b, 0xed, 0x9d, 0x8d, 0xf2,
  1024. 0x17, 0xf3, 0x6c, 0x83, 0xae, 0x79, 0x04, 0x86, 0xda, 0x04, 0x5c, 0x06, 0x9d, 0x0c, 0xfa, 0x66,
  1025. 0x01, 0x57, 0xc1, 0x38, 0x27, 0x83, 0xc1, 0xd8, 0x44, 0xb8, 0x02, 0xc5, 0xee, 0xe5, 0xcd, 0xc0,
  1026. 0xd4, 0x9a, 0x7f, 0x6a, 0x60, 0xa8, 0x5c, 0x7c, 0x0c, 0xc6, 0x5d, 0x94, 0x86, 0x9e, 0x5a, 0xb5,
  1027. 0x5a, 0x7b, 0xef, 0x29, 0x75, 0x2b, 0xef, 0x66, 0x0e, 0xc1, 0x47, 0x50, 0x9f, 0x46, 0x7c, 0x41,
  1028. 0xa7, 0xaa, 0x6d, 0x89, 0xa5, 0xd9, 0xba, 0x63, 0x74, 0x35, 0x13, 0x91, 0xda, 0xd2, 0xff, 0x9e,
  1029. 0x65, 0x49, 0xe3, 0x2f, 0x04, 0x46, 0x5e, 0x49, 0x1f, 0x0e, 0xef, 0x59, 0xe6, 0x8a, 0x19, 0x15,
  1030. 0x6e, 0xc8, 0x98, 0x97, 0xb8, 0xaf, 0xdb, 0xdf, 0xff, 0x30, 0xa5, 0x9c, 0xcd, 0xdd, 0x1e, 0x4d,
  1031. 0x2e, 0x42, 0xdf, 0x42, 0xb6, 0xe6, 0xe8, 0xe4, 0x8b, 0x7b, 0x96, 0x5d, 0xcf, 0xa8, 0x18, 0x4b,
  1032. 0xd0, 0x0a, 0x93, 0x43, 0xf0, 0xc1, 0x66, 0xf5, 0x7a, 0x07, 0xfd, 0xb8, 0x2c, 0x18, 0x7f, 0x03,
  1033. 0xa6, 0xcb, 0xb3, 0x7c, 0x34, 0xae, 0xda, 0xb5, 0xb6, 0xfa, 0x3f, 0x74, 0x52, 0x1f, 0x65, 0x6a,
  1034. 0x3c, 0x72, 0x34, 0xed, 0xa6, 0x0d, 0xc5, 0x73, 0xca, 0x19, 0xae, 0x43, 0xe5, 0x6c, 0x32, 0xb9,
  1035. 0xee, 0x9e, 0x5e, 0x5e, 0x9a, 0x08, 0x03, 0x94, 0xae, 0x07, 0xe3, 0xf1, 0xc5, 0x95, 0xa9, 0x1d,
  1036. 0x57, 0x2a, 0x9e, 0xf9, 0xf0, 0xf0, 0xf0, 0xa0, 0x35, 0xbf, 0x85, 0xea, 0x44, 0xcc, 0x58, 0xdc,
  1037. 0xa5, 0x09, 0xc3, 0x18, 0x8a, 0x92, 0x56, 0x8d, 0xa2, 0x4a, 0xd4, 0xfb, 0x06, 0xf4, 0x6f, 0x04,
  1038. 0xbb, 0xaa, 0x4b, 0x83, 0xdf, 0x05, 0x0b, 0x93, 0x20, 0x0a, 0x93, 0x76, 0x13, 0x8a, 0x22, 0xe0,
  1039. 0x0c, 0x3f, 0x1b, 0x91, 0xc5, 0x6c, 0xe4, 0x20, 0xa2, 0x62, 0xed, 0x77, 0x50, 0x9a, 0xd2, 0x38,
  1040. 0x8e, 0xc4, 0x16, 0x2a, 0x50, 0xe3, 0xb5, 0x9e, 0x7a, 0xd7, 0xec, 0x64, 0x99, 0xd7, 0xee, 0x82,
  1041. 0xe1, 0x45, 0x61, 0x2a, 0x30, 0x5e, 0x41, 0x57, 0x87, 0x56, 0x9f, 0xfa, 0x14, 0x49, 0x9e, 0xda,
  1042. 0x74, 0x60, 0x4f, 0xe5, 0x3c, 0x0b, 0x6f, 0x2f, 0x6f, 0xd3, 0x82, 0xca, 0x64, 0xee, 0x29, 0x9c,
  1043. 0xaa, 0xfe, 0xf1, 0xf1, 0xf1, 0xb1, 0xdc, 0xd1, 0x2a, 0xa8, 0xf9, 0x87, 0x0e, 0xd0, 0x8b, 0x38,
  1044. 0x4f, 0xc3, 0xe0, 0x63, 0xca, 0xf0, 0x4b, 0xa8, 0x71, 0x7a, 0xcf, 0x5c, 0xce, 0xdc, 0x69, 0x9c,
  1045. 0x53, 0x54, 0x48, 0x55, 0xba, 0x46, 0xac, 0x17, 0x67, 0xd8, 0x82, 0x52, 0x98, 0xf2, 0x5b, 0x16,
  1046. 0x5b, 0x86, 0x64, 0x1f, 0x16, 0xc8, 0xd2, 0xc6, 0x7b, 0xcb, 0x46, 0x97, 0x64, 0xa3, 0x87, 0x85,
  1047. 0xbc, 0xd5, 0xd2, 0xeb, 0x51, 0x41, 0x95, 0x30, 0xd5, 0xa5, 0x57, 0x5a, 0xf8, 0x00, 0x4a, 0x82,
  1048. 0xf1, 0x85, 0x3b, 0x55, 0x72, 0x84, 0x86, 0x05, 0x62, 0x48, 0xbb, 0x27, 0xe9, 0x67, 0x2c, 0xf0,
  1049. 0x67, 0x42, 0xfd, 0xa6, 0x9a, 0xa4, 0xcf, 0x6d, 0x7c, 0x04, 0x86, 0x88, 0x3c, 0x9a, 0x59, 0xa0,
  1050. 0x34, 0xf1, 0xb3, 0x55, 0x6f, 0xfa, 0x34, 0x4b, 0x14, 0x81, 0x8c, 0xe2, 0x7d, 0x30, 0x38, 0xcd,
  1051. 0x6e, 0x99, 0x55, 0x93, 0x27, 0x97, 0x7e, 0x65, 0x4a, 0xbf, 0xc7, 0xe6, 0x82, 0x2a, 0x01, 0xf9,
  1052. 0x5c, 0xfa, 0x95, 0x89, 0x9b, 0xa0, 0xf3, 0xc4, 0x57, 0xf2, 0xb1, 0xf5, 0x53, 0x0e, 0x0b, 0x44,
  1053. 0x06, 0xf1, 0xcf, 0x9b, 0xfa, 0xb9, 0xa3, 0xf4, 0xf3, 0xc5, 0x0a, 0xb9, 0xee, 0xdd, 0x5a, 0x42,
  1054. 0x87, 0x85, 0x0d, 0x11, 0x6d, 0x7c, 0xb5, 0x29, 0x46, 0xfb, 0x50, 0xe2, 0x4c, 0xf5, 0x6f, 0x37,
  1055. 0x57, 0xac, 0xdc, 0x6a, 0x94, 0xc1, 0xe8, 0xcb, 0x03, 0x75, 0xcb, 0x60, 0xa4, 0x61, 0x10, 0x85,
  1056. 0xc7, 0x2f, 0xa1, 0xbc, 0x94, 0x7b, 0xb9, 0xe6, 0xb9, 0xe0, 0x9b, 0x48, 0x8a, 0xc2, 0xd9, 0xe0,
  1057. 0x83, 0xa9, 0x1d, 0xb7, 0xa0, 0x28, 0x4b, 0x97, 0xc1, 0xd1, 0x64, 0xdc, 0x3f, 0xfd, 0xc5, 0x44,
  1058. 0xb8, 0x06, 0xe5, 0xeb, 0x9b, 0xc1, 0x95, 0x34, 0x34, 0xa9, 0x1a, 0x97, 0x37, 0xe3, 0xfe, 0x85,
  1059. 0x89, 0x1a, 0x9a, 0x89, 0x3a, 0x36, 0xe8, 0x82, 0xfa, 0x5b, 0xfb, 0xea, 0xab, 0x63, 0xc8, 0x50,
  1060. 0xa7, 0xf7, 0xdf, 0x4a, 0x3e, 0xc7, 0xfc, 0xaa, 0xba, 0xf3, 0xe2, 0xe9, 0xa2, 0xfe, 0xff, 0x4e,
  1061. 0x76, 0xdf, 0x7d, 0x78, 0xeb, 0x07, 0x62, 0x96, 0xde, 0xb6, 0xa6, 0x11, 0x3f, 0xf1, 0xa3, 0x39,
  1062. 0x0d, 0xfd, 0x13, 0x75, 0x39, 0xde, 0xa6, 0x77, 0xf9, 0xcb, 0xf4, 0x95, 0xcf, 0xc2, 0x57, 0x7e,
  1063. 0xa4, 0x6e, 0x55, 0xb9, 0x0f, 0x27, 0xcb, 0x6b, 0xf6, 0x27, 0xf9, 0xf8, 0x37, 0x00, 0x00, 0xff,
  1064. 0xff, 0x12, 0xd5, 0x46, 0x00, 0x75, 0x07, 0x00, 0x00,
  1065. }