search.pb.go 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/interface/openplatform/article/model/search/search.proto
  3. package bili_search_rpc_tagbox
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import (
  8. context "golang.org/x/net/context"
  9. grpc "google.golang.org/grpc"
  10. )
  11. import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
  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. type SourceTypeConst struct {
  23. SOURCE_ARTICLE *string `protobuf:"bytes,1,opt,name=SOURCE_ARTICLE,json=SOURCEARTICLE,def=article" json:"SOURCE_ARTICLE,omitempty"`
  24. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  25. XXX_unrecognized []byte `json:"-"`
  26. XXX_sizecache int32 `json:"-"`
  27. }
  28. func (m *SourceTypeConst) Reset() { *m = SourceTypeConst{} }
  29. func (m *SourceTypeConst) String() string { return proto.CompactTextString(m) }
  30. func (*SourceTypeConst) ProtoMessage() {}
  31. func (*SourceTypeConst) Descriptor() ([]byte, []int) {
  32. return fileDescriptor_search_9ed78b60a98ab426, []int{0}
  33. }
  34. func (m *SourceTypeConst) XXX_Unmarshal(b []byte) error {
  35. return m.Unmarshal(b)
  36. }
  37. func (m *SourceTypeConst) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  38. if deterministic {
  39. return xxx_messageInfo_SourceTypeConst.Marshal(b, m, deterministic)
  40. } else {
  41. b = b[:cap(b)]
  42. n, err := m.MarshalTo(b)
  43. if err != nil {
  44. return nil, err
  45. }
  46. return b[:n], nil
  47. }
  48. }
  49. func (dst *SourceTypeConst) XXX_Merge(src proto.Message) {
  50. xxx_messageInfo_SourceTypeConst.Merge(dst, src)
  51. }
  52. func (m *SourceTypeConst) XXX_Size() int {
  53. return m.Size()
  54. }
  55. func (m *SourceTypeConst) XXX_DiscardUnknown() {
  56. xxx_messageInfo_SourceTypeConst.DiscardUnknown(m)
  57. }
  58. var xxx_messageInfo_SourceTypeConst proto.InternalMessageInfo
  59. const Default_SourceTypeConst_SOURCE_ARTICLE string = "article"
  60. func (m *SourceTypeConst) GetSOURCE_ARTICLE() string {
  61. if m != nil && m.SOURCE_ARTICLE != nil {
  62. return *m.SOURCE_ARTICLE
  63. }
  64. return Default_SourceTypeConst_SOURCE_ARTICLE
  65. }
  66. type TagboxRequest struct {
  67. Id *int32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
  68. SourceType *string `protobuf:"bytes,2,req,name=source_type,json=sourceType" json:"source_type,omitempty"`
  69. Content *string `protobuf:"bytes,3,req,name=content" json:"content,omitempty"`
  70. Trackid *int32 `protobuf:"varint,4,req,name=trackid" json:"trackid,omitempty"`
  71. Remarks *string `protobuf:"bytes,5,opt,name=remarks" json:"remarks,omitempty"`
  72. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  73. XXX_unrecognized []byte `json:"-"`
  74. XXX_sizecache int32 `json:"-"`
  75. }
  76. func (m *TagboxRequest) Reset() { *m = TagboxRequest{} }
  77. func (m *TagboxRequest) String() string { return proto.CompactTextString(m) }
  78. func (*TagboxRequest) ProtoMessage() {}
  79. func (*TagboxRequest) Descriptor() ([]byte, []int) {
  80. return fileDescriptor_search_9ed78b60a98ab426, []int{1}
  81. }
  82. func (m *TagboxRequest) XXX_Unmarshal(b []byte) error {
  83. return m.Unmarshal(b)
  84. }
  85. func (m *TagboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  86. if deterministic {
  87. return xxx_messageInfo_TagboxRequest.Marshal(b, m, deterministic)
  88. } else {
  89. b = b[:cap(b)]
  90. n, err := m.MarshalTo(b)
  91. if err != nil {
  92. return nil, err
  93. }
  94. return b[:n], nil
  95. }
  96. }
  97. func (dst *TagboxRequest) XXX_Merge(src proto.Message) {
  98. xxx_messageInfo_TagboxRequest.Merge(dst, src)
  99. }
  100. func (m *TagboxRequest) XXX_Size() int {
  101. return m.Size()
  102. }
  103. func (m *TagboxRequest) XXX_DiscardUnknown() {
  104. xxx_messageInfo_TagboxRequest.DiscardUnknown(m)
  105. }
  106. var xxx_messageInfo_TagboxRequest proto.InternalMessageInfo
  107. func (m *TagboxRequest) GetId() int32 {
  108. if m != nil && m.Id != nil {
  109. return *m.Id
  110. }
  111. return 0
  112. }
  113. func (m *TagboxRequest) GetSourceType() string {
  114. if m != nil && m.SourceType != nil {
  115. return *m.SourceType
  116. }
  117. return ""
  118. }
  119. func (m *TagboxRequest) GetContent() string {
  120. if m != nil && m.Content != nil {
  121. return *m.Content
  122. }
  123. return ""
  124. }
  125. func (m *TagboxRequest) GetTrackid() int32 {
  126. if m != nil && m.Trackid != nil {
  127. return *m.Trackid
  128. }
  129. return 0
  130. }
  131. func (m *TagboxRequest) GetRemarks() string {
  132. if m != nil && m.Remarks != nil {
  133. return *m.Remarks
  134. }
  135. return ""
  136. }
  137. type TagboxResponse struct {
  138. ExecCode *int32 `protobuf:"varint,1,req,name=exec_code,json=execCode" json:"exec_code,omitempty"`
  139. Id *int32 `protobuf:"varint,2,req,name=id" json:"id,omitempty"`
  140. Keywords []string `protobuf:"bytes,3,rep,name=keywords" json:"keywords,omitempty"`
  141. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  142. XXX_unrecognized []byte `json:"-"`
  143. XXX_sizecache int32 `json:"-"`
  144. }
  145. func (m *TagboxResponse) Reset() { *m = TagboxResponse{} }
  146. func (m *TagboxResponse) String() string { return proto.CompactTextString(m) }
  147. func (*TagboxResponse) ProtoMessage() {}
  148. func (*TagboxResponse) Descriptor() ([]byte, []int) {
  149. return fileDescriptor_search_9ed78b60a98ab426, []int{2}
  150. }
  151. func (m *TagboxResponse) XXX_Unmarshal(b []byte) error {
  152. return m.Unmarshal(b)
  153. }
  154. func (m *TagboxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  155. if deterministic {
  156. return xxx_messageInfo_TagboxResponse.Marshal(b, m, deterministic)
  157. } else {
  158. b = b[:cap(b)]
  159. n, err := m.MarshalTo(b)
  160. if err != nil {
  161. return nil, err
  162. }
  163. return b[:n], nil
  164. }
  165. }
  166. func (dst *TagboxResponse) XXX_Merge(src proto.Message) {
  167. xxx_messageInfo_TagboxResponse.Merge(dst, src)
  168. }
  169. func (m *TagboxResponse) XXX_Size() int {
  170. return m.Size()
  171. }
  172. func (m *TagboxResponse) XXX_DiscardUnknown() {
  173. xxx_messageInfo_TagboxResponse.DiscardUnknown(m)
  174. }
  175. var xxx_messageInfo_TagboxResponse proto.InternalMessageInfo
  176. func (m *TagboxResponse) GetExecCode() int32 {
  177. if m != nil && m.ExecCode != nil {
  178. return *m.ExecCode
  179. }
  180. return 0
  181. }
  182. func (m *TagboxResponse) GetId() int32 {
  183. if m != nil && m.Id != nil {
  184. return *m.Id
  185. }
  186. return 0
  187. }
  188. func (m *TagboxResponse) GetKeywords() []string {
  189. if m != nil {
  190. return m.Keywords
  191. }
  192. return nil
  193. }
  194. func init() {
  195. proto.RegisterType((*SourceTypeConst)(nil), "bili.search.rpc.tagbox.SourceTypeConst")
  196. proto.RegisterType((*TagboxRequest)(nil), "bili.search.rpc.tagbox.TagboxRequest")
  197. proto.RegisterType((*TagboxResponse)(nil), "bili.search.rpc.tagbox.TagboxResponse")
  198. }
  199. // Reference imports to suppress errors if they are not otherwise used.
  200. var _ context.Context
  201. var _ grpc.ClientConn
  202. // This is a compile-time assertion to ensure that this generated file
  203. // is compatible with the grpc package it is being compiled against.
  204. const _ = grpc.SupportPackageIsVersion4
  205. // TagboxServiceClient is the client API for TagboxService service.
  206. //
  207. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  208. type TagboxServiceClient interface {
  209. Segment(ctx context.Context, in *TagboxRequest, opts ...grpc.CallOption) (*TagboxResponse, error)
  210. }
  211. type tagboxServiceClient struct {
  212. cc *grpc.ClientConn
  213. }
  214. func NewTagboxServiceClient(cc *grpc.ClientConn) TagboxServiceClient {
  215. return &tagboxServiceClient{cc}
  216. }
  217. func (c *tagboxServiceClient) Segment(ctx context.Context, in *TagboxRequest, opts ...grpc.CallOption) (*TagboxResponse, error) {
  218. out := new(TagboxResponse)
  219. err := c.cc.Invoke(ctx, "/bili.search.rpc.tagbox.TagboxService/segment", in, out, opts...)
  220. if err != nil {
  221. return nil, err
  222. }
  223. return out, nil
  224. }
  225. // TagboxServiceServer is the server API for TagboxService service.
  226. type TagboxServiceServer interface {
  227. Segment(context.Context, *TagboxRequest) (*TagboxResponse, error)
  228. }
  229. func RegisterTagboxServiceServer(s *grpc.Server, srv TagboxServiceServer) {
  230. s.RegisterService(&_TagboxService_serviceDesc, srv)
  231. }
  232. func _TagboxService_Segment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  233. in := new(TagboxRequest)
  234. if err := dec(in); err != nil {
  235. return nil, err
  236. }
  237. if interceptor == nil {
  238. return srv.(TagboxServiceServer).Segment(ctx, in)
  239. }
  240. info := &grpc.UnaryServerInfo{
  241. Server: srv,
  242. FullMethod: "/bili.search.rpc.tagbox.TagboxService/Segment",
  243. }
  244. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  245. return srv.(TagboxServiceServer).Segment(ctx, req.(*TagboxRequest))
  246. }
  247. return interceptor(ctx, in, info, handler)
  248. }
  249. var _TagboxService_serviceDesc = grpc.ServiceDesc{
  250. ServiceName: "bili.search.rpc.tagbox.TagboxService",
  251. HandlerType: (*TagboxServiceServer)(nil),
  252. Methods: []grpc.MethodDesc{
  253. {
  254. MethodName: "segment",
  255. Handler: _TagboxService_Segment_Handler,
  256. },
  257. },
  258. Streams: []grpc.StreamDesc{},
  259. Metadata: "app/interface/openplatform/article/model/search/search.proto",
  260. }
  261. func (m *SourceTypeConst) Marshal() (dAtA []byte, err error) {
  262. size := m.Size()
  263. dAtA = make([]byte, size)
  264. n, err := m.MarshalTo(dAtA)
  265. if err != nil {
  266. return nil, err
  267. }
  268. return dAtA[:n], nil
  269. }
  270. func (m *SourceTypeConst) MarshalTo(dAtA []byte) (int, error) {
  271. var i int
  272. _ = i
  273. var l int
  274. _ = l
  275. if m.SOURCE_ARTICLE != nil {
  276. dAtA[i] = 0xa
  277. i++
  278. i = encodeVarintSearch(dAtA, i, uint64(len(*m.SOURCE_ARTICLE)))
  279. i += copy(dAtA[i:], *m.SOURCE_ARTICLE)
  280. }
  281. if m.XXX_unrecognized != nil {
  282. i += copy(dAtA[i:], m.XXX_unrecognized)
  283. }
  284. return i, nil
  285. }
  286. func (m *TagboxRequest) Marshal() (dAtA []byte, err error) {
  287. size := m.Size()
  288. dAtA = make([]byte, size)
  289. n, err := m.MarshalTo(dAtA)
  290. if err != nil {
  291. return nil, err
  292. }
  293. return dAtA[:n], nil
  294. }
  295. func (m *TagboxRequest) MarshalTo(dAtA []byte) (int, error) {
  296. var i int
  297. _ = i
  298. var l int
  299. _ = l
  300. if m.Id == nil {
  301. return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("id")
  302. } else {
  303. dAtA[i] = 0x8
  304. i++
  305. i = encodeVarintSearch(dAtA, i, uint64(*m.Id))
  306. }
  307. if m.SourceType == nil {
  308. return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("source_type")
  309. } else {
  310. dAtA[i] = 0x12
  311. i++
  312. i = encodeVarintSearch(dAtA, i, uint64(len(*m.SourceType)))
  313. i += copy(dAtA[i:], *m.SourceType)
  314. }
  315. if m.Content == nil {
  316. return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("content")
  317. } else {
  318. dAtA[i] = 0x1a
  319. i++
  320. i = encodeVarintSearch(dAtA, i, uint64(len(*m.Content)))
  321. i += copy(dAtA[i:], *m.Content)
  322. }
  323. if m.Trackid == nil {
  324. return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("trackid")
  325. } else {
  326. dAtA[i] = 0x20
  327. i++
  328. i = encodeVarintSearch(dAtA, i, uint64(*m.Trackid))
  329. }
  330. if m.Remarks != nil {
  331. dAtA[i] = 0x2a
  332. i++
  333. i = encodeVarintSearch(dAtA, i, uint64(len(*m.Remarks)))
  334. i += copy(dAtA[i:], *m.Remarks)
  335. }
  336. if m.XXX_unrecognized != nil {
  337. i += copy(dAtA[i:], m.XXX_unrecognized)
  338. }
  339. return i, nil
  340. }
  341. func (m *TagboxResponse) Marshal() (dAtA []byte, err error) {
  342. size := m.Size()
  343. dAtA = make([]byte, size)
  344. n, err := m.MarshalTo(dAtA)
  345. if err != nil {
  346. return nil, err
  347. }
  348. return dAtA[:n], nil
  349. }
  350. func (m *TagboxResponse) MarshalTo(dAtA []byte) (int, error) {
  351. var i int
  352. _ = i
  353. var l int
  354. _ = l
  355. if m.ExecCode == nil {
  356. return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("exec_code")
  357. } else {
  358. dAtA[i] = 0x8
  359. i++
  360. i = encodeVarintSearch(dAtA, i, uint64(*m.ExecCode))
  361. }
  362. if m.Id == nil {
  363. return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("id")
  364. } else {
  365. dAtA[i] = 0x10
  366. i++
  367. i = encodeVarintSearch(dAtA, i, uint64(*m.Id))
  368. }
  369. if len(m.Keywords) > 0 {
  370. for _, s := range m.Keywords {
  371. dAtA[i] = 0x1a
  372. i++
  373. l = len(s)
  374. for l >= 1<<7 {
  375. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  376. l >>= 7
  377. i++
  378. }
  379. dAtA[i] = uint8(l)
  380. i++
  381. i += copy(dAtA[i:], s)
  382. }
  383. }
  384. if m.XXX_unrecognized != nil {
  385. i += copy(dAtA[i:], m.XXX_unrecognized)
  386. }
  387. return i, nil
  388. }
  389. func encodeVarintSearch(dAtA []byte, offset int, v uint64) int {
  390. for v >= 1<<7 {
  391. dAtA[offset] = uint8(v&0x7f | 0x80)
  392. v >>= 7
  393. offset++
  394. }
  395. dAtA[offset] = uint8(v)
  396. return offset + 1
  397. }
  398. func (m *SourceTypeConst) Size() (n int) {
  399. if m == nil {
  400. return 0
  401. }
  402. var l int
  403. _ = l
  404. if m.SOURCE_ARTICLE != nil {
  405. l = len(*m.SOURCE_ARTICLE)
  406. n += 1 + l + sovSearch(uint64(l))
  407. }
  408. if m.XXX_unrecognized != nil {
  409. n += len(m.XXX_unrecognized)
  410. }
  411. return n
  412. }
  413. func (m *TagboxRequest) Size() (n int) {
  414. if m == nil {
  415. return 0
  416. }
  417. var l int
  418. _ = l
  419. if m.Id != nil {
  420. n += 1 + sovSearch(uint64(*m.Id))
  421. }
  422. if m.SourceType != nil {
  423. l = len(*m.SourceType)
  424. n += 1 + l + sovSearch(uint64(l))
  425. }
  426. if m.Content != nil {
  427. l = len(*m.Content)
  428. n += 1 + l + sovSearch(uint64(l))
  429. }
  430. if m.Trackid != nil {
  431. n += 1 + sovSearch(uint64(*m.Trackid))
  432. }
  433. if m.Remarks != nil {
  434. l = len(*m.Remarks)
  435. n += 1 + l + sovSearch(uint64(l))
  436. }
  437. if m.XXX_unrecognized != nil {
  438. n += len(m.XXX_unrecognized)
  439. }
  440. return n
  441. }
  442. func (m *TagboxResponse) Size() (n int) {
  443. if m == nil {
  444. return 0
  445. }
  446. var l int
  447. _ = l
  448. if m.ExecCode != nil {
  449. n += 1 + sovSearch(uint64(*m.ExecCode))
  450. }
  451. if m.Id != nil {
  452. n += 1 + sovSearch(uint64(*m.Id))
  453. }
  454. if len(m.Keywords) > 0 {
  455. for _, s := range m.Keywords {
  456. l = len(s)
  457. n += 1 + l + sovSearch(uint64(l))
  458. }
  459. }
  460. if m.XXX_unrecognized != nil {
  461. n += len(m.XXX_unrecognized)
  462. }
  463. return n
  464. }
  465. func sovSearch(x uint64) (n int) {
  466. for {
  467. n++
  468. x >>= 7
  469. if x == 0 {
  470. break
  471. }
  472. }
  473. return n
  474. }
  475. func sozSearch(x uint64) (n int) {
  476. return sovSearch(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  477. }
  478. func (m *SourceTypeConst) Unmarshal(dAtA []byte) error {
  479. l := len(dAtA)
  480. iNdEx := 0
  481. for iNdEx < l {
  482. preIndex := iNdEx
  483. var wire uint64
  484. for shift := uint(0); ; shift += 7 {
  485. if shift >= 64 {
  486. return ErrIntOverflowSearch
  487. }
  488. if iNdEx >= l {
  489. return io.ErrUnexpectedEOF
  490. }
  491. b := dAtA[iNdEx]
  492. iNdEx++
  493. wire |= (uint64(b) & 0x7F) << shift
  494. if b < 0x80 {
  495. break
  496. }
  497. }
  498. fieldNum := int32(wire >> 3)
  499. wireType := int(wire & 0x7)
  500. if wireType == 4 {
  501. return fmt.Errorf("proto: SourceTypeConst: wiretype end group for non-group")
  502. }
  503. if fieldNum <= 0 {
  504. return fmt.Errorf("proto: SourceTypeConst: illegal tag %d (wire type %d)", fieldNum, wire)
  505. }
  506. switch fieldNum {
  507. case 1:
  508. if wireType != 2 {
  509. return fmt.Errorf("proto: wrong wireType = %d for field SOURCE_ARTICLE", wireType)
  510. }
  511. var stringLen uint64
  512. for shift := uint(0); ; shift += 7 {
  513. if shift >= 64 {
  514. return ErrIntOverflowSearch
  515. }
  516. if iNdEx >= l {
  517. return io.ErrUnexpectedEOF
  518. }
  519. b := dAtA[iNdEx]
  520. iNdEx++
  521. stringLen |= (uint64(b) & 0x7F) << shift
  522. if b < 0x80 {
  523. break
  524. }
  525. }
  526. intStringLen := int(stringLen)
  527. if intStringLen < 0 {
  528. return ErrInvalidLengthSearch
  529. }
  530. postIndex := iNdEx + intStringLen
  531. if postIndex > l {
  532. return io.ErrUnexpectedEOF
  533. }
  534. s := string(dAtA[iNdEx:postIndex])
  535. m.SOURCE_ARTICLE = &s
  536. iNdEx = postIndex
  537. default:
  538. iNdEx = preIndex
  539. skippy, err := skipSearch(dAtA[iNdEx:])
  540. if err != nil {
  541. return err
  542. }
  543. if skippy < 0 {
  544. return ErrInvalidLengthSearch
  545. }
  546. if (iNdEx + skippy) > l {
  547. return io.ErrUnexpectedEOF
  548. }
  549. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  550. iNdEx += skippy
  551. }
  552. }
  553. if iNdEx > l {
  554. return io.ErrUnexpectedEOF
  555. }
  556. return nil
  557. }
  558. func (m *TagboxRequest) Unmarshal(dAtA []byte) error {
  559. var hasFields [1]uint64
  560. l := len(dAtA)
  561. iNdEx := 0
  562. for iNdEx < l {
  563. preIndex := iNdEx
  564. var wire uint64
  565. for shift := uint(0); ; shift += 7 {
  566. if shift >= 64 {
  567. return ErrIntOverflowSearch
  568. }
  569. if iNdEx >= l {
  570. return io.ErrUnexpectedEOF
  571. }
  572. b := dAtA[iNdEx]
  573. iNdEx++
  574. wire |= (uint64(b) & 0x7F) << shift
  575. if b < 0x80 {
  576. break
  577. }
  578. }
  579. fieldNum := int32(wire >> 3)
  580. wireType := int(wire & 0x7)
  581. if wireType == 4 {
  582. return fmt.Errorf("proto: TagboxRequest: wiretype end group for non-group")
  583. }
  584. if fieldNum <= 0 {
  585. return fmt.Errorf("proto: TagboxRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  586. }
  587. switch fieldNum {
  588. case 1:
  589. if wireType != 0 {
  590. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  591. }
  592. var v int32
  593. for shift := uint(0); ; shift += 7 {
  594. if shift >= 64 {
  595. return ErrIntOverflowSearch
  596. }
  597. if iNdEx >= l {
  598. return io.ErrUnexpectedEOF
  599. }
  600. b := dAtA[iNdEx]
  601. iNdEx++
  602. v |= (int32(b) & 0x7F) << shift
  603. if b < 0x80 {
  604. break
  605. }
  606. }
  607. m.Id = &v
  608. hasFields[0] |= uint64(0x00000001)
  609. case 2:
  610. if wireType != 2 {
  611. return fmt.Errorf("proto: wrong wireType = %d for field SourceType", wireType)
  612. }
  613. var stringLen uint64
  614. for shift := uint(0); ; shift += 7 {
  615. if shift >= 64 {
  616. return ErrIntOverflowSearch
  617. }
  618. if iNdEx >= l {
  619. return io.ErrUnexpectedEOF
  620. }
  621. b := dAtA[iNdEx]
  622. iNdEx++
  623. stringLen |= (uint64(b) & 0x7F) << shift
  624. if b < 0x80 {
  625. break
  626. }
  627. }
  628. intStringLen := int(stringLen)
  629. if intStringLen < 0 {
  630. return ErrInvalidLengthSearch
  631. }
  632. postIndex := iNdEx + intStringLen
  633. if postIndex > l {
  634. return io.ErrUnexpectedEOF
  635. }
  636. s := string(dAtA[iNdEx:postIndex])
  637. m.SourceType = &s
  638. iNdEx = postIndex
  639. hasFields[0] |= uint64(0x00000002)
  640. case 3:
  641. if wireType != 2 {
  642. return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
  643. }
  644. var stringLen uint64
  645. for shift := uint(0); ; shift += 7 {
  646. if shift >= 64 {
  647. return ErrIntOverflowSearch
  648. }
  649. if iNdEx >= l {
  650. return io.ErrUnexpectedEOF
  651. }
  652. b := dAtA[iNdEx]
  653. iNdEx++
  654. stringLen |= (uint64(b) & 0x7F) << shift
  655. if b < 0x80 {
  656. break
  657. }
  658. }
  659. intStringLen := int(stringLen)
  660. if intStringLen < 0 {
  661. return ErrInvalidLengthSearch
  662. }
  663. postIndex := iNdEx + intStringLen
  664. if postIndex > l {
  665. return io.ErrUnexpectedEOF
  666. }
  667. s := string(dAtA[iNdEx:postIndex])
  668. m.Content = &s
  669. iNdEx = postIndex
  670. hasFields[0] |= uint64(0x00000004)
  671. case 4:
  672. if wireType != 0 {
  673. return fmt.Errorf("proto: wrong wireType = %d for field Trackid", wireType)
  674. }
  675. var v int32
  676. for shift := uint(0); ; shift += 7 {
  677. if shift >= 64 {
  678. return ErrIntOverflowSearch
  679. }
  680. if iNdEx >= l {
  681. return io.ErrUnexpectedEOF
  682. }
  683. b := dAtA[iNdEx]
  684. iNdEx++
  685. v |= (int32(b) & 0x7F) << shift
  686. if b < 0x80 {
  687. break
  688. }
  689. }
  690. m.Trackid = &v
  691. hasFields[0] |= uint64(0x00000008)
  692. case 5:
  693. if wireType != 2 {
  694. return fmt.Errorf("proto: wrong wireType = %d for field Remarks", wireType)
  695. }
  696. var stringLen uint64
  697. for shift := uint(0); ; shift += 7 {
  698. if shift >= 64 {
  699. return ErrIntOverflowSearch
  700. }
  701. if iNdEx >= l {
  702. return io.ErrUnexpectedEOF
  703. }
  704. b := dAtA[iNdEx]
  705. iNdEx++
  706. stringLen |= (uint64(b) & 0x7F) << shift
  707. if b < 0x80 {
  708. break
  709. }
  710. }
  711. intStringLen := int(stringLen)
  712. if intStringLen < 0 {
  713. return ErrInvalidLengthSearch
  714. }
  715. postIndex := iNdEx + intStringLen
  716. if postIndex > l {
  717. return io.ErrUnexpectedEOF
  718. }
  719. s := string(dAtA[iNdEx:postIndex])
  720. m.Remarks = &s
  721. iNdEx = postIndex
  722. default:
  723. iNdEx = preIndex
  724. skippy, err := skipSearch(dAtA[iNdEx:])
  725. if err != nil {
  726. return err
  727. }
  728. if skippy < 0 {
  729. return ErrInvalidLengthSearch
  730. }
  731. if (iNdEx + skippy) > l {
  732. return io.ErrUnexpectedEOF
  733. }
  734. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  735. iNdEx += skippy
  736. }
  737. }
  738. if hasFields[0]&uint64(0x00000001) == 0 {
  739. return github_com_gogo_protobuf_proto.NewRequiredNotSetError("id")
  740. }
  741. if hasFields[0]&uint64(0x00000002) == 0 {
  742. return github_com_gogo_protobuf_proto.NewRequiredNotSetError("source_type")
  743. }
  744. if hasFields[0]&uint64(0x00000004) == 0 {
  745. return github_com_gogo_protobuf_proto.NewRequiredNotSetError("content")
  746. }
  747. if hasFields[0]&uint64(0x00000008) == 0 {
  748. return github_com_gogo_protobuf_proto.NewRequiredNotSetError("trackid")
  749. }
  750. if iNdEx > l {
  751. return io.ErrUnexpectedEOF
  752. }
  753. return nil
  754. }
  755. func (m *TagboxResponse) Unmarshal(dAtA []byte) error {
  756. var hasFields [1]uint64
  757. l := len(dAtA)
  758. iNdEx := 0
  759. for iNdEx < l {
  760. preIndex := iNdEx
  761. var wire uint64
  762. for shift := uint(0); ; shift += 7 {
  763. if shift >= 64 {
  764. return ErrIntOverflowSearch
  765. }
  766. if iNdEx >= l {
  767. return io.ErrUnexpectedEOF
  768. }
  769. b := dAtA[iNdEx]
  770. iNdEx++
  771. wire |= (uint64(b) & 0x7F) << shift
  772. if b < 0x80 {
  773. break
  774. }
  775. }
  776. fieldNum := int32(wire >> 3)
  777. wireType := int(wire & 0x7)
  778. if wireType == 4 {
  779. return fmt.Errorf("proto: TagboxResponse: wiretype end group for non-group")
  780. }
  781. if fieldNum <= 0 {
  782. return fmt.Errorf("proto: TagboxResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  783. }
  784. switch fieldNum {
  785. case 1:
  786. if wireType != 0 {
  787. return fmt.Errorf("proto: wrong wireType = %d for field ExecCode", wireType)
  788. }
  789. var v int32
  790. for shift := uint(0); ; shift += 7 {
  791. if shift >= 64 {
  792. return ErrIntOverflowSearch
  793. }
  794. if iNdEx >= l {
  795. return io.ErrUnexpectedEOF
  796. }
  797. b := dAtA[iNdEx]
  798. iNdEx++
  799. v |= (int32(b) & 0x7F) << shift
  800. if b < 0x80 {
  801. break
  802. }
  803. }
  804. m.ExecCode = &v
  805. hasFields[0] |= uint64(0x00000001)
  806. case 2:
  807. if wireType != 0 {
  808. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  809. }
  810. var v int32
  811. for shift := uint(0); ; shift += 7 {
  812. if shift >= 64 {
  813. return ErrIntOverflowSearch
  814. }
  815. if iNdEx >= l {
  816. return io.ErrUnexpectedEOF
  817. }
  818. b := dAtA[iNdEx]
  819. iNdEx++
  820. v |= (int32(b) & 0x7F) << shift
  821. if b < 0x80 {
  822. break
  823. }
  824. }
  825. m.Id = &v
  826. hasFields[0] |= uint64(0x00000002)
  827. case 3:
  828. if wireType != 2 {
  829. return fmt.Errorf("proto: wrong wireType = %d for field Keywords", wireType)
  830. }
  831. var stringLen uint64
  832. for shift := uint(0); ; shift += 7 {
  833. if shift >= 64 {
  834. return ErrIntOverflowSearch
  835. }
  836. if iNdEx >= l {
  837. return io.ErrUnexpectedEOF
  838. }
  839. b := dAtA[iNdEx]
  840. iNdEx++
  841. stringLen |= (uint64(b) & 0x7F) << shift
  842. if b < 0x80 {
  843. break
  844. }
  845. }
  846. intStringLen := int(stringLen)
  847. if intStringLen < 0 {
  848. return ErrInvalidLengthSearch
  849. }
  850. postIndex := iNdEx + intStringLen
  851. if postIndex > l {
  852. return io.ErrUnexpectedEOF
  853. }
  854. m.Keywords = append(m.Keywords, string(dAtA[iNdEx:postIndex]))
  855. iNdEx = postIndex
  856. default:
  857. iNdEx = preIndex
  858. skippy, err := skipSearch(dAtA[iNdEx:])
  859. if err != nil {
  860. return err
  861. }
  862. if skippy < 0 {
  863. return ErrInvalidLengthSearch
  864. }
  865. if (iNdEx + skippy) > l {
  866. return io.ErrUnexpectedEOF
  867. }
  868. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  869. iNdEx += skippy
  870. }
  871. }
  872. if hasFields[0]&uint64(0x00000001) == 0 {
  873. return github_com_gogo_protobuf_proto.NewRequiredNotSetError("exec_code")
  874. }
  875. if hasFields[0]&uint64(0x00000002) == 0 {
  876. return github_com_gogo_protobuf_proto.NewRequiredNotSetError("id")
  877. }
  878. if iNdEx > l {
  879. return io.ErrUnexpectedEOF
  880. }
  881. return nil
  882. }
  883. func skipSearch(dAtA []byte) (n int, err error) {
  884. l := len(dAtA)
  885. iNdEx := 0
  886. for iNdEx < l {
  887. var wire uint64
  888. for shift := uint(0); ; shift += 7 {
  889. if shift >= 64 {
  890. return 0, ErrIntOverflowSearch
  891. }
  892. if iNdEx >= l {
  893. return 0, io.ErrUnexpectedEOF
  894. }
  895. b := dAtA[iNdEx]
  896. iNdEx++
  897. wire |= (uint64(b) & 0x7F) << shift
  898. if b < 0x80 {
  899. break
  900. }
  901. }
  902. wireType := int(wire & 0x7)
  903. switch wireType {
  904. case 0:
  905. for shift := uint(0); ; shift += 7 {
  906. if shift >= 64 {
  907. return 0, ErrIntOverflowSearch
  908. }
  909. if iNdEx >= l {
  910. return 0, io.ErrUnexpectedEOF
  911. }
  912. iNdEx++
  913. if dAtA[iNdEx-1] < 0x80 {
  914. break
  915. }
  916. }
  917. return iNdEx, nil
  918. case 1:
  919. iNdEx += 8
  920. return iNdEx, nil
  921. case 2:
  922. var length int
  923. for shift := uint(0); ; shift += 7 {
  924. if shift >= 64 {
  925. return 0, ErrIntOverflowSearch
  926. }
  927. if iNdEx >= l {
  928. return 0, io.ErrUnexpectedEOF
  929. }
  930. b := dAtA[iNdEx]
  931. iNdEx++
  932. length |= (int(b) & 0x7F) << shift
  933. if b < 0x80 {
  934. break
  935. }
  936. }
  937. iNdEx += length
  938. if length < 0 {
  939. return 0, ErrInvalidLengthSearch
  940. }
  941. return iNdEx, nil
  942. case 3:
  943. for {
  944. var innerWire uint64
  945. var start int = iNdEx
  946. for shift := uint(0); ; shift += 7 {
  947. if shift >= 64 {
  948. return 0, ErrIntOverflowSearch
  949. }
  950. if iNdEx >= l {
  951. return 0, io.ErrUnexpectedEOF
  952. }
  953. b := dAtA[iNdEx]
  954. iNdEx++
  955. innerWire |= (uint64(b) & 0x7F) << shift
  956. if b < 0x80 {
  957. break
  958. }
  959. }
  960. innerWireType := int(innerWire & 0x7)
  961. if innerWireType == 4 {
  962. break
  963. }
  964. next, err := skipSearch(dAtA[start:])
  965. if err != nil {
  966. return 0, err
  967. }
  968. iNdEx = start + next
  969. }
  970. return iNdEx, nil
  971. case 4:
  972. return iNdEx, nil
  973. case 5:
  974. iNdEx += 4
  975. return iNdEx, nil
  976. default:
  977. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  978. }
  979. }
  980. panic("unreachable")
  981. }
  982. var (
  983. ErrInvalidLengthSearch = fmt.Errorf("proto: negative length found during unmarshaling")
  984. ErrIntOverflowSearch = fmt.Errorf("proto: integer overflow")
  985. )
  986. func init() {
  987. proto.RegisterFile("app/interface/openplatform/article/model/search/search.proto", fileDescriptor_search_9ed78b60a98ab426)
  988. }
  989. var fileDescriptor_search_9ed78b60a98ab426 = []byte{
  990. // 346 bytes of a gzipped FileDescriptorProto
  991. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0xc1, 0x4a, 0xc3, 0x30,
  992. 0x18, 0xc7, 0x49, 0xe7, 0xd8, 0x1a, 0xd9, 0x06, 0x3d, 0x48, 0x98, 0x30, 0xcb, 0x40, 0xe9, 0xa9,
  993. 0x05, 0x8f, 0xe2, 0x65, 0x96, 0x1d, 0x04, 0x41, 0xc8, 0x26, 0xe8, 0x69, 0x64, 0xe9, 0xb7, 0x19,
  994. 0xd6, 0x36, 0x31, 0xc9, 0x74, 0xbb, 0xf9, 0x04, 0x3e, 0x97, 0x47, 0x1f, 0x41, 0xf6, 0x24, 0xd2,
  995. 0xae, 0x1d, 0x08, 0x82, 0xa7, 0xf2, 0xff, 0x7e, 0xe5, 0xfb, 0xff, 0xf2, 0xe1, 0x6b, 0xa6, 0x54,
  996. 0x24, 0x72, 0x0b, 0x7a, 0xc1, 0x38, 0x44, 0x52, 0x41, 0xae, 0x52, 0x66, 0x17, 0x52, 0x67, 0x11,
  997. 0xd3, 0x56, 0xf0, 0x14, 0xa2, 0x4c, 0x26, 0x90, 0x46, 0x06, 0x98, 0xe6, 0xcf, 0xd5, 0x27, 0x54,
  998. 0x5a, 0x5a, 0xe9, 0x9d, 0xcc, 0x45, 0x2a, 0xc2, 0x6a, 0xa4, 0x15, 0x0f, 0x2d, 0x5b, 0xce, 0xe5,
  999. 0x66, 0x38, 0xc2, 0xbd, 0x89, 0x5c, 0x6b, 0x0e, 0xd3, 0xad, 0x82, 0x58, 0xe6, 0xc6, 0x7a, 0x21,
  1000. 0xee, 0x4e, 0xee, 0x1f, 0x68, 0x3c, 0x9e, 0x8d, 0xe8, 0xf4, 0x36, 0xbe, 0x1b, 0x13, 0xe4, 0xa3,
  1001. 0xc0, 0xbd, 0x6a, 0x55, 0x2d, 0xb4, 0xb3, 0xc7, 0x15, 0x1d, 0x7e, 0x20, 0xdc, 0x99, 0x96, 0xdb,
  1002. 0x28, 0xbc, 0xac, 0xc1, 0x58, 0xaf, 0x8b, 0x1d, 0x91, 0x10, 0xe4, 0x3b, 0x41, 0x93, 0x3a, 0x22,
  1003. 0xf1, 0xce, 0xf0, 0xb1, 0x29, 0x4b, 0x66, 0x76, 0xab, 0x80, 0x38, 0xbe, 0x13, 0xb8, 0x14, 0x9b,
  1004. 0x43, 0xaf, 0x47, 0x70, 0x8b, 0xcb, 0xdc, 0x42, 0x6e, 0x49, 0xa3, 0x84, 0x75, 0x2c, 0x88, 0xd5,
  1005. 0x8c, 0xaf, 0x44, 0x42, 0x8e, 0xca, 0x7d, 0x75, 0x2c, 0x88, 0x86, 0x8c, 0xe9, 0x95, 0x21, 0xcd,
  1006. 0xc2, 0x8f, 0xd6, 0x71, 0xf8, 0x84, 0xbb, 0xb5, 0x8f, 0x51, 0x32, 0x37, 0xe0, 0x9d, 0x62, 0x17,
  1007. 0x36, 0xc0, 0x67, 0x5c, 0x26, 0x50, 0x79, 0xb5, 0x8b, 0x41, 0x2c, 0x13, 0xa8, 0x6c, 0x9d, 0x83,
  1008. 0x6d, 0x1f, 0xb7, 0x57, 0xb0, 0x7d, 0x93, 0x3a, 0x31, 0xa4, 0xe1, 0x37, 0x02, 0x97, 0x1e, 0xf2,
  1009. 0xa5, 0xa8, 0x9f, 0x3a, 0x01, 0xfd, 0x2a, 0x38, 0x78, 0x8f, 0xb8, 0x65, 0x60, 0x99, 0x15, 0xaa,
  1010. 0xe7, 0xe1, 0xdf, 0x37, 0x0e, 0x7f, 0x1d, 0xa7, 0x7f, 0xf1, 0xdf, 0x6f, 0x7b, 0xe7, 0x9b, 0xde,
  1011. 0xe7, 0x6e, 0x80, 0xbe, 0x76, 0x03, 0xf4, 0xbd, 0x1b, 0xa0, 0x77, 0x84, 0x7e, 0x02, 0x00, 0x00,
  1012. 0xff, 0xff, 0x75, 0x09, 0x1d, 0x22, 0x01, 0x02, 0x00, 0x00,
  1013. }