test.pb.go 60 KB

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