test.pb.go 64 KB

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