test.pb.go 64 KB

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