exists_expert.pb.go 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.12.4
  5. // source: proto/exists_expert.proto
  6. // 标的物抽取
  7. package proto
  8. import (
  9. context "context"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. type ContentRequest struct {
  25. state protoimpl.MessageState
  26. sizeCache protoimpl.SizeCache
  27. unknownFields protoimpl.UnknownFields
  28. Contents string `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"` //json{"文档ID":detail} 如果公告为附件 {"文档ID":附件}
  29. }
  30. func (x *ContentRequest) Reset() {
  31. *x = ContentRequest{}
  32. if protoimpl.UnsafeEnabled {
  33. mi := &file_proto_exists_expert_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. }
  38. func (x *ContentRequest) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*ContentRequest) ProtoMessage() {}
  42. func (x *ContentRequest) ProtoReflect() protoreflect.Message {
  43. mi := &file_proto_exists_expert_proto_msgTypes[0]
  44. if protoimpl.UnsafeEnabled && x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use ContentRequest.ProtoReflect.Descriptor instead.
  54. func (*ContentRequest) Descriptor() ([]byte, []int) {
  55. return file_proto_exists_expert_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *ContentRequest) GetContents() string {
  58. if x != nil {
  59. return x.Contents
  60. }
  61. return ""
  62. }
  63. type ExpertResponse struct {
  64. state protoimpl.MessageState
  65. sizeCache protoimpl.SizeCache
  66. unknownFields protoimpl.UnknownFields
  67. Results string `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"` //json {'result': {文档id: [], 文档id: ['杜春节', '王颖', '陈永富', '左崴东', '赵红', '万荣祥', '顾炳中']}, 'status': 200}
  68. }
  69. func (x *ExpertResponse) Reset() {
  70. *x = ExpertResponse{}
  71. if protoimpl.UnsafeEnabled {
  72. mi := &file_proto_exists_expert_proto_msgTypes[1]
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. ms.StoreMessageInfo(mi)
  75. }
  76. }
  77. func (x *ExpertResponse) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*ExpertResponse) ProtoMessage() {}
  81. func (x *ExpertResponse) ProtoReflect() protoreflect.Message {
  82. mi := &file_proto_exists_expert_proto_msgTypes[1]
  83. if protoimpl.UnsafeEnabled && x != nil {
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. if ms.LoadMessageInfo() == nil {
  86. ms.StoreMessageInfo(mi)
  87. }
  88. return ms
  89. }
  90. return mi.MessageOf(x)
  91. }
  92. // Deprecated: Use ExpertResponse.ProtoReflect.Descriptor instead.
  93. func (*ExpertResponse) Descriptor() ([]byte, []int) {
  94. return file_proto_exists_expert_proto_rawDescGZIP(), []int{1}
  95. }
  96. func (x *ExpertResponse) GetResults() string {
  97. if x != nil {
  98. return x.Results
  99. }
  100. return ""
  101. }
  102. var File_proto_exists_expert_proto protoreflect.FileDescriptor
  103. var file_proto_exists_expert_proto_rawDesc = []byte{
  104. 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x5f, 0x65,
  105. 0x78, 0x70, 0x65, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f,
  106. 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71,
  107. 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73,
  108. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73,
  109. 0x22, 0x2a, 0x0a, 0x0e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  110. 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20,
  111. 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x32, 0x47, 0x0a, 0x0c,
  112. 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x45, 0x78, 0x70, 0x65, 0x72, 0x74, 0x12, 0x37, 0x0a, 0x07,
  113. 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  114. 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15,
  115. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73,
  116. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x08, 0x5a, 0x06, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  117. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  118. }
  119. var (
  120. file_proto_exists_expert_proto_rawDescOnce sync.Once
  121. file_proto_exists_expert_proto_rawDescData = file_proto_exists_expert_proto_rawDesc
  122. )
  123. func file_proto_exists_expert_proto_rawDescGZIP() []byte {
  124. file_proto_exists_expert_proto_rawDescOnce.Do(func() {
  125. file_proto_exists_expert_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_exists_expert_proto_rawDescData)
  126. })
  127. return file_proto_exists_expert_proto_rawDescData
  128. }
  129. var file_proto_exists_expert_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  130. var file_proto_exists_expert_proto_goTypes = []interface{}{
  131. (*ContentRequest)(nil), // 0: proto.ContentRequest
  132. (*ExpertResponse)(nil), // 1: proto.ExpertResponse
  133. }
  134. var file_proto_exists_expert_proto_depIdxs = []int32{
  135. 0, // 0: proto.ExistsExpert.extract:input_type -> proto.ContentRequest
  136. 1, // 1: proto.ExistsExpert.extract:output_type -> proto.ExpertResponse
  137. 1, // [1:2] is the sub-list for method output_type
  138. 0, // [0:1] is the sub-list for method input_type
  139. 0, // [0:0] is the sub-list for extension type_name
  140. 0, // [0:0] is the sub-list for extension extendee
  141. 0, // [0:0] is the sub-list for field type_name
  142. }
  143. func init() { file_proto_exists_expert_proto_init() }
  144. func file_proto_exists_expert_proto_init() {
  145. if File_proto_exists_expert_proto != nil {
  146. return
  147. }
  148. if !protoimpl.UnsafeEnabled {
  149. file_proto_exists_expert_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  150. switch v := v.(*ContentRequest); i {
  151. case 0:
  152. return &v.state
  153. case 1:
  154. return &v.sizeCache
  155. case 2:
  156. return &v.unknownFields
  157. default:
  158. return nil
  159. }
  160. }
  161. file_proto_exists_expert_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  162. switch v := v.(*ExpertResponse); i {
  163. case 0:
  164. return &v.state
  165. case 1:
  166. return &v.sizeCache
  167. case 2:
  168. return &v.unknownFields
  169. default:
  170. return nil
  171. }
  172. }
  173. }
  174. type x struct{}
  175. out := protoimpl.TypeBuilder{
  176. File: protoimpl.DescBuilder{
  177. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  178. RawDescriptor: file_proto_exists_expert_proto_rawDesc,
  179. NumEnums: 0,
  180. NumMessages: 2,
  181. NumExtensions: 0,
  182. NumServices: 1,
  183. },
  184. GoTypes: file_proto_exists_expert_proto_goTypes,
  185. DependencyIndexes: file_proto_exists_expert_proto_depIdxs,
  186. MessageInfos: file_proto_exists_expert_proto_msgTypes,
  187. }.Build()
  188. File_proto_exists_expert_proto = out.File
  189. file_proto_exists_expert_proto_rawDesc = nil
  190. file_proto_exists_expert_proto_goTypes = nil
  191. file_proto_exists_expert_proto_depIdxs = nil
  192. }
  193. // Reference imports to suppress errors if they are not otherwise used.
  194. var _ context.Context
  195. var _ grpc.ClientConnInterface
  196. // This is a compile-time assertion to ensure that this generated file
  197. // is compatible with the grpc package it is being compiled against.
  198. const _ = grpc.SupportPackageIsVersion6
  199. // ExistsExpertClient is the client API for ExistsExpert service.
  200. //
  201. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  202. type ExistsExpertClient interface {
  203. Extract(ctx context.Context, in *ContentRequest, opts ...grpc.CallOption) (*ExpertResponse, error)
  204. }
  205. type existsExpertClient struct {
  206. cc grpc.ClientConnInterface
  207. }
  208. func NewExistsExpertClient(cc grpc.ClientConnInterface) ExistsExpertClient {
  209. return &existsExpertClient{cc}
  210. }
  211. func (c *existsExpertClient) Extract(ctx context.Context, in *ContentRequest, opts ...grpc.CallOption) (*ExpertResponse, error) {
  212. out := new(ExpertResponse)
  213. err := c.cc.Invoke(ctx, "/proto.ExistsExpert/extract", in, out, opts...)
  214. if err != nil {
  215. return nil, err
  216. }
  217. return out, nil
  218. }
  219. // ExistsExpertServer is the server API for ExistsExpert service.
  220. type ExistsExpertServer interface {
  221. Extract(context.Context, *ContentRequest) (*ExpertResponse, error)
  222. }
  223. // UnimplementedExistsExpertServer can be embedded to have forward compatible implementations.
  224. type UnimplementedExistsExpertServer struct {
  225. }
  226. func (*UnimplementedExistsExpertServer) Extract(context.Context, *ContentRequest) (*ExpertResponse, error) {
  227. return nil, status.Errorf(codes.Unimplemented, "method Extract not implemented")
  228. }
  229. func RegisterExistsExpertServer(s *grpc.Server, srv ExistsExpertServer) {
  230. s.RegisterService(&_ExistsExpert_serviceDesc, srv)
  231. }
  232. func _ExistsExpert_Extract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  233. in := new(ContentRequest)
  234. if err := dec(in); err != nil {
  235. return nil, err
  236. }
  237. if interceptor == nil {
  238. return srv.(ExistsExpertServer).Extract(ctx, in)
  239. }
  240. info := &grpc.UnaryServerInfo{
  241. Server: srv,
  242. FullMethod: "/proto.ExistsExpert/Extract",
  243. }
  244. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  245. return srv.(ExistsExpertServer).Extract(ctx, req.(*ContentRequest))
  246. }
  247. return interceptor(ctx, in, info, handler)
  248. }
  249. var _ExistsExpert_serviceDesc = grpc.ServiceDesc{
  250. ServiceName: "proto.ExistsExpert",
  251. HandlerType: (*ExistsExpertServer)(nil),
  252. Methods: []grpc.MethodDesc{
  253. {
  254. MethodName: "extract",
  255. Handler: _ExistsExpert_Extract_Handler,
  256. },
  257. },
  258. Streams: []grpc.StreamDesc{},
  259. Metadata: "proto/exists_expert.proto",
  260. }