api.pb.go 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/identify-game/api/grpc/v1/api.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. import io "io"
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  22. // DelCacheReq request param for rpc DelCache
  23. type DelCacheReq struct {
  24. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  25. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  26. XXX_unrecognized []byte `json:"-"`
  27. XXX_sizecache int32 `json:"-"`
  28. }
  29. func (m *DelCacheReq) Reset() { *m = DelCacheReq{} }
  30. func (m *DelCacheReq) String() string { return proto.CompactTextString(m) }
  31. func (*DelCacheReq) ProtoMessage() {}
  32. func (*DelCacheReq) Descriptor() ([]byte, []int) {
  33. return fileDescriptor_api_19c55b63049ee51c, []int{0}
  34. }
  35. func (m *DelCacheReq) XXX_Unmarshal(b []byte) error {
  36. return m.Unmarshal(b)
  37. }
  38. func (m *DelCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  39. if deterministic {
  40. return xxx_messageInfo_DelCacheReq.Marshal(b, m, deterministic)
  41. } else {
  42. b = b[:cap(b)]
  43. n, err := m.MarshalTo(b)
  44. if err != nil {
  45. return nil, err
  46. }
  47. return b[:n], nil
  48. }
  49. }
  50. func (dst *DelCacheReq) XXX_Merge(src proto.Message) {
  51. xxx_messageInfo_DelCacheReq.Merge(dst, src)
  52. }
  53. func (m *DelCacheReq) XXX_Size() int {
  54. return m.Size()
  55. }
  56. func (m *DelCacheReq) XXX_DiscardUnknown() {
  57. xxx_messageInfo_DelCacheReq.DiscardUnknown(m)
  58. }
  59. var xxx_messageInfo_DelCacheReq proto.InternalMessageInfo
  60. func (m *DelCacheReq) GetToken() string {
  61. if m != nil {
  62. return m.Token
  63. }
  64. return ""
  65. }
  66. // DelCacheReply del cache reply
  67. type DelCacheReply struct {
  68. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  69. XXX_unrecognized []byte `json:"-"`
  70. XXX_sizecache int32 `json:"-"`
  71. }
  72. func (m *DelCacheReply) Reset() { *m = DelCacheReply{} }
  73. func (m *DelCacheReply) String() string { return proto.CompactTextString(m) }
  74. func (*DelCacheReply) ProtoMessage() {}
  75. func (*DelCacheReply) Descriptor() ([]byte, []int) {
  76. return fileDescriptor_api_19c55b63049ee51c, []int{1}
  77. }
  78. func (m *DelCacheReply) XXX_Unmarshal(b []byte) error {
  79. return m.Unmarshal(b)
  80. }
  81. func (m *DelCacheReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  82. if deterministic {
  83. return xxx_messageInfo_DelCacheReply.Marshal(b, m, deterministic)
  84. } else {
  85. b = b[:cap(b)]
  86. n, err := m.MarshalTo(b)
  87. if err != nil {
  88. return nil, err
  89. }
  90. return b[:n], nil
  91. }
  92. }
  93. func (dst *DelCacheReply) XXX_Merge(src proto.Message) {
  94. xxx_messageInfo_DelCacheReply.Merge(dst, src)
  95. }
  96. func (m *DelCacheReply) XXX_Size() int {
  97. return m.Size()
  98. }
  99. func (m *DelCacheReply) XXX_DiscardUnknown() {
  100. xxx_messageInfo_DelCacheReply.DiscardUnknown(m)
  101. }
  102. var xxx_messageInfo_DelCacheReply proto.InternalMessageInfo
  103. type CreateCookieReq struct {
  104. Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"token" form:"access_key" validate:"required"`
  105. From string `protobuf:"bytes,2,opt,name=From,proto3" json:"from" form:"from"`
  106. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  107. XXX_unrecognized []byte `json:"-"`
  108. XXX_sizecache int32 `json:"-"`
  109. }
  110. func (m *CreateCookieReq) Reset() { *m = CreateCookieReq{} }
  111. func (m *CreateCookieReq) String() string { return proto.CompactTextString(m) }
  112. func (*CreateCookieReq) ProtoMessage() {}
  113. func (*CreateCookieReq) Descriptor() ([]byte, []int) {
  114. return fileDescriptor_api_19c55b63049ee51c, []int{2}
  115. }
  116. func (m *CreateCookieReq) XXX_Unmarshal(b []byte) error {
  117. return m.Unmarshal(b)
  118. }
  119. func (m *CreateCookieReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  120. if deterministic {
  121. return xxx_messageInfo_CreateCookieReq.Marshal(b, m, deterministic)
  122. } else {
  123. b = b[:cap(b)]
  124. n, err := m.MarshalTo(b)
  125. if err != nil {
  126. return nil, err
  127. }
  128. return b[:n], nil
  129. }
  130. }
  131. func (dst *CreateCookieReq) XXX_Merge(src proto.Message) {
  132. xxx_messageInfo_CreateCookieReq.Merge(dst, src)
  133. }
  134. func (m *CreateCookieReq) XXX_Size() int {
  135. return m.Size()
  136. }
  137. func (m *CreateCookieReq) XXX_DiscardUnknown() {
  138. xxx_messageInfo_CreateCookieReq.DiscardUnknown(m)
  139. }
  140. var xxx_messageInfo_CreateCookieReq proto.InternalMessageInfo
  141. func (m *CreateCookieReq) GetToken() string {
  142. if m != nil {
  143. return m.Token
  144. }
  145. return ""
  146. }
  147. func (m *CreateCookieReq) GetFrom() string {
  148. if m != nil {
  149. return m.From
  150. }
  151. return ""
  152. }
  153. type CreateCookieReply struct {
  154. BiliCookies *CookieInfo `protobuf:"bytes,1,opt,name=BiliCookies" json:"cookie_info"`
  155. SSO []string `protobuf:"bytes,2,rep,name=SSO" json:"sso"`
  156. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  157. XXX_unrecognized []byte `json:"-"`
  158. XXX_sizecache int32 `json:"-"`
  159. }
  160. func (m *CreateCookieReply) Reset() { *m = CreateCookieReply{} }
  161. func (m *CreateCookieReply) String() string { return proto.CompactTextString(m) }
  162. func (*CreateCookieReply) ProtoMessage() {}
  163. func (*CreateCookieReply) Descriptor() ([]byte, []int) {
  164. return fileDescriptor_api_19c55b63049ee51c, []int{3}
  165. }
  166. func (m *CreateCookieReply) XXX_Unmarshal(b []byte) error {
  167. return m.Unmarshal(b)
  168. }
  169. func (m *CreateCookieReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  170. if deterministic {
  171. return xxx_messageInfo_CreateCookieReply.Marshal(b, m, deterministic)
  172. } else {
  173. b = b[:cap(b)]
  174. n, err := m.MarshalTo(b)
  175. if err != nil {
  176. return nil, err
  177. }
  178. return b[:n], nil
  179. }
  180. }
  181. func (dst *CreateCookieReply) XXX_Merge(src proto.Message) {
  182. xxx_messageInfo_CreateCookieReply.Merge(dst, src)
  183. }
  184. func (m *CreateCookieReply) XXX_Size() int {
  185. return m.Size()
  186. }
  187. func (m *CreateCookieReply) XXX_DiscardUnknown() {
  188. xxx_messageInfo_CreateCookieReply.DiscardUnknown(m)
  189. }
  190. var xxx_messageInfo_CreateCookieReply proto.InternalMessageInfo
  191. func (m *CreateCookieReply) GetBiliCookies() *CookieInfo {
  192. if m != nil {
  193. return m.BiliCookies
  194. }
  195. return nil
  196. }
  197. func (m *CreateCookieReply) GetSSO() []string {
  198. if m != nil {
  199. return m.SSO
  200. }
  201. return nil
  202. }
  203. type CookieInfo struct {
  204. Cookies []*Cookie `protobuf:"bytes,1,rep,name=Cookies" json:"cookies"`
  205. Domains []string `protobuf:"bytes,2,rep,name=Domains" json:"domains"`
  206. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  207. XXX_unrecognized []byte `json:"-"`
  208. XXX_sizecache int32 `json:"-"`
  209. }
  210. func (m *CookieInfo) Reset() { *m = CookieInfo{} }
  211. func (m *CookieInfo) String() string { return proto.CompactTextString(m) }
  212. func (*CookieInfo) ProtoMessage() {}
  213. func (*CookieInfo) Descriptor() ([]byte, []int) {
  214. return fileDescriptor_api_19c55b63049ee51c, []int{4}
  215. }
  216. func (m *CookieInfo) XXX_Unmarshal(b []byte) error {
  217. return m.Unmarshal(b)
  218. }
  219. func (m *CookieInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  220. if deterministic {
  221. return xxx_messageInfo_CookieInfo.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 *CookieInfo) XXX_Merge(src proto.Message) {
  232. xxx_messageInfo_CookieInfo.Merge(dst, src)
  233. }
  234. func (m *CookieInfo) XXX_Size() int {
  235. return m.Size()
  236. }
  237. func (m *CookieInfo) XXX_DiscardUnknown() {
  238. xxx_messageInfo_CookieInfo.DiscardUnknown(m)
  239. }
  240. var xxx_messageInfo_CookieInfo proto.InternalMessageInfo
  241. func (m *CookieInfo) GetCookies() []*Cookie {
  242. if m != nil {
  243. return m.Cookies
  244. }
  245. return nil
  246. }
  247. func (m *CookieInfo) GetDomains() []string {
  248. if m != nil {
  249. return m.Domains
  250. }
  251. return nil
  252. }
  253. type Cookie struct {
  254. Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"name"`
  255. Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"value"`
  256. HttpOnly int64 `protobuf:"varint,3,opt,name=HttpOnly,proto3" json:"http_only"`
  257. Expires int64 `protobuf:"varint,4,opt,name=Expires,proto3" json:"expires"`
  258. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  259. XXX_unrecognized []byte `json:"-"`
  260. XXX_sizecache int32 `json:"-"`
  261. }
  262. func (m *Cookie) Reset() { *m = Cookie{} }
  263. func (m *Cookie) String() string { return proto.CompactTextString(m) }
  264. func (*Cookie) ProtoMessage() {}
  265. func (*Cookie) Descriptor() ([]byte, []int) {
  266. return fileDescriptor_api_19c55b63049ee51c, []int{5}
  267. }
  268. func (m *Cookie) XXX_Unmarshal(b []byte) error {
  269. return m.Unmarshal(b)
  270. }
  271. func (m *Cookie) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  272. if deterministic {
  273. return xxx_messageInfo_Cookie.Marshal(b, m, deterministic)
  274. } else {
  275. b = b[:cap(b)]
  276. n, err := m.MarshalTo(b)
  277. if err != nil {
  278. return nil, err
  279. }
  280. return b[:n], nil
  281. }
  282. }
  283. func (dst *Cookie) XXX_Merge(src proto.Message) {
  284. xxx_messageInfo_Cookie.Merge(dst, src)
  285. }
  286. func (m *Cookie) XXX_Size() int {
  287. return m.Size()
  288. }
  289. func (m *Cookie) XXX_DiscardUnknown() {
  290. xxx_messageInfo_Cookie.DiscardUnknown(m)
  291. }
  292. var xxx_messageInfo_Cookie proto.InternalMessageInfo
  293. func (m *Cookie) GetName() string {
  294. if m != nil {
  295. return m.Name
  296. }
  297. return ""
  298. }
  299. func (m *Cookie) GetValue() string {
  300. if m != nil {
  301. return m.Value
  302. }
  303. return ""
  304. }
  305. func (m *Cookie) GetHttpOnly() int64 {
  306. if m != nil {
  307. return m.HttpOnly
  308. }
  309. return 0
  310. }
  311. func (m *Cookie) GetExpires() int64 {
  312. if m != nil {
  313. return m.Expires
  314. }
  315. return 0
  316. }
  317. func init() {
  318. proto.RegisterType((*DelCacheReq)(nil), "main.service.identify.game.v1.DelCacheReq")
  319. proto.RegisterType((*DelCacheReply)(nil), "main.service.identify.game.v1.DelCacheReply")
  320. proto.RegisterType((*CreateCookieReq)(nil), "main.service.identify.game.v1.CreateCookieReq")
  321. proto.RegisterType((*CreateCookieReply)(nil), "main.service.identify.game.v1.CreateCookieReply")
  322. proto.RegisterType((*CookieInfo)(nil), "main.service.identify.game.v1.CookieInfo")
  323. proto.RegisterType((*Cookie)(nil), "main.service.identify.game.v1.Cookie")
  324. }
  325. // Reference imports to suppress errors if they are not otherwise used.
  326. var _ context.Context
  327. var _ grpc.ClientConn
  328. // This is a compile-time assertion to ensure that this generated file
  329. // is compatible with the grpc package it is being compiled against.
  330. const _ = grpc.SupportPackageIsVersion4
  331. // IdentifyGameClient is the client API for IdentifyGame service.
  332. //
  333. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  334. type IdentifyGameClient interface {
  335. // CookieInfo identify info by cookie.
  336. DelCache(ctx context.Context, in *DelCacheReq, opts ...grpc.CallOption) (*DelCacheReply, error)
  337. GetCookieByToken(ctx context.Context, in *CreateCookieReq, opts ...grpc.CallOption) (*CreateCookieReply, error)
  338. }
  339. type identifyGameClient struct {
  340. cc *grpc.ClientConn
  341. }
  342. func NewIdentifyGameClient(cc *grpc.ClientConn) IdentifyGameClient {
  343. return &identifyGameClient{cc}
  344. }
  345. func (c *identifyGameClient) DelCache(ctx context.Context, in *DelCacheReq, opts ...grpc.CallOption) (*DelCacheReply, error) {
  346. out := new(DelCacheReply)
  347. err := c.cc.Invoke(ctx, "/main.service.identify.game.v1.IdentifyGame/DelCache", in, out, opts...)
  348. if err != nil {
  349. return nil, err
  350. }
  351. return out, nil
  352. }
  353. func (c *identifyGameClient) GetCookieByToken(ctx context.Context, in *CreateCookieReq, opts ...grpc.CallOption) (*CreateCookieReply, error) {
  354. out := new(CreateCookieReply)
  355. err := c.cc.Invoke(ctx, "/main.service.identify.game.v1.IdentifyGame/GetCookieByToken", in, out, opts...)
  356. if err != nil {
  357. return nil, err
  358. }
  359. return out, nil
  360. }
  361. // IdentifyGameServer is the server API for IdentifyGame service.
  362. type IdentifyGameServer interface {
  363. // CookieInfo identify info by cookie.
  364. DelCache(context.Context, *DelCacheReq) (*DelCacheReply, error)
  365. GetCookieByToken(context.Context, *CreateCookieReq) (*CreateCookieReply, error)
  366. }
  367. func RegisterIdentifyGameServer(s *grpc.Server, srv IdentifyGameServer) {
  368. s.RegisterService(&_IdentifyGame_serviceDesc, srv)
  369. }
  370. func _IdentifyGame_DelCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  371. in := new(DelCacheReq)
  372. if err := dec(in); err != nil {
  373. return nil, err
  374. }
  375. if interceptor == nil {
  376. return srv.(IdentifyGameServer).DelCache(ctx, in)
  377. }
  378. info := &grpc.UnaryServerInfo{
  379. Server: srv,
  380. FullMethod: "/main.service.identify.game.v1.IdentifyGame/DelCache",
  381. }
  382. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  383. return srv.(IdentifyGameServer).DelCache(ctx, req.(*DelCacheReq))
  384. }
  385. return interceptor(ctx, in, info, handler)
  386. }
  387. func _IdentifyGame_GetCookieByToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  388. in := new(CreateCookieReq)
  389. if err := dec(in); err != nil {
  390. return nil, err
  391. }
  392. if interceptor == nil {
  393. return srv.(IdentifyGameServer).GetCookieByToken(ctx, in)
  394. }
  395. info := &grpc.UnaryServerInfo{
  396. Server: srv,
  397. FullMethod: "/main.service.identify.game.v1.IdentifyGame/GetCookieByToken",
  398. }
  399. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  400. return srv.(IdentifyGameServer).GetCookieByToken(ctx, req.(*CreateCookieReq))
  401. }
  402. return interceptor(ctx, in, info, handler)
  403. }
  404. var _IdentifyGame_serviceDesc = grpc.ServiceDesc{
  405. ServiceName: "main.service.identify.game.v1.IdentifyGame",
  406. HandlerType: (*IdentifyGameServer)(nil),
  407. Methods: []grpc.MethodDesc{
  408. {
  409. MethodName: "DelCache",
  410. Handler: _IdentifyGame_DelCache_Handler,
  411. },
  412. {
  413. MethodName: "GetCookieByToken",
  414. Handler: _IdentifyGame_GetCookieByToken_Handler,
  415. },
  416. },
  417. Streams: []grpc.StreamDesc{},
  418. Metadata: "app/service/main/identify-game/api/grpc/v1/api.proto",
  419. }
  420. func (m *DelCacheReq) Marshal() (dAtA []byte, err error) {
  421. size := m.Size()
  422. dAtA = make([]byte, size)
  423. n, err := m.MarshalTo(dAtA)
  424. if err != nil {
  425. return nil, err
  426. }
  427. return dAtA[:n], nil
  428. }
  429. func (m *DelCacheReq) MarshalTo(dAtA []byte) (int, error) {
  430. var i int
  431. _ = i
  432. var l int
  433. _ = l
  434. if len(m.Token) > 0 {
  435. dAtA[i] = 0xa
  436. i++
  437. i = encodeVarintApi(dAtA, i, uint64(len(m.Token)))
  438. i += copy(dAtA[i:], m.Token)
  439. }
  440. if m.XXX_unrecognized != nil {
  441. i += copy(dAtA[i:], m.XXX_unrecognized)
  442. }
  443. return i, nil
  444. }
  445. func (m *DelCacheReply) Marshal() (dAtA []byte, err error) {
  446. size := m.Size()
  447. dAtA = make([]byte, size)
  448. n, err := m.MarshalTo(dAtA)
  449. if err != nil {
  450. return nil, err
  451. }
  452. return dAtA[:n], nil
  453. }
  454. func (m *DelCacheReply) MarshalTo(dAtA []byte) (int, error) {
  455. var i int
  456. _ = i
  457. var l int
  458. _ = l
  459. if m.XXX_unrecognized != nil {
  460. i += copy(dAtA[i:], m.XXX_unrecognized)
  461. }
  462. return i, nil
  463. }
  464. func (m *CreateCookieReq) Marshal() (dAtA []byte, err error) {
  465. size := m.Size()
  466. dAtA = make([]byte, size)
  467. n, err := m.MarshalTo(dAtA)
  468. if err != nil {
  469. return nil, err
  470. }
  471. return dAtA[:n], nil
  472. }
  473. func (m *CreateCookieReq) MarshalTo(dAtA []byte) (int, error) {
  474. var i int
  475. _ = i
  476. var l int
  477. _ = l
  478. if len(m.Token) > 0 {
  479. dAtA[i] = 0xa
  480. i++
  481. i = encodeVarintApi(dAtA, i, uint64(len(m.Token)))
  482. i += copy(dAtA[i:], m.Token)
  483. }
  484. if len(m.From) > 0 {
  485. dAtA[i] = 0x12
  486. i++
  487. i = encodeVarintApi(dAtA, i, uint64(len(m.From)))
  488. i += copy(dAtA[i:], m.From)
  489. }
  490. if m.XXX_unrecognized != nil {
  491. i += copy(dAtA[i:], m.XXX_unrecognized)
  492. }
  493. return i, nil
  494. }
  495. func (m *CreateCookieReply) Marshal() (dAtA []byte, err error) {
  496. size := m.Size()
  497. dAtA = make([]byte, size)
  498. n, err := m.MarshalTo(dAtA)
  499. if err != nil {
  500. return nil, err
  501. }
  502. return dAtA[:n], nil
  503. }
  504. func (m *CreateCookieReply) MarshalTo(dAtA []byte) (int, error) {
  505. var i int
  506. _ = i
  507. var l int
  508. _ = l
  509. if m.BiliCookies != nil {
  510. dAtA[i] = 0xa
  511. i++
  512. i = encodeVarintApi(dAtA, i, uint64(m.BiliCookies.Size()))
  513. n1, err := m.BiliCookies.MarshalTo(dAtA[i:])
  514. if err != nil {
  515. return 0, err
  516. }
  517. i += n1
  518. }
  519. if len(m.SSO) > 0 {
  520. for _, s := range m.SSO {
  521. dAtA[i] = 0x12
  522. i++
  523. l = len(s)
  524. for l >= 1<<7 {
  525. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  526. l >>= 7
  527. i++
  528. }
  529. dAtA[i] = uint8(l)
  530. i++
  531. i += copy(dAtA[i:], s)
  532. }
  533. }
  534. if m.XXX_unrecognized != nil {
  535. i += copy(dAtA[i:], m.XXX_unrecognized)
  536. }
  537. return i, nil
  538. }
  539. func (m *CookieInfo) Marshal() (dAtA []byte, err error) {
  540. size := m.Size()
  541. dAtA = make([]byte, size)
  542. n, err := m.MarshalTo(dAtA)
  543. if err != nil {
  544. return nil, err
  545. }
  546. return dAtA[:n], nil
  547. }
  548. func (m *CookieInfo) MarshalTo(dAtA []byte) (int, error) {
  549. var i int
  550. _ = i
  551. var l int
  552. _ = l
  553. if len(m.Cookies) > 0 {
  554. for _, msg := range m.Cookies {
  555. dAtA[i] = 0xa
  556. i++
  557. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  558. n, err := msg.MarshalTo(dAtA[i:])
  559. if err != nil {
  560. return 0, err
  561. }
  562. i += n
  563. }
  564. }
  565. if len(m.Domains) > 0 {
  566. for _, s := range m.Domains {
  567. dAtA[i] = 0x12
  568. i++
  569. l = len(s)
  570. for l >= 1<<7 {
  571. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  572. l >>= 7
  573. i++
  574. }
  575. dAtA[i] = uint8(l)
  576. i++
  577. i += copy(dAtA[i:], s)
  578. }
  579. }
  580. if m.XXX_unrecognized != nil {
  581. i += copy(dAtA[i:], m.XXX_unrecognized)
  582. }
  583. return i, nil
  584. }
  585. func (m *Cookie) Marshal() (dAtA []byte, err error) {
  586. size := m.Size()
  587. dAtA = make([]byte, size)
  588. n, err := m.MarshalTo(dAtA)
  589. if err != nil {
  590. return nil, err
  591. }
  592. return dAtA[:n], nil
  593. }
  594. func (m *Cookie) MarshalTo(dAtA []byte) (int, error) {
  595. var i int
  596. _ = i
  597. var l int
  598. _ = l
  599. if len(m.Name) > 0 {
  600. dAtA[i] = 0xa
  601. i++
  602. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  603. i += copy(dAtA[i:], m.Name)
  604. }
  605. if len(m.Value) > 0 {
  606. dAtA[i] = 0x12
  607. i++
  608. i = encodeVarintApi(dAtA, i, uint64(len(m.Value)))
  609. i += copy(dAtA[i:], m.Value)
  610. }
  611. if m.HttpOnly != 0 {
  612. dAtA[i] = 0x18
  613. i++
  614. i = encodeVarintApi(dAtA, i, uint64(m.HttpOnly))
  615. }
  616. if m.Expires != 0 {
  617. dAtA[i] = 0x20
  618. i++
  619. i = encodeVarintApi(dAtA, i, uint64(m.Expires))
  620. }
  621. if m.XXX_unrecognized != nil {
  622. i += copy(dAtA[i:], m.XXX_unrecognized)
  623. }
  624. return i, nil
  625. }
  626. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  627. for v >= 1<<7 {
  628. dAtA[offset] = uint8(v&0x7f | 0x80)
  629. v >>= 7
  630. offset++
  631. }
  632. dAtA[offset] = uint8(v)
  633. return offset + 1
  634. }
  635. func (m *DelCacheReq) Size() (n int) {
  636. if m == nil {
  637. return 0
  638. }
  639. var l int
  640. _ = l
  641. l = len(m.Token)
  642. if l > 0 {
  643. n += 1 + l + sovApi(uint64(l))
  644. }
  645. if m.XXX_unrecognized != nil {
  646. n += len(m.XXX_unrecognized)
  647. }
  648. return n
  649. }
  650. func (m *DelCacheReply) Size() (n int) {
  651. if m == nil {
  652. return 0
  653. }
  654. var l int
  655. _ = l
  656. if m.XXX_unrecognized != nil {
  657. n += len(m.XXX_unrecognized)
  658. }
  659. return n
  660. }
  661. func (m *CreateCookieReq) Size() (n int) {
  662. if m == nil {
  663. return 0
  664. }
  665. var l int
  666. _ = l
  667. l = len(m.Token)
  668. if l > 0 {
  669. n += 1 + l + sovApi(uint64(l))
  670. }
  671. l = len(m.From)
  672. if l > 0 {
  673. n += 1 + l + sovApi(uint64(l))
  674. }
  675. if m.XXX_unrecognized != nil {
  676. n += len(m.XXX_unrecognized)
  677. }
  678. return n
  679. }
  680. func (m *CreateCookieReply) Size() (n int) {
  681. if m == nil {
  682. return 0
  683. }
  684. var l int
  685. _ = l
  686. if m.BiliCookies != nil {
  687. l = m.BiliCookies.Size()
  688. n += 1 + l + sovApi(uint64(l))
  689. }
  690. if len(m.SSO) > 0 {
  691. for _, s := range m.SSO {
  692. l = len(s)
  693. n += 1 + l + sovApi(uint64(l))
  694. }
  695. }
  696. if m.XXX_unrecognized != nil {
  697. n += len(m.XXX_unrecognized)
  698. }
  699. return n
  700. }
  701. func (m *CookieInfo) Size() (n int) {
  702. if m == nil {
  703. return 0
  704. }
  705. var l int
  706. _ = l
  707. if len(m.Cookies) > 0 {
  708. for _, e := range m.Cookies {
  709. l = e.Size()
  710. n += 1 + l + sovApi(uint64(l))
  711. }
  712. }
  713. if len(m.Domains) > 0 {
  714. for _, s := range m.Domains {
  715. l = len(s)
  716. n += 1 + l + sovApi(uint64(l))
  717. }
  718. }
  719. if m.XXX_unrecognized != nil {
  720. n += len(m.XXX_unrecognized)
  721. }
  722. return n
  723. }
  724. func (m *Cookie) Size() (n int) {
  725. if m == nil {
  726. return 0
  727. }
  728. var l int
  729. _ = l
  730. l = len(m.Name)
  731. if l > 0 {
  732. n += 1 + l + sovApi(uint64(l))
  733. }
  734. l = len(m.Value)
  735. if l > 0 {
  736. n += 1 + l + sovApi(uint64(l))
  737. }
  738. if m.HttpOnly != 0 {
  739. n += 1 + sovApi(uint64(m.HttpOnly))
  740. }
  741. if m.Expires != 0 {
  742. n += 1 + sovApi(uint64(m.Expires))
  743. }
  744. if m.XXX_unrecognized != nil {
  745. n += len(m.XXX_unrecognized)
  746. }
  747. return n
  748. }
  749. func sovApi(x uint64) (n int) {
  750. for {
  751. n++
  752. x >>= 7
  753. if x == 0 {
  754. break
  755. }
  756. }
  757. return n
  758. }
  759. func sozApi(x uint64) (n int) {
  760. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  761. }
  762. func (m *DelCacheReq) Unmarshal(dAtA []byte) error {
  763. l := len(dAtA)
  764. iNdEx := 0
  765. for iNdEx < l {
  766. preIndex := iNdEx
  767. var wire uint64
  768. for shift := uint(0); ; shift += 7 {
  769. if shift >= 64 {
  770. return ErrIntOverflowApi
  771. }
  772. if iNdEx >= l {
  773. return io.ErrUnexpectedEOF
  774. }
  775. b := dAtA[iNdEx]
  776. iNdEx++
  777. wire |= (uint64(b) & 0x7F) << shift
  778. if b < 0x80 {
  779. break
  780. }
  781. }
  782. fieldNum := int32(wire >> 3)
  783. wireType := int(wire & 0x7)
  784. if wireType == 4 {
  785. return fmt.Errorf("proto: DelCacheReq: wiretype end group for non-group")
  786. }
  787. if fieldNum <= 0 {
  788. return fmt.Errorf("proto: DelCacheReq: illegal tag %d (wire type %d)", fieldNum, wire)
  789. }
  790. switch fieldNum {
  791. case 1:
  792. if wireType != 2 {
  793. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  794. }
  795. var stringLen uint64
  796. for shift := uint(0); ; shift += 7 {
  797. if shift >= 64 {
  798. return ErrIntOverflowApi
  799. }
  800. if iNdEx >= l {
  801. return io.ErrUnexpectedEOF
  802. }
  803. b := dAtA[iNdEx]
  804. iNdEx++
  805. stringLen |= (uint64(b) & 0x7F) << shift
  806. if b < 0x80 {
  807. break
  808. }
  809. }
  810. intStringLen := int(stringLen)
  811. if intStringLen < 0 {
  812. return ErrInvalidLengthApi
  813. }
  814. postIndex := iNdEx + intStringLen
  815. if postIndex > l {
  816. return io.ErrUnexpectedEOF
  817. }
  818. m.Token = string(dAtA[iNdEx:postIndex])
  819. iNdEx = postIndex
  820. default:
  821. iNdEx = preIndex
  822. skippy, err := skipApi(dAtA[iNdEx:])
  823. if err != nil {
  824. return err
  825. }
  826. if skippy < 0 {
  827. return ErrInvalidLengthApi
  828. }
  829. if (iNdEx + skippy) > l {
  830. return io.ErrUnexpectedEOF
  831. }
  832. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  833. iNdEx += skippy
  834. }
  835. }
  836. if iNdEx > l {
  837. return io.ErrUnexpectedEOF
  838. }
  839. return nil
  840. }
  841. func (m *DelCacheReply) Unmarshal(dAtA []byte) error {
  842. l := len(dAtA)
  843. iNdEx := 0
  844. for iNdEx < l {
  845. preIndex := iNdEx
  846. var wire uint64
  847. for shift := uint(0); ; shift += 7 {
  848. if shift >= 64 {
  849. return ErrIntOverflowApi
  850. }
  851. if iNdEx >= l {
  852. return io.ErrUnexpectedEOF
  853. }
  854. b := dAtA[iNdEx]
  855. iNdEx++
  856. wire |= (uint64(b) & 0x7F) << shift
  857. if b < 0x80 {
  858. break
  859. }
  860. }
  861. fieldNum := int32(wire >> 3)
  862. wireType := int(wire & 0x7)
  863. if wireType == 4 {
  864. return fmt.Errorf("proto: DelCacheReply: wiretype end group for non-group")
  865. }
  866. if fieldNum <= 0 {
  867. return fmt.Errorf("proto: DelCacheReply: illegal tag %d (wire type %d)", fieldNum, wire)
  868. }
  869. switch fieldNum {
  870. default:
  871. iNdEx = preIndex
  872. skippy, err := skipApi(dAtA[iNdEx:])
  873. if err != nil {
  874. return err
  875. }
  876. if skippy < 0 {
  877. return ErrInvalidLengthApi
  878. }
  879. if (iNdEx + skippy) > l {
  880. return io.ErrUnexpectedEOF
  881. }
  882. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  883. iNdEx += skippy
  884. }
  885. }
  886. if iNdEx > l {
  887. return io.ErrUnexpectedEOF
  888. }
  889. return nil
  890. }
  891. func (m *CreateCookieReq) Unmarshal(dAtA []byte) error {
  892. l := len(dAtA)
  893. iNdEx := 0
  894. for iNdEx < l {
  895. preIndex := iNdEx
  896. var wire uint64
  897. for shift := uint(0); ; shift += 7 {
  898. if shift >= 64 {
  899. return ErrIntOverflowApi
  900. }
  901. if iNdEx >= l {
  902. return io.ErrUnexpectedEOF
  903. }
  904. b := dAtA[iNdEx]
  905. iNdEx++
  906. wire |= (uint64(b) & 0x7F) << shift
  907. if b < 0x80 {
  908. break
  909. }
  910. }
  911. fieldNum := int32(wire >> 3)
  912. wireType := int(wire & 0x7)
  913. if wireType == 4 {
  914. return fmt.Errorf("proto: CreateCookieReq: wiretype end group for non-group")
  915. }
  916. if fieldNum <= 0 {
  917. return fmt.Errorf("proto: CreateCookieReq: illegal tag %d (wire type %d)", fieldNum, wire)
  918. }
  919. switch fieldNum {
  920. case 1:
  921. if wireType != 2 {
  922. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  923. }
  924. var stringLen uint64
  925. for shift := uint(0); ; shift += 7 {
  926. if shift >= 64 {
  927. return ErrIntOverflowApi
  928. }
  929. if iNdEx >= l {
  930. return io.ErrUnexpectedEOF
  931. }
  932. b := dAtA[iNdEx]
  933. iNdEx++
  934. stringLen |= (uint64(b) & 0x7F) << shift
  935. if b < 0x80 {
  936. break
  937. }
  938. }
  939. intStringLen := int(stringLen)
  940. if intStringLen < 0 {
  941. return ErrInvalidLengthApi
  942. }
  943. postIndex := iNdEx + intStringLen
  944. if postIndex > l {
  945. return io.ErrUnexpectedEOF
  946. }
  947. m.Token = string(dAtA[iNdEx:postIndex])
  948. iNdEx = postIndex
  949. case 2:
  950. if wireType != 2 {
  951. return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  952. }
  953. var stringLen uint64
  954. for shift := uint(0); ; shift += 7 {
  955. if shift >= 64 {
  956. return ErrIntOverflowApi
  957. }
  958. if iNdEx >= l {
  959. return io.ErrUnexpectedEOF
  960. }
  961. b := dAtA[iNdEx]
  962. iNdEx++
  963. stringLen |= (uint64(b) & 0x7F) << shift
  964. if b < 0x80 {
  965. break
  966. }
  967. }
  968. intStringLen := int(stringLen)
  969. if intStringLen < 0 {
  970. return ErrInvalidLengthApi
  971. }
  972. postIndex := iNdEx + intStringLen
  973. if postIndex > l {
  974. return io.ErrUnexpectedEOF
  975. }
  976. m.From = string(dAtA[iNdEx:postIndex])
  977. iNdEx = postIndex
  978. default:
  979. iNdEx = preIndex
  980. skippy, err := skipApi(dAtA[iNdEx:])
  981. if err != nil {
  982. return err
  983. }
  984. if skippy < 0 {
  985. return ErrInvalidLengthApi
  986. }
  987. if (iNdEx + skippy) > l {
  988. return io.ErrUnexpectedEOF
  989. }
  990. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  991. iNdEx += skippy
  992. }
  993. }
  994. if iNdEx > l {
  995. return io.ErrUnexpectedEOF
  996. }
  997. return nil
  998. }
  999. func (m *CreateCookieReply) Unmarshal(dAtA []byte) error {
  1000. l := len(dAtA)
  1001. iNdEx := 0
  1002. for iNdEx < l {
  1003. preIndex := iNdEx
  1004. var wire uint64
  1005. for shift := uint(0); ; shift += 7 {
  1006. if shift >= 64 {
  1007. return ErrIntOverflowApi
  1008. }
  1009. if iNdEx >= l {
  1010. return io.ErrUnexpectedEOF
  1011. }
  1012. b := dAtA[iNdEx]
  1013. iNdEx++
  1014. wire |= (uint64(b) & 0x7F) << shift
  1015. if b < 0x80 {
  1016. break
  1017. }
  1018. }
  1019. fieldNum := int32(wire >> 3)
  1020. wireType := int(wire & 0x7)
  1021. if wireType == 4 {
  1022. return fmt.Errorf("proto: CreateCookieReply: wiretype end group for non-group")
  1023. }
  1024. if fieldNum <= 0 {
  1025. return fmt.Errorf("proto: CreateCookieReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1026. }
  1027. switch fieldNum {
  1028. case 1:
  1029. if wireType != 2 {
  1030. return fmt.Errorf("proto: wrong wireType = %d for field BiliCookies", wireType)
  1031. }
  1032. var msglen int
  1033. for shift := uint(0); ; shift += 7 {
  1034. if shift >= 64 {
  1035. return ErrIntOverflowApi
  1036. }
  1037. if iNdEx >= l {
  1038. return io.ErrUnexpectedEOF
  1039. }
  1040. b := dAtA[iNdEx]
  1041. iNdEx++
  1042. msglen |= (int(b) & 0x7F) << shift
  1043. if b < 0x80 {
  1044. break
  1045. }
  1046. }
  1047. if msglen < 0 {
  1048. return ErrInvalidLengthApi
  1049. }
  1050. postIndex := iNdEx + msglen
  1051. if postIndex > l {
  1052. return io.ErrUnexpectedEOF
  1053. }
  1054. if m.BiliCookies == nil {
  1055. m.BiliCookies = &CookieInfo{}
  1056. }
  1057. if err := m.BiliCookies.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1058. return err
  1059. }
  1060. iNdEx = postIndex
  1061. case 2:
  1062. if wireType != 2 {
  1063. return fmt.Errorf("proto: wrong wireType = %d for field SSO", wireType)
  1064. }
  1065. var stringLen uint64
  1066. for shift := uint(0); ; shift += 7 {
  1067. if shift >= 64 {
  1068. return ErrIntOverflowApi
  1069. }
  1070. if iNdEx >= l {
  1071. return io.ErrUnexpectedEOF
  1072. }
  1073. b := dAtA[iNdEx]
  1074. iNdEx++
  1075. stringLen |= (uint64(b) & 0x7F) << shift
  1076. if b < 0x80 {
  1077. break
  1078. }
  1079. }
  1080. intStringLen := int(stringLen)
  1081. if intStringLen < 0 {
  1082. return ErrInvalidLengthApi
  1083. }
  1084. postIndex := iNdEx + intStringLen
  1085. if postIndex > l {
  1086. return io.ErrUnexpectedEOF
  1087. }
  1088. m.SSO = append(m.SSO, string(dAtA[iNdEx:postIndex]))
  1089. iNdEx = postIndex
  1090. default:
  1091. iNdEx = preIndex
  1092. skippy, err := skipApi(dAtA[iNdEx:])
  1093. if err != nil {
  1094. return err
  1095. }
  1096. if skippy < 0 {
  1097. return ErrInvalidLengthApi
  1098. }
  1099. if (iNdEx + skippy) > l {
  1100. return io.ErrUnexpectedEOF
  1101. }
  1102. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1103. iNdEx += skippy
  1104. }
  1105. }
  1106. if iNdEx > l {
  1107. return io.ErrUnexpectedEOF
  1108. }
  1109. return nil
  1110. }
  1111. func (m *CookieInfo) Unmarshal(dAtA []byte) error {
  1112. l := len(dAtA)
  1113. iNdEx := 0
  1114. for iNdEx < l {
  1115. preIndex := iNdEx
  1116. var wire uint64
  1117. for shift := uint(0); ; shift += 7 {
  1118. if shift >= 64 {
  1119. return ErrIntOverflowApi
  1120. }
  1121. if iNdEx >= l {
  1122. return io.ErrUnexpectedEOF
  1123. }
  1124. b := dAtA[iNdEx]
  1125. iNdEx++
  1126. wire |= (uint64(b) & 0x7F) << shift
  1127. if b < 0x80 {
  1128. break
  1129. }
  1130. }
  1131. fieldNum := int32(wire >> 3)
  1132. wireType := int(wire & 0x7)
  1133. if wireType == 4 {
  1134. return fmt.Errorf("proto: CookieInfo: wiretype end group for non-group")
  1135. }
  1136. if fieldNum <= 0 {
  1137. return fmt.Errorf("proto: CookieInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1138. }
  1139. switch fieldNum {
  1140. case 1:
  1141. if wireType != 2 {
  1142. return fmt.Errorf("proto: wrong wireType = %d for field Cookies", wireType)
  1143. }
  1144. var msglen int
  1145. for shift := uint(0); ; shift += 7 {
  1146. if shift >= 64 {
  1147. return ErrIntOverflowApi
  1148. }
  1149. if iNdEx >= l {
  1150. return io.ErrUnexpectedEOF
  1151. }
  1152. b := dAtA[iNdEx]
  1153. iNdEx++
  1154. msglen |= (int(b) & 0x7F) << shift
  1155. if b < 0x80 {
  1156. break
  1157. }
  1158. }
  1159. if msglen < 0 {
  1160. return ErrInvalidLengthApi
  1161. }
  1162. postIndex := iNdEx + msglen
  1163. if postIndex > l {
  1164. return io.ErrUnexpectedEOF
  1165. }
  1166. m.Cookies = append(m.Cookies, &Cookie{})
  1167. if err := m.Cookies[len(m.Cookies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1168. return err
  1169. }
  1170. iNdEx = postIndex
  1171. case 2:
  1172. if wireType != 2 {
  1173. return fmt.Errorf("proto: wrong wireType = %d for field Domains", wireType)
  1174. }
  1175. var stringLen uint64
  1176. for shift := uint(0); ; shift += 7 {
  1177. if shift >= 64 {
  1178. return ErrIntOverflowApi
  1179. }
  1180. if iNdEx >= l {
  1181. return io.ErrUnexpectedEOF
  1182. }
  1183. b := dAtA[iNdEx]
  1184. iNdEx++
  1185. stringLen |= (uint64(b) & 0x7F) << shift
  1186. if b < 0x80 {
  1187. break
  1188. }
  1189. }
  1190. intStringLen := int(stringLen)
  1191. if intStringLen < 0 {
  1192. return ErrInvalidLengthApi
  1193. }
  1194. postIndex := iNdEx + intStringLen
  1195. if postIndex > l {
  1196. return io.ErrUnexpectedEOF
  1197. }
  1198. m.Domains = append(m.Domains, string(dAtA[iNdEx:postIndex]))
  1199. iNdEx = postIndex
  1200. default:
  1201. iNdEx = preIndex
  1202. skippy, err := skipApi(dAtA[iNdEx:])
  1203. if err != nil {
  1204. return err
  1205. }
  1206. if skippy < 0 {
  1207. return ErrInvalidLengthApi
  1208. }
  1209. if (iNdEx + skippy) > l {
  1210. return io.ErrUnexpectedEOF
  1211. }
  1212. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1213. iNdEx += skippy
  1214. }
  1215. }
  1216. if iNdEx > l {
  1217. return io.ErrUnexpectedEOF
  1218. }
  1219. return nil
  1220. }
  1221. func (m *Cookie) Unmarshal(dAtA []byte) error {
  1222. l := len(dAtA)
  1223. iNdEx := 0
  1224. for iNdEx < l {
  1225. preIndex := iNdEx
  1226. var wire uint64
  1227. for shift := uint(0); ; shift += 7 {
  1228. if shift >= 64 {
  1229. return ErrIntOverflowApi
  1230. }
  1231. if iNdEx >= l {
  1232. return io.ErrUnexpectedEOF
  1233. }
  1234. b := dAtA[iNdEx]
  1235. iNdEx++
  1236. wire |= (uint64(b) & 0x7F) << shift
  1237. if b < 0x80 {
  1238. break
  1239. }
  1240. }
  1241. fieldNum := int32(wire >> 3)
  1242. wireType := int(wire & 0x7)
  1243. if wireType == 4 {
  1244. return fmt.Errorf("proto: Cookie: wiretype end group for non-group")
  1245. }
  1246. if fieldNum <= 0 {
  1247. return fmt.Errorf("proto: Cookie: illegal tag %d (wire type %d)", fieldNum, wire)
  1248. }
  1249. switch fieldNum {
  1250. case 1:
  1251. if wireType != 2 {
  1252. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1253. }
  1254. var stringLen uint64
  1255. for shift := uint(0); ; shift += 7 {
  1256. if shift >= 64 {
  1257. return ErrIntOverflowApi
  1258. }
  1259. if iNdEx >= l {
  1260. return io.ErrUnexpectedEOF
  1261. }
  1262. b := dAtA[iNdEx]
  1263. iNdEx++
  1264. stringLen |= (uint64(b) & 0x7F) << shift
  1265. if b < 0x80 {
  1266. break
  1267. }
  1268. }
  1269. intStringLen := int(stringLen)
  1270. if intStringLen < 0 {
  1271. return ErrInvalidLengthApi
  1272. }
  1273. postIndex := iNdEx + intStringLen
  1274. if postIndex > l {
  1275. return io.ErrUnexpectedEOF
  1276. }
  1277. m.Name = string(dAtA[iNdEx:postIndex])
  1278. iNdEx = postIndex
  1279. case 2:
  1280. if wireType != 2 {
  1281. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  1282. }
  1283. var stringLen uint64
  1284. for shift := uint(0); ; shift += 7 {
  1285. if shift >= 64 {
  1286. return ErrIntOverflowApi
  1287. }
  1288. if iNdEx >= l {
  1289. return io.ErrUnexpectedEOF
  1290. }
  1291. b := dAtA[iNdEx]
  1292. iNdEx++
  1293. stringLen |= (uint64(b) & 0x7F) << shift
  1294. if b < 0x80 {
  1295. break
  1296. }
  1297. }
  1298. intStringLen := int(stringLen)
  1299. if intStringLen < 0 {
  1300. return ErrInvalidLengthApi
  1301. }
  1302. postIndex := iNdEx + intStringLen
  1303. if postIndex > l {
  1304. return io.ErrUnexpectedEOF
  1305. }
  1306. m.Value = string(dAtA[iNdEx:postIndex])
  1307. iNdEx = postIndex
  1308. case 3:
  1309. if wireType != 0 {
  1310. return fmt.Errorf("proto: wrong wireType = %d for field HttpOnly", wireType)
  1311. }
  1312. m.HttpOnly = 0
  1313. for shift := uint(0); ; shift += 7 {
  1314. if shift >= 64 {
  1315. return ErrIntOverflowApi
  1316. }
  1317. if iNdEx >= l {
  1318. return io.ErrUnexpectedEOF
  1319. }
  1320. b := dAtA[iNdEx]
  1321. iNdEx++
  1322. m.HttpOnly |= (int64(b) & 0x7F) << shift
  1323. if b < 0x80 {
  1324. break
  1325. }
  1326. }
  1327. case 4:
  1328. if wireType != 0 {
  1329. return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  1330. }
  1331. m.Expires = 0
  1332. for shift := uint(0); ; shift += 7 {
  1333. if shift >= 64 {
  1334. return ErrIntOverflowApi
  1335. }
  1336. if iNdEx >= l {
  1337. return io.ErrUnexpectedEOF
  1338. }
  1339. b := dAtA[iNdEx]
  1340. iNdEx++
  1341. m.Expires |= (int64(b) & 0x7F) << shift
  1342. if b < 0x80 {
  1343. break
  1344. }
  1345. }
  1346. default:
  1347. iNdEx = preIndex
  1348. skippy, err := skipApi(dAtA[iNdEx:])
  1349. if err != nil {
  1350. return err
  1351. }
  1352. if skippy < 0 {
  1353. return ErrInvalidLengthApi
  1354. }
  1355. if (iNdEx + skippy) > l {
  1356. return io.ErrUnexpectedEOF
  1357. }
  1358. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1359. iNdEx += skippy
  1360. }
  1361. }
  1362. if iNdEx > l {
  1363. return io.ErrUnexpectedEOF
  1364. }
  1365. return nil
  1366. }
  1367. func skipApi(dAtA []byte) (n int, err error) {
  1368. l := len(dAtA)
  1369. iNdEx := 0
  1370. for iNdEx < l {
  1371. var wire uint64
  1372. for shift := uint(0); ; shift += 7 {
  1373. if shift >= 64 {
  1374. return 0, ErrIntOverflowApi
  1375. }
  1376. if iNdEx >= l {
  1377. return 0, io.ErrUnexpectedEOF
  1378. }
  1379. b := dAtA[iNdEx]
  1380. iNdEx++
  1381. wire |= (uint64(b) & 0x7F) << shift
  1382. if b < 0x80 {
  1383. break
  1384. }
  1385. }
  1386. wireType := int(wire & 0x7)
  1387. switch wireType {
  1388. case 0:
  1389. for shift := uint(0); ; shift += 7 {
  1390. if shift >= 64 {
  1391. return 0, ErrIntOverflowApi
  1392. }
  1393. if iNdEx >= l {
  1394. return 0, io.ErrUnexpectedEOF
  1395. }
  1396. iNdEx++
  1397. if dAtA[iNdEx-1] < 0x80 {
  1398. break
  1399. }
  1400. }
  1401. return iNdEx, nil
  1402. case 1:
  1403. iNdEx += 8
  1404. return iNdEx, nil
  1405. case 2:
  1406. var length int
  1407. for shift := uint(0); ; shift += 7 {
  1408. if shift >= 64 {
  1409. return 0, ErrIntOverflowApi
  1410. }
  1411. if iNdEx >= l {
  1412. return 0, io.ErrUnexpectedEOF
  1413. }
  1414. b := dAtA[iNdEx]
  1415. iNdEx++
  1416. length |= (int(b) & 0x7F) << shift
  1417. if b < 0x80 {
  1418. break
  1419. }
  1420. }
  1421. iNdEx += length
  1422. if length < 0 {
  1423. return 0, ErrInvalidLengthApi
  1424. }
  1425. return iNdEx, nil
  1426. case 3:
  1427. for {
  1428. var innerWire uint64
  1429. var start int = iNdEx
  1430. for shift := uint(0); ; shift += 7 {
  1431. if shift >= 64 {
  1432. return 0, ErrIntOverflowApi
  1433. }
  1434. if iNdEx >= l {
  1435. return 0, io.ErrUnexpectedEOF
  1436. }
  1437. b := dAtA[iNdEx]
  1438. iNdEx++
  1439. innerWire |= (uint64(b) & 0x7F) << shift
  1440. if b < 0x80 {
  1441. break
  1442. }
  1443. }
  1444. innerWireType := int(innerWire & 0x7)
  1445. if innerWireType == 4 {
  1446. break
  1447. }
  1448. next, err := skipApi(dAtA[start:])
  1449. if err != nil {
  1450. return 0, err
  1451. }
  1452. iNdEx = start + next
  1453. }
  1454. return iNdEx, nil
  1455. case 4:
  1456. return iNdEx, nil
  1457. case 5:
  1458. iNdEx += 4
  1459. return iNdEx, nil
  1460. default:
  1461. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1462. }
  1463. }
  1464. panic("unreachable")
  1465. }
  1466. var (
  1467. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  1468. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  1469. )
  1470. func init() {
  1471. proto.RegisterFile("app/service/main/identify-game/api/grpc/v1/api.proto", fileDescriptor_api_19c55b63049ee51c)
  1472. }
  1473. var fileDescriptor_api_19c55b63049ee51c = []byte{
  1474. // 555 bytes of a gzipped FileDescriptorProto
  1475. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x41, 0x6f, 0xd3, 0x30,
  1476. 0x18, 0x55, 0x96, 0x6e, 0x5d, 0x1d, 0xa6, 0x8e, 0x08, 0x89, 0x52, 0x41, 0x53, 0x05, 0x55, 0xea,
  1477. 0x80, 0x25, 0xb4, 0x70, 0xda, 0x31, 0x1d, 0x6c, 0x93, 0x10, 0x93, 0x3c, 0xc4, 0x01, 0x21, 0x55,
  1478. 0x6e, 0xea, 0xb4, 0x56, 0x93, 0xd8, 0x4b, 0xdc, 0x88, 0x1c, 0xb9, 0x71, 0xe0, 0x0f, 0xf0, 0x8f,
  1479. 0x38, 0xf2, 0x0b, 0x22, 0xd4, 0x63, 0x8e, 0xfb, 0x05, 0xc8, 0x76, 0x4a, 0xb7, 0x0b, 0x1b, 0x37,
  1480. 0x7f, 0xcf, 0xef, 0x3d, 0xbf, 0x7c, 0xdf, 0x17, 0xf0, 0x1a, 0x31, 0xe6, 0xa6, 0x38, 0xc9, 0x88,
  1481. 0x8f, 0xdd, 0x08, 0x91, 0xd8, 0x25, 0x53, 0x1c, 0x73, 0x12, 0xe4, 0x87, 0x33, 0x14, 0x61, 0x17,
  1482. 0x31, 0xe2, 0xce, 0x12, 0xe6, 0xbb, 0xd9, 0x40, 0x9c, 0x1d, 0x96, 0x50, 0x4e, 0xcd, 0x27, 0x82,
  1483. 0xe9, 0x54, 0x32, 0x67, 0xad, 0x70, 0x84, 0xc2, 0xc9, 0x06, 0xed, 0xc3, 0x19, 0xe1, 0xf3, 0xe5,
  1484. 0xc4, 0xf1, 0x69, 0xe4, 0xce, 0xe8, 0x8c, 0xba, 0x52, 0x35, 0x59, 0x06, 0xb2, 0x92, 0x85, 0x3c,
  1485. 0x29, 0x37, 0xfb, 0x29, 0x30, 0x8e, 0x71, 0x38, 0x42, 0xfe, 0x1c, 0x43, 0x7c, 0x69, 0x3e, 0x00,
  1486. 0xdb, 0x9c, 0x2e, 0x70, 0xdc, 0xd2, 0xba, 0x5a, 0xbf, 0x01, 0x55, 0x61, 0x37, 0xc1, 0xde, 0x86,
  1487. 0xc4, 0xc2, 0xdc, 0xfe, 0xa6, 0x81, 0xe6, 0x28, 0xc1, 0x88, 0xe3, 0x11, 0xa5, 0x0b, 0x22, 0xa5,
  1488. 0xa7, 0x60, 0xfb, 0xc3, 0x46, 0xea, 0x0d, 0xcb, 0xc2, 0x52, 0xf2, 0xab, 0xc2, 0xea, 0x05, 0x34,
  1489. 0x89, 0x8e, 0x6c, 0xe4, 0xfb, 0x38, 0x4d, 0xc7, 0x0b, 0x9c, 0xdb, 0xdd, 0x0c, 0x85, 0x64, 0x8a,
  1490. 0x38, 0x3e, 0xb2, 0x13, 0x7c, 0xb9, 0x24, 0x09, 0x9e, 0xda, 0x50, 0x19, 0x98, 0xcf, 0x41, 0xed,
  1491. 0x6d, 0x42, 0xa3, 0xd6, 0x96, 0x34, 0x7a, 0x58, 0x16, 0x56, 0x2d, 0x48, 0x68, 0x74, 0x55, 0x58,
  1492. 0x86, 0xf2, 0x11, 0x95, 0x0d, 0x25, 0xc9, 0xfe, 0xae, 0x81, 0xfb, 0x37, 0xa3, 0xb0, 0x30, 0x37,
  1493. 0x3f, 0x03, 0xc3, 0x23, 0x21, 0x51, 0x50, 0x2a, 0x23, 0x19, 0xc3, 0x03, 0xe7, 0x9f, 0xad, 0x73,
  1494. 0x14, 0xfb, 0x2c, 0x0e, 0xa8, 0xd7, 0x2c, 0x0b, 0xcb, 0xf0, 0x65, 0x3d, 0x26, 0x71, 0x40, 0xe1,
  1495. 0x75, 0x3b, 0xf3, 0x11, 0xd0, 0x2f, 0x2e, 0xce, 0x5b, 0x5b, 0x5d, 0xbd, 0xdf, 0xf0, 0xea, 0x65,
  1496. 0x61, 0xe9, 0x69, 0x4a, 0xa1, 0xc0, 0xec, 0xaf, 0x1a, 0x00, 0x1b, 0x1f, 0xf3, 0x1d, 0xa8, 0x6f,
  1497. 0x32, 0xe8, 0x7d, 0x63, 0xd8, 0xbb, 0x53, 0x06, 0xcf, 0x28, 0x0b, 0xab, 0xae, 0xde, 0x4f, 0xe1,
  1498. 0xda, 0xc2, 0xec, 0x81, 0xfa, 0x31, 0x15, 0xfa, 0xb4, 0x7a, 0x5b, 0xd2, 0xa6, 0x0a, 0x82, 0xeb,
  1499. 0x3b, 0xfb, 0x87, 0x06, 0x76, 0x94, 0xc4, 0x7c, 0x0c, 0x6a, 0xef, 0x51, 0x84, 0xab, 0x99, 0xec,
  1500. 0x8a, 0x56, 0xc6, 0x28, 0xc2, 0x50, 0xa2, 0xa6, 0x05, 0xb6, 0x3f, 0xa2, 0x70, 0x89, 0xab, 0x4e,
  1501. 0x37, 0xc4, 0xc8, 0x32, 0x01, 0x40, 0x85, 0x9b, 0x07, 0x60, 0xf7, 0x94, 0x73, 0x76, 0x1e, 0x87,
  1502. 0x79, 0x4b, 0xef, 0x6a, 0x7d, 0xdd, 0xdb, 0x2b, 0x0b, 0xab, 0x31, 0xe7, 0x9c, 0x8d, 0x69, 0x1c,
  1503. 0xe6, 0xf0, 0xef, 0xb5, 0xc8, 0xf6, 0xe6, 0x0b, 0x23, 0x09, 0x4e, 0x5b, 0x35, 0xc9, 0x94, 0xd9,
  1504. 0xb0, 0x82, 0xe0, 0xfa, 0x6e, 0x58, 0x6a, 0xe0, 0xde, 0x59, 0xf5, 0xd1, 0x27, 0x22, 0xc3, 0x14,
  1505. 0xec, 0xae, 0x77, 0xcb, 0x7c, 0x76, 0x4b, 0x73, 0xae, 0x6d, 0x6a, 0xfb, 0xc5, 0x9d, 0xb9, 0x62,
  1506. 0x1f, 0x38, 0xd8, 0x3f, 0xc1, 0xbc, 0x6a, 0x6e, 0xae, 0xd6, 0xcc, 0xb9, 0x6d, 0x14, 0x37, 0x17,
  1507. 0xbc, 0xfd, 0xf2, 0xbf, 0xf8, 0x2c, 0xcc, 0xbd, 0xfd, 0x9f, 0xab, 0x8e, 0xf6, 0x6b, 0xd5, 0xd1,
  1508. 0x7e, 0xaf, 0x3a, 0xda, 0xa7, 0xad, 0x6c, 0x30, 0xd9, 0x91, 0x7f, 0xdd, 0xab, 0x3f, 0x01, 0x00,
  1509. 0x00, 0xff, 0xff, 0x7c, 0x27, 0x4e, 0x9b, 0xfb, 0x03, 0x00, 0x00,
  1510. }