match.pb.go 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: match.proto
  3. package like
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import go_common_library_time "go-common/library/time"
  9. import io "io"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  19. type Match struct {
  20. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
  21. Sid int64 `protobuf:"varint,2,opt,name=Sid,proto3" json:"sid"`
  22. MaxStake int64 `protobuf:"varint,3,opt,name=MaxStake,proto3" json:"max_stake"`
  23. Stake int64 `protobuf:"varint,4,opt,name=Stake,proto3" json:"stake"`
  24. Name string `protobuf:"bytes,5,opt,name=Name,proto3" json:"name"`
  25. Url string `protobuf:"bytes,6,opt,name=Url,proto3" json:"url"`
  26. Cover string `protobuf:"bytes,7,opt,name=Cover,proto3" json:"cover"`
  27. Ctime go_common_library_time.Time `protobuf:"varint,8,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
  28. Mtime go_common_library_time.Time `protobuf:"varint,9,opt,name=Mtime,proto3,casttype=go-common/library/time.Time" json:"mtime"`
  29. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  30. XXX_unrecognized []byte `json:"-"`
  31. XXX_sizecache int32 `json:"-"`
  32. }
  33. func (m *Match) Reset() { *m = Match{} }
  34. func (m *Match) String() string { return proto.CompactTextString(m) }
  35. func (*Match) ProtoMessage() {}
  36. func (*Match) Descriptor() ([]byte, []int) {
  37. return fileDescriptor_match_7fb26d27fe620ca9, []int{0}
  38. }
  39. func (m *Match) XXX_Unmarshal(b []byte) error {
  40. return m.Unmarshal(b)
  41. }
  42. func (m *Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  43. if deterministic {
  44. return xxx_messageInfo_Match.Marshal(b, m, deterministic)
  45. } else {
  46. b = b[:cap(b)]
  47. n, err := m.MarshalTo(b)
  48. if err != nil {
  49. return nil, err
  50. }
  51. return b[:n], nil
  52. }
  53. }
  54. func (dst *Match) XXX_Merge(src proto.Message) {
  55. xxx_messageInfo_Match.Merge(dst, src)
  56. }
  57. func (m *Match) XXX_Size() int {
  58. return m.Size()
  59. }
  60. func (m *Match) XXX_DiscardUnknown() {
  61. xxx_messageInfo_Match.DiscardUnknown(m)
  62. }
  63. var xxx_messageInfo_Match proto.InternalMessageInfo
  64. type MatchList struct {
  65. MatchList []*Match `protobuf:"bytes,1,rep,name=matchList" json:"matchList,omitempty"`
  66. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  67. XXX_unrecognized []byte `json:"-"`
  68. XXX_sizecache int32 `json:"-"`
  69. }
  70. func (m *MatchList) Reset() { *m = MatchList{} }
  71. func (m *MatchList) String() string { return proto.CompactTextString(m) }
  72. func (*MatchList) ProtoMessage() {}
  73. func (*MatchList) Descriptor() ([]byte, []int) {
  74. return fileDescriptor_match_7fb26d27fe620ca9, []int{1}
  75. }
  76. func (m *MatchList) XXX_Unmarshal(b []byte) error {
  77. return m.Unmarshal(b)
  78. }
  79. func (m *MatchList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  80. if deterministic {
  81. return xxx_messageInfo_MatchList.Marshal(b, m, deterministic)
  82. } else {
  83. b = b[:cap(b)]
  84. n, err := m.MarshalTo(b)
  85. if err != nil {
  86. return nil, err
  87. }
  88. return b[:n], nil
  89. }
  90. }
  91. func (dst *MatchList) XXX_Merge(src proto.Message) {
  92. xxx_messageInfo_MatchList.Merge(dst, src)
  93. }
  94. func (m *MatchList) XXX_Size() int {
  95. return m.Size()
  96. }
  97. func (m *MatchList) XXX_DiscardUnknown() {
  98. xxx_messageInfo_MatchList.DiscardUnknown(m)
  99. }
  100. var xxx_messageInfo_MatchList proto.InternalMessageInfo
  101. type Object struct {
  102. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
  103. MatchId int64 `protobuf:"varint,2,opt,name=MatchId,proto3" json:"match_id"`
  104. Sid int64 `protobuf:"varint,3,opt,name=Sid,proto3" json:"sid"`
  105. HomeName string `protobuf:"bytes,4,opt,name=HomeName,proto3" json:"home_name"`
  106. HomeLogo string `protobuf:"bytes,5,opt,name=HomeLogo,proto3" json:"home_logo"`
  107. HomeScore int64 `protobuf:"varint,6,opt,name=HomeScore,proto3" json:"home_score"`
  108. AwayName string `protobuf:"bytes,7,opt,name=AwayName,proto3" json:"away_name"`
  109. AwayLogo string `protobuf:"bytes,8,opt,name=AwayLogo,proto3" json:"away_logo"`
  110. AwayScore int64 `protobuf:"varint,9,opt,name=AwayScore,proto3" json:"away_score"`
  111. Result int64 `protobuf:"varint,10,opt,name=Result,proto3" json:"result"`
  112. Ctime go_common_library_time.Time `protobuf:"varint,11,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
  113. Mtime go_common_library_time.Time `protobuf:"varint,12,opt,name=Mtime,proto3,casttype=go-common/library/time.Time" json:"mtime"`
  114. Stime go_common_library_time.Time `protobuf:"varint,13,opt,name=Stime,proto3,casttype=go-common/library/time.Time" json:"stime"`
  115. Etime go_common_library_time.Time `protobuf:"varint,14,opt,name=Etime,proto3,casttype=go-common/library/time.Time" json:"etime"`
  116. UserResult int64 `protobuf:"varint,15,opt,name=UserResult,proto3" json:"user_result"`
  117. GameStime go_common_library_time.Time `protobuf:"varint,16,opt,name=GameStime,proto3,casttype=go-common/library/time.Time" json:"game_stime"`
  118. MatchName string `protobuf:"bytes,17,opt,name=MatchName,proto3" json:"match_name,omitempty"`
  119. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  120. XXX_unrecognized []byte `json:"-"`
  121. XXX_sizecache int32 `json:"-"`
  122. }
  123. func (m *Object) Reset() { *m = Object{} }
  124. func (m *Object) String() string { return proto.CompactTextString(m) }
  125. func (*Object) ProtoMessage() {}
  126. func (*Object) Descriptor() ([]byte, []int) {
  127. return fileDescriptor_match_7fb26d27fe620ca9, []int{2}
  128. }
  129. func (m *Object) XXX_Unmarshal(b []byte) error {
  130. return m.Unmarshal(b)
  131. }
  132. func (m *Object) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  133. if deterministic {
  134. return xxx_messageInfo_Object.Marshal(b, m, deterministic)
  135. } else {
  136. b = b[:cap(b)]
  137. n, err := m.MarshalTo(b)
  138. if err != nil {
  139. return nil, err
  140. }
  141. return b[:n], nil
  142. }
  143. }
  144. func (dst *Object) XXX_Merge(src proto.Message) {
  145. xxx_messageInfo_Object.Merge(dst, src)
  146. }
  147. func (m *Object) XXX_Size() int {
  148. return m.Size()
  149. }
  150. func (m *Object) XXX_DiscardUnknown() {
  151. xxx_messageInfo_Object.DiscardUnknown(m)
  152. }
  153. var xxx_messageInfo_Object proto.InternalMessageInfo
  154. type UserLog struct {
  155. ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"`
  156. MatchId int64 `protobuf:"varint,2,opt,name=MatchId,proto3" json:"match_id"`
  157. MOId int64 `protobuf:"varint,3,opt,name=MOId,proto3" json:"m_o_id"`
  158. Sid int64 `protobuf:"varint,4,opt,name=Sid,proto3" json:"sid"`
  159. Mid int64 `protobuf:"varint,5,opt,name=Mid,proto3" json:"mid"`
  160. Result int64 `protobuf:"varint,6,opt,name=Result,proto3" json:"result"`
  161. Stake int64 `protobuf:"varint,7,opt,name=Stake,proto3" json:"stake"`
  162. Ctime go_common_library_time.Time `protobuf:"varint,8,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"`
  163. Mtime go_common_library_time.Time `protobuf:"varint,9,opt,name=Mtime,proto3,casttype=go-common/library/time.Time" json:"mtime"`
  164. ObjResult int64 `protobuf:"varint,10,opt,name=ObjResult,proto3" json:"obj_result"`
  165. HomeName string `protobuf:"bytes,11,opt,name=HomeName,proto3" json:"home_name"`
  166. AwayName string `protobuf:"bytes,12,opt,name=AwayName,proto3" json:"away_name"`
  167. GameStime go_common_library_time.Time `protobuf:"varint,13,opt,name=GameStime,proto3,casttype=go-common/library/time.Time" json:"game_stime"`
  168. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  169. XXX_unrecognized []byte `json:"-"`
  170. XXX_sizecache int32 `json:"-"`
  171. }
  172. func (m *UserLog) Reset() { *m = UserLog{} }
  173. func (m *UserLog) String() string { return proto.CompactTextString(m) }
  174. func (*UserLog) ProtoMessage() {}
  175. func (*UserLog) Descriptor() ([]byte, []int) {
  176. return fileDescriptor_match_7fb26d27fe620ca9, []int{3}
  177. }
  178. func (m *UserLog) XXX_Unmarshal(b []byte) error {
  179. return m.Unmarshal(b)
  180. }
  181. func (m *UserLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  182. if deterministic {
  183. return xxx_messageInfo_UserLog.Marshal(b, m, deterministic)
  184. } else {
  185. b = b[:cap(b)]
  186. n, err := m.MarshalTo(b)
  187. if err != nil {
  188. return nil, err
  189. }
  190. return b[:n], nil
  191. }
  192. }
  193. func (dst *UserLog) XXX_Merge(src proto.Message) {
  194. xxx_messageInfo_UserLog.Merge(dst, src)
  195. }
  196. func (m *UserLog) XXX_Size() int {
  197. return m.Size()
  198. }
  199. func (m *UserLog) XXX_DiscardUnknown() {
  200. xxx_messageInfo_UserLog.DiscardUnknown(m)
  201. }
  202. var xxx_messageInfo_UserLog proto.InternalMessageInfo
  203. type UserGuess struct {
  204. Total int64 `protobuf:"varint,1,opt,name=Total,proto3" json:"total"`
  205. Win int64 `protobuf:"varint,2,opt,name=Win,proto3" json:"win"`
  206. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  207. XXX_unrecognized []byte `json:"-"`
  208. XXX_sizecache int32 `json:"-"`
  209. }
  210. func (m *UserGuess) Reset() { *m = UserGuess{} }
  211. func (m *UserGuess) String() string { return proto.CompactTextString(m) }
  212. func (*UserGuess) ProtoMessage() {}
  213. func (*UserGuess) Descriptor() ([]byte, []int) {
  214. return fileDescriptor_match_7fb26d27fe620ca9, []int{4}
  215. }
  216. func (m *UserGuess) XXX_Unmarshal(b []byte) error {
  217. return m.Unmarshal(b)
  218. }
  219. func (m *UserGuess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  220. if deterministic {
  221. return xxx_messageInfo_UserGuess.Marshal(b, m, deterministic)
  222. } else {
  223. b = b[:cap(b)]
  224. n, err := m.MarshalTo(b)
  225. if err != nil {
  226. return nil, err
  227. }
  228. return b[:n], nil
  229. }
  230. }
  231. func (dst *UserGuess) XXX_Merge(src proto.Message) {
  232. xxx_messageInfo_UserGuess.Merge(dst, src)
  233. }
  234. func (m *UserGuess) XXX_Size() int {
  235. return m.Size()
  236. }
  237. func (m *UserGuess) XXX_DiscardUnknown() {
  238. xxx_messageInfo_UserGuess.DiscardUnknown(m)
  239. }
  240. var xxx_messageInfo_UserGuess proto.InternalMessageInfo
  241. func init() {
  242. proto.RegisterType((*Match)(nil), "activity.service.Match")
  243. proto.RegisterType((*MatchList)(nil), "activity.service.MatchList")
  244. proto.RegisterType((*Object)(nil), "activity.service.Object")
  245. proto.RegisterType((*UserLog)(nil), "activity.service.UserLog")
  246. proto.RegisterType((*UserGuess)(nil), "activity.service.UserGuess")
  247. }
  248. func (m *Match) Marshal() (dAtA []byte, err error) {
  249. size := m.Size()
  250. dAtA = make([]byte, size)
  251. n, err := m.MarshalTo(dAtA)
  252. if err != nil {
  253. return nil, err
  254. }
  255. return dAtA[:n], nil
  256. }
  257. func (m *Match) MarshalTo(dAtA []byte) (int, error) {
  258. var i int
  259. _ = i
  260. var l int
  261. _ = l
  262. if m.ID != 0 {
  263. dAtA[i] = 0x8
  264. i++
  265. i = encodeVarintMatch(dAtA, i, uint64(m.ID))
  266. }
  267. if m.Sid != 0 {
  268. dAtA[i] = 0x10
  269. i++
  270. i = encodeVarintMatch(dAtA, i, uint64(m.Sid))
  271. }
  272. if m.MaxStake != 0 {
  273. dAtA[i] = 0x18
  274. i++
  275. i = encodeVarintMatch(dAtA, i, uint64(m.MaxStake))
  276. }
  277. if m.Stake != 0 {
  278. dAtA[i] = 0x20
  279. i++
  280. i = encodeVarintMatch(dAtA, i, uint64(m.Stake))
  281. }
  282. if len(m.Name) > 0 {
  283. dAtA[i] = 0x2a
  284. i++
  285. i = encodeVarintMatch(dAtA, i, uint64(len(m.Name)))
  286. i += copy(dAtA[i:], m.Name)
  287. }
  288. if len(m.Url) > 0 {
  289. dAtA[i] = 0x32
  290. i++
  291. i = encodeVarintMatch(dAtA, i, uint64(len(m.Url)))
  292. i += copy(dAtA[i:], m.Url)
  293. }
  294. if len(m.Cover) > 0 {
  295. dAtA[i] = 0x3a
  296. i++
  297. i = encodeVarintMatch(dAtA, i, uint64(len(m.Cover)))
  298. i += copy(dAtA[i:], m.Cover)
  299. }
  300. if m.Ctime != 0 {
  301. dAtA[i] = 0x40
  302. i++
  303. i = encodeVarintMatch(dAtA, i, uint64(m.Ctime))
  304. }
  305. if m.Mtime != 0 {
  306. dAtA[i] = 0x48
  307. i++
  308. i = encodeVarintMatch(dAtA, i, uint64(m.Mtime))
  309. }
  310. if m.XXX_unrecognized != nil {
  311. i += copy(dAtA[i:], m.XXX_unrecognized)
  312. }
  313. return i, nil
  314. }
  315. func (m *MatchList) Marshal() (dAtA []byte, err error) {
  316. size := m.Size()
  317. dAtA = make([]byte, size)
  318. n, err := m.MarshalTo(dAtA)
  319. if err != nil {
  320. return nil, err
  321. }
  322. return dAtA[:n], nil
  323. }
  324. func (m *MatchList) MarshalTo(dAtA []byte) (int, error) {
  325. var i int
  326. _ = i
  327. var l int
  328. _ = l
  329. if len(m.MatchList) > 0 {
  330. for _, msg := range m.MatchList {
  331. dAtA[i] = 0xa
  332. i++
  333. i = encodeVarintMatch(dAtA, i, uint64(msg.Size()))
  334. n, err := msg.MarshalTo(dAtA[i:])
  335. if err != nil {
  336. return 0, err
  337. }
  338. i += n
  339. }
  340. }
  341. if m.XXX_unrecognized != nil {
  342. i += copy(dAtA[i:], m.XXX_unrecognized)
  343. }
  344. return i, nil
  345. }
  346. func (m *Object) Marshal() (dAtA []byte, err error) {
  347. size := m.Size()
  348. dAtA = make([]byte, size)
  349. n, err := m.MarshalTo(dAtA)
  350. if err != nil {
  351. return nil, err
  352. }
  353. return dAtA[:n], nil
  354. }
  355. func (m *Object) MarshalTo(dAtA []byte) (int, error) {
  356. var i int
  357. _ = i
  358. var l int
  359. _ = l
  360. if m.ID != 0 {
  361. dAtA[i] = 0x8
  362. i++
  363. i = encodeVarintMatch(dAtA, i, uint64(m.ID))
  364. }
  365. if m.MatchId != 0 {
  366. dAtA[i] = 0x10
  367. i++
  368. i = encodeVarintMatch(dAtA, i, uint64(m.MatchId))
  369. }
  370. if m.Sid != 0 {
  371. dAtA[i] = 0x18
  372. i++
  373. i = encodeVarintMatch(dAtA, i, uint64(m.Sid))
  374. }
  375. if len(m.HomeName) > 0 {
  376. dAtA[i] = 0x22
  377. i++
  378. i = encodeVarintMatch(dAtA, i, uint64(len(m.HomeName)))
  379. i += copy(dAtA[i:], m.HomeName)
  380. }
  381. if len(m.HomeLogo) > 0 {
  382. dAtA[i] = 0x2a
  383. i++
  384. i = encodeVarintMatch(dAtA, i, uint64(len(m.HomeLogo)))
  385. i += copy(dAtA[i:], m.HomeLogo)
  386. }
  387. if m.HomeScore != 0 {
  388. dAtA[i] = 0x30
  389. i++
  390. i = encodeVarintMatch(dAtA, i, uint64(m.HomeScore))
  391. }
  392. if len(m.AwayName) > 0 {
  393. dAtA[i] = 0x3a
  394. i++
  395. i = encodeVarintMatch(dAtA, i, uint64(len(m.AwayName)))
  396. i += copy(dAtA[i:], m.AwayName)
  397. }
  398. if len(m.AwayLogo) > 0 {
  399. dAtA[i] = 0x42
  400. i++
  401. i = encodeVarintMatch(dAtA, i, uint64(len(m.AwayLogo)))
  402. i += copy(dAtA[i:], m.AwayLogo)
  403. }
  404. if m.AwayScore != 0 {
  405. dAtA[i] = 0x48
  406. i++
  407. i = encodeVarintMatch(dAtA, i, uint64(m.AwayScore))
  408. }
  409. if m.Result != 0 {
  410. dAtA[i] = 0x50
  411. i++
  412. i = encodeVarintMatch(dAtA, i, uint64(m.Result))
  413. }
  414. if m.Ctime != 0 {
  415. dAtA[i] = 0x58
  416. i++
  417. i = encodeVarintMatch(dAtA, i, uint64(m.Ctime))
  418. }
  419. if m.Mtime != 0 {
  420. dAtA[i] = 0x60
  421. i++
  422. i = encodeVarintMatch(dAtA, i, uint64(m.Mtime))
  423. }
  424. if m.Stime != 0 {
  425. dAtA[i] = 0x68
  426. i++
  427. i = encodeVarintMatch(dAtA, i, uint64(m.Stime))
  428. }
  429. if m.Etime != 0 {
  430. dAtA[i] = 0x70
  431. i++
  432. i = encodeVarintMatch(dAtA, i, uint64(m.Etime))
  433. }
  434. if m.UserResult != 0 {
  435. dAtA[i] = 0x78
  436. i++
  437. i = encodeVarintMatch(dAtA, i, uint64(m.UserResult))
  438. }
  439. if m.GameStime != 0 {
  440. dAtA[i] = 0x80
  441. i++
  442. dAtA[i] = 0x1
  443. i++
  444. i = encodeVarintMatch(dAtA, i, uint64(m.GameStime))
  445. }
  446. if len(m.MatchName) > 0 {
  447. dAtA[i] = 0x8a
  448. i++
  449. dAtA[i] = 0x1
  450. i++
  451. i = encodeVarintMatch(dAtA, i, uint64(len(m.MatchName)))
  452. i += copy(dAtA[i:], m.MatchName)
  453. }
  454. if m.XXX_unrecognized != nil {
  455. i += copy(dAtA[i:], m.XXX_unrecognized)
  456. }
  457. return i, nil
  458. }
  459. func (m *UserLog) Marshal() (dAtA []byte, err error) {
  460. size := m.Size()
  461. dAtA = make([]byte, size)
  462. n, err := m.MarshalTo(dAtA)
  463. if err != nil {
  464. return nil, err
  465. }
  466. return dAtA[:n], nil
  467. }
  468. func (m *UserLog) MarshalTo(dAtA []byte) (int, error) {
  469. var i int
  470. _ = i
  471. var l int
  472. _ = l
  473. if m.ID != 0 {
  474. dAtA[i] = 0x8
  475. i++
  476. i = encodeVarintMatch(dAtA, i, uint64(m.ID))
  477. }
  478. if m.MatchId != 0 {
  479. dAtA[i] = 0x10
  480. i++
  481. i = encodeVarintMatch(dAtA, i, uint64(m.MatchId))
  482. }
  483. if m.MOId != 0 {
  484. dAtA[i] = 0x18
  485. i++
  486. i = encodeVarintMatch(dAtA, i, uint64(m.MOId))
  487. }
  488. if m.Sid != 0 {
  489. dAtA[i] = 0x20
  490. i++
  491. i = encodeVarintMatch(dAtA, i, uint64(m.Sid))
  492. }
  493. if m.Mid != 0 {
  494. dAtA[i] = 0x28
  495. i++
  496. i = encodeVarintMatch(dAtA, i, uint64(m.Mid))
  497. }
  498. if m.Result != 0 {
  499. dAtA[i] = 0x30
  500. i++
  501. i = encodeVarintMatch(dAtA, i, uint64(m.Result))
  502. }
  503. if m.Stake != 0 {
  504. dAtA[i] = 0x38
  505. i++
  506. i = encodeVarintMatch(dAtA, i, uint64(m.Stake))
  507. }
  508. if m.Ctime != 0 {
  509. dAtA[i] = 0x40
  510. i++
  511. i = encodeVarintMatch(dAtA, i, uint64(m.Ctime))
  512. }
  513. if m.Mtime != 0 {
  514. dAtA[i] = 0x48
  515. i++
  516. i = encodeVarintMatch(dAtA, i, uint64(m.Mtime))
  517. }
  518. if m.ObjResult != 0 {
  519. dAtA[i] = 0x50
  520. i++
  521. i = encodeVarintMatch(dAtA, i, uint64(m.ObjResult))
  522. }
  523. if len(m.HomeName) > 0 {
  524. dAtA[i] = 0x5a
  525. i++
  526. i = encodeVarintMatch(dAtA, i, uint64(len(m.HomeName)))
  527. i += copy(dAtA[i:], m.HomeName)
  528. }
  529. if len(m.AwayName) > 0 {
  530. dAtA[i] = 0x62
  531. i++
  532. i = encodeVarintMatch(dAtA, i, uint64(len(m.AwayName)))
  533. i += copy(dAtA[i:], m.AwayName)
  534. }
  535. if m.GameStime != 0 {
  536. dAtA[i] = 0x68
  537. i++
  538. i = encodeVarintMatch(dAtA, i, uint64(m.GameStime))
  539. }
  540. if m.XXX_unrecognized != nil {
  541. i += copy(dAtA[i:], m.XXX_unrecognized)
  542. }
  543. return i, nil
  544. }
  545. func (m *UserGuess) Marshal() (dAtA []byte, err error) {
  546. size := m.Size()
  547. dAtA = make([]byte, size)
  548. n, err := m.MarshalTo(dAtA)
  549. if err != nil {
  550. return nil, err
  551. }
  552. return dAtA[:n], nil
  553. }
  554. func (m *UserGuess) MarshalTo(dAtA []byte) (int, error) {
  555. var i int
  556. _ = i
  557. var l int
  558. _ = l
  559. if m.Total != 0 {
  560. dAtA[i] = 0x8
  561. i++
  562. i = encodeVarintMatch(dAtA, i, uint64(m.Total))
  563. }
  564. if m.Win != 0 {
  565. dAtA[i] = 0x10
  566. i++
  567. i = encodeVarintMatch(dAtA, i, uint64(m.Win))
  568. }
  569. if m.XXX_unrecognized != nil {
  570. i += copy(dAtA[i:], m.XXX_unrecognized)
  571. }
  572. return i, nil
  573. }
  574. func encodeVarintMatch(dAtA []byte, offset int, v uint64) int {
  575. for v >= 1<<7 {
  576. dAtA[offset] = uint8(v&0x7f | 0x80)
  577. v >>= 7
  578. offset++
  579. }
  580. dAtA[offset] = uint8(v)
  581. return offset + 1
  582. }
  583. func (m *Match) Size() (n int) {
  584. if m == nil {
  585. return 0
  586. }
  587. var l int
  588. _ = l
  589. if m.ID != 0 {
  590. n += 1 + sovMatch(uint64(m.ID))
  591. }
  592. if m.Sid != 0 {
  593. n += 1 + sovMatch(uint64(m.Sid))
  594. }
  595. if m.MaxStake != 0 {
  596. n += 1 + sovMatch(uint64(m.MaxStake))
  597. }
  598. if m.Stake != 0 {
  599. n += 1 + sovMatch(uint64(m.Stake))
  600. }
  601. l = len(m.Name)
  602. if l > 0 {
  603. n += 1 + l + sovMatch(uint64(l))
  604. }
  605. l = len(m.Url)
  606. if l > 0 {
  607. n += 1 + l + sovMatch(uint64(l))
  608. }
  609. l = len(m.Cover)
  610. if l > 0 {
  611. n += 1 + l + sovMatch(uint64(l))
  612. }
  613. if m.Ctime != 0 {
  614. n += 1 + sovMatch(uint64(m.Ctime))
  615. }
  616. if m.Mtime != 0 {
  617. n += 1 + sovMatch(uint64(m.Mtime))
  618. }
  619. if m.XXX_unrecognized != nil {
  620. n += len(m.XXX_unrecognized)
  621. }
  622. return n
  623. }
  624. func (m *MatchList) Size() (n int) {
  625. if m == nil {
  626. return 0
  627. }
  628. var l int
  629. _ = l
  630. if len(m.MatchList) > 0 {
  631. for _, e := range m.MatchList {
  632. l = e.Size()
  633. n += 1 + l + sovMatch(uint64(l))
  634. }
  635. }
  636. if m.XXX_unrecognized != nil {
  637. n += len(m.XXX_unrecognized)
  638. }
  639. return n
  640. }
  641. func (m *Object) Size() (n int) {
  642. if m == nil {
  643. return 0
  644. }
  645. var l int
  646. _ = l
  647. if m.ID != 0 {
  648. n += 1 + sovMatch(uint64(m.ID))
  649. }
  650. if m.MatchId != 0 {
  651. n += 1 + sovMatch(uint64(m.MatchId))
  652. }
  653. if m.Sid != 0 {
  654. n += 1 + sovMatch(uint64(m.Sid))
  655. }
  656. l = len(m.HomeName)
  657. if l > 0 {
  658. n += 1 + l + sovMatch(uint64(l))
  659. }
  660. l = len(m.HomeLogo)
  661. if l > 0 {
  662. n += 1 + l + sovMatch(uint64(l))
  663. }
  664. if m.HomeScore != 0 {
  665. n += 1 + sovMatch(uint64(m.HomeScore))
  666. }
  667. l = len(m.AwayName)
  668. if l > 0 {
  669. n += 1 + l + sovMatch(uint64(l))
  670. }
  671. l = len(m.AwayLogo)
  672. if l > 0 {
  673. n += 1 + l + sovMatch(uint64(l))
  674. }
  675. if m.AwayScore != 0 {
  676. n += 1 + sovMatch(uint64(m.AwayScore))
  677. }
  678. if m.Result != 0 {
  679. n += 1 + sovMatch(uint64(m.Result))
  680. }
  681. if m.Ctime != 0 {
  682. n += 1 + sovMatch(uint64(m.Ctime))
  683. }
  684. if m.Mtime != 0 {
  685. n += 1 + sovMatch(uint64(m.Mtime))
  686. }
  687. if m.Stime != 0 {
  688. n += 1 + sovMatch(uint64(m.Stime))
  689. }
  690. if m.Etime != 0 {
  691. n += 1 + sovMatch(uint64(m.Etime))
  692. }
  693. if m.UserResult != 0 {
  694. n += 1 + sovMatch(uint64(m.UserResult))
  695. }
  696. if m.GameStime != 0 {
  697. n += 2 + sovMatch(uint64(m.GameStime))
  698. }
  699. l = len(m.MatchName)
  700. if l > 0 {
  701. n += 2 + l + sovMatch(uint64(l))
  702. }
  703. if m.XXX_unrecognized != nil {
  704. n += len(m.XXX_unrecognized)
  705. }
  706. return n
  707. }
  708. func (m *UserLog) Size() (n int) {
  709. if m == nil {
  710. return 0
  711. }
  712. var l int
  713. _ = l
  714. if m.ID != 0 {
  715. n += 1 + sovMatch(uint64(m.ID))
  716. }
  717. if m.MatchId != 0 {
  718. n += 1 + sovMatch(uint64(m.MatchId))
  719. }
  720. if m.MOId != 0 {
  721. n += 1 + sovMatch(uint64(m.MOId))
  722. }
  723. if m.Sid != 0 {
  724. n += 1 + sovMatch(uint64(m.Sid))
  725. }
  726. if m.Mid != 0 {
  727. n += 1 + sovMatch(uint64(m.Mid))
  728. }
  729. if m.Result != 0 {
  730. n += 1 + sovMatch(uint64(m.Result))
  731. }
  732. if m.Stake != 0 {
  733. n += 1 + sovMatch(uint64(m.Stake))
  734. }
  735. if m.Ctime != 0 {
  736. n += 1 + sovMatch(uint64(m.Ctime))
  737. }
  738. if m.Mtime != 0 {
  739. n += 1 + sovMatch(uint64(m.Mtime))
  740. }
  741. if m.ObjResult != 0 {
  742. n += 1 + sovMatch(uint64(m.ObjResult))
  743. }
  744. l = len(m.HomeName)
  745. if l > 0 {
  746. n += 1 + l + sovMatch(uint64(l))
  747. }
  748. l = len(m.AwayName)
  749. if l > 0 {
  750. n += 1 + l + sovMatch(uint64(l))
  751. }
  752. if m.GameStime != 0 {
  753. n += 1 + sovMatch(uint64(m.GameStime))
  754. }
  755. if m.XXX_unrecognized != nil {
  756. n += len(m.XXX_unrecognized)
  757. }
  758. return n
  759. }
  760. func (m *UserGuess) Size() (n int) {
  761. if m == nil {
  762. return 0
  763. }
  764. var l int
  765. _ = l
  766. if m.Total != 0 {
  767. n += 1 + sovMatch(uint64(m.Total))
  768. }
  769. if m.Win != 0 {
  770. n += 1 + sovMatch(uint64(m.Win))
  771. }
  772. if m.XXX_unrecognized != nil {
  773. n += len(m.XXX_unrecognized)
  774. }
  775. return n
  776. }
  777. func sovMatch(x uint64) (n int) {
  778. for {
  779. n++
  780. x >>= 7
  781. if x == 0 {
  782. break
  783. }
  784. }
  785. return n
  786. }
  787. func sozMatch(x uint64) (n int) {
  788. return sovMatch(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  789. }
  790. func (m *Match) Unmarshal(dAtA []byte) error {
  791. l := len(dAtA)
  792. iNdEx := 0
  793. for iNdEx < l {
  794. preIndex := iNdEx
  795. var wire uint64
  796. for shift := uint(0); ; shift += 7 {
  797. if shift >= 64 {
  798. return ErrIntOverflowMatch
  799. }
  800. if iNdEx >= l {
  801. return io.ErrUnexpectedEOF
  802. }
  803. b := dAtA[iNdEx]
  804. iNdEx++
  805. wire |= (uint64(b) & 0x7F) << shift
  806. if b < 0x80 {
  807. break
  808. }
  809. }
  810. fieldNum := int32(wire >> 3)
  811. wireType := int(wire & 0x7)
  812. if wireType == 4 {
  813. return fmt.Errorf("proto: Match: wiretype end group for non-group")
  814. }
  815. if fieldNum <= 0 {
  816. return fmt.Errorf("proto: Match: illegal tag %d (wire type %d)", fieldNum, wire)
  817. }
  818. switch fieldNum {
  819. case 1:
  820. if wireType != 0 {
  821. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  822. }
  823. m.ID = 0
  824. for shift := uint(0); ; shift += 7 {
  825. if shift >= 64 {
  826. return ErrIntOverflowMatch
  827. }
  828. if iNdEx >= l {
  829. return io.ErrUnexpectedEOF
  830. }
  831. b := dAtA[iNdEx]
  832. iNdEx++
  833. m.ID |= (int64(b) & 0x7F) << shift
  834. if b < 0x80 {
  835. break
  836. }
  837. }
  838. case 2:
  839. if wireType != 0 {
  840. return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType)
  841. }
  842. m.Sid = 0
  843. for shift := uint(0); ; shift += 7 {
  844. if shift >= 64 {
  845. return ErrIntOverflowMatch
  846. }
  847. if iNdEx >= l {
  848. return io.ErrUnexpectedEOF
  849. }
  850. b := dAtA[iNdEx]
  851. iNdEx++
  852. m.Sid |= (int64(b) & 0x7F) << shift
  853. if b < 0x80 {
  854. break
  855. }
  856. }
  857. case 3:
  858. if wireType != 0 {
  859. return fmt.Errorf("proto: wrong wireType = %d for field MaxStake", wireType)
  860. }
  861. m.MaxStake = 0
  862. for shift := uint(0); ; shift += 7 {
  863. if shift >= 64 {
  864. return ErrIntOverflowMatch
  865. }
  866. if iNdEx >= l {
  867. return io.ErrUnexpectedEOF
  868. }
  869. b := dAtA[iNdEx]
  870. iNdEx++
  871. m.MaxStake |= (int64(b) & 0x7F) << shift
  872. if b < 0x80 {
  873. break
  874. }
  875. }
  876. case 4:
  877. if wireType != 0 {
  878. return fmt.Errorf("proto: wrong wireType = %d for field Stake", wireType)
  879. }
  880. m.Stake = 0
  881. for shift := uint(0); ; shift += 7 {
  882. if shift >= 64 {
  883. return ErrIntOverflowMatch
  884. }
  885. if iNdEx >= l {
  886. return io.ErrUnexpectedEOF
  887. }
  888. b := dAtA[iNdEx]
  889. iNdEx++
  890. m.Stake |= (int64(b) & 0x7F) << shift
  891. if b < 0x80 {
  892. break
  893. }
  894. }
  895. case 5:
  896. if wireType != 2 {
  897. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  898. }
  899. var stringLen uint64
  900. for shift := uint(0); ; shift += 7 {
  901. if shift >= 64 {
  902. return ErrIntOverflowMatch
  903. }
  904. if iNdEx >= l {
  905. return io.ErrUnexpectedEOF
  906. }
  907. b := dAtA[iNdEx]
  908. iNdEx++
  909. stringLen |= (uint64(b) & 0x7F) << shift
  910. if b < 0x80 {
  911. break
  912. }
  913. }
  914. intStringLen := int(stringLen)
  915. if intStringLen < 0 {
  916. return ErrInvalidLengthMatch
  917. }
  918. postIndex := iNdEx + intStringLen
  919. if postIndex > l {
  920. return io.ErrUnexpectedEOF
  921. }
  922. m.Name = string(dAtA[iNdEx:postIndex])
  923. iNdEx = postIndex
  924. case 6:
  925. if wireType != 2 {
  926. return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
  927. }
  928. var stringLen uint64
  929. for shift := uint(0); ; shift += 7 {
  930. if shift >= 64 {
  931. return ErrIntOverflowMatch
  932. }
  933. if iNdEx >= l {
  934. return io.ErrUnexpectedEOF
  935. }
  936. b := dAtA[iNdEx]
  937. iNdEx++
  938. stringLen |= (uint64(b) & 0x7F) << shift
  939. if b < 0x80 {
  940. break
  941. }
  942. }
  943. intStringLen := int(stringLen)
  944. if intStringLen < 0 {
  945. return ErrInvalidLengthMatch
  946. }
  947. postIndex := iNdEx + intStringLen
  948. if postIndex > l {
  949. return io.ErrUnexpectedEOF
  950. }
  951. m.Url = string(dAtA[iNdEx:postIndex])
  952. iNdEx = postIndex
  953. case 7:
  954. if wireType != 2 {
  955. return fmt.Errorf("proto: wrong wireType = %d for field Cover", wireType)
  956. }
  957. var stringLen uint64
  958. for shift := uint(0); ; shift += 7 {
  959. if shift >= 64 {
  960. return ErrIntOverflowMatch
  961. }
  962. if iNdEx >= l {
  963. return io.ErrUnexpectedEOF
  964. }
  965. b := dAtA[iNdEx]
  966. iNdEx++
  967. stringLen |= (uint64(b) & 0x7F) << shift
  968. if b < 0x80 {
  969. break
  970. }
  971. }
  972. intStringLen := int(stringLen)
  973. if intStringLen < 0 {
  974. return ErrInvalidLengthMatch
  975. }
  976. postIndex := iNdEx + intStringLen
  977. if postIndex > l {
  978. return io.ErrUnexpectedEOF
  979. }
  980. m.Cover = string(dAtA[iNdEx:postIndex])
  981. iNdEx = postIndex
  982. case 8:
  983. if wireType != 0 {
  984. return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
  985. }
  986. m.Ctime = 0
  987. for shift := uint(0); ; shift += 7 {
  988. if shift >= 64 {
  989. return ErrIntOverflowMatch
  990. }
  991. if iNdEx >= l {
  992. return io.ErrUnexpectedEOF
  993. }
  994. b := dAtA[iNdEx]
  995. iNdEx++
  996. m.Ctime |= (go_common_library_time.Time(b) & 0x7F) << shift
  997. if b < 0x80 {
  998. break
  999. }
  1000. }
  1001. case 9:
  1002. if wireType != 0 {
  1003. return fmt.Errorf("proto: wrong wireType = %d for field Mtime", wireType)
  1004. }
  1005. m.Mtime = 0
  1006. for shift := uint(0); ; shift += 7 {
  1007. if shift >= 64 {
  1008. return ErrIntOverflowMatch
  1009. }
  1010. if iNdEx >= l {
  1011. return io.ErrUnexpectedEOF
  1012. }
  1013. b := dAtA[iNdEx]
  1014. iNdEx++
  1015. m.Mtime |= (go_common_library_time.Time(b) & 0x7F) << shift
  1016. if b < 0x80 {
  1017. break
  1018. }
  1019. }
  1020. default:
  1021. iNdEx = preIndex
  1022. skippy, err := skipMatch(dAtA[iNdEx:])
  1023. if err != nil {
  1024. return err
  1025. }
  1026. if skippy < 0 {
  1027. return ErrInvalidLengthMatch
  1028. }
  1029. if (iNdEx + skippy) > l {
  1030. return io.ErrUnexpectedEOF
  1031. }
  1032. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1033. iNdEx += skippy
  1034. }
  1035. }
  1036. if iNdEx > l {
  1037. return io.ErrUnexpectedEOF
  1038. }
  1039. return nil
  1040. }
  1041. func (m *MatchList) Unmarshal(dAtA []byte) error {
  1042. l := len(dAtA)
  1043. iNdEx := 0
  1044. for iNdEx < l {
  1045. preIndex := iNdEx
  1046. var wire uint64
  1047. for shift := uint(0); ; shift += 7 {
  1048. if shift >= 64 {
  1049. return ErrIntOverflowMatch
  1050. }
  1051. if iNdEx >= l {
  1052. return io.ErrUnexpectedEOF
  1053. }
  1054. b := dAtA[iNdEx]
  1055. iNdEx++
  1056. wire |= (uint64(b) & 0x7F) << shift
  1057. if b < 0x80 {
  1058. break
  1059. }
  1060. }
  1061. fieldNum := int32(wire >> 3)
  1062. wireType := int(wire & 0x7)
  1063. if wireType == 4 {
  1064. return fmt.Errorf("proto: MatchList: wiretype end group for non-group")
  1065. }
  1066. if fieldNum <= 0 {
  1067. return fmt.Errorf("proto: MatchList: illegal tag %d (wire type %d)", fieldNum, wire)
  1068. }
  1069. switch fieldNum {
  1070. case 1:
  1071. if wireType != 2 {
  1072. return fmt.Errorf("proto: wrong wireType = %d for field MatchList", wireType)
  1073. }
  1074. var msglen int
  1075. for shift := uint(0); ; shift += 7 {
  1076. if shift >= 64 {
  1077. return ErrIntOverflowMatch
  1078. }
  1079. if iNdEx >= l {
  1080. return io.ErrUnexpectedEOF
  1081. }
  1082. b := dAtA[iNdEx]
  1083. iNdEx++
  1084. msglen |= (int(b) & 0x7F) << shift
  1085. if b < 0x80 {
  1086. break
  1087. }
  1088. }
  1089. if msglen < 0 {
  1090. return ErrInvalidLengthMatch
  1091. }
  1092. postIndex := iNdEx + msglen
  1093. if postIndex > l {
  1094. return io.ErrUnexpectedEOF
  1095. }
  1096. m.MatchList = append(m.MatchList, &Match{})
  1097. if err := m.MatchList[len(m.MatchList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1098. return err
  1099. }
  1100. iNdEx = postIndex
  1101. default:
  1102. iNdEx = preIndex
  1103. skippy, err := skipMatch(dAtA[iNdEx:])
  1104. if err != nil {
  1105. return err
  1106. }
  1107. if skippy < 0 {
  1108. return ErrInvalidLengthMatch
  1109. }
  1110. if (iNdEx + skippy) > l {
  1111. return io.ErrUnexpectedEOF
  1112. }
  1113. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1114. iNdEx += skippy
  1115. }
  1116. }
  1117. if iNdEx > l {
  1118. return io.ErrUnexpectedEOF
  1119. }
  1120. return nil
  1121. }
  1122. func (m *Object) Unmarshal(dAtA []byte) error {
  1123. l := len(dAtA)
  1124. iNdEx := 0
  1125. for iNdEx < l {
  1126. preIndex := iNdEx
  1127. var wire uint64
  1128. for shift := uint(0); ; shift += 7 {
  1129. if shift >= 64 {
  1130. return ErrIntOverflowMatch
  1131. }
  1132. if iNdEx >= l {
  1133. return io.ErrUnexpectedEOF
  1134. }
  1135. b := dAtA[iNdEx]
  1136. iNdEx++
  1137. wire |= (uint64(b) & 0x7F) << shift
  1138. if b < 0x80 {
  1139. break
  1140. }
  1141. }
  1142. fieldNum := int32(wire >> 3)
  1143. wireType := int(wire & 0x7)
  1144. if wireType == 4 {
  1145. return fmt.Errorf("proto: Object: wiretype end group for non-group")
  1146. }
  1147. if fieldNum <= 0 {
  1148. return fmt.Errorf("proto: Object: illegal tag %d (wire type %d)", fieldNum, wire)
  1149. }
  1150. switch fieldNum {
  1151. case 1:
  1152. if wireType != 0 {
  1153. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  1154. }
  1155. m.ID = 0
  1156. for shift := uint(0); ; shift += 7 {
  1157. if shift >= 64 {
  1158. return ErrIntOverflowMatch
  1159. }
  1160. if iNdEx >= l {
  1161. return io.ErrUnexpectedEOF
  1162. }
  1163. b := dAtA[iNdEx]
  1164. iNdEx++
  1165. m.ID |= (int64(b) & 0x7F) << shift
  1166. if b < 0x80 {
  1167. break
  1168. }
  1169. }
  1170. case 2:
  1171. if wireType != 0 {
  1172. return fmt.Errorf("proto: wrong wireType = %d for field MatchId", wireType)
  1173. }
  1174. m.MatchId = 0
  1175. for shift := uint(0); ; shift += 7 {
  1176. if shift >= 64 {
  1177. return ErrIntOverflowMatch
  1178. }
  1179. if iNdEx >= l {
  1180. return io.ErrUnexpectedEOF
  1181. }
  1182. b := dAtA[iNdEx]
  1183. iNdEx++
  1184. m.MatchId |= (int64(b) & 0x7F) << shift
  1185. if b < 0x80 {
  1186. break
  1187. }
  1188. }
  1189. case 3:
  1190. if wireType != 0 {
  1191. return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType)
  1192. }
  1193. m.Sid = 0
  1194. for shift := uint(0); ; shift += 7 {
  1195. if shift >= 64 {
  1196. return ErrIntOverflowMatch
  1197. }
  1198. if iNdEx >= l {
  1199. return io.ErrUnexpectedEOF
  1200. }
  1201. b := dAtA[iNdEx]
  1202. iNdEx++
  1203. m.Sid |= (int64(b) & 0x7F) << shift
  1204. if b < 0x80 {
  1205. break
  1206. }
  1207. }
  1208. case 4:
  1209. if wireType != 2 {
  1210. return fmt.Errorf("proto: wrong wireType = %d for field HomeName", wireType)
  1211. }
  1212. var stringLen uint64
  1213. for shift := uint(0); ; shift += 7 {
  1214. if shift >= 64 {
  1215. return ErrIntOverflowMatch
  1216. }
  1217. if iNdEx >= l {
  1218. return io.ErrUnexpectedEOF
  1219. }
  1220. b := dAtA[iNdEx]
  1221. iNdEx++
  1222. stringLen |= (uint64(b) & 0x7F) << shift
  1223. if b < 0x80 {
  1224. break
  1225. }
  1226. }
  1227. intStringLen := int(stringLen)
  1228. if intStringLen < 0 {
  1229. return ErrInvalidLengthMatch
  1230. }
  1231. postIndex := iNdEx + intStringLen
  1232. if postIndex > l {
  1233. return io.ErrUnexpectedEOF
  1234. }
  1235. m.HomeName = string(dAtA[iNdEx:postIndex])
  1236. iNdEx = postIndex
  1237. case 5:
  1238. if wireType != 2 {
  1239. return fmt.Errorf("proto: wrong wireType = %d for field HomeLogo", wireType)
  1240. }
  1241. var stringLen uint64
  1242. for shift := uint(0); ; shift += 7 {
  1243. if shift >= 64 {
  1244. return ErrIntOverflowMatch
  1245. }
  1246. if iNdEx >= l {
  1247. return io.ErrUnexpectedEOF
  1248. }
  1249. b := dAtA[iNdEx]
  1250. iNdEx++
  1251. stringLen |= (uint64(b) & 0x7F) << shift
  1252. if b < 0x80 {
  1253. break
  1254. }
  1255. }
  1256. intStringLen := int(stringLen)
  1257. if intStringLen < 0 {
  1258. return ErrInvalidLengthMatch
  1259. }
  1260. postIndex := iNdEx + intStringLen
  1261. if postIndex > l {
  1262. return io.ErrUnexpectedEOF
  1263. }
  1264. m.HomeLogo = string(dAtA[iNdEx:postIndex])
  1265. iNdEx = postIndex
  1266. case 6:
  1267. if wireType != 0 {
  1268. return fmt.Errorf("proto: wrong wireType = %d for field HomeScore", wireType)
  1269. }
  1270. m.HomeScore = 0
  1271. for shift := uint(0); ; shift += 7 {
  1272. if shift >= 64 {
  1273. return ErrIntOverflowMatch
  1274. }
  1275. if iNdEx >= l {
  1276. return io.ErrUnexpectedEOF
  1277. }
  1278. b := dAtA[iNdEx]
  1279. iNdEx++
  1280. m.HomeScore |= (int64(b) & 0x7F) << shift
  1281. if b < 0x80 {
  1282. break
  1283. }
  1284. }
  1285. case 7:
  1286. if wireType != 2 {
  1287. return fmt.Errorf("proto: wrong wireType = %d for field AwayName", wireType)
  1288. }
  1289. var stringLen uint64
  1290. for shift := uint(0); ; shift += 7 {
  1291. if shift >= 64 {
  1292. return ErrIntOverflowMatch
  1293. }
  1294. if iNdEx >= l {
  1295. return io.ErrUnexpectedEOF
  1296. }
  1297. b := dAtA[iNdEx]
  1298. iNdEx++
  1299. stringLen |= (uint64(b) & 0x7F) << shift
  1300. if b < 0x80 {
  1301. break
  1302. }
  1303. }
  1304. intStringLen := int(stringLen)
  1305. if intStringLen < 0 {
  1306. return ErrInvalidLengthMatch
  1307. }
  1308. postIndex := iNdEx + intStringLen
  1309. if postIndex > l {
  1310. return io.ErrUnexpectedEOF
  1311. }
  1312. m.AwayName = string(dAtA[iNdEx:postIndex])
  1313. iNdEx = postIndex
  1314. case 8:
  1315. if wireType != 2 {
  1316. return fmt.Errorf("proto: wrong wireType = %d for field AwayLogo", wireType)
  1317. }
  1318. var stringLen uint64
  1319. for shift := uint(0); ; shift += 7 {
  1320. if shift >= 64 {
  1321. return ErrIntOverflowMatch
  1322. }
  1323. if iNdEx >= l {
  1324. return io.ErrUnexpectedEOF
  1325. }
  1326. b := dAtA[iNdEx]
  1327. iNdEx++
  1328. stringLen |= (uint64(b) & 0x7F) << shift
  1329. if b < 0x80 {
  1330. break
  1331. }
  1332. }
  1333. intStringLen := int(stringLen)
  1334. if intStringLen < 0 {
  1335. return ErrInvalidLengthMatch
  1336. }
  1337. postIndex := iNdEx + intStringLen
  1338. if postIndex > l {
  1339. return io.ErrUnexpectedEOF
  1340. }
  1341. m.AwayLogo = string(dAtA[iNdEx:postIndex])
  1342. iNdEx = postIndex
  1343. case 9:
  1344. if wireType != 0 {
  1345. return fmt.Errorf("proto: wrong wireType = %d for field AwayScore", wireType)
  1346. }
  1347. m.AwayScore = 0
  1348. for shift := uint(0); ; shift += 7 {
  1349. if shift >= 64 {
  1350. return ErrIntOverflowMatch
  1351. }
  1352. if iNdEx >= l {
  1353. return io.ErrUnexpectedEOF
  1354. }
  1355. b := dAtA[iNdEx]
  1356. iNdEx++
  1357. m.AwayScore |= (int64(b) & 0x7F) << shift
  1358. if b < 0x80 {
  1359. break
  1360. }
  1361. }
  1362. case 10:
  1363. if wireType != 0 {
  1364. return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  1365. }
  1366. m.Result = 0
  1367. for shift := uint(0); ; shift += 7 {
  1368. if shift >= 64 {
  1369. return ErrIntOverflowMatch
  1370. }
  1371. if iNdEx >= l {
  1372. return io.ErrUnexpectedEOF
  1373. }
  1374. b := dAtA[iNdEx]
  1375. iNdEx++
  1376. m.Result |= (int64(b) & 0x7F) << shift
  1377. if b < 0x80 {
  1378. break
  1379. }
  1380. }
  1381. case 11:
  1382. if wireType != 0 {
  1383. return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
  1384. }
  1385. m.Ctime = 0
  1386. for shift := uint(0); ; shift += 7 {
  1387. if shift >= 64 {
  1388. return ErrIntOverflowMatch
  1389. }
  1390. if iNdEx >= l {
  1391. return io.ErrUnexpectedEOF
  1392. }
  1393. b := dAtA[iNdEx]
  1394. iNdEx++
  1395. m.Ctime |= (go_common_library_time.Time(b) & 0x7F) << shift
  1396. if b < 0x80 {
  1397. break
  1398. }
  1399. }
  1400. case 12:
  1401. if wireType != 0 {
  1402. return fmt.Errorf("proto: wrong wireType = %d for field Mtime", wireType)
  1403. }
  1404. m.Mtime = 0
  1405. for shift := uint(0); ; shift += 7 {
  1406. if shift >= 64 {
  1407. return ErrIntOverflowMatch
  1408. }
  1409. if iNdEx >= l {
  1410. return io.ErrUnexpectedEOF
  1411. }
  1412. b := dAtA[iNdEx]
  1413. iNdEx++
  1414. m.Mtime |= (go_common_library_time.Time(b) & 0x7F) << shift
  1415. if b < 0x80 {
  1416. break
  1417. }
  1418. }
  1419. case 13:
  1420. if wireType != 0 {
  1421. return fmt.Errorf("proto: wrong wireType = %d for field Stime", wireType)
  1422. }
  1423. m.Stime = 0
  1424. for shift := uint(0); ; shift += 7 {
  1425. if shift >= 64 {
  1426. return ErrIntOverflowMatch
  1427. }
  1428. if iNdEx >= l {
  1429. return io.ErrUnexpectedEOF
  1430. }
  1431. b := dAtA[iNdEx]
  1432. iNdEx++
  1433. m.Stime |= (go_common_library_time.Time(b) & 0x7F) << shift
  1434. if b < 0x80 {
  1435. break
  1436. }
  1437. }
  1438. case 14:
  1439. if wireType != 0 {
  1440. return fmt.Errorf("proto: wrong wireType = %d for field Etime", wireType)
  1441. }
  1442. m.Etime = 0
  1443. for shift := uint(0); ; shift += 7 {
  1444. if shift >= 64 {
  1445. return ErrIntOverflowMatch
  1446. }
  1447. if iNdEx >= l {
  1448. return io.ErrUnexpectedEOF
  1449. }
  1450. b := dAtA[iNdEx]
  1451. iNdEx++
  1452. m.Etime |= (go_common_library_time.Time(b) & 0x7F) << shift
  1453. if b < 0x80 {
  1454. break
  1455. }
  1456. }
  1457. case 15:
  1458. if wireType != 0 {
  1459. return fmt.Errorf("proto: wrong wireType = %d for field UserResult", wireType)
  1460. }
  1461. m.UserResult = 0
  1462. for shift := uint(0); ; shift += 7 {
  1463. if shift >= 64 {
  1464. return ErrIntOverflowMatch
  1465. }
  1466. if iNdEx >= l {
  1467. return io.ErrUnexpectedEOF
  1468. }
  1469. b := dAtA[iNdEx]
  1470. iNdEx++
  1471. m.UserResult |= (int64(b) & 0x7F) << shift
  1472. if b < 0x80 {
  1473. break
  1474. }
  1475. }
  1476. case 16:
  1477. if wireType != 0 {
  1478. return fmt.Errorf("proto: wrong wireType = %d for field GameStime", wireType)
  1479. }
  1480. m.GameStime = 0
  1481. for shift := uint(0); ; shift += 7 {
  1482. if shift >= 64 {
  1483. return ErrIntOverflowMatch
  1484. }
  1485. if iNdEx >= l {
  1486. return io.ErrUnexpectedEOF
  1487. }
  1488. b := dAtA[iNdEx]
  1489. iNdEx++
  1490. m.GameStime |= (go_common_library_time.Time(b) & 0x7F) << shift
  1491. if b < 0x80 {
  1492. break
  1493. }
  1494. }
  1495. case 17:
  1496. if wireType != 2 {
  1497. return fmt.Errorf("proto: wrong wireType = %d for field MatchName", wireType)
  1498. }
  1499. var stringLen uint64
  1500. for shift := uint(0); ; shift += 7 {
  1501. if shift >= 64 {
  1502. return ErrIntOverflowMatch
  1503. }
  1504. if iNdEx >= l {
  1505. return io.ErrUnexpectedEOF
  1506. }
  1507. b := dAtA[iNdEx]
  1508. iNdEx++
  1509. stringLen |= (uint64(b) & 0x7F) << shift
  1510. if b < 0x80 {
  1511. break
  1512. }
  1513. }
  1514. intStringLen := int(stringLen)
  1515. if intStringLen < 0 {
  1516. return ErrInvalidLengthMatch
  1517. }
  1518. postIndex := iNdEx + intStringLen
  1519. if postIndex > l {
  1520. return io.ErrUnexpectedEOF
  1521. }
  1522. m.MatchName = string(dAtA[iNdEx:postIndex])
  1523. iNdEx = postIndex
  1524. default:
  1525. iNdEx = preIndex
  1526. skippy, err := skipMatch(dAtA[iNdEx:])
  1527. if err != nil {
  1528. return err
  1529. }
  1530. if skippy < 0 {
  1531. return ErrInvalidLengthMatch
  1532. }
  1533. if (iNdEx + skippy) > l {
  1534. return io.ErrUnexpectedEOF
  1535. }
  1536. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1537. iNdEx += skippy
  1538. }
  1539. }
  1540. if iNdEx > l {
  1541. return io.ErrUnexpectedEOF
  1542. }
  1543. return nil
  1544. }
  1545. func (m *UserLog) Unmarshal(dAtA []byte) error {
  1546. l := len(dAtA)
  1547. iNdEx := 0
  1548. for iNdEx < l {
  1549. preIndex := iNdEx
  1550. var wire uint64
  1551. for shift := uint(0); ; shift += 7 {
  1552. if shift >= 64 {
  1553. return ErrIntOverflowMatch
  1554. }
  1555. if iNdEx >= l {
  1556. return io.ErrUnexpectedEOF
  1557. }
  1558. b := dAtA[iNdEx]
  1559. iNdEx++
  1560. wire |= (uint64(b) & 0x7F) << shift
  1561. if b < 0x80 {
  1562. break
  1563. }
  1564. }
  1565. fieldNum := int32(wire >> 3)
  1566. wireType := int(wire & 0x7)
  1567. if wireType == 4 {
  1568. return fmt.Errorf("proto: UserLog: wiretype end group for non-group")
  1569. }
  1570. if fieldNum <= 0 {
  1571. return fmt.Errorf("proto: UserLog: illegal tag %d (wire type %d)", fieldNum, wire)
  1572. }
  1573. switch fieldNum {
  1574. case 1:
  1575. if wireType != 0 {
  1576. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  1577. }
  1578. m.ID = 0
  1579. for shift := uint(0); ; shift += 7 {
  1580. if shift >= 64 {
  1581. return ErrIntOverflowMatch
  1582. }
  1583. if iNdEx >= l {
  1584. return io.ErrUnexpectedEOF
  1585. }
  1586. b := dAtA[iNdEx]
  1587. iNdEx++
  1588. m.ID |= (int64(b) & 0x7F) << shift
  1589. if b < 0x80 {
  1590. break
  1591. }
  1592. }
  1593. case 2:
  1594. if wireType != 0 {
  1595. return fmt.Errorf("proto: wrong wireType = %d for field MatchId", wireType)
  1596. }
  1597. m.MatchId = 0
  1598. for shift := uint(0); ; shift += 7 {
  1599. if shift >= 64 {
  1600. return ErrIntOverflowMatch
  1601. }
  1602. if iNdEx >= l {
  1603. return io.ErrUnexpectedEOF
  1604. }
  1605. b := dAtA[iNdEx]
  1606. iNdEx++
  1607. m.MatchId |= (int64(b) & 0x7F) << shift
  1608. if b < 0x80 {
  1609. break
  1610. }
  1611. }
  1612. case 3:
  1613. if wireType != 0 {
  1614. return fmt.Errorf("proto: wrong wireType = %d for field MOId", wireType)
  1615. }
  1616. m.MOId = 0
  1617. for shift := uint(0); ; shift += 7 {
  1618. if shift >= 64 {
  1619. return ErrIntOverflowMatch
  1620. }
  1621. if iNdEx >= l {
  1622. return io.ErrUnexpectedEOF
  1623. }
  1624. b := dAtA[iNdEx]
  1625. iNdEx++
  1626. m.MOId |= (int64(b) & 0x7F) << shift
  1627. if b < 0x80 {
  1628. break
  1629. }
  1630. }
  1631. case 4:
  1632. if wireType != 0 {
  1633. return fmt.Errorf("proto: wrong wireType = %d for field Sid", wireType)
  1634. }
  1635. m.Sid = 0
  1636. for shift := uint(0); ; shift += 7 {
  1637. if shift >= 64 {
  1638. return ErrIntOverflowMatch
  1639. }
  1640. if iNdEx >= l {
  1641. return io.ErrUnexpectedEOF
  1642. }
  1643. b := dAtA[iNdEx]
  1644. iNdEx++
  1645. m.Sid |= (int64(b) & 0x7F) << shift
  1646. if b < 0x80 {
  1647. break
  1648. }
  1649. }
  1650. case 5:
  1651. if wireType != 0 {
  1652. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  1653. }
  1654. m.Mid = 0
  1655. for shift := uint(0); ; shift += 7 {
  1656. if shift >= 64 {
  1657. return ErrIntOverflowMatch
  1658. }
  1659. if iNdEx >= l {
  1660. return io.ErrUnexpectedEOF
  1661. }
  1662. b := dAtA[iNdEx]
  1663. iNdEx++
  1664. m.Mid |= (int64(b) & 0x7F) << shift
  1665. if b < 0x80 {
  1666. break
  1667. }
  1668. }
  1669. case 6:
  1670. if wireType != 0 {
  1671. return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
  1672. }
  1673. m.Result = 0
  1674. for shift := uint(0); ; shift += 7 {
  1675. if shift >= 64 {
  1676. return ErrIntOverflowMatch
  1677. }
  1678. if iNdEx >= l {
  1679. return io.ErrUnexpectedEOF
  1680. }
  1681. b := dAtA[iNdEx]
  1682. iNdEx++
  1683. m.Result |= (int64(b) & 0x7F) << shift
  1684. if b < 0x80 {
  1685. break
  1686. }
  1687. }
  1688. case 7:
  1689. if wireType != 0 {
  1690. return fmt.Errorf("proto: wrong wireType = %d for field Stake", wireType)
  1691. }
  1692. m.Stake = 0
  1693. for shift := uint(0); ; shift += 7 {
  1694. if shift >= 64 {
  1695. return ErrIntOverflowMatch
  1696. }
  1697. if iNdEx >= l {
  1698. return io.ErrUnexpectedEOF
  1699. }
  1700. b := dAtA[iNdEx]
  1701. iNdEx++
  1702. m.Stake |= (int64(b) & 0x7F) << shift
  1703. if b < 0x80 {
  1704. break
  1705. }
  1706. }
  1707. case 8:
  1708. if wireType != 0 {
  1709. return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
  1710. }
  1711. m.Ctime = 0
  1712. for shift := uint(0); ; shift += 7 {
  1713. if shift >= 64 {
  1714. return ErrIntOverflowMatch
  1715. }
  1716. if iNdEx >= l {
  1717. return io.ErrUnexpectedEOF
  1718. }
  1719. b := dAtA[iNdEx]
  1720. iNdEx++
  1721. m.Ctime |= (go_common_library_time.Time(b) & 0x7F) << shift
  1722. if b < 0x80 {
  1723. break
  1724. }
  1725. }
  1726. case 9:
  1727. if wireType != 0 {
  1728. return fmt.Errorf("proto: wrong wireType = %d for field Mtime", wireType)
  1729. }
  1730. m.Mtime = 0
  1731. for shift := uint(0); ; shift += 7 {
  1732. if shift >= 64 {
  1733. return ErrIntOverflowMatch
  1734. }
  1735. if iNdEx >= l {
  1736. return io.ErrUnexpectedEOF
  1737. }
  1738. b := dAtA[iNdEx]
  1739. iNdEx++
  1740. m.Mtime |= (go_common_library_time.Time(b) & 0x7F) << shift
  1741. if b < 0x80 {
  1742. break
  1743. }
  1744. }
  1745. case 10:
  1746. if wireType != 0 {
  1747. return fmt.Errorf("proto: wrong wireType = %d for field ObjResult", wireType)
  1748. }
  1749. m.ObjResult = 0
  1750. for shift := uint(0); ; shift += 7 {
  1751. if shift >= 64 {
  1752. return ErrIntOverflowMatch
  1753. }
  1754. if iNdEx >= l {
  1755. return io.ErrUnexpectedEOF
  1756. }
  1757. b := dAtA[iNdEx]
  1758. iNdEx++
  1759. m.ObjResult |= (int64(b) & 0x7F) << shift
  1760. if b < 0x80 {
  1761. break
  1762. }
  1763. }
  1764. case 11:
  1765. if wireType != 2 {
  1766. return fmt.Errorf("proto: wrong wireType = %d for field HomeName", wireType)
  1767. }
  1768. var stringLen uint64
  1769. for shift := uint(0); ; shift += 7 {
  1770. if shift >= 64 {
  1771. return ErrIntOverflowMatch
  1772. }
  1773. if iNdEx >= l {
  1774. return io.ErrUnexpectedEOF
  1775. }
  1776. b := dAtA[iNdEx]
  1777. iNdEx++
  1778. stringLen |= (uint64(b) & 0x7F) << shift
  1779. if b < 0x80 {
  1780. break
  1781. }
  1782. }
  1783. intStringLen := int(stringLen)
  1784. if intStringLen < 0 {
  1785. return ErrInvalidLengthMatch
  1786. }
  1787. postIndex := iNdEx + intStringLen
  1788. if postIndex > l {
  1789. return io.ErrUnexpectedEOF
  1790. }
  1791. m.HomeName = string(dAtA[iNdEx:postIndex])
  1792. iNdEx = postIndex
  1793. case 12:
  1794. if wireType != 2 {
  1795. return fmt.Errorf("proto: wrong wireType = %d for field AwayName", wireType)
  1796. }
  1797. var stringLen uint64
  1798. for shift := uint(0); ; shift += 7 {
  1799. if shift >= 64 {
  1800. return ErrIntOverflowMatch
  1801. }
  1802. if iNdEx >= l {
  1803. return io.ErrUnexpectedEOF
  1804. }
  1805. b := dAtA[iNdEx]
  1806. iNdEx++
  1807. stringLen |= (uint64(b) & 0x7F) << shift
  1808. if b < 0x80 {
  1809. break
  1810. }
  1811. }
  1812. intStringLen := int(stringLen)
  1813. if intStringLen < 0 {
  1814. return ErrInvalidLengthMatch
  1815. }
  1816. postIndex := iNdEx + intStringLen
  1817. if postIndex > l {
  1818. return io.ErrUnexpectedEOF
  1819. }
  1820. m.AwayName = string(dAtA[iNdEx:postIndex])
  1821. iNdEx = postIndex
  1822. case 13:
  1823. if wireType != 0 {
  1824. return fmt.Errorf("proto: wrong wireType = %d for field GameStime", wireType)
  1825. }
  1826. m.GameStime = 0
  1827. for shift := uint(0); ; shift += 7 {
  1828. if shift >= 64 {
  1829. return ErrIntOverflowMatch
  1830. }
  1831. if iNdEx >= l {
  1832. return io.ErrUnexpectedEOF
  1833. }
  1834. b := dAtA[iNdEx]
  1835. iNdEx++
  1836. m.GameStime |= (go_common_library_time.Time(b) & 0x7F) << shift
  1837. if b < 0x80 {
  1838. break
  1839. }
  1840. }
  1841. default:
  1842. iNdEx = preIndex
  1843. skippy, err := skipMatch(dAtA[iNdEx:])
  1844. if err != nil {
  1845. return err
  1846. }
  1847. if skippy < 0 {
  1848. return ErrInvalidLengthMatch
  1849. }
  1850. if (iNdEx + skippy) > l {
  1851. return io.ErrUnexpectedEOF
  1852. }
  1853. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1854. iNdEx += skippy
  1855. }
  1856. }
  1857. if iNdEx > l {
  1858. return io.ErrUnexpectedEOF
  1859. }
  1860. return nil
  1861. }
  1862. func (m *UserGuess) Unmarshal(dAtA []byte) error {
  1863. l := len(dAtA)
  1864. iNdEx := 0
  1865. for iNdEx < l {
  1866. preIndex := iNdEx
  1867. var wire uint64
  1868. for shift := uint(0); ; shift += 7 {
  1869. if shift >= 64 {
  1870. return ErrIntOverflowMatch
  1871. }
  1872. if iNdEx >= l {
  1873. return io.ErrUnexpectedEOF
  1874. }
  1875. b := dAtA[iNdEx]
  1876. iNdEx++
  1877. wire |= (uint64(b) & 0x7F) << shift
  1878. if b < 0x80 {
  1879. break
  1880. }
  1881. }
  1882. fieldNum := int32(wire >> 3)
  1883. wireType := int(wire & 0x7)
  1884. if wireType == 4 {
  1885. return fmt.Errorf("proto: UserGuess: wiretype end group for non-group")
  1886. }
  1887. if fieldNum <= 0 {
  1888. return fmt.Errorf("proto: UserGuess: illegal tag %d (wire type %d)", fieldNum, wire)
  1889. }
  1890. switch fieldNum {
  1891. case 1:
  1892. if wireType != 0 {
  1893. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  1894. }
  1895. m.Total = 0
  1896. for shift := uint(0); ; shift += 7 {
  1897. if shift >= 64 {
  1898. return ErrIntOverflowMatch
  1899. }
  1900. if iNdEx >= l {
  1901. return io.ErrUnexpectedEOF
  1902. }
  1903. b := dAtA[iNdEx]
  1904. iNdEx++
  1905. m.Total |= (int64(b) & 0x7F) << shift
  1906. if b < 0x80 {
  1907. break
  1908. }
  1909. }
  1910. case 2:
  1911. if wireType != 0 {
  1912. return fmt.Errorf("proto: wrong wireType = %d for field Win", wireType)
  1913. }
  1914. m.Win = 0
  1915. for shift := uint(0); ; shift += 7 {
  1916. if shift >= 64 {
  1917. return ErrIntOverflowMatch
  1918. }
  1919. if iNdEx >= l {
  1920. return io.ErrUnexpectedEOF
  1921. }
  1922. b := dAtA[iNdEx]
  1923. iNdEx++
  1924. m.Win |= (int64(b) & 0x7F) << shift
  1925. if b < 0x80 {
  1926. break
  1927. }
  1928. }
  1929. default:
  1930. iNdEx = preIndex
  1931. skippy, err := skipMatch(dAtA[iNdEx:])
  1932. if err != nil {
  1933. return err
  1934. }
  1935. if skippy < 0 {
  1936. return ErrInvalidLengthMatch
  1937. }
  1938. if (iNdEx + skippy) > l {
  1939. return io.ErrUnexpectedEOF
  1940. }
  1941. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1942. iNdEx += skippy
  1943. }
  1944. }
  1945. if iNdEx > l {
  1946. return io.ErrUnexpectedEOF
  1947. }
  1948. return nil
  1949. }
  1950. func skipMatch(dAtA []byte) (n int, err error) {
  1951. l := len(dAtA)
  1952. iNdEx := 0
  1953. for iNdEx < l {
  1954. var wire uint64
  1955. for shift := uint(0); ; shift += 7 {
  1956. if shift >= 64 {
  1957. return 0, ErrIntOverflowMatch
  1958. }
  1959. if iNdEx >= l {
  1960. return 0, io.ErrUnexpectedEOF
  1961. }
  1962. b := dAtA[iNdEx]
  1963. iNdEx++
  1964. wire |= (uint64(b) & 0x7F) << shift
  1965. if b < 0x80 {
  1966. break
  1967. }
  1968. }
  1969. wireType := int(wire & 0x7)
  1970. switch wireType {
  1971. case 0:
  1972. for shift := uint(0); ; shift += 7 {
  1973. if shift >= 64 {
  1974. return 0, ErrIntOverflowMatch
  1975. }
  1976. if iNdEx >= l {
  1977. return 0, io.ErrUnexpectedEOF
  1978. }
  1979. iNdEx++
  1980. if dAtA[iNdEx-1] < 0x80 {
  1981. break
  1982. }
  1983. }
  1984. return iNdEx, nil
  1985. case 1:
  1986. iNdEx += 8
  1987. return iNdEx, nil
  1988. case 2:
  1989. var length int
  1990. for shift := uint(0); ; shift += 7 {
  1991. if shift >= 64 {
  1992. return 0, ErrIntOverflowMatch
  1993. }
  1994. if iNdEx >= l {
  1995. return 0, io.ErrUnexpectedEOF
  1996. }
  1997. b := dAtA[iNdEx]
  1998. iNdEx++
  1999. length |= (int(b) & 0x7F) << shift
  2000. if b < 0x80 {
  2001. break
  2002. }
  2003. }
  2004. iNdEx += length
  2005. if length < 0 {
  2006. return 0, ErrInvalidLengthMatch
  2007. }
  2008. return iNdEx, nil
  2009. case 3:
  2010. for {
  2011. var innerWire uint64
  2012. var start int = iNdEx
  2013. for shift := uint(0); ; shift += 7 {
  2014. if shift >= 64 {
  2015. return 0, ErrIntOverflowMatch
  2016. }
  2017. if iNdEx >= l {
  2018. return 0, io.ErrUnexpectedEOF
  2019. }
  2020. b := dAtA[iNdEx]
  2021. iNdEx++
  2022. innerWire |= (uint64(b) & 0x7F) << shift
  2023. if b < 0x80 {
  2024. break
  2025. }
  2026. }
  2027. innerWireType := int(innerWire & 0x7)
  2028. if innerWireType == 4 {
  2029. break
  2030. }
  2031. next, err := skipMatch(dAtA[start:])
  2032. if err != nil {
  2033. return 0, err
  2034. }
  2035. iNdEx = start + next
  2036. }
  2037. return iNdEx, nil
  2038. case 4:
  2039. return iNdEx, nil
  2040. case 5:
  2041. iNdEx += 4
  2042. return iNdEx, nil
  2043. default:
  2044. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2045. }
  2046. }
  2047. panic("unreachable")
  2048. }
  2049. var (
  2050. ErrInvalidLengthMatch = fmt.Errorf("proto: negative length found during unmarshaling")
  2051. ErrIntOverflowMatch = fmt.Errorf("proto: integer overflow")
  2052. )
  2053. func init() { proto.RegisterFile("match.proto", fileDescriptor_match_7fb26d27fe620ca9) }
  2054. var fileDescriptor_match_7fb26d27fe620ca9 = []byte{
  2055. // 772 bytes of a gzipped FileDescriptorProto
  2056. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xcd, 0x4e, 0xdb, 0x4a,
  2057. 0x14, 0x26, 0xb1, 0xe3, 0xc4, 0x13, 0xfe, 0xae, 0x75, 0x75, 0xaf, 0x69, 0x2b, 0x1b, 0x65, 0x51,
  2058. 0xa5, 0x12, 0x24, 0x52, 0xab, 0x76, 0x59, 0xa9, 0x81, 0x8a, 0x46, 0x25, 0x45, 0x9a, 0x80, 0x2a,
  2059. 0x75, 0x13, 0x39, 0xce, 0xd4, 0x0c, 0x64, 0x32, 0xc8, 0x76, 0x80, 0xbc, 0x49, 0x5f, 0xa4, 0x8f,
  2060. 0x50, 0x89, 0x25, 0x4f, 0x60, 0x01, 0xdd, 0xf9, 0x11, 0xba, 0xaa, 0xce, 0xb1, 0x1d, 0x03, 0x82,
  2061. 0x36, 0x2a, 0x8b, 0xee, 0xec, 0xef, 0xe7, 0xf8, 0x68, 0xce, 0x77, 0xc6, 0xa4, 0x2a, 0x9c, 0xd0,
  2062. 0xdd, 0x6f, 0x1c, 0xf9, 0x32, 0x94, 0xc6, 0xb2, 0xe3, 0x86, 0xfc, 0x98, 0x87, 0x93, 0x46, 0xc0,
  2063. 0xfc, 0x63, 0xee, 0xb2, 0x47, 0xeb, 0x1e, 0x0f, 0xf7, 0xc7, 0xfd, 0x86, 0x2b, 0x45, 0xd3, 0x93,
  2064. 0x9e, 0x6c, 0xa2, 0xb0, 0x3f, 0xfe, 0x8c, 0x6f, 0xf8, 0x82, 0x4f, 0x49, 0x81, 0xda, 0x45, 0x91,
  2065. 0x94, 0x3a, 0x50, 0xd0, 0xf8, 0x8f, 0x14, 0xdb, 0x9b, 0x66, 0x61, 0xb5, 0x50, 0x57, 0x5a, 0x5a,
  2066. 0x1c, 0xd9, 0x45, 0x3e, 0xa0, 0xc5, 0xf6, 0xa6, 0xb1, 0x42, 0x94, 0x2e, 0x1f, 0x98, 0x45, 0x24,
  2067. 0xca, 0x71, 0x64, 0x2b, 0x01, 0x1f, 0x50, 0xc0, 0x8c, 0x67, 0xa4, 0xd2, 0x71, 0x4e, 0xbb, 0xa1,
  2068. 0x73, 0xc8, 0x4c, 0x05, 0xf9, 0x85, 0x38, 0xb2, 0x75, 0xe1, 0x9c, 0xf6, 0x02, 0x00, 0xe9, 0x94,
  2069. 0x36, 0x6c, 0x52, 0x4a, 0x74, 0x2a, 0xea, 0xf4, 0x38, 0xb2, 0x4b, 0x89, 0x26, 0xc1, 0x8d, 0x27,
  2070. 0x44, 0xfd, 0xe0, 0x08, 0x66, 0x96, 0x56, 0x0b, 0x75, 0xbd, 0x55, 0x89, 0x23, 0x5b, 0x1d, 0x39,
  2071. 0x82, 0x51, 0x44, 0xa1, 0x89, 0x3d, 0x7f, 0x68, 0x6a, 0x48, 0x62, 0x13, 0x63, 0x7f, 0x48, 0x01,
  2072. 0x83, 0xca, 0x1b, 0xf2, 0x98, 0xf9, 0x66, 0x19, 0x49, 0xac, 0xec, 0x02, 0x40, 0x13, 0xdc, 0x78,
  2073. 0x4d, 0x4a, 0x1b, 0x21, 0x17, 0xcc, 0xac, 0xe0, 0xa7, 0xeb, 0x28, 0x00, 0xe0, 0x47, 0x64, 0x3f,
  2074. 0xf6, 0xe4, 0xba, 0x2b, 0x85, 0x90, 0xa3, 0xe6, 0x90, 0xf7, 0x7d, 0xc7, 0x9f, 0x34, 0x81, 0x69,
  2075. 0xec, 0x72, 0xc1, 0x68, 0x62, 0x03, 0x7f, 0x07, 0xfd, 0x7a, 0xee, 0x17, 0x33, 0xf9, 0xd1, 0x56,
  2076. 0x6b, 0x11, 0x1d, 0x4f, 0x78, 0x9b, 0x07, 0xa1, 0xf1, 0x92, 0xe8, 0x22, 0x7b, 0x31, 0x0b, 0xab,
  2077. 0x4a, 0xbd, 0xfa, 0xfc, 0xff, 0xc6, 0xed, 0x21, 0x36, 0x50, 0x4f, 0x73, 0x65, 0xed, 0x9b, 0x46,
  2078. 0xb4, 0x9d, 0xfe, 0x01, 0x73, 0xc3, 0x7b, 0xe7, 0xf4, 0x94, 0x94, 0xd1, 0xd6, 0xce, 0x66, 0x35,
  2079. 0x1f, 0x47, 0x76, 0x05, 0x4b, 0xf4, 0xf8, 0x80, 0x66, 0x64, 0x36, 0x4f, 0xe5, 0xee, 0x79, 0xbe,
  2080. 0x93, 0x82, 0xe1, 0x1c, 0x54, 0x3c, 0x4d, 0x9c, 0xe7, 0xbe, 0x14, 0xac, 0x87, 0xc3, 0x98, 0xd2,
  2081. 0x99, 0x74, 0x5b, 0x7a, 0x32, 0x1d, 0x59, 0x2e, 0x1d, 0x4a, 0x4f, 0xd2, 0x29, 0x6d, 0xac, 0x11,
  2082. 0x1d, 0x9e, 0xbb, 0xae, 0xf4, 0x19, 0x4e, 0x50, 0x69, 0x2d, 0xc6, 0x91, 0x4d, 0x50, 0x1b, 0x00,
  2083. 0x4a, 0x73, 0x01, 0x14, 0x7e, 0x73, 0xe2, 0x4c, 0xb0, 0x87, 0x72, 0x5e, 0xd8, 0x39, 0x71, 0x26,
  2084. 0x69, 0x0f, 0x19, 0x9d, 0x49, 0xb1, 0x87, 0xca, 0x2d, 0x69, 0xd2, 0x43, 0x46, 0x43, 0x0f, 0xf0,
  2085. 0x9c, 0xf4, 0xa0, 0xe7, 0x3d, 0xa0, 0x36, 0xed, 0x61, 0x2a, 0x30, 0x6a, 0x44, 0xa3, 0x2c, 0x18,
  2086. 0x0f, 0x43, 0x93, 0xa0, 0x94, 0xc4, 0x91, 0xad, 0xf9, 0x88, 0xd0, 0x94, 0xc9, 0x53, 0x55, 0x7d,
  2087. 0x60, 0xaa, 0xe6, 0xff, 0x28, 0x55, 0xe0, 0xef, 0xa2, 0x7f, 0x21, 0xf7, 0x07, 0x33, 0xf9, 0xbb,
  2088. 0x99, 0xff, 0x2d, 0xfa, 0x17, 0x73, 0x3f, 0x9b, 0xc9, 0x8f, 0x36, 0xa3, 0x49, 0xc8, 0x5e, 0xc0,
  2089. 0xfc, 0xf4, 0x9c, 0x96, 0xb0, 0xc8, 0x52, 0x1c, 0xd9, 0xd5, 0x71, 0xc0, 0xfc, 0x5e, 0x7a, 0x58,
  2090. 0xd7, 0x24, 0xc6, 0x7b, 0xa2, 0x6f, 0x39, 0x82, 0x25, 0x4d, 0x2f, 0xa3, 0x7e, 0x1d, 0x46, 0xe0,
  2091. 0x39, 0x10, 0x83, 0x59, 0xbe, 0x9c, 0xfb, 0x8d, 0x57, 0xe9, 0x4e, 0x61, 0x4c, 0xfe, 0xc1, 0xd9,
  2092. 0x9b, 0x71, 0x64, 0xff, 0x9b, 0xc4, 0x1d, 0x72, 0xb2, 0x26, 0x05, 0x0f, 0x99, 0x38, 0x0a, 0x27,
  2093. 0x34, 0x97, 0xd6, 0xbe, 0xaa, 0xa4, 0x0c, 0x3d, 0x6d, 0x4b, 0xef, 0xc1, 0x8b, 0x64, 0x11, 0xb5,
  2094. 0xb3, 0xd3, 0xce, 0x36, 0x09, 0x33, 0x22, 0x7a, 0x12, 0x24, 0x88, 0x67, 0x8b, 0xa6, 0xde, 0xb1,
  2095. 0x68, 0x2b, 0x44, 0xe9, 0xf0, 0x01, 0x2e, 0x4e, 0x4a, 0x09, 0xa0, 0x3a, 0x7c, 0x70, 0x2d, 0x7b,
  2096. 0xda, 0xbd, 0xd9, 0x9b, 0x5e, 0xa6, 0xe5, 0x7b, 0x2e, 0xd3, 0xbf, 0x7c, 0xe5, 0xc1, 0xba, 0xed,
  2097. 0xf4, 0x0f, 0x6e, 0xec, 0x10, 0xae, 0x9b, 0xec, 0x1f, 0x64, 0xd1, 0xc8, 0x05, 0x37, 0xae, 0x9d,
  2098. 0xea, 0x6f, 0xaf, 0x9d, 0xe9, 0xed, 0x30, 0xff, 0xeb, 0xdb, 0xe1, 0x46, 0xde, 0x16, 0x1e, 0x96,
  2099. 0xb7, 0xda, 0x16, 0xd1, 0x21, 0x36, 0x5b, 0x63, 0x16, 0x04, 0x70, 0xfc, 0xbb, 0x32, 0x74, 0x86,
  2100. 0x69, 0x76, 0xf0, 0xf8, 0x43, 0x00, 0x68, 0x82, 0xc3, 0x78, 0x3f, 0xf2, 0xd1, 0xf5, 0x5f, 0xe6,
  2101. 0x09, 0x1f, 0x51, 0xc0, 0x5a, 0xd6, 0xd9, 0xa5, 0x35, 0x77, 0x7e, 0x69, 0xcd, 0x9d, 0x5d, 0x59,
  2102. 0x85, 0xf3, 0x2b, 0xab, 0x70, 0x71, 0x65, 0x15, 0xbe, 0x7c, 0xb7, 0xe6, 0x3e, 0xa9, 0x43, 0x7e,
  2103. 0xc8, 0xfa, 0x1a, 0xfe, 0x96, 0x5f, 0xfc, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xed, 0x06, 0xbd, 0x89,
  2104. 0xe6, 0x07, 0x00, 0x00,
  2105. }