sensitive_words.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.12.0
  5. // source: sensitive_words.proto
  6. package proto_grpc
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type CorpusType int32
  20. const (
  21. CorpusType_ALL CorpusType = 0
  22. CorpusType_BUYER CorpusType = 1
  23. CorpusType_AGENCY CorpusType = 2
  24. CorpusType_WINNER CorpusType = 3
  25. )
  26. // Enum value maps for CorpusType.
  27. var (
  28. CorpusType_name = map[int32]string{
  29. 0: "ALL",
  30. 1: "BUYER",
  31. 2: "AGENCY",
  32. 3: "WINNER",
  33. }
  34. CorpusType_value = map[string]int32{
  35. "ALL": 0,
  36. "BUYER": 1,
  37. "AGENCY": 2,
  38. "WINNER": 3,
  39. }
  40. )
  41. func (x CorpusType) Enum() *CorpusType {
  42. p := new(CorpusType)
  43. *p = x
  44. return p
  45. }
  46. func (x CorpusType) String() string {
  47. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  48. }
  49. func (CorpusType) Descriptor() protoreflect.EnumDescriptor {
  50. return file_sensitive_words_proto_enumTypes[0].Descriptor()
  51. }
  52. func (CorpusType) Type() protoreflect.EnumType {
  53. return &file_sensitive_words_proto_enumTypes[0]
  54. }
  55. func (x CorpusType) Number() protoreflect.EnumNumber {
  56. return protoreflect.EnumNumber(x)
  57. }
  58. // Deprecated: Use CorpusType.Descriptor instead.
  59. func (CorpusType) EnumDescriptor() ([]byte, []int) {
  60. return file_sensitive_words_proto_rawDescGZIP(), []int{0}
  61. }
  62. type Request struct {
  63. state protoimpl.MessageState
  64. sizeCache protoimpl.SizeCache
  65. unknownFields protoimpl.UnknownFields
  66. Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
  67. Corpus CorpusType `protobuf:"varint,2,opt,name=corpus,proto3,enum=proto_grpc.CorpusType" json:"corpus,omitempty"`
  68. }
  69. func (x *Request) Reset() {
  70. *x = Request{}
  71. if protoimpl.UnsafeEnabled {
  72. mi := &file_sensitive_words_proto_msgTypes[0]
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. ms.StoreMessageInfo(mi)
  75. }
  76. }
  77. func (x *Request) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*Request) ProtoMessage() {}
  81. func (x *Request) ProtoReflect() protoreflect.Message {
  82. mi := &file_sensitive_words_proto_msgTypes[0]
  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 Request.ProtoReflect.Descriptor instead.
  93. func (*Request) Descriptor() ([]byte, []int) {
  94. return file_sensitive_words_proto_rawDescGZIP(), []int{0}
  95. }
  96. func (x *Request) GetText() string {
  97. if x != nil {
  98. return x.Text
  99. }
  100. return ""
  101. }
  102. func (x *Request) GetCorpus() CorpusType {
  103. if x != nil {
  104. return x.Corpus
  105. }
  106. return CorpusType_ALL
  107. }
  108. type ResultSensitiveWords struct {
  109. state protoimpl.MessageState
  110. sizeCache protoimpl.SizeCache
  111. unknownFields protoimpl.UnknownFields
  112. SensitiveWords string `protobuf:"bytes,1,opt,name=SensitiveWords,proto3" json:"SensitiveWords,omitempty"`
  113. }
  114. func (x *ResultSensitiveWords) Reset() {
  115. *x = ResultSensitiveWords{}
  116. if protoimpl.UnsafeEnabled {
  117. mi := &file_sensitive_words_proto_msgTypes[1]
  118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  119. ms.StoreMessageInfo(mi)
  120. }
  121. }
  122. func (x *ResultSensitiveWords) String() string {
  123. return protoimpl.X.MessageStringOf(x)
  124. }
  125. func (*ResultSensitiveWords) ProtoMessage() {}
  126. func (x *ResultSensitiveWords) ProtoReflect() protoreflect.Message {
  127. mi := &file_sensitive_words_proto_msgTypes[1]
  128. if protoimpl.UnsafeEnabled && x != nil {
  129. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  130. if ms.LoadMessageInfo() == nil {
  131. ms.StoreMessageInfo(mi)
  132. }
  133. return ms
  134. }
  135. return mi.MessageOf(x)
  136. }
  137. // Deprecated: Use ResultSensitiveWords.ProtoReflect.Descriptor instead.
  138. func (*ResultSensitiveWords) Descriptor() ([]byte, []int) {
  139. return file_sensitive_words_proto_rawDescGZIP(), []int{1}
  140. }
  141. func (x *ResultSensitiveWords) GetSensitiveWords() string {
  142. if x != nil {
  143. return x.SensitiveWords
  144. }
  145. return ""
  146. }
  147. type NumberOfRegistrations struct {
  148. state protoimpl.MessageState
  149. sizeCache protoimpl.SizeCache
  150. unknownFields protoimpl.UnknownFields
  151. Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
  152. }
  153. func (x *NumberOfRegistrations) Reset() {
  154. *x = NumberOfRegistrations{}
  155. if protoimpl.UnsafeEnabled {
  156. mi := &file_sensitive_words_proto_msgTypes[2]
  157. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  158. ms.StoreMessageInfo(mi)
  159. }
  160. }
  161. func (x *NumberOfRegistrations) String() string {
  162. return protoimpl.X.MessageStringOf(x)
  163. }
  164. func (*NumberOfRegistrations) ProtoMessage() {}
  165. func (x *NumberOfRegistrations) ProtoReflect() protoreflect.Message {
  166. mi := &file_sensitive_words_proto_msgTypes[2]
  167. if protoimpl.UnsafeEnabled && x != nil {
  168. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  169. if ms.LoadMessageInfo() == nil {
  170. ms.StoreMessageInfo(mi)
  171. }
  172. return ms
  173. }
  174. return mi.MessageOf(x)
  175. }
  176. // Deprecated: Use NumberOfRegistrations.ProtoReflect.Descriptor instead.
  177. func (*NumberOfRegistrations) Descriptor() ([]byte, []int) {
  178. return file_sensitive_words_proto_rawDescGZIP(), []int{2}
  179. }
  180. func (x *NumberOfRegistrations) GetCount() uint32 {
  181. if x != nil {
  182. return x.Count
  183. }
  184. return 0
  185. }
  186. type RequestComplete struct {
  187. state protoimpl.MessageState
  188. sizeCache protoimpl.SizeCache
  189. unknownFields protoimpl.UnknownFields
  190. Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
  191. }
  192. func (x *RequestComplete) Reset() {
  193. *x = RequestComplete{}
  194. if protoimpl.UnsafeEnabled {
  195. mi := &file_sensitive_words_proto_msgTypes[3]
  196. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  197. ms.StoreMessageInfo(mi)
  198. }
  199. }
  200. func (x *RequestComplete) String() string {
  201. return protoimpl.X.MessageStringOf(x)
  202. }
  203. func (*RequestComplete) ProtoMessage() {}
  204. func (x *RequestComplete) ProtoReflect() protoreflect.Message {
  205. mi := &file_sensitive_words_proto_msgTypes[3]
  206. if protoimpl.UnsafeEnabled && x != nil {
  207. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  208. if ms.LoadMessageInfo() == nil {
  209. ms.StoreMessageInfo(mi)
  210. }
  211. return ms
  212. }
  213. return mi.MessageOf(x)
  214. }
  215. // Deprecated: Use RequestComplete.ProtoReflect.Descriptor instead.
  216. func (*RequestComplete) Descriptor() ([]byte, []int) {
  217. return file_sensitive_words_proto_rawDescGZIP(), []int{3}
  218. }
  219. func (x *RequestComplete) GetText() string {
  220. if x != nil {
  221. return x.Text
  222. }
  223. return ""
  224. }
  225. var File_sensitive_words_proto protoreflect.FileDescriptor
  226. var file_sensitive_words_proto_rawDesc = []byte{
  227. 0x0a, 0x15, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x64,
  228. 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67,
  229. 0x72, 0x70, 0x63, 0x22, 0x4d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12,
  230. 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65,
  231. 0x78, 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x63, 0x6f, 0x72, 0x70, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01,
  232. 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2e,
  233. 0x43, 0x6f, 0x72, 0x70, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x72, 0x70,
  234. 0x75, 0x73, 0x22, 0x3e, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x6e, 0x73,
  235. 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x53, 0x65,
  236. 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01,
  237. 0x28, 0x09, 0x52, 0x0e, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72,
  238. 0x64, 0x73, 0x22, 0x2d, 0x0a, 0x15, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x52, 0x65,
  239. 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63,
  240. 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e,
  241. 0x74, 0x22, 0x25, 0x0a, 0x0f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70,
  242. 0x6c, 0x65, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01,
  243. 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x2a, 0x38, 0x0a, 0x0a, 0x43, 0x6f, 0x72, 0x70,
  244. 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12,
  245. 0x09, 0x0a, 0x05, 0x42, 0x55, 0x59, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x47,
  246. 0x45, 0x4e, 0x43, 0x59, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x57, 0x49, 0x4e, 0x4e, 0x45, 0x52,
  247. 0x10, 0x03, 0x32, 0xa1, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65,
  248. 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12,
  249. 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71,
  250. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67, 0x72, 0x70,
  251. 0x63, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76,
  252. 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x4e, 0x0a, 0x0c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
  253. 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67,
  254. 0x72, 0x70, 0x63, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x52, 0x65, 0x67, 0x69,
  255. 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  256. 0x6f, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f,
  257. 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f,
  258. 0x67, 0x72, 0x70, 0x63, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  259. }
  260. var (
  261. file_sensitive_words_proto_rawDescOnce sync.Once
  262. file_sensitive_words_proto_rawDescData = file_sensitive_words_proto_rawDesc
  263. )
  264. func file_sensitive_words_proto_rawDescGZIP() []byte {
  265. file_sensitive_words_proto_rawDescOnce.Do(func() {
  266. file_sensitive_words_proto_rawDescData = protoimpl.X.CompressGZIP(file_sensitive_words_proto_rawDescData)
  267. })
  268. return file_sensitive_words_proto_rawDescData
  269. }
  270. var file_sensitive_words_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  271. var file_sensitive_words_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  272. var file_sensitive_words_proto_goTypes = []interface{}{
  273. (CorpusType)(0), // 0: proto_grpc.CorpusType
  274. (*Request)(nil), // 1: proto_grpc.Request
  275. (*ResultSensitiveWords)(nil), // 2: proto_grpc.ResultSensitiveWords
  276. (*NumberOfRegistrations)(nil), // 3: proto_grpc.NumberOfRegistrations
  277. (*RequestComplete)(nil), // 4: proto_grpc.RequestComplete
  278. }
  279. var file_sensitive_words_proto_depIdxs = []int32{
  280. 0, // 0: proto_grpc.Request.corpus:type_name -> proto_grpc.CorpusType
  281. 1, // 1: proto_grpc.SensitiveWords.Search:input_type -> proto_grpc.Request
  282. 3, // 2: proto_grpc.SensitiveWords.Registration:input_type -> proto_grpc.NumberOfRegistrations
  283. 2, // 3: proto_grpc.SensitiveWords.Search:output_type -> proto_grpc.ResultSensitiveWords
  284. 4, // 4: proto_grpc.SensitiveWords.Registration:output_type -> proto_grpc.RequestComplete
  285. 3, // [3:5] is the sub-list for method output_type
  286. 1, // [1:3] is the sub-list for method input_type
  287. 1, // [1:1] is the sub-list for extension type_name
  288. 1, // [1:1] is the sub-list for extension extendee
  289. 0, // [0:1] is the sub-list for field type_name
  290. }
  291. func init() { file_sensitive_words_proto_init() }
  292. func file_sensitive_words_proto_init() {
  293. if File_sensitive_words_proto != nil {
  294. return
  295. }
  296. if !protoimpl.UnsafeEnabled {
  297. file_sensitive_words_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  298. switch v := v.(*Request); i {
  299. case 0:
  300. return &v.state
  301. case 1:
  302. return &v.sizeCache
  303. case 2:
  304. return &v.unknownFields
  305. default:
  306. return nil
  307. }
  308. }
  309. file_sensitive_words_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  310. switch v := v.(*ResultSensitiveWords); i {
  311. case 0:
  312. return &v.state
  313. case 1:
  314. return &v.sizeCache
  315. case 2:
  316. return &v.unknownFields
  317. default:
  318. return nil
  319. }
  320. }
  321. file_sensitive_words_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  322. switch v := v.(*NumberOfRegistrations); i {
  323. case 0:
  324. return &v.state
  325. case 1:
  326. return &v.sizeCache
  327. case 2:
  328. return &v.unknownFields
  329. default:
  330. return nil
  331. }
  332. }
  333. file_sensitive_words_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  334. switch v := v.(*RequestComplete); i {
  335. case 0:
  336. return &v.state
  337. case 1:
  338. return &v.sizeCache
  339. case 2:
  340. return &v.unknownFields
  341. default:
  342. return nil
  343. }
  344. }
  345. }
  346. type x struct{}
  347. out := protoimpl.TypeBuilder{
  348. File: protoimpl.DescBuilder{
  349. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  350. RawDescriptor: file_sensitive_words_proto_rawDesc,
  351. NumEnums: 1,
  352. NumMessages: 4,
  353. NumExtensions: 0,
  354. NumServices: 1,
  355. },
  356. GoTypes: file_sensitive_words_proto_goTypes,
  357. DependencyIndexes: file_sensitive_words_proto_depIdxs,
  358. EnumInfos: file_sensitive_words_proto_enumTypes,
  359. MessageInfos: file_sensitive_words_proto_msgTypes,
  360. }.Build()
  361. File_sensitive_words_proto = out.File
  362. file_sensitive_words_proto_rawDesc = nil
  363. file_sensitive_words_proto_goTypes = nil
  364. file_sensitive_words_proto_depIdxs = nil
  365. }