test.pb.go 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389
  1. // Code generated by protoc-gen-go.
  2. // source: test.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package testdata is a generated protocol buffer package.
  6. It is generated from these files:
  7. test.proto
  8. It has these top-level messages:
  9. GoEnum
  10. GoTestField
  11. GoTest
  12. GoSkipTest
  13. NonPackedTest
  14. PackedTest
  15. MaxTag
  16. OldMessage
  17. NewMessage
  18. InnerMessage
  19. OtherMessage
  20. MyMessage
  21. Ext
  22. MyMessageSet
  23. Empty
  24. MessageList
  25. Strings
  26. Defaults
  27. SubDefaults
  28. RepeatedEnum
  29. MoreRepeated
  30. GroupOld
  31. GroupNew
  32. FloatingPoint
  33. MessageWithMap
  34. */
  35. package testdata
  36. import proto "github.com/golang/protobuf/proto"
  37. import math "math"
  38. // Reference imports to suppress errors if they are not otherwise used.
  39. var _ = proto.Marshal
  40. var _ = math.Inf
  41. type FOO int32
  42. const (
  43. FOO_FOO1 FOO = 1
  44. )
  45. var FOO_name = map[int32]string{
  46. 1: "FOO1",
  47. }
  48. var FOO_value = map[string]int32{
  49. "FOO1": 1,
  50. }
  51. func (x FOO) Enum() *FOO {
  52. p := new(FOO)
  53. *p = x
  54. return p
  55. }
  56. func (x FOO) String() string {
  57. return proto.EnumName(FOO_name, int32(x))
  58. }
  59. func (x *FOO) UnmarshalJSON(data []byte) error {
  60. value, err := proto.UnmarshalJSONEnum(FOO_value, data, "FOO")
  61. if err != nil {
  62. return err
  63. }
  64. *x = FOO(value)
  65. return nil
  66. }
  67. // An enum, for completeness.
  68. type GoTest_KIND int32
  69. const (
  70. GoTest_VOID GoTest_KIND = 0
  71. // Basic types
  72. GoTest_BOOL GoTest_KIND = 1
  73. GoTest_BYTES GoTest_KIND = 2
  74. GoTest_FINGERPRINT GoTest_KIND = 3
  75. GoTest_FLOAT GoTest_KIND = 4
  76. GoTest_INT GoTest_KIND = 5
  77. GoTest_STRING GoTest_KIND = 6
  78. GoTest_TIME GoTest_KIND = 7
  79. // Groupings
  80. GoTest_TUPLE GoTest_KIND = 8
  81. GoTest_ARRAY GoTest_KIND = 9
  82. GoTest_MAP GoTest_KIND = 10
  83. // Table types
  84. GoTest_TABLE GoTest_KIND = 11
  85. // Functions
  86. GoTest_FUNCTION GoTest_KIND = 12
  87. )
  88. var GoTest_KIND_name = map[int32]string{
  89. 0: "VOID",
  90. 1: "BOOL",
  91. 2: "BYTES",
  92. 3: "FINGERPRINT",
  93. 4: "FLOAT",
  94. 5: "INT",
  95. 6: "STRING",
  96. 7: "TIME",
  97. 8: "TUPLE",
  98. 9: "ARRAY",
  99. 10: "MAP",
  100. 11: "TABLE",
  101. 12: "FUNCTION",
  102. }
  103. var GoTest_KIND_value = map[string]int32{
  104. "VOID": 0,
  105. "BOOL": 1,
  106. "BYTES": 2,
  107. "FINGERPRINT": 3,
  108. "FLOAT": 4,
  109. "INT": 5,
  110. "STRING": 6,
  111. "TIME": 7,
  112. "TUPLE": 8,
  113. "ARRAY": 9,
  114. "MAP": 10,
  115. "TABLE": 11,
  116. "FUNCTION": 12,
  117. }
  118. func (x GoTest_KIND) Enum() *GoTest_KIND {
  119. p := new(GoTest_KIND)
  120. *p = x
  121. return p
  122. }
  123. func (x GoTest_KIND) String() string {
  124. return proto.EnumName(GoTest_KIND_name, int32(x))
  125. }
  126. func (x *GoTest_KIND) UnmarshalJSON(data []byte) error {
  127. value, err := proto.UnmarshalJSONEnum(GoTest_KIND_value, data, "GoTest_KIND")
  128. if err != nil {
  129. return err
  130. }
  131. *x = GoTest_KIND(value)
  132. return nil
  133. }
  134. type MyMessage_Color int32
  135. const (
  136. MyMessage_RED MyMessage_Color = 0
  137. MyMessage_GREEN MyMessage_Color = 1
  138. MyMessage_BLUE MyMessage_Color = 2
  139. )
  140. var MyMessage_Color_name = map[int32]string{
  141. 0: "RED",
  142. 1: "GREEN",
  143. 2: "BLUE",
  144. }
  145. var MyMessage_Color_value = map[string]int32{
  146. "RED": 0,
  147. "GREEN": 1,
  148. "BLUE": 2,
  149. }
  150. func (x MyMessage_Color) Enum() *MyMessage_Color {
  151. p := new(MyMessage_Color)
  152. *p = x
  153. return p
  154. }
  155. func (x MyMessage_Color) String() string {
  156. return proto.EnumName(MyMessage_Color_name, int32(x))
  157. }
  158. func (x *MyMessage_Color) UnmarshalJSON(data []byte) error {
  159. value, err := proto.UnmarshalJSONEnum(MyMessage_Color_value, data, "MyMessage_Color")
  160. if err != nil {
  161. return err
  162. }
  163. *x = MyMessage_Color(value)
  164. return nil
  165. }
  166. type Defaults_Color int32
  167. const (
  168. Defaults_RED Defaults_Color = 0
  169. Defaults_GREEN Defaults_Color = 1
  170. Defaults_BLUE Defaults_Color = 2
  171. )
  172. var Defaults_Color_name = map[int32]string{
  173. 0: "RED",
  174. 1: "GREEN",
  175. 2: "BLUE",
  176. }
  177. var Defaults_Color_value = map[string]int32{
  178. "RED": 0,
  179. "GREEN": 1,
  180. "BLUE": 2,
  181. }
  182. func (x Defaults_Color) Enum() *Defaults_Color {
  183. p := new(Defaults_Color)
  184. *p = x
  185. return p
  186. }
  187. func (x Defaults_Color) String() string {
  188. return proto.EnumName(Defaults_Color_name, int32(x))
  189. }
  190. func (x *Defaults_Color) UnmarshalJSON(data []byte) error {
  191. value, err := proto.UnmarshalJSONEnum(Defaults_Color_value, data, "Defaults_Color")
  192. if err != nil {
  193. return err
  194. }
  195. *x = Defaults_Color(value)
  196. return nil
  197. }
  198. type RepeatedEnum_Color int32
  199. const (
  200. RepeatedEnum_RED RepeatedEnum_Color = 1
  201. )
  202. var RepeatedEnum_Color_name = map[int32]string{
  203. 1: "RED",
  204. }
  205. var RepeatedEnum_Color_value = map[string]int32{
  206. "RED": 1,
  207. }
  208. func (x RepeatedEnum_Color) Enum() *RepeatedEnum_Color {
  209. p := new(RepeatedEnum_Color)
  210. *p = x
  211. return p
  212. }
  213. func (x RepeatedEnum_Color) String() string {
  214. return proto.EnumName(RepeatedEnum_Color_name, int32(x))
  215. }
  216. func (x *RepeatedEnum_Color) UnmarshalJSON(data []byte) error {
  217. value, err := proto.UnmarshalJSONEnum(RepeatedEnum_Color_value, data, "RepeatedEnum_Color")
  218. if err != nil {
  219. return err
  220. }
  221. *x = RepeatedEnum_Color(value)
  222. return nil
  223. }
  224. type GoEnum struct {
  225. Foo *FOO `protobuf:"varint,1,req,name=foo,enum=testdata.FOO" json:"foo,omitempty"`
  226. XXX_unrecognized []byte `json:"-"`
  227. }
  228. func (m *GoEnum) Reset() { *m = GoEnum{} }
  229. func (m *GoEnum) String() string { return proto.CompactTextString(m) }
  230. func (*GoEnum) ProtoMessage() {}
  231. func (m *GoEnum) GetFoo() FOO {
  232. if m != nil && m.Foo != nil {
  233. return *m.Foo
  234. }
  235. return FOO_FOO1
  236. }
  237. type GoTestField struct {
  238. Label *string `protobuf:"bytes,1,req" json:"Label,omitempty"`
  239. Type *string `protobuf:"bytes,2,req" json:"Type,omitempty"`
  240. XXX_unrecognized []byte `json:"-"`
  241. }
  242. func (m *GoTestField) Reset() { *m = GoTestField{} }
  243. func (m *GoTestField) String() string { return proto.CompactTextString(m) }
  244. func (*GoTestField) ProtoMessage() {}
  245. func (m *GoTestField) GetLabel() string {
  246. if m != nil && m.Label != nil {
  247. return *m.Label
  248. }
  249. return ""
  250. }
  251. func (m *GoTestField) GetType() string {
  252. if m != nil && m.Type != nil {
  253. return *m.Type
  254. }
  255. return ""
  256. }
  257. type GoTest struct {
  258. // Some typical parameters
  259. Kind *GoTest_KIND `protobuf:"varint,1,req,enum=testdata.GoTest_KIND" json:"Kind,omitempty"`
  260. Table *string `protobuf:"bytes,2,opt" json:"Table,omitempty"`
  261. Param *int32 `protobuf:"varint,3,opt" json:"Param,omitempty"`
  262. // Required, repeated and optional foreign fields.
  263. RequiredField *GoTestField `protobuf:"bytes,4,req" json:"RequiredField,omitempty"`
  264. RepeatedField []*GoTestField `protobuf:"bytes,5,rep" json:"RepeatedField,omitempty"`
  265. OptionalField *GoTestField `protobuf:"bytes,6,opt" json:"OptionalField,omitempty"`
  266. // Required fields of all basic types
  267. F_BoolRequired *bool `protobuf:"varint,10,req,name=F_Bool_required" json:"F_Bool_required,omitempty"`
  268. F_Int32Required *int32 `protobuf:"varint,11,req,name=F_Int32_required" json:"F_Int32_required,omitempty"`
  269. F_Int64Required *int64 `protobuf:"varint,12,req,name=F_Int64_required" json:"F_Int64_required,omitempty"`
  270. F_Fixed32Required *uint32 `protobuf:"fixed32,13,req,name=F_Fixed32_required" json:"F_Fixed32_required,omitempty"`
  271. F_Fixed64Required *uint64 `protobuf:"fixed64,14,req,name=F_Fixed64_required" json:"F_Fixed64_required,omitempty"`
  272. F_Uint32Required *uint32 `protobuf:"varint,15,req,name=F_Uint32_required" json:"F_Uint32_required,omitempty"`
  273. F_Uint64Required *uint64 `protobuf:"varint,16,req,name=F_Uint64_required" json:"F_Uint64_required,omitempty"`
  274. F_FloatRequired *float32 `protobuf:"fixed32,17,req,name=F_Float_required" json:"F_Float_required,omitempty"`
  275. F_DoubleRequired *float64 `protobuf:"fixed64,18,req,name=F_Double_required" json:"F_Double_required,omitempty"`
  276. F_StringRequired *string `protobuf:"bytes,19,req,name=F_String_required" json:"F_String_required,omitempty"`
  277. F_BytesRequired []byte `protobuf:"bytes,101,req,name=F_Bytes_required" json:"F_Bytes_required,omitempty"`
  278. F_Sint32Required *int32 `protobuf:"zigzag32,102,req,name=F_Sint32_required" json:"F_Sint32_required,omitempty"`
  279. F_Sint64Required *int64 `protobuf:"zigzag64,103,req,name=F_Sint64_required" json:"F_Sint64_required,omitempty"`
  280. // Repeated fields of all basic types
  281. F_BoolRepeated []bool `protobuf:"varint,20,rep,name=F_Bool_repeated" json:"F_Bool_repeated,omitempty"`
  282. F_Int32Repeated []int32 `protobuf:"varint,21,rep,name=F_Int32_repeated" json:"F_Int32_repeated,omitempty"`
  283. F_Int64Repeated []int64 `protobuf:"varint,22,rep,name=F_Int64_repeated" json:"F_Int64_repeated,omitempty"`
  284. F_Fixed32Repeated []uint32 `protobuf:"fixed32,23,rep,name=F_Fixed32_repeated" json:"F_Fixed32_repeated,omitempty"`
  285. F_Fixed64Repeated []uint64 `protobuf:"fixed64,24,rep,name=F_Fixed64_repeated" json:"F_Fixed64_repeated,omitempty"`
  286. F_Uint32Repeated []uint32 `protobuf:"varint,25,rep,name=F_Uint32_repeated" json:"F_Uint32_repeated,omitempty"`
  287. F_Uint64Repeated []uint64 `protobuf:"varint,26,rep,name=F_Uint64_repeated" json:"F_Uint64_repeated,omitempty"`
  288. F_FloatRepeated []float32 `protobuf:"fixed32,27,rep,name=F_Float_repeated" json:"F_Float_repeated,omitempty"`
  289. F_DoubleRepeated []float64 `protobuf:"fixed64,28,rep,name=F_Double_repeated" json:"F_Double_repeated,omitempty"`
  290. F_StringRepeated []string `protobuf:"bytes,29,rep,name=F_String_repeated" json:"F_String_repeated,omitempty"`
  291. F_BytesRepeated [][]byte `protobuf:"bytes,201,rep,name=F_Bytes_repeated" json:"F_Bytes_repeated,omitempty"`
  292. F_Sint32Repeated []int32 `protobuf:"zigzag32,202,rep,name=F_Sint32_repeated" json:"F_Sint32_repeated,omitempty"`
  293. F_Sint64Repeated []int64 `protobuf:"zigzag64,203,rep,name=F_Sint64_repeated" json:"F_Sint64_repeated,omitempty"`
  294. // Optional fields of all basic types
  295. F_BoolOptional *bool `protobuf:"varint,30,opt,name=F_Bool_optional" json:"F_Bool_optional,omitempty"`
  296. F_Int32Optional *int32 `protobuf:"varint,31,opt,name=F_Int32_optional" json:"F_Int32_optional,omitempty"`
  297. F_Int64Optional *int64 `protobuf:"varint,32,opt,name=F_Int64_optional" json:"F_Int64_optional,omitempty"`
  298. F_Fixed32Optional *uint32 `protobuf:"fixed32,33,opt,name=F_Fixed32_optional" json:"F_Fixed32_optional,omitempty"`
  299. F_Fixed64Optional *uint64 `protobuf:"fixed64,34,opt,name=F_Fixed64_optional" json:"F_Fixed64_optional,omitempty"`
  300. F_Uint32Optional *uint32 `protobuf:"varint,35,opt,name=F_Uint32_optional" json:"F_Uint32_optional,omitempty"`
  301. F_Uint64Optional *uint64 `protobuf:"varint,36,opt,name=F_Uint64_optional" json:"F_Uint64_optional,omitempty"`
  302. F_FloatOptional *float32 `protobuf:"fixed32,37,opt,name=F_Float_optional" json:"F_Float_optional,omitempty"`
  303. F_DoubleOptional *float64 `protobuf:"fixed64,38,opt,name=F_Double_optional" json:"F_Double_optional,omitempty"`
  304. F_StringOptional *string `protobuf:"bytes,39,opt,name=F_String_optional" json:"F_String_optional,omitempty"`
  305. F_BytesOptional []byte `protobuf:"bytes,301,opt,name=F_Bytes_optional" json:"F_Bytes_optional,omitempty"`
  306. F_Sint32Optional *int32 `protobuf:"zigzag32,302,opt,name=F_Sint32_optional" json:"F_Sint32_optional,omitempty"`
  307. F_Sint64Optional *int64 `protobuf:"zigzag64,303,opt,name=F_Sint64_optional" json:"F_Sint64_optional,omitempty"`
  308. // Default-valued fields of all basic types
  309. F_BoolDefaulted *bool `protobuf:"varint,40,opt,name=F_Bool_defaulted,def=1" json:"F_Bool_defaulted,omitempty"`
  310. F_Int32Defaulted *int32 `protobuf:"varint,41,opt,name=F_Int32_defaulted,def=32" json:"F_Int32_defaulted,omitempty"`
  311. F_Int64Defaulted *int64 `protobuf:"varint,42,opt,name=F_Int64_defaulted,def=64" json:"F_Int64_defaulted,omitempty"`
  312. F_Fixed32Defaulted *uint32 `protobuf:"fixed32,43,opt,name=F_Fixed32_defaulted,def=320" json:"F_Fixed32_defaulted,omitempty"`
  313. F_Fixed64Defaulted *uint64 `protobuf:"fixed64,44,opt,name=F_Fixed64_defaulted,def=640" json:"F_Fixed64_defaulted,omitempty"`
  314. F_Uint32Defaulted *uint32 `protobuf:"varint,45,opt,name=F_Uint32_defaulted,def=3200" json:"F_Uint32_defaulted,omitempty"`
  315. F_Uint64Defaulted *uint64 `protobuf:"varint,46,opt,name=F_Uint64_defaulted,def=6400" json:"F_Uint64_defaulted,omitempty"`
  316. F_FloatDefaulted *float32 `protobuf:"fixed32,47,opt,name=F_Float_defaulted,def=314159" json:"F_Float_defaulted,omitempty"`
  317. F_DoubleDefaulted *float64 `protobuf:"fixed64,48,opt,name=F_Double_defaulted,def=271828" json:"F_Double_defaulted,omitempty"`
  318. F_StringDefaulted *string `protobuf:"bytes,49,opt,name=F_String_defaulted,def=hello, \"world!\"\n" json:"F_String_defaulted,omitempty"`
  319. F_BytesDefaulted []byte `protobuf:"bytes,401,opt,name=F_Bytes_defaulted,def=Bignose" json:"F_Bytes_defaulted,omitempty"`
  320. F_Sint32Defaulted *int32 `protobuf:"zigzag32,402,opt,name=F_Sint32_defaulted,def=-32" json:"F_Sint32_defaulted,omitempty"`
  321. F_Sint64Defaulted *int64 `protobuf:"zigzag64,403,opt,name=F_Sint64_defaulted,def=-64" json:"F_Sint64_defaulted,omitempty"`
  322. // Packed repeated fields (no string or bytes).
  323. F_BoolRepeatedPacked []bool `protobuf:"varint,50,rep,packed,name=F_Bool_repeated_packed" json:"F_Bool_repeated_packed,omitempty"`
  324. F_Int32RepeatedPacked []int32 `protobuf:"varint,51,rep,packed,name=F_Int32_repeated_packed" json:"F_Int32_repeated_packed,omitempty"`
  325. F_Int64RepeatedPacked []int64 `protobuf:"varint,52,rep,packed,name=F_Int64_repeated_packed" json:"F_Int64_repeated_packed,omitempty"`
  326. F_Fixed32RepeatedPacked []uint32 `protobuf:"fixed32,53,rep,packed,name=F_Fixed32_repeated_packed" json:"F_Fixed32_repeated_packed,omitempty"`
  327. F_Fixed64RepeatedPacked []uint64 `protobuf:"fixed64,54,rep,packed,name=F_Fixed64_repeated_packed" json:"F_Fixed64_repeated_packed,omitempty"`
  328. F_Uint32RepeatedPacked []uint32 `protobuf:"varint,55,rep,packed,name=F_Uint32_repeated_packed" json:"F_Uint32_repeated_packed,omitempty"`
  329. F_Uint64RepeatedPacked []uint64 `protobuf:"varint,56,rep,packed,name=F_Uint64_repeated_packed" json:"F_Uint64_repeated_packed,omitempty"`
  330. F_FloatRepeatedPacked []float32 `protobuf:"fixed32,57,rep,packed,name=F_Float_repeated_packed" json:"F_Float_repeated_packed,omitempty"`
  331. F_DoubleRepeatedPacked []float64 `protobuf:"fixed64,58,rep,packed,name=F_Double_repeated_packed" json:"F_Double_repeated_packed,omitempty"`
  332. F_Sint32RepeatedPacked []int32 `protobuf:"zigzag32,502,rep,packed,name=F_Sint32_repeated_packed" json:"F_Sint32_repeated_packed,omitempty"`
  333. F_Sint64RepeatedPacked []int64 `protobuf:"zigzag64,503,rep,packed,name=F_Sint64_repeated_packed" json:"F_Sint64_repeated_packed,omitempty"`
  334. Requiredgroup *GoTest_RequiredGroup `protobuf:"group,70,req,name=RequiredGroup" json:"requiredgroup,omitempty"`
  335. Repeatedgroup []*GoTest_RepeatedGroup `protobuf:"group,80,rep,name=RepeatedGroup" json:"repeatedgroup,omitempty"`
  336. Optionalgroup *GoTest_OptionalGroup `protobuf:"group,90,opt,name=OptionalGroup" json:"optionalgroup,omitempty"`
  337. XXX_unrecognized []byte `json:"-"`
  338. }
  339. func (m *GoTest) Reset() { *m = GoTest{} }
  340. func (m *GoTest) String() string { return proto.CompactTextString(m) }
  341. func (*GoTest) ProtoMessage() {}
  342. const Default_GoTest_F_BoolDefaulted bool = true
  343. const Default_GoTest_F_Int32Defaulted int32 = 32
  344. const Default_GoTest_F_Int64Defaulted int64 = 64
  345. const Default_GoTest_F_Fixed32Defaulted uint32 = 320
  346. const Default_GoTest_F_Fixed64Defaulted uint64 = 640
  347. const Default_GoTest_F_Uint32Defaulted uint32 = 3200
  348. const Default_GoTest_F_Uint64Defaulted uint64 = 6400
  349. const Default_GoTest_F_FloatDefaulted float32 = 314159
  350. const Default_GoTest_F_DoubleDefaulted float64 = 271828
  351. const Default_GoTest_F_StringDefaulted string = "hello, \"world!\"\n"
  352. var Default_GoTest_F_BytesDefaulted []byte = []byte("Bignose")
  353. const Default_GoTest_F_Sint32Defaulted int32 = -32
  354. const Default_GoTest_F_Sint64Defaulted int64 = -64
  355. func (m *GoTest) GetKind() GoTest_KIND {
  356. if m != nil && m.Kind != nil {
  357. return *m.Kind
  358. }
  359. return GoTest_VOID
  360. }
  361. func (m *GoTest) GetTable() string {
  362. if m != nil && m.Table != nil {
  363. return *m.Table
  364. }
  365. return ""
  366. }
  367. func (m *GoTest) GetParam() int32 {
  368. if m != nil && m.Param != nil {
  369. return *m.Param
  370. }
  371. return 0
  372. }
  373. func (m *GoTest) GetRequiredField() *GoTestField {
  374. if m != nil {
  375. return m.RequiredField
  376. }
  377. return nil
  378. }
  379. func (m *GoTest) GetRepeatedField() []*GoTestField {
  380. if m != nil {
  381. return m.RepeatedField
  382. }
  383. return nil
  384. }
  385. func (m *GoTest) GetOptionalField() *GoTestField {
  386. if m != nil {
  387. return m.OptionalField
  388. }
  389. return nil
  390. }
  391. func (m *GoTest) GetF_BoolRequired() bool {
  392. if m != nil && m.F_BoolRequired != nil {
  393. return *m.F_BoolRequired
  394. }
  395. return false
  396. }
  397. func (m *GoTest) GetF_Int32Required() int32 {
  398. if m != nil && m.F_Int32Required != nil {
  399. return *m.F_Int32Required
  400. }
  401. return 0
  402. }
  403. func (m *GoTest) GetF_Int64Required() int64 {
  404. if m != nil && m.F_Int64Required != nil {
  405. return *m.F_Int64Required
  406. }
  407. return 0
  408. }
  409. func (m *GoTest) GetF_Fixed32Required() uint32 {
  410. if m != nil && m.F_Fixed32Required != nil {
  411. return *m.F_Fixed32Required
  412. }
  413. return 0
  414. }
  415. func (m *GoTest) GetF_Fixed64Required() uint64 {
  416. if m != nil && m.F_Fixed64Required != nil {
  417. return *m.F_Fixed64Required
  418. }
  419. return 0
  420. }
  421. func (m *GoTest) GetF_Uint32Required() uint32 {
  422. if m != nil && m.F_Uint32Required != nil {
  423. return *m.F_Uint32Required
  424. }
  425. return 0
  426. }
  427. func (m *GoTest) GetF_Uint64Required() uint64 {
  428. if m != nil && m.F_Uint64Required != nil {
  429. return *m.F_Uint64Required
  430. }
  431. return 0
  432. }
  433. func (m *GoTest) GetF_FloatRequired() float32 {
  434. if m != nil && m.F_FloatRequired != nil {
  435. return *m.F_FloatRequired
  436. }
  437. return 0
  438. }
  439. func (m *GoTest) GetF_DoubleRequired() float64 {
  440. if m != nil && m.F_DoubleRequired != nil {
  441. return *m.F_DoubleRequired
  442. }
  443. return 0
  444. }
  445. func (m *GoTest) GetF_StringRequired() string {
  446. if m != nil && m.F_StringRequired != nil {
  447. return *m.F_StringRequired
  448. }
  449. return ""
  450. }
  451. func (m *GoTest) GetF_BytesRequired() []byte {
  452. if m != nil {
  453. return m.F_BytesRequired
  454. }
  455. return nil
  456. }
  457. func (m *GoTest) GetF_Sint32Required() int32 {
  458. if m != nil && m.F_Sint32Required != nil {
  459. return *m.F_Sint32Required
  460. }
  461. return 0
  462. }
  463. func (m *GoTest) GetF_Sint64Required() int64 {
  464. if m != nil && m.F_Sint64Required != nil {
  465. return *m.F_Sint64Required
  466. }
  467. return 0
  468. }
  469. func (m *GoTest) GetF_BoolRepeated() []bool {
  470. if m != nil {
  471. return m.F_BoolRepeated
  472. }
  473. return nil
  474. }
  475. func (m *GoTest) GetF_Int32Repeated() []int32 {
  476. if m != nil {
  477. return m.F_Int32Repeated
  478. }
  479. return nil
  480. }
  481. func (m *GoTest) GetF_Int64Repeated() []int64 {
  482. if m != nil {
  483. return m.F_Int64Repeated
  484. }
  485. return nil
  486. }
  487. func (m *GoTest) GetF_Fixed32Repeated() []uint32 {
  488. if m != nil {
  489. return m.F_Fixed32Repeated
  490. }
  491. return nil
  492. }
  493. func (m *GoTest) GetF_Fixed64Repeated() []uint64 {
  494. if m != nil {
  495. return m.F_Fixed64Repeated
  496. }
  497. return nil
  498. }
  499. func (m *GoTest) GetF_Uint32Repeated() []uint32 {
  500. if m != nil {
  501. return m.F_Uint32Repeated
  502. }
  503. return nil
  504. }
  505. func (m *GoTest) GetF_Uint64Repeated() []uint64 {
  506. if m != nil {
  507. return m.F_Uint64Repeated
  508. }
  509. return nil
  510. }
  511. func (m *GoTest) GetF_FloatRepeated() []float32 {
  512. if m != nil {
  513. return m.F_FloatRepeated
  514. }
  515. return nil
  516. }
  517. func (m *GoTest) GetF_DoubleRepeated() []float64 {
  518. if m != nil {
  519. return m.F_DoubleRepeated
  520. }
  521. return nil
  522. }
  523. func (m *GoTest) GetF_StringRepeated() []string {
  524. if m != nil {
  525. return m.F_StringRepeated
  526. }
  527. return nil
  528. }
  529. func (m *GoTest) GetF_BytesRepeated() [][]byte {
  530. if m != nil {
  531. return m.F_BytesRepeated
  532. }
  533. return nil
  534. }
  535. func (m *GoTest) GetF_Sint32Repeated() []int32 {
  536. if m != nil {
  537. return m.F_Sint32Repeated
  538. }
  539. return nil
  540. }
  541. func (m *GoTest) GetF_Sint64Repeated() []int64 {
  542. if m != nil {
  543. return m.F_Sint64Repeated
  544. }
  545. return nil
  546. }
  547. func (m *GoTest) GetF_BoolOptional() bool {
  548. if m != nil && m.F_BoolOptional != nil {
  549. return *m.F_BoolOptional
  550. }
  551. return false
  552. }
  553. func (m *GoTest) GetF_Int32Optional() int32 {
  554. if m != nil && m.F_Int32Optional != nil {
  555. return *m.F_Int32Optional
  556. }
  557. return 0
  558. }
  559. func (m *GoTest) GetF_Int64Optional() int64 {
  560. if m != nil && m.F_Int64Optional != nil {
  561. return *m.F_Int64Optional
  562. }
  563. return 0
  564. }
  565. func (m *GoTest) GetF_Fixed32Optional() uint32 {
  566. if m != nil && m.F_Fixed32Optional != nil {
  567. return *m.F_Fixed32Optional
  568. }
  569. return 0
  570. }
  571. func (m *GoTest) GetF_Fixed64Optional() uint64 {
  572. if m != nil && m.F_Fixed64Optional != nil {
  573. return *m.F_Fixed64Optional
  574. }
  575. return 0
  576. }
  577. func (m *GoTest) GetF_Uint32Optional() uint32 {
  578. if m != nil && m.F_Uint32Optional != nil {
  579. return *m.F_Uint32Optional
  580. }
  581. return 0
  582. }
  583. func (m *GoTest) GetF_Uint64Optional() uint64 {
  584. if m != nil && m.F_Uint64Optional != nil {
  585. return *m.F_Uint64Optional
  586. }
  587. return 0
  588. }
  589. func (m *GoTest) GetF_FloatOptional() float32 {
  590. if m != nil && m.F_FloatOptional != nil {
  591. return *m.F_FloatOptional
  592. }
  593. return 0
  594. }
  595. func (m *GoTest) GetF_DoubleOptional() float64 {
  596. if m != nil && m.F_DoubleOptional != nil {
  597. return *m.F_DoubleOptional
  598. }
  599. return 0
  600. }
  601. func (m *GoTest) GetF_StringOptional() string {
  602. if m != nil && m.F_StringOptional != nil {
  603. return *m.F_StringOptional
  604. }
  605. return ""
  606. }
  607. func (m *GoTest) GetF_BytesOptional() []byte {
  608. if m != nil {
  609. return m.F_BytesOptional
  610. }
  611. return nil
  612. }
  613. func (m *GoTest) GetF_Sint32Optional() int32 {
  614. if m != nil && m.F_Sint32Optional != nil {
  615. return *m.F_Sint32Optional
  616. }
  617. return 0
  618. }
  619. func (m *GoTest) GetF_Sint64Optional() int64 {
  620. if m != nil && m.F_Sint64Optional != nil {
  621. return *m.F_Sint64Optional
  622. }
  623. return 0
  624. }
  625. func (m *GoTest) GetF_BoolDefaulted() bool {
  626. if m != nil && m.F_BoolDefaulted != nil {
  627. return *m.F_BoolDefaulted
  628. }
  629. return Default_GoTest_F_BoolDefaulted
  630. }
  631. func (m *GoTest) GetF_Int32Defaulted() int32 {
  632. if m != nil && m.F_Int32Defaulted != nil {
  633. return *m.F_Int32Defaulted
  634. }
  635. return Default_GoTest_F_Int32Defaulted
  636. }
  637. func (m *GoTest) GetF_Int64Defaulted() int64 {
  638. if m != nil && m.F_Int64Defaulted != nil {
  639. return *m.F_Int64Defaulted
  640. }
  641. return Default_GoTest_F_Int64Defaulted
  642. }
  643. func (m *GoTest) GetF_Fixed32Defaulted() uint32 {
  644. if m != nil && m.F_Fixed32Defaulted != nil {
  645. return *m.F_Fixed32Defaulted
  646. }
  647. return Default_GoTest_F_Fixed32Defaulted
  648. }
  649. func (m *GoTest) GetF_Fixed64Defaulted() uint64 {
  650. if m != nil && m.F_Fixed64Defaulted != nil {
  651. return *m.F_Fixed64Defaulted
  652. }
  653. return Default_GoTest_F_Fixed64Defaulted
  654. }
  655. func (m *GoTest) GetF_Uint32Defaulted() uint32 {
  656. if m != nil && m.F_Uint32Defaulted != nil {
  657. return *m.F_Uint32Defaulted
  658. }
  659. return Default_GoTest_F_Uint32Defaulted
  660. }
  661. func (m *GoTest) GetF_Uint64Defaulted() uint64 {
  662. if m != nil && m.F_Uint64Defaulted != nil {
  663. return *m.F_Uint64Defaulted
  664. }
  665. return Default_GoTest_F_Uint64Defaulted
  666. }
  667. func (m *GoTest) GetF_FloatDefaulted() float32 {
  668. if m != nil && m.F_FloatDefaulted != nil {
  669. return *m.F_FloatDefaulted
  670. }
  671. return Default_GoTest_F_FloatDefaulted
  672. }
  673. func (m *GoTest) GetF_DoubleDefaulted() float64 {
  674. if m != nil && m.F_DoubleDefaulted != nil {
  675. return *m.F_DoubleDefaulted
  676. }
  677. return Default_GoTest_F_DoubleDefaulted
  678. }
  679. func (m *GoTest) GetF_StringDefaulted() string {
  680. if m != nil && m.F_StringDefaulted != nil {
  681. return *m.F_StringDefaulted
  682. }
  683. return Default_GoTest_F_StringDefaulted
  684. }
  685. func (m *GoTest) GetF_BytesDefaulted() []byte {
  686. if m != nil && m.F_BytesDefaulted != nil {
  687. return m.F_BytesDefaulted
  688. }
  689. return append([]byte(nil), Default_GoTest_F_BytesDefaulted...)
  690. }
  691. func (m *GoTest) GetF_Sint32Defaulted() int32 {
  692. if m != nil && m.F_Sint32Defaulted != nil {
  693. return *m.F_Sint32Defaulted
  694. }
  695. return Default_GoTest_F_Sint32Defaulted
  696. }
  697. func (m *GoTest) GetF_Sint64Defaulted() int64 {
  698. if m != nil && m.F_Sint64Defaulted != nil {
  699. return *m.F_Sint64Defaulted
  700. }
  701. return Default_GoTest_F_Sint64Defaulted
  702. }
  703. func (m *GoTest) GetF_BoolRepeatedPacked() []bool {
  704. if m != nil {
  705. return m.F_BoolRepeatedPacked
  706. }
  707. return nil
  708. }
  709. func (m *GoTest) GetF_Int32RepeatedPacked() []int32 {
  710. if m != nil {
  711. return m.F_Int32RepeatedPacked
  712. }
  713. return nil
  714. }
  715. func (m *GoTest) GetF_Int64RepeatedPacked() []int64 {
  716. if m != nil {
  717. return m.F_Int64RepeatedPacked
  718. }
  719. return nil
  720. }
  721. func (m *GoTest) GetF_Fixed32RepeatedPacked() []uint32 {
  722. if m != nil {
  723. return m.F_Fixed32RepeatedPacked
  724. }
  725. return nil
  726. }
  727. func (m *GoTest) GetF_Fixed64RepeatedPacked() []uint64 {
  728. if m != nil {
  729. return m.F_Fixed64RepeatedPacked
  730. }
  731. return nil
  732. }
  733. func (m *GoTest) GetF_Uint32RepeatedPacked() []uint32 {
  734. if m != nil {
  735. return m.F_Uint32RepeatedPacked
  736. }
  737. return nil
  738. }
  739. func (m *GoTest) GetF_Uint64RepeatedPacked() []uint64 {
  740. if m != nil {
  741. return m.F_Uint64RepeatedPacked
  742. }
  743. return nil
  744. }
  745. func (m *GoTest) GetF_FloatRepeatedPacked() []float32 {
  746. if m != nil {
  747. return m.F_FloatRepeatedPacked
  748. }
  749. return nil
  750. }
  751. func (m *GoTest) GetF_DoubleRepeatedPacked() []float64 {
  752. if m != nil {
  753. return m.F_DoubleRepeatedPacked
  754. }
  755. return nil
  756. }
  757. func (m *GoTest) GetF_Sint32RepeatedPacked() []int32 {
  758. if m != nil {
  759. return m.F_Sint32RepeatedPacked
  760. }
  761. return nil
  762. }
  763. func (m *GoTest) GetF_Sint64RepeatedPacked() []int64 {
  764. if m != nil {
  765. return m.F_Sint64RepeatedPacked
  766. }
  767. return nil
  768. }
  769. func (m *GoTest) GetRequiredgroup() *GoTest_RequiredGroup {
  770. if m != nil {
  771. return m.Requiredgroup
  772. }
  773. return nil
  774. }
  775. func (m *GoTest) GetRepeatedgroup() []*GoTest_RepeatedGroup {
  776. if m != nil {
  777. return m.Repeatedgroup
  778. }
  779. return nil
  780. }
  781. func (m *GoTest) GetOptionalgroup() *GoTest_OptionalGroup {
  782. if m != nil {
  783. return m.Optionalgroup
  784. }
  785. return nil
  786. }
  787. // Required, repeated, and optional groups.
  788. type GoTest_RequiredGroup struct {
  789. RequiredField *string `protobuf:"bytes,71,req" json:"RequiredField,omitempty"`
  790. XXX_unrecognized []byte `json:"-"`
  791. }
  792. func (m *GoTest_RequiredGroup) Reset() { *m = GoTest_RequiredGroup{} }
  793. func (m *GoTest_RequiredGroup) String() string { return proto.CompactTextString(m) }
  794. func (*GoTest_RequiredGroup) ProtoMessage() {}
  795. func (m *GoTest_RequiredGroup) GetRequiredField() string {
  796. if m != nil && m.RequiredField != nil {
  797. return *m.RequiredField
  798. }
  799. return ""
  800. }
  801. type GoTest_RepeatedGroup struct {
  802. RequiredField *string `protobuf:"bytes,81,req" json:"RequiredField,omitempty"`
  803. XXX_unrecognized []byte `json:"-"`
  804. }
  805. func (m *GoTest_RepeatedGroup) Reset() { *m = GoTest_RepeatedGroup{} }
  806. func (m *GoTest_RepeatedGroup) String() string { return proto.CompactTextString(m) }
  807. func (*GoTest_RepeatedGroup) ProtoMessage() {}
  808. func (m *GoTest_RepeatedGroup) GetRequiredField() string {
  809. if m != nil && m.RequiredField != nil {
  810. return *m.RequiredField
  811. }
  812. return ""
  813. }
  814. type GoTest_OptionalGroup struct {
  815. RequiredField *string `protobuf:"bytes,91,req" json:"RequiredField,omitempty"`
  816. XXX_unrecognized []byte `json:"-"`
  817. }
  818. func (m *GoTest_OptionalGroup) Reset() { *m = GoTest_OptionalGroup{} }
  819. func (m *GoTest_OptionalGroup) String() string { return proto.CompactTextString(m) }
  820. func (*GoTest_OptionalGroup) ProtoMessage() {}
  821. func (m *GoTest_OptionalGroup) GetRequiredField() string {
  822. if m != nil && m.RequiredField != nil {
  823. return *m.RequiredField
  824. }
  825. return ""
  826. }
  827. // For testing skipping of unrecognized fields.
  828. // Numbers are all big, larger than tag numbers in GoTestField,
  829. // the message used in the corresponding test.
  830. type GoSkipTest struct {
  831. SkipInt32 *int32 `protobuf:"varint,11,req,name=skip_int32" json:"skip_int32,omitempty"`
  832. SkipFixed32 *uint32 `protobuf:"fixed32,12,req,name=skip_fixed32" json:"skip_fixed32,omitempty"`
  833. SkipFixed64 *uint64 `protobuf:"fixed64,13,req,name=skip_fixed64" json:"skip_fixed64,omitempty"`
  834. SkipString *string `protobuf:"bytes,14,req,name=skip_string" json:"skip_string,omitempty"`
  835. Skipgroup *GoSkipTest_SkipGroup `protobuf:"group,15,req,name=SkipGroup" json:"skipgroup,omitempty"`
  836. XXX_unrecognized []byte `json:"-"`
  837. }
  838. func (m *GoSkipTest) Reset() { *m = GoSkipTest{} }
  839. func (m *GoSkipTest) String() string { return proto.CompactTextString(m) }
  840. func (*GoSkipTest) ProtoMessage() {}
  841. func (m *GoSkipTest) GetSkipInt32() int32 {
  842. if m != nil && m.SkipInt32 != nil {
  843. return *m.SkipInt32
  844. }
  845. return 0
  846. }
  847. func (m *GoSkipTest) GetSkipFixed32() uint32 {
  848. if m != nil && m.SkipFixed32 != nil {
  849. return *m.SkipFixed32
  850. }
  851. return 0
  852. }
  853. func (m *GoSkipTest) GetSkipFixed64() uint64 {
  854. if m != nil && m.SkipFixed64 != nil {
  855. return *m.SkipFixed64
  856. }
  857. return 0
  858. }
  859. func (m *GoSkipTest) GetSkipString() string {
  860. if m != nil && m.SkipString != nil {
  861. return *m.SkipString
  862. }
  863. return ""
  864. }
  865. func (m *GoSkipTest) GetSkipgroup() *GoSkipTest_SkipGroup {
  866. if m != nil {
  867. return m.Skipgroup
  868. }
  869. return nil
  870. }
  871. type GoSkipTest_SkipGroup struct {
  872. GroupInt32 *int32 `protobuf:"varint,16,req,name=group_int32" json:"group_int32,omitempty"`
  873. GroupString *string `protobuf:"bytes,17,req,name=group_string" json:"group_string,omitempty"`
  874. XXX_unrecognized []byte `json:"-"`
  875. }
  876. func (m *GoSkipTest_SkipGroup) Reset() { *m = GoSkipTest_SkipGroup{} }
  877. func (m *GoSkipTest_SkipGroup) String() string { return proto.CompactTextString(m) }
  878. func (*GoSkipTest_SkipGroup) ProtoMessage() {}
  879. func (m *GoSkipTest_SkipGroup) GetGroupInt32() int32 {
  880. if m != nil && m.GroupInt32 != nil {
  881. return *m.GroupInt32
  882. }
  883. return 0
  884. }
  885. func (m *GoSkipTest_SkipGroup) GetGroupString() string {
  886. if m != nil && m.GroupString != nil {
  887. return *m.GroupString
  888. }
  889. return ""
  890. }
  891. // For testing packed/non-packed decoder switching.
  892. // A serialized instance of one should be deserializable as the other.
  893. type NonPackedTest struct {
  894. A []int32 `protobuf:"varint,1,rep,name=a" json:"a,omitempty"`
  895. XXX_unrecognized []byte `json:"-"`
  896. }
  897. func (m *NonPackedTest) Reset() { *m = NonPackedTest{} }
  898. func (m *NonPackedTest) String() string { return proto.CompactTextString(m) }
  899. func (*NonPackedTest) ProtoMessage() {}
  900. func (m *NonPackedTest) GetA() []int32 {
  901. if m != nil {
  902. return m.A
  903. }
  904. return nil
  905. }
  906. type PackedTest struct {
  907. B []int32 `protobuf:"varint,1,rep,packed,name=b" json:"b,omitempty"`
  908. XXX_unrecognized []byte `json:"-"`
  909. }
  910. func (m *PackedTest) Reset() { *m = PackedTest{} }
  911. func (m *PackedTest) String() string { return proto.CompactTextString(m) }
  912. func (*PackedTest) ProtoMessage() {}
  913. func (m *PackedTest) GetB() []int32 {
  914. if m != nil {
  915. return m.B
  916. }
  917. return nil
  918. }
  919. type MaxTag struct {
  920. // Maximum possible tag number.
  921. LastField *string `protobuf:"bytes,536870911,opt,name=last_field" json:"last_field,omitempty"`
  922. XXX_unrecognized []byte `json:"-"`
  923. }
  924. func (m *MaxTag) Reset() { *m = MaxTag{} }
  925. func (m *MaxTag) String() string { return proto.CompactTextString(m) }
  926. func (*MaxTag) ProtoMessage() {}
  927. func (m *MaxTag) GetLastField() string {
  928. if m != nil && m.LastField != nil {
  929. return *m.LastField
  930. }
  931. return ""
  932. }
  933. type OldMessage struct {
  934. Nested *OldMessage_Nested `protobuf:"bytes,1,opt,name=nested" json:"nested,omitempty"`
  935. Num *int32 `protobuf:"varint,2,opt,name=num" json:"num,omitempty"`
  936. XXX_unrecognized []byte `json:"-"`
  937. }
  938. func (m *OldMessage) Reset() { *m = OldMessage{} }
  939. func (m *OldMessage) String() string { return proto.CompactTextString(m) }
  940. func (*OldMessage) ProtoMessage() {}
  941. func (m *OldMessage) GetNested() *OldMessage_Nested {
  942. if m != nil {
  943. return m.Nested
  944. }
  945. return nil
  946. }
  947. func (m *OldMessage) GetNum() int32 {
  948. if m != nil && m.Num != nil {
  949. return *m.Num
  950. }
  951. return 0
  952. }
  953. type OldMessage_Nested struct {
  954. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  955. XXX_unrecognized []byte `json:"-"`
  956. }
  957. func (m *OldMessage_Nested) Reset() { *m = OldMessage_Nested{} }
  958. func (m *OldMessage_Nested) String() string { return proto.CompactTextString(m) }
  959. func (*OldMessage_Nested) ProtoMessage() {}
  960. func (m *OldMessage_Nested) GetName() string {
  961. if m != nil && m.Name != nil {
  962. return *m.Name
  963. }
  964. return ""
  965. }
  966. // NewMessage is wire compatible with OldMessage;
  967. // imagine it as a future version.
  968. type NewMessage struct {
  969. Nested *NewMessage_Nested `protobuf:"bytes,1,opt,name=nested" json:"nested,omitempty"`
  970. // This is an int32 in OldMessage.
  971. Num *int64 `protobuf:"varint,2,opt,name=num" json:"num,omitempty"`
  972. XXX_unrecognized []byte `json:"-"`
  973. }
  974. func (m *NewMessage) Reset() { *m = NewMessage{} }
  975. func (m *NewMessage) String() string { return proto.CompactTextString(m) }
  976. func (*NewMessage) ProtoMessage() {}
  977. func (m *NewMessage) GetNested() *NewMessage_Nested {
  978. if m != nil {
  979. return m.Nested
  980. }
  981. return nil
  982. }
  983. func (m *NewMessage) GetNum() int64 {
  984. if m != nil && m.Num != nil {
  985. return *m.Num
  986. }
  987. return 0
  988. }
  989. type NewMessage_Nested struct {
  990. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  991. FoodGroup *string `protobuf:"bytes,2,opt,name=food_group" json:"food_group,omitempty"`
  992. XXX_unrecognized []byte `json:"-"`
  993. }
  994. func (m *NewMessage_Nested) Reset() { *m = NewMessage_Nested{} }
  995. func (m *NewMessage_Nested) String() string { return proto.CompactTextString(m) }
  996. func (*NewMessage_Nested) ProtoMessage() {}
  997. func (m *NewMessage_Nested) GetName() string {
  998. if m != nil && m.Name != nil {
  999. return *m.Name
  1000. }
  1001. return ""
  1002. }
  1003. func (m *NewMessage_Nested) GetFoodGroup() string {
  1004. if m != nil && m.FoodGroup != nil {
  1005. return *m.FoodGroup
  1006. }
  1007. return ""
  1008. }
  1009. type InnerMessage struct {
  1010. Host *string `protobuf:"bytes,1,req,name=host" json:"host,omitempty"`
  1011. Port *int32 `protobuf:"varint,2,opt,name=port,def=4000" json:"port,omitempty"`
  1012. Connected *bool `protobuf:"varint,3,opt,name=connected" json:"connected,omitempty"`
  1013. XXX_unrecognized []byte `json:"-"`
  1014. }
  1015. func (m *InnerMessage) Reset() { *m = InnerMessage{} }
  1016. func (m *InnerMessage) String() string { return proto.CompactTextString(m) }
  1017. func (*InnerMessage) ProtoMessage() {}
  1018. const Default_InnerMessage_Port int32 = 4000
  1019. func (m *InnerMessage) GetHost() string {
  1020. if m != nil && m.Host != nil {
  1021. return *m.Host
  1022. }
  1023. return ""
  1024. }
  1025. func (m *InnerMessage) GetPort() int32 {
  1026. if m != nil && m.Port != nil {
  1027. return *m.Port
  1028. }
  1029. return Default_InnerMessage_Port
  1030. }
  1031. func (m *InnerMessage) GetConnected() bool {
  1032. if m != nil && m.Connected != nil {
  1033. return *m.Connected
  1034. }
  1035. return false
  1036. }
  1037. type OtherMessage struct {
  1038. Key *int64 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"`
  1039. Value []byte `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
  1040. Weight *float32 `protobuf:"fixed32,3,opt,name=weight" json:"weight,omitempty"`
  1041. Inner *InnerMessage `protobuf:"bytes,4,opt,name=inner" json:"inner,omitempty"`
  1042. XXX_unrecognized []byte `json:"-"`
  1043. }
  1044. func (m *OtherMessage) Reset() { *m = OtherMessage{} }
  1045. func (m *OtherMessage) String() string { return proto.CompactTextString(m) }
  1046. func (*OtherMessage) ProtoMessage() {}
  1047. func (m *OtherMessage) GetKey() int64 {
  1048. if m != nil && m.Key != nil {
  1049. return *m.Key
  1050. }
  1051. return 0
  1052. }
  1053. func (m *OtherMessage) GetValue() []byte {
  1054. if m != nil {
  1055. return m.Value
  1056. }
  1057. return nil
  1058. }
  1059. func (m *OtherMessage) GetWeight() float32 {
  1060. if m != nil && m.Weight != nil {
  1061. return *m.Weight
  1062. }
  1063. return 0
  1064. }
  1065. func (m *OtherMessage) GetInner() *InnerMessage {
  1066. if m != nil {
  1067. return m.Inner
  1068. }
  1069. return nil
  1070. }
  1071. type MyMessage struct {
  1072. Count *int32 `protobuf:"varint,1,req,name=count" json:"count,omitempty"`
  1073. Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
  1074. Quote *string `protobuf:"bytes,3,opt,name=quote" json:"quote,omitempty"`
  1075. Pet []string `protobuf:"bytes,4,rep,name=pet" json:"pet,omitempty"`
  1076. Inner *InnerMessage `protobuf:"bytes,5,opt,name=inner" json:"inner,omitempty"`
  1077. Others []*OtherMessage `protobuf:"bytes,6,rep,name=others" json:"others,omitempty"`
  1078. RepInner []*InnerMessage `protobuf:"bytes,12,rep,name=rep_inner" json:"rep_inner,omitempty"`
  1079. Bikeshed *MyMessage_Color `protobuf:"varint,7,opt,name=bikeshed,enum=testdata.MyMessage_Color" json:"bikeshed,omitempty"`
  1080. Somegroup *MyMessage_SomeGroup `protobuf:"group,8,opt,name=SomeGroup" json:"somegroup,omitempty"`
  1081. // This field becomes [][]byte in the generated code.
  1082. RepBytes [][]byte `protobuf:"bytes,10,rep,name=rep_bytes" json:"rep_bytes,omitempty"`
  1083. Bigfloat *float64 `protobuf:"fixed64,11,opt,name=bigfloat" json:"bigfloat,omitempty"`
  1084. XXX_extensions map[int32]proto.Extension `json:"-"`
  1085. XXX_unrecognized []byte `json:"-"`
  1086. }
  1087. func (m *MyMessage) Reset() { *m = MyMessage{} }
  1088. func (m *MyMessage) String() string { return proto.CompactTextString(m) }
  1089. func (*MyMessage) ProtoMessage() {}
  1090. var extRange_MyMessage = []proto.ExtensionRange{
  1091. {100, 536870911},
  1092. }
  1093. func (*MyMessage) ExtensionRangeArray() []proto.ExtensionRange {
  1094. return extRange_MyMessage
  1095. }
  1096. func (m *MyMessage) ExtensionMap() map[int32]proto.Extension {
  1097. if m.XXX_extensions == nil {
  1098. m.XXX_extensions = make(map[int32]proto.Extension)
  1099. }
  1100. return m.XXX_extensions
  1101. }
  1102. func (m *MyMessage) GetCount() int32 {
  1103. if m != nil && m.Count != nil {
  1104. return *m.Count
  1105. }
  1106. return 0
  1107. }
  1108. func (m *MyMessage) GetName() string {
  1109. if m != nil && m.Name != nil {
  1110. return *m.Name
  1111. }
  1112. return ""
  1113. }
  1114. func (m *MyMessage) GetQuote() string {
  1115. if m != nil && m.Quote != nil {
  1116. return *m.Quote
  1117. }
  1118. return ""
  1119. }
  1120. func (m *MyMessage) GetPet() []string {
  1121. if m != nil {
  1122. return m.Pet
  1123. }
  1124. return nil
  1125. }
  1126. func (m *MyMessage) GetInner() *InnerMessage {
  1127. if m != nil {
  1128. return m.Inner
  1129. }
  1130. return nil
  1131. }
  1132. func (m *MyMessage) GetOthers() []*OtherMessage {
  1133. if m != nil {
  1134. return m.Others
  1135. }
  1136. return nil
  1137. }
  1138. func (m *MyMessage) GetRepInner() []*InnerMessage {
  1139. if m != nil {
  1140. return m.RepInner
  1141. }
  1142. return nil
  1143. }
  1144. func (m *MyMessage) GetBikeshed() MyMessage_Color {
  1145. if m != nil && m.Bikeshed != nil {
  1146. return *m.Bikeshed
  1147. }
  1148. return MyMessage_RED
  1149. }
  1150. func (m *MyMessage) GetSomegroup() *MyMessage_SomeGroup {
  1151. if m != nil {
  1152. return m.Somegroup
  1153. }
  1154. return nil
  1155. }
  1156. func (m *MyMessage) GetRepBytes() [][]byte {
  1157. if m != nil {
  1158. return m.RepBytes
  1159. }
  1160. return nil
  1161. }
  1162. func (m *MyMessage) GetBigfloat() float64 {
  1163. if m != nil && m.Bigfloat != nil {
  1164. return *m.Bigfloat
  1165. }
  1166. return 0
  1167. }
  1168. type MyMessage_SomeGroup struct {
  1169. GroupField *int32 `protobuf:"varint,9,opt,name=group_field" json:"group_field,omitempty"`
  1170. XXX_unrecognized []byte `json:"-"`
  1171. }
  1172. func (m *MyMessage_SomeGroup) Reset() { *m = MyMessage_SomeGroup{} }
  1173. func (m *MyMessage_SomeGroup) String() string { return proto.CompactTextString(m) }
  1174. func (*MyMessage_SomeGroup) ProtoMessage() {}
  1175. func (m *MyMessage_SomeGroup) GetGroupField() int32 {
  1176. if m != nil && m.GroupField != nil {
  1177. return *m.GroupField
  1178. }
  1179. return 0
  1180. }
  1181. type Ext struct {
  1182. Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
  1183. XXX_unrecognized []byte `json:"-"`
  1184. }
  1185. func (m *Ext) Reset() { *m = Ext{} }
  1186. func (m *Ext) String() string { return proto.CompactTextString(m) }
  1187. func (*Ext) ProtoMessage() {}
  1188. func (m *Ext) GetData() string {
  1189. if m != nil && m.Data != nil {
  1190. return *m.Data
  1191. }
  1192. return ""
  1193. }
  1194. var E_Ext_More = &proto.ExtensionDesc{
  1195. ExtendedType: (*MyMessage)(nil),
  1196. ExtensionType: (*Ext)(nil),
  1197. Field: 103,
  1198. Name: "testdata.Ext.more",
  1199. Tag: "bytes,103,opt,name=more",
  1200. }
  1201. var E_Ext_Text = &proto.ExtensionDesc{
  1202. ExtendedType: (*MyMessage)(nil),
  1203. ExtensionType: (*string)(nil),
  1204. Field: 104,
  1205. Name: "testdata.Ext.text",
  1206. Tag: "bytes,104,opt,name=text",
  1207. }
  1208. var E_Ext_Number = &proto.ExtensionDesc{
  1209. ExtendedType: (*MyMessage)(nil),
  1210. ExtensionType: (*int32)(nil),
  1211. Field: 105,
  1212. Name: "testdata.Ext.number",
  1213. Tag: "varint,105,opt,name=number",
  1214. }
  1215. type MyMessageSet struct {
  1216. XXX_extensions map[int32]proto.Extension `json:"-"`
  1217. XXX_unrecognized []byte `json:"-"`
  1218. }
  1219. func (m *MyMessageSet) Reset() { *m = MyMessageSet{} }
  1220. func (m *MyMessageSet) String() string { return proto.CompactTextString(m) }
  1221. func (*MyMessageSet) ProtoMessage() {}
  1222. func (m *MyMessageSet) Marshal() ([]byte, error) {
  1223. return proto.MarshalMessageSet(m.ExtensionMap())
  1224. }
  1225. func (m *MyMessageSet) Unmarshal(buf []byte) error {
  1226. return proto.UnmarshalMessageSet(buf, m.ExtensionMap())
  1227. }
  1228. func (m *MyMessageSet) MarshalJSON() ([]byte, error) {
  1229. return proto.MarshalMessageSetJSON(m.XXX_extensions)
  1230. }
  1231. func (m *MyMessageSet) UnmarshalJSON(buf []byte) error {
  1232. return proto.UnmarshalMessageSetJSON(buf, m.XXX_extensions)
  1233. }
  1234. // ensure MyMessageSet satisfies proto.Marshaler and proto.Unmarshaler
  1235. var _ proto.Marshaler = (*MyMessageSet)(nil)
  1236. var _ proto.Unmarshaler = (*MyMessageSet)(nil)
  1237. var extRange_MyMessageSet = []proto.ExtensionRange{
  1238. {100, 2147483646},
  1239. }
  1240. func (*MyMessageSet) ExtensionRangeArray() []proto.ExtensionRange {
  1241. return extRange_MyMessageSet
  1242. }
  1243. func (m *MyMessageSet) ExtensionMap() map[int32]proto.Extension {
  1244. if m.XXX_extensions == nil {
  1245. m.XXX_extensions = make(map[int32]proto.Extension)
  1246. }
  1247. return m.XXX_extensions
  1248. }
  1249. type Empty struct {
  1250. XXX_unrecognized []byte `json:"-"`
  1251. }
  1252. func (m *Empty) Reset() { *m = Empty{} }
  1253. func (m *Empty) String() string { return proto.CompactTextString(m) }
  1254. func (*Empty) ProtoMessage() {}
  1255. type MessageList struct {
  1256. Message []*MessageList_Message `protobuf:"group,1,rep" json:"message,omitempty"`
  1257. XXX_unrecognized []byte `json:"-"`
  1258. }
  1259. func (m *MessageList) Reset() { *m = MessageList{} }
  1260. func (m *MessageList) String() string { return proto.CompactTextString(m) }
  1261. func (*MessageList) ProtoMessage() {}
  1262. func (m *MessageList) GetMessage() []*MessageList_Message {
  1263. if m != nil {
  1264. return m.Message
  1265. }
  1266. return nil
  1267. }
  1268. type MessageList_Message struct {
  1269. Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
  1270. Count *int32 `protobuf:"varint,3,req,name=count" json:"count,omitempty"`
  1271. XXX_unrecognized []byte `json:"-"`
  1272. }
  1273. func (m *MessageList_Message) Reset() { *m = MessageList_Message{} }
  1274. func (m *MessageList_Message) String() string { return proto.CompactTextString(m) }
  1275. func (*MessageList_Message) ProtoMessage() {}
  1276. func (m *MessageList_Message) GetName() string {
  1277. if m != nil && m.Name != nil {
  1278. return *m.Name
  1279. }
  1280. return ""
  1281. }
  1282. func (m *MessageList_Message) GetCount() int32 {
  1283. if m != nil && m.Count != nil {
  1284. return *m.Count
  1285. }
  1286. return 0
  1287. }
  1288. type Strings struct {
  1289. StringField *string `protobuf:"bytes,1,opt,name=string_field" json:"string_field,omitempty"`
  1290. BytesField []byte `protobuf:"bytes,2,opt,name=bytes_field" json:"bytes_field,omitempty"`
  1291. XXX_unrecognized []byte `json:"-"`
  1292. }
  1293. func (m *Strings) Reset() { *m = Strings{} }
  1294. func (m *Strings) String() string { return proto.CompactTextString(m) }
  1295. func (*Strings) ProtoMessage() {}
  1296. func (m *Strings) GetStringField() string {
  1297. if m != nil && m.StringField != nil {
  1298. return *m.StringField
  1299. }
  1300. return ""
  1301. }
  1302. func (m *Strings) GetBytesField() []byte {
  1303. if m != nil {
  1304. return m.BytesField
  1305. }
  1306. return nil
  1307. }
  1308. type Defaults struct {
  1309. // Default-valued fields of all basic types.
  1310. // Same as GoTest, but copied here to make testing easier.
  1311. F_Bool *bool `protobuf:"varint,1,opt,def=1" json:"F_Bool,omitempty"`
  1312. F_Int32 *int32 `protobuf:"varint,2,opt,def=32" json:"F_Int32,omitempty"`
  1313. F_Int64 *int64 `protobuf:"varint,3,opt,def=64" json:"F_Int64,omitempty"`
  1314. F_Fixed32 *uint32 `protobuf:"fixed32,4,opt,def=320" json:"F_Fixed32,omitempty"`
  1315. F_Fixed64 *uint64 `protobuf:"fixed64,5,opt,def=640" json:"F_Fixed64,omitempty"`
  1316. F_Uint32 *uint32 `protobuf:"varint,6,opt,def=3200" json:"F_Uint32,omitempty"`
  1317. F_Uint64 *uint64 `protobuf:"varint,7,opt,def=6400" json:"F_Uint64,omitempty"`
  1318. F_Float *float32 `protobuf:"fixed32,8,opt,def=314159" json:"F_Float,omitempty"`
  1319. F_Double *float64 `protobuf:"fixed64,9,opt,def=271828" json:"F_Double,omitempty"`
  1320. F_String *string `protobuf:"bytes,10,opt,def=hello, \"world!\"\n" json:"F_String,omitempty"`
  1321. F_Bytes []byte `protobuf:"bytes,11,opt,def=Bignose" json:"F_Bytes,omitempty"`
  1322. F_Sint32 *int32 `protobuf:"zigzag32,12,opt,def=-32" json:"F_Sint32,omitempty"`
  1323. F_Sint64 *int64 `protobuf:"zigzag64,13,opt,def=-64" json:"F_Sint64,omitempty"`
  1324. F_Enum *Defaults_Color `protobuf:"varint,14,opt,enum=testdata.Defaults_Color,def=1" json:"F_Enum,omitempty"`
  1325. // More fields with crazy defaults.
  1326. F_Pinf *float32 `protobuf:"fixed32,15,opt,def=inf" json:"F_Pinf,omitempty"`
  1327. F_Ninf *float32 `protobuf:"fixed32,16,opt,def=-inf" json:"F_Ninf,omitempty"`
  1328. F_Nan *float32 `protobuf:"fixed32,17,opt,def=nan" json:"F_Nan,omitempty"`
  1329. // Sub-message.
  1330. Sub *SubDefaults `protobuf:"bytes,18,opt,name=sub" json:"sub,omitempty"`
  1331. // Redundant but explicit defaults.
  1332. StrZero *string `protobuf:"bytes,19,opt,name=str_zero,def=" json:"str_zero,omitempty"`
  1333. XXX_unrecognized []byte `json:"-"`
  1334. }
  1335. func (m *Defaults) Reset() { *m = Defaults{} }
  1336. func (m *Defaults) String() string { return proto.CompactTextString(m) }
  1337. func (*Defaults) ProtoMessage() {}
  1338. const Default_Defaults_F_Bool bool = true
  1339. const Default_Defaults_F_Int32 int32 = 32
  1340. const Default_Defaults_F_Int64 int64 = 64
  1341. const Default_Defaults_F_Fixed32 uint32 = 320
  1342. const Default_Defaults_F_Fixed64 uint64 = 640
  1343. const Default_Defaults_F_Uint32 uint32 = 3200
  1344. const Default_Defaults_F_Uint64 uint64 = 6400
  1345. const Default_Defaults_F_Float float32 = 314159
  1346. const Default_Defaults_F_Double float64 = 271828
  1347. const Default_Defaults_F_String string = "hello, \"world!\"\n"
  1348. var Default_Defaults_F_Bytes []byte = []byte("Bignose")
  1349. const Default_Defaults_F_Sint32 int32 = -32
  1350. const Default_Defaults_F_Sint64 int64 = -64
  1351. const Default_Defaults_F_Enum Defaults_Color = Defaults_GREEN
  1352. var Default_Defaults_F_Pinf float32 = float32(math.Inf(1))
  1353. var Default_Defaults_F_Ninf float32 = float32(math.Inf(-1))
  1354. var Default_Defaults_F_Nan float32 = float32(math.NaN())
  1355. func (m *Defaults) GetF_Bool() bool {
  1356. if m != nil && m.F_Bool != nil {
  1357. return *m.F_Bool
  1358. }
  1359. return Default_Defaults_F_Bool
  1360. }
  1361. func (m *Defaults) GetF_Int32() int32 {
  1362. if m != nil && m.F_Int32 != nil {
  1363. return *m.F_Int32
  1364. }
  1365. return Default_Defaults_F_Int32
  1366. }
  1367. func (m *Defaults) GetF_Int64() int64 {
  1368. if m != nil && m.F_Int64 != nil {
  1369. return *m.F_Int64
  1370. }
  1371. return Default_Defaults_F_Int64
  1372. }
  1373. func (m *Defaults) GetF_Fixed32() uint32 {
  1374. if m != nil && m.F_Fixed32 != nil {
  1375. return *m.F_Fixed32
  1376. }
  1377. return Default_Defaults_F_Fixed32
  1378. }
  1379. func (m *Defaults) GetF_Fixed64() uint64 {
  1380. if m != nil && m.F_Fixed64 != nil {
  1381. return *m.F_Fixed64
  1382. }
  1383. return Default_Defaults_F_Fixed64
  1384. }
  1385. func (m *Defaults) GetF_Uint32() uint32 {
  1386. if m != nil && m.F_Uint32 != nil {
  1387. return *m.F_Uint32
  1388. }
  1389. return Default_Defaults_F_Uint32
  1390. }
  1391. func (m *Defaults) GetF_Uint64() uint64 {
  1392. if m != nil && m.F_Uint64 != nil {
  1393. return *m.F_Uint64
  1394. }
  1395. return Default_Defaults_F_Uint64
  1396. }
  1397. func (m *Defaults) GetF_Float() float32 {
  1398. if m != nil && m.F_Float != nil {
  1399. return *m.F_Float
  1400. }
  1401. return Default_Defaults_F_Float
  1402. }
  1403. func (m *Defaults) GetF_Double() float64 {
  1404. if m != nil && m.F_Double != nil {
  1405. return *m.F_Double
  1406. }
  1407. return Default_Defaults_F_Double
  1408. }
  1409. func (m *Defaults) GetF_String() string {
  1410. if m != nil && m.F_String != nil {
  1411. return *m.F_String
  1412. }
  1413. return Default_Defaults_F_String
  1414. }
  1415. func (m *Defaults) GetF_Bytes() []byte {
  1416. if m != nil && m.F_Bytes != nil {
  1417. return m.F_Bytes
  1418. }
  1419. return append([]byte(nil), Default_Defaults_F_Bytes...)
  1420. }
  1421. func (m *Defaults) GetF_Sint32() int32 {
  1422. if m != nil && m.F_Sint32 != nil {
  1423. return *m.F_Sint32
  1424. }
  1425. return Default_Defaults_F_Sint32
  1426. }
  1427. func (m *Defaults) GetF_Sint64() int64 {
  1428. if m != nil && m.F_Sint64 != nil {
  1429. return *m.F_Sint64
  1430. }
  1431. return Default_Defaults_F_Sint64
  1432. }
  1433. func (m *Defaults) GetF_Enum() Defaults_Color {
  1434. if m != nil && m.F_Enum != nil {
  1435. return *m.F_Enum
  1436. }
  1437. return Default_Defaults_F_Enum
  1438. }
  1439. func (m *Defaults) GetF_Pinf() float32 {
  1440. if m != nil && m.F_Pinf != nil {
  1441. return *m.F_Pinf
  1442. }
  1443. return Default_Defaults_F_Pinf
  1444. }
  1445. func (m *Defaults) GetF_Ninf() float32 {
  1446. if m != nil && m.F_Ninf != nil {
  1447. return *m.F_Ninf
  1448. }
  1449. return Default_Defaults_F_Ninf
  1450. }
  1451. func (m *Defaults) GetF_Nan() float32 {
  1452. if m != nil && m.F_Nan != nil {
  1453. return *m.F_Nan
  1454. }
  1455. return Default_Defaults_F_Nan
  1456. }
  1457. func (m *Defaults) GetSub() *SubDefaults {
  1458. if m != nil {
  1459. return m.Sub
  1460. }
  1461. return nil
  1462. }
  1463. func (m *Defaults) GetStrZero() string {
  1464. if m != nil && m.StrZero != nil {
  1465. return *m.StrZero
  1466. }
  1467. return ""
  1468. }
  1469. type SubDefaults struct {
  1470. N *int64 `protobuf:"varint,1,opt,name=n,def=7" json:"n,omitempty"`
  1471. XXX_unrecognized []byte `json:"-"`
  1472. }
  1473. func (m *SubDefaults) Reset() { *m = SubDefaults{} }
  1474. func (m *SubDefaults) String() string { return proto.CompactTextString(m) }
  1475. func (*SubDefaults) ProtoMessage() {}
  1476. const Default_SubDefaults_N int64 = 7
  1477. func (m *SubDefaults) GetN() int64 {
  1478. if m != nil && m.N != nil {
  1479. return *m.N
  1480. }
  1481. return Default_SubDefaults_N
  1482. }
  1483. type RepeatedEnum struct {
  1484. Color []RepeatedEnum_Color `protobuf:"varint,1,rep,name=color,enum=testdata.RepeatedEnum_Color" json:"color,omitempty"`
  1485. XXX_unrecognized []byte `json:"-"`
  1486. }
  1487. func (m *RepeatedEnum) Reset() { *m = RepeatedEnum{} }
  1488. func (m *RepeatedEnum) String() string { return proto.CompactTextString(m) }
  1489. func (*RepeatedEnum) ProtoMessage() {}
  1490. func (m *RepeatedEnum) GetColor() []RepeatedEnum_Color {
  1491. if m != nil {
  1492. return m.Color
  1493. }
  1494. return nil
  1495. }
  1496. type MoreRepeated struct {
  1497. Bools []bool `protobuf:"varint,1,rep,name=bools" json:"bools,omitempty"`
  1498. BoolsPacked []bool `protobuf:"varint,2,rep,packed,name=bools_packed" json:"bools_packed,omitempty"`
  1499. Ints []int32 `protobuf:"varint,3,rep,name=ints" json:"ints,omitempty"`
  1500. IntsPacked []int32 `protobuf:"varint,4,rep,packed,name=ints_packed" json:"ints_packed,omitempty"`
  1501. Int64SPacked []int64 `protobuf:"varint,7,rep,packed,name=int64s_packed" json:"int64s_packed,omitempty"`
  1502. Strings []string `protobuf:"bytes,5,rep,name=strings" json:"strings,omitempty"`
  1503. Fixeds []uint32 `protobuf:"fixed32,6,rep,name=fixeds" json:"fixeds,omitempty"`
  1504. XXX_unrecognized []byte `json:"-"`
  1505. }
  1506. func (m *MoreRepeated) Reset() { *m = MoreRepeated{} }
  1507. func (m *MoreRepeated) String() string { return proto.CompactTextString(m) }
  1508. func (*MoreRepeated) ProtoMessage() {}
  1509. func (m *MoreRepeated) GetBools() []bool {
  1510. if m != nil {
  1511. return m.Bools
  1512. }
  1513. return nil
  1514. }
  1515. func (m *MoreRepeated) GetBoolsPacked() []bool {
  1516. if m != nil {
  1517. return m.BoolsPacked
  1518. }
  1519. return nil
  1520. }
  1521. func (m *MoreRepeated) GetInts() []int32 {
  1522. if m != nil {
  1523. return m.Ints
  1524. }
  1525. return nil
  1526. }
  1527. func (m *MoreRepeated) GetIntsPacked() []int32 {
  1528. if m != nil {
  1529. return m.IntsPacked
  1530. }
  1531. return nil
  1532. }
  1533. func (m *MoreRepeated) GetInt64SPacked() []int64 {
  1534. if m != nil {
  1535. return m.Int64SPacked
  1536. }
  1537. return nil
  1538. }
  1539. func (m *MoreRepeated) GetStrings() []string {
  1540. if m != nil {
  1541. return m.Strings
  1542. }
  1543. return nil
  1544. }
  1545. func (m *MoreRepeated) GetFixeds() []uint32 {
  1546. if m != nil {
  1547. return m.Fixeds
  1548. }
  1549. return nil
  1550. }
  1551. type GroupOld struct {
  1552. G *GroupOld_G `protobuf:"group,101,opt" json:"g,omitempty"`
  1553. XXX_unrecognized []byte `json:"-"`
  1554. }
  1555. func (m *GroupOld) Reset() { *m = GroupOld{} }
  1556. func (m *GroupOld) String() string { return proto.CompactTextString(m) }
  1557. func (*GroupOld) ProtoMessage() {}
  1558. func (m *GroupOld) GetG() *GroupOld_G {
  1559. if m != nil {
  1560. return m.G
  1561. }
  1562. return nil
  1563. }
  1564. type GroupOld_G struct {
  1565. X *int32 `protobuf:"varint,2,opt,name=x" json:"x,omitempty"`
  1566. XXX_unrecognized []byte `json:"-"`
  1567. }
  1568. func (m *GroupOld_G) Reset() { *m = GroupOld_G{} }
  1569. func (m *GroupOld_G) String() string { return proto.CompactTextString(m) }
  1570. func (*GroupOld_G) ProtoMessage() {}
  1571. func (m *GroupOld_G) GetX() int32 {
  1572. if m != nil && m.X != nil {
  1573. return *m.X
  1574. }
  1575. return 0
  1576. }
  1577. type GroupNew struct {
  1578. G *GroupNew_G `protobuf:"group,101,opt" json:"g,omitempty"`
  1579. XXX_unrecognized []byte `json:"-"`
  1580. }
  1581. func (m *GroupNew) Reset() { *m = GroupNew{} }
  1582. func (m *GroupNew) String() string { return proto.CompactTextString(m) }
  1583. func (*GroupNew) ProtoMessage() {}
  1584. func (m *GroupNew) GetG() *GroupNew_G {
  1585. if m != nil {
  1586. return m.G
  1587. }
  1588. return nil
  1589. }
  1590. type GroupNew_G struct {
  1591. X *int32 `protobuf:"varint,2,opt,name=x" json:"x,omitempty"`
  1592. Y *int32 `protobuf:"varint,3,opt,name=y" json:"y,omitempty"`
  1593. XXX_unrecognized []byte `json:"-"`
  1594. }
  1595. func (m *GroupNew_G) Reset() { *m = GroupNew_G{} }
  1596. func (m *GroupNew_G) String() string { return proto.CompactTextString(m) }
  1597. func (*GroupNew_G) ProtoMessage() {}
  1598. func (m *GroupNew_G) GetX() int32 {
  1599. if m != nil && m.X != nil {
  1600. return *m.X
  1601. }
  1602. return 0
  1603. }
  1604. func (m *GroupNew_G) GetY() int32 {
  1605. if m != nil && m.Y != nil {
  1606. return *m.Y
  1607. }
  1608. return 0
  1609. }
  1610. type FloatingPoint struct {
  1611. F *float64 `protobuf:"fixed64,1,req,name=f" json:"f,omitempty"`
  1612. XXX_unrecognized []byte `json:"-"`
  1613. }
  1614. func (m *FloatingPoint) Reset() { *m = FloatingPoint{} }
  1615. func (m *FloatingPoint) String() string { return proto.CompactTextString(m) }
  1616. func (*FloatingPoint) ProtoMessage() {}
  1617. func (m *FloatingPoint) GetF() float64 {
  1618. if m != nil && m.F != nil {
  1619. return *m.F
  1620. }
  1621. return 0
  1622. }
  1623. type MessageWithMap struct {
  1624. NameMapping map[int32]string `protobuf:"bytes,1,rep,name=name_mapping" json:"name_mapping,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  1625. MsgMapping map[int64]*FloatingPoint `protobuf:"bytes,2,rep,name=msg_mapping" json:"msg_mapping,omitempty" protobuf_key:"zigzag64,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  1626. ByteMapping map[bool][]byte `protobuf:"bytes,3,rep,name=byte_mapping" json:"byte_mapping,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  1627. XXX_unrecognized []byte `json:"-"`
  1628. }
  1629. func (m *MessageWithMap) Reset() { *m = MessageWithMap{} }
  1630. func (m *MessageWithMap) String() string { return proto.CompactTextString(m) }
  1631. func (*MessageWithMap) ProtoMessage() {}
  1632. func (m *MessageWithMap) GetNameMapping() map[int32]string {
  1633. if m != nil {
  1634. return m.NameMapping
  1635. }
  1636. return nil
  1637. }
  1638. func (m *MessageWithMap) GetMsgMapping() map[int64]*FloatingPoint {
  1639. if m != nil {
  1640. return m.MsgMapping
  1641. }
  1642. return nil
  1643. }
  1644. func (m *MessageWithMap) GetByteMapping() map[bool][]byte {
  1645. if m != nil {
  1646. return m.ByteMapping
  1647. }
  1648. return nil
  1649. }
  1650. var E_Greeting = &proto.ExtensionDesc{
  1651. ExtendedType: (*MyMessage)(nil),
  1652. ExtensionType: ([]string)(nil),
  1653. Field: 106,
  1654. Name: "testdata.greeting",
  1655. Tag: "bytes,106,rep,name=greeting",
  1656. }
  1657. var E_X201 = &proto.ExtensionDesc{
  1658. ExtendedType: (*MyMessageSet)(nil),
  1659. ExtensionType: (*Empty)(nil),
  1660. Field: 201,
  1661. Name: "testdata.x201",
  1662. Tag: "bytes,201,opt,name=x201",
  1663. }
  1664. var E_X202 = &proto.ExtensionDesc{
  1665. ExtendedType: (*MyMessageSet)(nil),
  1666. ExtensionType: (*Empty)(nil),
  1667. Field: 202,
  1668. Name: "testdata.x202",
  1669. Tag: "bytes,202,opt,name=x202",
  1670. }
  1671. var E_X203 = &proto.ExtensionDesc{
  1672. ExtendedType: (*MyMessageSet)(nil),
  1673. ExtensionType: (*Empty)(nil),
  1674. Field: 203,
  1675. Name: "testdata.x203",
  1676. Tag: "bytes,203,opt,name=x203",
  1677. }
  1678. var E_X204 = &proto.ExtensionDesc{
  1679. ExtendedType: (*MyMessageSet)(nil),
  1680. ExtensionType: (*Empty)(nil),
  1681. Field: 204,
  1682. Name: "testdata.x204",
  1683. Tag: "bytes,204,opt,name=x204",
  1684. }
  1685. var E_X205 = &proto.ExtensionDesc{
  1686. ExtendedType: (*MyMessageSet)(nil),
  1687. ExtensionType: (*Empty)(nil),
  1688. Field: 205,
  1689. Name: "testdata.x205",
  1690. Tag: "bytes,205,opt,name=x205",
  1691. }
  1692. var E_X206 = &proto.ExtensionDesc{
  1693. ExtendedType: (*MyMessageSet)(nil),
  1694. ExtensionType: (*Empty)(nil),
  1695. Field: 206,
  1696. Name: "testdata.x206",
  1697. Tag: "bytes,206,opt,name=x206",
  1698. }
  1699. var E_X207 = &proto.ExtensionDesc{
  1700. ExtendedType: (*MyMessageSet)(nil),
  1701. ExtensionType: (*Empty)(nil),
  1702. Field: 207,
  1703. Name: "testdata.x207",
  1704. Tag: "bytes,207,opt,name=x207",
  1705. }
  1706. var E_X208 = &proto.ExtensionDesc{
  1707. ExtendedType: (*MyMessageSet)(nil),
  1708. ExtensionType: (*Empty)(nil),
  1709. Field: 208,
  1710. Name: "testdata.x208",
  1711. Tag: "bytes,208,opt,name=x208",
  1712. }
  1713. var E_X209 = &proto.ExtensionDesc{
  1714. ExtendedType: (*MyMessageSet)(nil),
  1715. ExtensionType: (*Empty)(nil),
  1716. Field: 209,
  1717. Name: "testdata.x209",
  1718. Tag: "bytes,209,opt,name=x209",
  1719. }
  1720. var E_X210 = &proto.ExtensionDesc{
  1721. ExtendedType: (*MyMessageSet)(nil),
  1722. ExtensionType: (*Empty)(nil),
  1723. Field: 210,
  1724. Name: "testdata.x210",
  1725. Tag: "bytes,210,opt,name=x210",
  1726. }
  1727. var E_X211 = &proto.ExtensionDesc{
  1728. ExtendedType: (*MyMessageSet)(nil),
  1729. ExtensionType: (*Empty)(nil),
  1730. Field: 211,
  1731. Name: "testdata.x211",
  1732. Tag: "bytes,211,opt,name=x211",
  1733. }
  1734. var E_X212 = &proto.ExtensionDesc{
  1735. ExtendedType: (*MyMessageSet)(nil),
  1736. ExtensionType: (*Empty)(nil),
  1737. Field: 212,
  1738. Name: "testdata.x212",
  1739. Tag: "bytes,212,opt,name=x212",
  1740. }
  1741. var E_X213 = &proto.ExtensionDesc{
  1742. ExtendedType: (*MyMessageSet)(nil),
  1743. ExtensionType: (*Empty)(nil),
  1744. Field: 213,
  1745. Name: "testdata.x213",
  1746. Tag: "bytes,213,opt,name=x213",
  1747. }
  1748. var E_X214 = &proto.ExtensionDesc{
  1749. ExtendedType: (*MyMessageSet)(nil),
  1750. ExtensionType: (*Empty)(nil),
  1751. Field: 214,
  1752. Name: "testdata.x214",
  1753. Tag: "bytes,214,opt,name=x214",
  1754. }
  1755. var E_X215 = &proto.ExtensionDesc{
  1756. ExtendedType: (*MyMessageSet)(nil),
  1757. ExtensionType: (*Empty)(nil),
  1758. Field: 215,
  1759. Name: "testdata.x215",
  1760. Tag: "bytes,215,opt,name=x215",
  1761. }
  1762. var E_X216 = &proto.ExtensionDesc{
  1763. ExtendedType: (*MyMessageSet)(nil),
  1764. ExtensionType: (*Empty)(nil),
  1765. Field: 216,
  1766. Name: "testdata.x216",
  1767. Tag: "bytes,216,opt,name=x216",
  1768. }
  1769. var E_X217 = &proto.ExtensionDesc{
  1770. ExtendedType: (*MyMessageSet)(nil),
  1771. ExtensionType: (*Empty)(nil),
  1772. Field: 217,
  1773. Name: "testdata.x217",
  1774. Tag: "bytes,217,opt,name=x217",
  1775. }
  1776. var E_X218 = &proto.ExtensionDesc{
  1777. ExtendedType: (*MyMessageSet)(nil),
  1778. ExtensionType: (*Empty)(nil),
  1779. Field: 218,
  1780. Name: "testdata.x218",
  1781. Tag: "bytes,218,opt,name=x218",
  1782. }
  1783. var E_X219 = &proto.ExtensionDesc{
  1784. ExtendedType: (*MyMessageSet)(nil),
  1785. ExtensionType: (*Empty)(nil),
  1786. Field: 219,
  1787. Name: "testdata.x219",
  1788. Tag: "bytes,219,opt,name=x219",
  1789. }
  1790. var E_X220 = &proto.ExtensionDesc{
  1791. ExtendedType: (*MyMessageSet)(nil),
  1792. ExtensionType: (*Empty)(nil),
  1793. Field: 220,
  1794. Name: "testdata.x220",
  1795. Tag: "bytes,220,opt,name=x220",
  1796. }
  1797. var E_X221 = &proto.ExtensionDesc{
  1798. ExtendedType: (*MyMessageSet)(nil),
  1799. ExtensionType: (*Empty)(nil),
  1800. Field: 221,
  1801. Name: "testdata.x221",
  1802. Tag: "bytes,221,opt,name=x221",
  1803. }
  1804. var E_X222 = &proto.ExtensionDesc{
  1805. ExtendedType: (*MyMessageSet)(nil),
  1806. ExtensionType: (*Empty)(nil),
  1807. Field: 222,
  1808. Name: "testdata.x222",
  1809. Tag: "bytes,222,opt,name=x222",
  1810. }
  1811. var E_X223 = &proto.ExtensionDesc{
  1812. ExtendedType: (*MyMessageSet)(nil),
  1813. ExtensionType: (*Empty)(nil),
  1814. Field: 223,
  1815. Name: "testdata.x223",
  1816. Tag: "bytes,223,opt,name=x223",
  1817. }
  1818. var E_X224 = &proto.ExtensionDesc{
  1819. ExtendedType: (*MyMessageSet)(nil),
  1820. ExtensionType: (*Empty)(nil),
  1821. Field: 224,
  1822. Name: "testdata.x224",
  1823. Tag: "bytes,224,opt,name=x224",
  1824. }
  1825. var E_X225 = &proto.ExtensionDesc{
  1826. ExtendedType: (*MyMessageSet)(nil),
  1827. ExtensionType: (*Empty)(nil),
  1828. Field: 225,
  1829. Name: "testdata.x225",
  1830. Tag: "bytes,225,opt,name=x225",
  1831. }
  1832. var E_X226 = &proto.ExtensionDesc{
  1833. ExtendedType: (*MyMessageSet)(nil),
  1834. ExtensionType: (*Empty)(nil),
  1835. Field: 226,
  1836. Name: "testdata.x226",
  1837. Tag: "bytes,226,opt,name=x226",
  1838. }
  1839. var E_X227 = &proto.ExtensionDesc{
  1840. ExtendedType: (*MyMessageSet)(nil),
  1841. ExtensionType: (*Empty)(nil),
  1842. Field: 227,
  1843. Name: "testdata.x227",
  1844. Tag: "bytes,227,opt,name=x227",
  1845. }
  1846. var E_X228 = &proto.ExtensionDesc{
  1847. ExtendedType: (*MyMessageSet)(nil),
  1848. ExtensionType: (*Empty)(nil),
  1849. Field: 228,
  1850. Name: "testdata.x228",
  1851. Tag: "bytes,228,opt,name=x228",
  1852. }
  1853. var E_X229 = &proto.ExtensionDesc{
  1854. ExtendedType: (*MyMessageSet)(nil),
  1855. ExtensionType: (*Empty)(nil),
  1856. Field: 229,
  1857. Name: "testdata.x229",
  1858. Tag: "bytes,229,opt,name=x229",
  1859. }
  1860. var E_X230 = &proto.ExtensionDesc{
  1861. ExtendedType: (*MyMessageSet)(nil),
  1862. ExtensionType: (*Empty)(nil),
  1863. Field: 230,
  1864. Name: "testdata.x230",
  1865. Tag: "bytes,230,opt,name=x230",
  1866. }
  1867. var E_X231 = &proto.ExtensionDesc{
  1868. ExtendedType: (*MyMessageSet)(nil),
  1869. ExtensionType: (*Empty)(nil),
  1870. Field: 231,
  1871. Name: "testdata.x231",
  1872. Tag: "bytes,231,opt,name=x231",
  1873. }
  1874. var E_X232 = &proto.ExtensionDesc{
  1875. ExtendedType: (*MyMessageSet)(nil),
  1876. ExtensionType: (*Empty)(nil),
  1877. Field: 232,
  1878. Name: "testdata.x232",
  1879. Tag: "bytes,232,opt,name=x232",
  1880. }
  1881. var E_X233 = &proto.ExtensionDesc{
  1882. ExtendedType: (*MyMessageSet)(nil),
  1883. ExtensionType: (*Empty)(nil),
  1884. Field: 233,
  1885. Name: "testdata.x233",
  1886. Tag: "bytes,233,opt,name=x233",
  1887. }
  1888. var E_X234 = &proto.ExtensionDesc{
  1889. ExtendedType: (*MyMessageSet)(nil),
  1890. ExtensionType: (*Empty)(nil),
  1891. Field: 234,
  1892. Name: "testdata.x234",
  1893. Tag: "bytes,234,opt,name=x234",
  1894. }
  1895. var E_X235 = &proto.ExtensionDesc{
  1896. ExtendedType: (*MyMessageSet)(nil),
  1897. ExtensionType: (*Empty)(nil),
  1898. Field: 235,
  1899. Name: "testdata.x235",
  1900. Tag: "bytes,235,opt,name=x235",
  1901. }
  1902. var E_X236 = &proto.ExtensionDesc{
  1903. ExtendedType: (*MyMessageSet)(nil),
  1904. ExtensionType: (*Empty)(nil),
  1905. Field: 236,
  1906. Name: "testdata.x236",
  1907. Tag: "bytes,236,opt,name=x236",
  1908. }
  1909. var E_X237 = &proto.ExtensionDesc{
  1910. ExtendedType: (*MyMessageSet)(nil),
  1911. ExtensionType: (*Empty)(nil),
  1912. Field: 237,
  1913. Name: "testdata.x237",
  1914. Tag: "bytes,237,opt,name=x237",
  1915. }
  1916. var E_X238 = &proto.ExtensionDesc{
  1917. ExtendedType: (*MyMessageSet)(nil),
  1918. ExtensionType: (*Empty)(nil),
  1919. Field: 238,
  1920. Name: "testdata.x238",
  1921. Tag: "bytes,238,opt,name=x238",
  1922. }
  1923. var E_X239 = &proto.ExtensionDesc{
  1924. ExtendedType: (*MyMessageSet)(nil),
  1925. ExtensionType: (*Empty)(nil),
  1926. Field: 239,
  1927. Name: "testdata.x239",
  1928. Tag: "bytes,239,opt,name=x239",
  1929. }
  1930. var E_X240 = &proto.ExtensionDesc{
  1931. ExtendedType: (*MyMessageSet)(nil),
  1932. ExtensionType: (*Empty)(nil),
  1933. Field: 240,
  1934. Name: "testdata.x240",
  1935. Tag: "bytes,240,opt,name=x240",
  1936. }
  1937. var E_X241 = &proto.ExtensionDesc{
  1938. ExtendedType: (*MyMessageSet)(nil),
  1939. ExtensionType: (*Empty)(nil),
  1940. Field: 241,
  1941. Name: "testdata.x241",
  1942. Tag: "bytes,241,opt,name=x241",
  1943. }
  1944. var E_X242 = &proto.ExtensionDesc{
  1945. ExtendedType: (*MyMessageSet)(nil),
  1946. ExtensionType: (*Empty)(nil),
  1947. Field: 242,
  1948. Name: "testdata.x242",
  1949. Tag: "bytes,242,opt,name=x242",
  1950. }
  1951. var E_X243 = &proto.ExtensionDesc{
  1952. ExtendedType: (*MyMessageSet)(nil),
  1953. ExtensionType: (*Empty)(nil),
  1954. Field: 243,
  1955. Name: "testdata.x243",
  1956. Tag: "bytes,243,opt,name=x243",
  1957. }
  1958. var E_X244 = &proto.ExtensionDesc{
  1959. ExtendedType: (*MyMessageSet)(nil),
  1960. ExtensionType: (*Empty)(nil),
  1961. Field: 244,
  1962. Name: "testdata.x244",
  1963. Tag: "bytes,244,opt,name=x244",
  1964. }
  1965. var E_X245 = &proto.ExtensionDesc{
  1966. ExtendedType: (*MyMessageSet)(nil),
  1967. ExtensionType: (*Empty)(nil),
  1968. Field: 245,
  1969. Name: "testdata.x245",
  1970. Tag: "bytes,245,opt,name=x245",
  1971. }
  1972. var E_X246 = &proto.ExtensionDesc{
  1973. ExtendedType: (*MyMessageSet)(nil),
  1974. ExtensionType: (*Empty)(nil),
  1975. Field: 246,
  1976. Name: "testdata.x246",
  1977. Tag: "bytes,246,opt,name=x246",
  1978. }
  1979. var E_X247 = &proto.ExtensionDesc{
  1980. ExtendedType: (*MyMessageSet)(nil),
  1981. ExtensionType: (*Empty)(nil),
  1982. Field: 247,
  1983. Name: "testdata.x247",
  1984. Tag: "bytes,247,opt,name=x247",
  1985. }
  1986. var E_X248 = &proto.ExtensionDesc{
  1987. ExtendedType: (*MyMessageSet)(nil),
  1988. ExtensionType: (*Empty)(nil),
  1989. Field: 248,
  1990. Name: "testdata.x248",
  1991. Tag: "bytes,248,opt,name=x248",
  1992. }
  1993. var E_X249 = &proto.ExtensionDesc{
  1994. ExtendedType: (*MyMessageSet)(nil),
  1995. ExtensionType: (*Empty)(nil),
  1996. Field: 249,
  1997. Name: "testdata.x249",
  1998. Tag: "bytes,249,opt,name=x249",
  1999. }
  2000. var E_X250 = &proto.ExtensionDesc{
  2001. ExtendedType: (*MyMessageSet)(nil),
  2002. ExtensionType: (*Empty)(nil),
  2003. Field: 250,
  2004. Name: "testdata.x250",
  2005. Tag: "bytes,250,opt,name=x250",
  2006. }
  2007. func init() {
  2008. proto.RegisterEnum("testdata.FOO", FOO_name, FOO_value)
  2009. proto.RegisterEnum("testdata.GoTest_KIND", GoTest_KIND_name, GoTest_KIND_value)
  2010. proto.RegisterEnum("testdata.MyMessage_Color", MyMessage_Color_name, MyMessage_Color_value)
  2011. proto.RegisterEnum("testdata.Defaults_Color", Defaults_Color_name, Defaults_Color_value)
  2012. proto.RegisterEnum("testdata.RepeatedEnum_Color", RepeatedEnum_Color_name, RepeatedEnum_Color_value)
  2013. proto.RegisterExtension(E_Ext_More)
  2014. proto.RegisterExtension(E_Ext_Text)
  2015. proto.RegisterExtension(E_Ext_Number)
  2016. proto.RegisterExtension(E_Greeting)
  2017. proto.RegisterExtension(E_X201)
  2018. proto.RegisterExtension(E_X202)
  2019. proto.RegisterExtension(E_X203)
  2020. proto.RegisterExtension(E_X204)
  2021. proto.RegisterExtension(E_X205)
  2022. proto.RegisterExtension(E_X206)
  2023. proto.RegisterExtension(E_X207)
  2024. proto.RegisterExtension(E_X208)
  2025. proto.RegisterExtension(E_X209)
  2026. proto.RegisterExtension(E_X210)
  2027. proto.RegisterExtension(E_X211)
  2028. proto.RegisterExtension(E_X212)
  2029. proto.RegisterExtension(E_X213)
  2030. proto.RegisterExtension(E_X214)
  2031. proto.RegisterExtension(E_X215)
  2032. proto.RegisterExtension(E_X216)
  2033. proto.RegisterExtension(E_X217)
  2034. proto.RegisterExtension(E_X218)
  2035. proto.RegisterExtension(E_X219)
  2036. proto.RegisterExtension(E_X220)
  2037. proto.RegisterExtension(E_X221)
  2038. proto.RegisterExtension(E_X222)
  2039. proto.RegisterExtension(E_X223)
  2040. proto.RegisterExtension(E_X224)
  2041. proto.RegisterExtension(E_X225)
  2042. proto.RegisterExtension(E_X226)
  2043. proto.RegisterExtension(E_X227)
  2044. proto.RegisterExtension(E_X228)
  2045. proto.RegisterExtension(E_X229)
  2046. proto.RegisterExtension(E_X230)
  2047. proto.RegisterExtension(E_X231)
  2048. proto.RegisterExtension(E_X232)
  2049. proto.RegisterExtension(E_X233)
  2050. proto.RegisterExtension(E_X234)
  2051. proto.RegisterExtension(E_X235)
  2052. proto.RegisterExtension(E_X236)
  2053. proto.RegisterExtension(E_X237)
  2054. proto.RegisterExtension(E_X238)
  2055. proto.RegisterExtension(E_X239)
  2056. proto.RegisterExtension(E_X240)
  2057. proto.RegisterExtension(E_X241)
  2058. proto.RegisterExtension(E_X242)
  2059. proto.RegisterExtension(E_X243)
  2060. proto.RegisterExtension(E_X244)
  2061. proto.RegisterExtension(E_X245)
  2062. proto.RegisterExtension(E_X246)
  2063. proto.RegisterExtension(E_X247)
  2064. proto.RegisterExtension(E_X248)
  2065. proto.RegisterExtension(E_X249)
  2066. proto.RegisterExtension(E_X250)
  2067. }