test.pb.go 64 KB

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