check.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1-devel
  4. // protoc v3.21.8
  5. // source: check.proto
  6. package check
  7. import (
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. emptypb "google.golang.org/protobuf/types/known/emptypb"
  12. reflect "reflect"
  13. sync "sync"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type CheckTextHttpRequest struct {
  22. state protoimpl.MessageState
  23. sizeCache protoimpl.SizeCache
  24. unknownFields protoimpl.UnknownFields
  25. Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content"` // 内容 (文本)
  26. }
  27. func (x *CheckTextHttpRequest) Reset() {
  28. *x = CheckTextHttpRequest{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_check_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *CheckTextHttpRequest) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*CheckTextHttpRequest) ProtoMessage() {}
  39. func (x *CheckTextHttpRequest) ProtoReflect() protoreflect.Message {
  40. mi := &file_check_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use CheckTextHttpRequest.ProtoReflect.Descriptor instead.
  51. func (*CheckTextHttpRequest) Descriptor() ([]byte, []int) {
  52. return file_check_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *CheckTextHttpRequest) GetContent() string {
  55. if x != nil {
  56. return x.Content
  57. }
  58. return ""
  59. }
  60. type CheckRequest struct {
  61. state protoimpl.MessageState
  62. sizeCache protoimpl.SizeCache
  63. unknownFields protoimpl.UnknownFields
  64. Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content"` // 内容 (url或者文本)
  65. Level int64 `protobuf:"varint,2,opt,name=level,proto3" json:"level"` // 审核的等级 (0是最高级)
  66. OpenId string `protobuf:"bytes,3,opt,name=openId,proto3" json:"openId"`
  67. AppId string `protobuf:"bytes,4,opt,name=appId,proto3" json:"appId"`
  68. IsMiniProgram bool `protobuf:"varint,5,opt,name=isMiniProgram,proto3" json:"isMiniProgram"` // 是否是小程序用户
  69. }
  70. func (x *CheckRequest) Reset() {
  71. *x = CheckRequest{}
  72. if protoimpl.UnsafeEnabled {
  73. mi := &file_check_proto_msgTypes[1]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. }
  78. func (x *CheckRequest) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*CheckRequest) ProtoMessage() {}
  82. func (x *CheckRequest) ProtoReflect() protoreflect.Message {
  83. mi := &file_check_proto_msgTypes[1]
  84. if protoimpl.UnsafeEnabled && x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
  94. func (*CheckRequest) Descriptor() ([]byte, []int) {
  95. return file_check_proto_rawDescGZIP(), []int{1}
  96. }
  97. func (x *CheckRequest) GetContent() string {
  98. if x != nil {
  99. return x.Content
  100. }
  101. return ""
  102. }
  103. func (x *CheckRequest) GetLevel() int64 {
  104. if x != nil {
  105. return x.Level
  106. }
  107. return 0
  108. }
  109. func (x *CheckRequest) GetOpenId() string {
  110. if x != nil {
  111. return x.OpenId
  112. }
  113. return ""
  114. }
  115. func (x *CheckRequest) GetAppId() string {
  116. if x != nil {
  117. return x.AppId
  118. }
  119. return ""
  120. }
  121. func (x *CheckRequest) GetIsMiniProgram() bool {
  122. if x != nil {
  123. return x.IsMiniProgram
  124. }
  125. return false
  126. }
  127. type CheckReply struct {
  128. state protoimpl.MessageState
  129. sizeCache protoimpl.SizeCache
  130. unknownFields protoimpl.UnknownFields
  131. IsUnPass bool `protobuf:"varint,1,opt,name=isUnPass,proto3" json:"isUnPass"`
  132. }
  133. func (x *CheckReply) Reset() {
  134. *x = CheckReply{}
  135. if protoimpl.UnsafeEnabled {
  136. mi := &file_check_proto_msgTypes[2]
  137. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  138. ms.StoreMessageInfo(mi)
  139. }
  140. }
  141. func (x *CheckReply) String() string {
  142. return protoimpl.X.MessageStringOf(x)
  143. }
  144. func (*CheckReply) ProtoMessage() {}
  145. func (x *CheckReply) ProtoReflect() protoreflect.Message {
  146. mi := &file_check_proto_msgTypes[2]
  147. if protoimpl.UnsafeEnabled && x != nil {
  148. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  149. if ms.LoadMessageInfo() == nil {
  150. ms.StoreMessageInfo(mi)
  151. }
  152. return ms
  153. }
  154. return mi.MessageOf(x)
  155. }
  156. // Deprecated: Use CheckReply.ProtoReflect.Descriptor instead.
  157. func (*CheckReply) Descriptor() ([]byte, []int) {
  158. return file_check_proto_rawDescGZIP(), []int{2}
  159. }
  160. func (x *CheckReply) GetIsUnPass() bool {
  161. if x != nil {
  162. return x.IsUnPass
  163. }
  164. return false
  165. }
  166. var File_check_proto protoreflect.FileDescriptor
  167. var file_check_proto_rawDesc = []byte{
  168. 0x0a, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x61,
  169. 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  170. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  171. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
  172. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72,
  173. 0x6f, 0x74, 0x6f, 0x22, 0x30, 0x0a, 0x14, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74,
  174. 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63,
  175. 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,
  176. 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x92, 0x01, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,
  177. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  178. 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  179. 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  180. 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64,
  181. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x14,
  182. 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61,
  183. 0x70, 0x70, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x73, 0x4d, 0x69, 0x6e, 0x69, 0x50, 0x72,
  184. 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x4d,
  185. 0x69, 0x6e, 0x69, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x22, 0x28, 0x0a, 0x0a, 0x43, 0x68,
  186. 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x55, 0x6e,
  187. 0x50, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x55, 0x6e,
  188. 0x50, 0x61, 0x73, 0x73, 0x32, 0xbc, 0x03, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x3d,
  189. 0x0a, 0x09, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74, 0x12, 0x17, 0x2e, 0x61, 0x70,
  190. 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71,
  191. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b,
  192. 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x40, 0x0a,
  193. 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x17, 0x2e,
  194. 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,
  195. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65,
  196. 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12,
  197. 0x3e, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x17, 0x2e,
  198. 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52,
  199. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65,
  200. 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12,
  201. 0x49, 0x0a, 0x15, 0x43, 0x72, 0x6f, 0x6e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x42, 0x61,
  202. 0x69, 0x64, 0x75, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  203. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
  204. 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  205. 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0e, 0x43, 0x68,
  206. 0x65, 0x63, 0x6b, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x56, 0x32, 0x12, 0x17, 0x2e, 0x61,
  207. 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,
  208. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63,
  209. 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x63,
  210. 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74, 0x48, 0x74, 0x74, 0x70, 0x12,
  211. 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65, 0x63,
  212. 0x6b, 0x54, 0x65, 0x78, 0x74, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  213. 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2e, 0x43, 0x68, 0x65,
  214. 0x63, 0x6b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x22,
  215. 0x0f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2f, 0x74, 0x65, 0x78, 0x74,
  216. 0x3a, 0x01, 0x2a, 0x42, 0x40, 0x0a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b,
  217. 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63,
  218. 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f,
  219. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x3b,
  220. 0x63, 0x68, 0x65, 0x63, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  221. }
  222. var (
  223. file_check_proto_rawDescOnce sync.Once
  224. file_check_proto_rawDescData = file_check_proto_rawDesc
  225. )
  226. func file_check_proto_rawDescGZIP() []byte {
  227. file_check_proto_rawDescOnce.Do(func() {
  228. file_check_proto_rawDescData = protoimpl.X.CompressGZIP(file_check_proto_rawDescData)
  229. })
  230. return file_check_proto_rawDescData
  231. }
  232. var file_check_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  233. var file_check_proto_goTypes = []interface{}{
  234. (*CheckTextHttpRequest)(nil), // 0: api.check.CheckTextHttpRequest
  235. (*CheckRequest)(nil), // 1: api.check.CheckRequest
  236. (*CheckReply)(nil), // 2: api.check.CheckReply
  237. (*emptypb.Empty)(nil), // 3: google.protobuf.Empty
  238. }
  239. var file_check_proto_depIdxs = []int32{
  240. 1, // 0: api.check.Check.CheckText:input_type -> api.check.CheckRequest
  241. 1, // 1: api.check.Check.CheckPicture:input_type -> api.check.CheckRequest
  242. 1, // 2: api.check.Check.CheckVoice:input_type -> api.check.CheckRequest
  243. 3, // 3: api.check.Check.CronRefreshBaiduToken:input_type -> google.protobuf.Empty
  244. 1, // 4: api.check.Check.CheckPictureV2:input_type -> api.check.CheckRequest
  245. 0, // 5: api.check.Check.CheckTextHttp:input_type -> api.check.CheckTextHttpRequest
  246. 2, // 6: api.check.Check.CheckText:output_type -> api.check.CheckReply
  247. 2, // 7: api.check.Check.CheckPicture:output_type -> api.check.CheckReply
  248. 2, // 8: api.check.Check.CheckVoice:output_type -> api.check.CheckReply
  249. 3, // 9: api.check.Check.CronRefreshBaiduToken:output_type -> google.protobuf.Empty
  250. 2, // 10: api.check.Check.CheckPictureV2:output_type -> api.check.CheckReply
  251. 2, // 11: api.check.Check.CheckTextHttp:output_type -> api.check.CheckReply
  252. 6, // [6:12] is the sub-list for method output_type
  253. 0, // [0:6] is the sub-list for method input_type
  254. 0, // [0:0] is the sub-list for extension type_name
  255. 0, // [0:0] is the sub-list for extension extendee
  256. 0, // [0:0] is the sub-list for field type_name
  257. }
  258. func init() { file_check_proto_init() }
  259. func file_check_proto_init() {
  260. if File_check_proto != nil {
  261. return
  262. }
  263. if !protoimpl.UnsafeEnabled {
  264. file_check_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  265. switch v := v.(*CheckTextHttpRequest); i {
  266. case 0:
  267. return &v.state
  268. case 1:
  269. return &v.sizeCache
  270. case 2:
  271. return &v.unknownFields
  272. default:
  273. return nil
  274. }
  275. }
  276. file_check_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  277. switch v := v.(*CheckRequest); i {
  278. case 0:
  279. return &v.state
  280. case 1:
  281. return &v.sizeCache
  282. case 2:
  283. return &v.unknownFields
  284. default:
  285. return nil
  286. }
  287. }
  288. file_check_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  289. switch v := v.(*CheckReply); i {
  290. case 0:
  291. return &v.state
  292. case 1:
  293. return &v.sizeCache
  294. case 2:
  295. return &v.unknownFields
  296. default:
  297. return nil
  298. }
  299. }
  300. }
  301. type x struct{}
  302. out := protoimpl.TypeBuilder{
  303. File: protoimpl.DescBuilder{
  304. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  305. RawDescriptor: file_check_proto_rawDesc,
  306. NumEnums: 0,
  307. NumMessages: 3,
  308. NumExtensions: 0,
  309. NumServices: 1,
  310. },
  311. GoTypes: file_check_proto_goTypes,
  312. DependencyIndexes: file_check_proto_depIdxs,
  313. MessageInfos: file_check_proto_msgTypes,
  314. }.Build()
  315. File_check_proto = out.File
  316. file_check_proto_rawDesc = nil
  317. file_check_proto_goTypes = nil
  318. file_check_proto_depIdxs = nil
  319. }