sensitive_words.pb.go 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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. var File_sensitive_words_proto protoreflect.FileDescriptor
  148. var file_sensitive_words_proto_rawDesc = []byte{
  149. 0x0a, 0x15, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x64,
  150. 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67,
  151. 0x72, 0x70, 0x63, 0x22, 0x4d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12,
  152. 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65,
  153. 0x78, 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x63, 0x6f, 0x72, 0x70, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01,
  154. 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2e,
  155. 0x43, 0x6f, 0x72, 0x70, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x72, 0x70,
  156. 0x75, 0x73, 0x22, 0x3e, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x6e, 0x73,
  157. 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x53, 0x65,
  158. 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01,
  159. 0x28, 0x09, 0x52, 0x0e, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72,
  160. 0x64, 0x73, 0x2a, 0x38, 0x0a, 0x0a, 0x43, 0x6f, 0x72, 0x70, 0x75, 0x73, 0x54, 0x79, 0x70, 0x65,
  161. 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x55, 0x59,
  162. 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x47, 0x45, 0x4e, 0x43, 0x59, 0x10, 0x02,
  163. 0x12, 0x0a, 0x0a, 0x06, 0x57, 0x49, 0x4e, 0x4e, 0x45, 0x52, 0x10, 0x03, 0x32, 0x51, 0x0a, 0x0e,
  164. 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x3f,
  165. 0x0a, 0x06, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  166. 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e,
  167. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c,
  168. 0x74, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x57, 0x6f, 0x72, 0x64, 0x73, 0x42,
  169. 0x0d, 0x5a, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x62, 0x06,
  170. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  171. }
  172. var (
  173. file_sensitive_words_proto_rawDescOnce sync.Once
  174. file_sensitive_words_proto_rawDescData = file_sensitive_words_proto_rawDesc
  175. )
  176. func file_sensitive_words_proto_rawDescGZIP() []byte {
  177. file_sensitive_words_proto_rawDescOnce.Do(func() {
  178. file_sensitive_words_proto_rawDescData = protoimpl.X.CompressGZIP(file_sensitive_words_proto_rawDescData)
  179. })
  180. return file_sensitive_words_proto_rawDescData
  181. }
  182. var file_sensitive_words_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  183. var file_sensitive_words_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  184. var file_sensitive_words_proto_goTypes = []interface{}{
  185. (CorpusType)(0), // 0: proto_grpc.CorpusType
  186. (*Request)(nil), // 1: proto_grpc.Request
  187. (*ResultSensitiveWords)(nil), // 2: proto_grpc.ResultSensitiveWords
  188. }
  189. var file_sensitive_words_proto_depIdxs = []int32{
  190. 0, // 0: proto_grpc.Request.corpus:type_name -> proto_grpc.CorpusType
  191. 1, // 1: proto_grpc.SensitiveWords.Search:input_type -> proto_grpc.Request
  192. 2, // 2: proto_grpc.SensitiveWords.Search:output_type -> proto_grpc.ResultSensitiveWords
  193. 2, // [2:3] is the sub-list for method output_type
  194. 1, // [1:2] is the sub-list for method input_type
  195. 1, // [1:1] is the sub-list for extension type_name
  196. 1, // [1:1] is the sub-list for extension extendee
  197. 0, // [0:1] is the sub-list for field type_name
  198. }
  199. func init() { file_sensitive_words_proto_init() }
  200. func file_sensitive_words_proto_init() {
  201. if File_sensitive_words_proto != nil {
  202. return
  203. }
  204. if !protoimpl.UnsafeEnabled {
  205. file_sensitive_words_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  206. switch v := v.(*Request); i {
  207. case 0:
  208. return &v.state
  209. case 1:
  210. return &v.sizeCache
  211. case 2:
  212. return &v.unknownFields
  213. default:
  214. return nil
  215. }
  216. }
  217. file_sensitive_words_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  218. switch v := v.(*ResultSensitiveWords); i {
  219. case 0:
  220. return &v.state
  221. case 1:
  222. return &v.sizeCache
  223. case 2:
  224. return &v.unknownFields
  225. default:
  226. return nil
  227. }
  228. }
  229. }
  230. type x struct{}
  231. out := protoimpl.TypeBuilder{
  232. File: protoimpl.DescBuilder{
  233. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  234. RawDescriptor: file_sensitive_words_proto_rawDesc,
  235. NumEnums: 1,
  236. NumMessages: 2,
  237. NumExtensions: 0,
  238. NumServices: 1,
  239. },
  240. GoTypes: file_sensitive_words_proto_goTypes,
  241. DependencyIndexes: file_sensitive_words_proto_depIdxs,
  242. EnumInfos: file_sensitive_words_proto_enumTypes,
  243. MessageInfos: file_sensitive_words_proto_msgTypes,
  244. }.Build()
  245. File_sensitive_words_proto = out.File
  246. file_sensitive_words_proto_rawDesc = nil
  247. file_sensitive_words_proto_goTypes = nil
  248. file_sensitive_words_proto_depIdxs = nil
  249. }