test.pb.go 77 KB

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