log.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: log.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package v1
  5. import (
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. math "math"
  9. )
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  19. type LogAddRequest struct {
  20. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  21. Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation"`
  22. Result int32 `protobuf:"varint,3,opt,name=result,proto3" json:"result"`
  23. Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail"`
  24. Type int32 `protobuf:"varint,5,opt,name=type,proto3" json:"type"`
  25. Username string `protobuf:"bytes,6,opt,name=username,proto3" json:"username"`
  26. ProjectId int64 `protobuf:"varint,7,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *LogAddRequest) Reset() { *m = LogAddRequest{} }
  32. func (m *LogAddRequest) String() string { return proto.CompactTextString(m) }
  33. func (*LogAddRequest) ProtoMessage() {}
  34. func (*LogAddRequest) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_a153da538f858886, []int{0}
  36. }
  37. func (m *LogAddRequest) XXX_Unmarshal(b []byte) error {
  38. return xxx_messageInfo_LogAddRequest.Unmarshal(m, b)
  39. }
  40. func (m *LogAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. return xxx_messageInfo_LogAddRequest.Marshal(b, m, deterministic)
  42. }
  43. func (m *LogAddRequest) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_LogAddRequest.Merge(m, src)
  45. }
  46. func (m *LogAddRequest) XXX_Size() int {
  47. return xxx_messageInfo_LogAddRequest.Size(m)
  48. }
  49. func (m *LogAddRequest) XXX_DiscardUnknown() {
  50. xxx_messageInfo_LogAddRequest.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_LogAddRequest proto.InternalMessageInfo
  53. func (m *LogAddRequest) GetUid() int64 {
  54. if m != nil {
  55. return m.Uid
  56. }
  57. return 0
  58. }
  59. func (m *LogAddRequest) GetOperation() string {
  60. if m != nil {
  61. return m.Operation
  62. }
  63. return ""
  64. }
  65. func (m *LogAddRequest) GetResult() int32 {
  66. if m != nil {
  67. return m.Result
  68. }
  69. return 0
  70. }
  71. func (m *LogAddRequest) GetDetail() string {
  72. if m != nil {
  73. return m.Detail
  74. }
  75. return ""
  76. }
  77. func (m *LogAddRequest) GetType() int32 {
  78. if m != nil {
  79. return m.Type
  80. }
  81. return 0
  82. }
  83. func (m *LogAddRequest) GetUsername() string {
  84. if m != nil {
  85. return m.Username
  86. }
  87. return ""
  88. }
  89. func (m *LogAddRequest) GetProjectId() int64 {
  90. if m != nil {
  91. return m.ProjectId
  92. }
  93. return 0
  94. }
  95. type LogAddReply struct {
  96. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  97. XXX_unrecognized []byte `json:"-"`
  98. XXX_sizecache int32 `json:"-"`
  99. }
  100. func (m *LogAddReply) Reset() { *m = LogAddReply{} }
  101. func (m *LogAddReply) String() string { return proto.CompactTextString(m) }
  102. func (*LogAddReply) ProtoMessage() {}
  103. func (*LogAddReply) Descriptor() ([]byte, []int) {
  104. return fileDescriptor_a153da538f858886, []int{1}
  105. }
  106. func (m *LogAddReply) XXX_Unmarshal(b []byte) error {
  107. return xxx_messageInfo_LogAddReply.Unmarshal(m, b)
  108. }
  109. func (m *LogAddReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  110. return xxx_messageInfo_LogAddReply.Marshal(b, m, deterministic)
  111. }
  112. func (m *LogAddReply) XXX_Merge(src proto.Message) {
  113. xxx_messageInfo_LogAddReply.Merge(m, src)
  114. }
  115. func (m *LogAddReply) XXX_Size() int {
  116. return xxx_messageInfo_LogAddReply.Size(m)
  117. }
  118. func (m *LogAddReply) XXX_DiscardUnknown() {
  119. xxx_messageInfo_LogAddReply.DiscardUnknown(m)
  120. }
  121. var xxx_messageInfo_LogAddReply proto.InternalMessageInfo
  122. type LogInfo struct {
  123. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"`
  124. Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation"`
  125. Result string `protobuf:"bytes,3,opt,name=result,proto3" json:"result"`
  126. Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail"`
  127. Uid int64 `protobuf:"varint,5,opt,name=uid,proto3" json:"uid"`
  128. Time string `protobuf:"bytes,6,opt,name=time,proto3" json:"time"`
  129. ProjectName string `protobuf:"bytes,7,opt,name=project_name,json=projectName,proto3" json:"project_name"`
  130. ProjectId int64 `protobuf:"varint,8,opt,name=project_id,json=projectId,proto3" json:"project_id"`
  131. ProjectNo string `protobuf:"bytes,9,opt,name=project_no,json=projectNo,proto3" json:"project_no"`
  132. SafetyRecordNo string `protobuf:"bytes,10,opt,name=safety_record_no,json=safetyRecordNo,proto3" json:"safety_record_no"`
  133. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  134. XXX_unrecognized []byte `json:"-"`
  135. XXX_sizecache int32 `json:"-"`
  136. }
  137. func (m *LogInfo) Reset() { *m = LogInfo{} }
  138. func (m *LogInfo) String() string { return proto.CompactTextString(m) }
  139. func (*LogInfo) ProtoMessage() {}
  140. func (*LogInfo) Descriptor() ([]byte, []int) {
  141. return fileDescriptor_a153da538f858886, []int{2}
  142. }
  143. func (m *LogInfo) XXX_Unmarshal(b []byte) error {
  144. return xxx_messageInfo_LogInfo.Unmarshal(m, b)
  145. }
  146. func (m *LogInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  147. return xxx_messageInfo_LogInfo.Marshal(b, m, deterministic)
  148. }
  149. func (m *LogInfo) XXX_Merge(src proto.Message) {
  150. xxx_messageInfo_LogInfo.Merge(m, src)
  151. }
  152. func (m *LogInfo) XXX_Size() int {
  153. return xxx_messageInfo_LogInfo.Size(m)
  154. }
  155. func (m *LogInfo) XXX_DiscardUnknown() {
  156. xxx_messageInfo_LogInfo.DiscardUnknown(m)
  157. }
  158. var xxx_messageInfo_LogInfo proto.InternalMessageInfo
  159. func (m *LogInfo) GetName() string {
  160. if m != nil {
  161. return m.Name
  162. }
  163. return ""
  164. }
  165. func (m *LogInfo) GetOperation() string {
  166. if m != nil {
  167. return m.Operation
  168. }
  169. return ""
  170. }
  171. func (m *LogInfo) GetResult() string {
  172. if m != nil {
  173. return m.Result
  174. }
  175. return ""
  176. }
  177. func (m *LogInfo) GetDetail() string {
  178. if m != nil {
  179. return m.Detail
  180. }
  181. return ""
  182. }
  183. func (m *LogInfo) GetUid() int64 {
  184. if m != nil {
  185. return m.Uid
  186. }
  187. return 0
  188. }
  189. func (m *LogInfo) GetTime() string {
  190. if m != nil {
  191. return m.Time
  192. }
  193. return ""
  194. }
  195. func (m *LogInfo) GetProjectName() string {
  196. if m != nil {
  197. return m.ProjectName
  198. }
  199. return ""
  200. }
  201. func (m *LogInfo) GetProjectId() int64 {
  202. if m != nil {
  203. return m.ProjectId
  204. }
  205. return 0
  206. }
  207. func (m *LogInfo) GetProjectNo() string {
  208. if m != nil {
  209. return m.ProjectNo
  210. }
  211. return ""
  212. }
  213. func (m *LogInfo) GetSafetyRecordNo() string {
  214. if m != nil {
  215. return m.SafetyRecordNo
  216. }
  217. return ""
  218. }
  219. type LogListRequest struct {
  220. Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page"`
  221. Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start"`
  222. End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end"`
  223. Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type"`
  224. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  225. XXX_unrecognized []byte `json:"-"`
  226. XXX_sizecache int32 `json:"-"`
  227. }
  228. func (m *LogListRequest) Reset() { *m = LogListRequest{} }
  229. func (m *LogListRequest) String() string { return proto.CompactTextString(m) }
  230. func (*LogListRequest) ProtoMessage() {}
  231. func (*LogListRequest) Descriptor() ([]byte, []int) {
  232. return fileDescriptor_a153da538f858886, []int{3}
  233. }
  234. func (m *LogListRequest) XXX_Unmarshal(b []byte) error {
  235. return xxx_messageInfo_LogListRequest.Unmarshal(m, b)
  236. }
  237. func (m *LogListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  238. return xxx_messageInfo_LogListRequest.Marshal(b, m, deterministic)
  239. }
  240. func (m *LogListRequest) XXX_Merge(src proto.Message) {
  241. xxx_messageInfo_LogListRequest.Merge(m, src)
  242. }
  243. func (m *LogListRequest) XXX_Size() int {
  244. return xxx_messageInfo_LogListRequest.Size(m)
  245. }
  246. func (m *LogListRequest) XXX_DiscardUnknown() {
  247. xxx_messageInfo_LogListRequest.DiscardUnknown(m)
  248. }
  249. var xxx_messageInfo_LogListRequest proto.InternalMessageInfo
  250. func (m *LogListRequest) GetPage() int32 {
  251. if m != nil {
  252. return m.Page
  253. }
  254. return 0
  255. }
  256. func (m *LogListRequest) GetStart() int64 {
  257. if m != nil {
  258. return m.Start
  259. }
  260. return 0
  261. }
  262. func (m *LogListRequest) GetEnd() int64 {
  263. if m != nil {
  264. return m.End
  265. }
  266. return 0
  267. }
  268. func (m *LogListRequest) GetType() int32 {
  269. if m != nil {
  270. return m.Type
  271. }
  272. return 0
  273. }
  274. type LogListReply struct {
  275. List []*LogInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list"`
  276. Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total"`
  277. Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page"`
  278. PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
  279. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  280. XXX_unrecognized []byte `json:"-"`
  281. XXX_sizecache int32 `json:"-"`
  282. }
  283. func (m *LogListReply) Reset() { *m = LogListReply{} }
  284. func (m *LogListReply) String() string { return proto.CompactTextString(m) }
  285. func (*LogListReply) ProtoMessage() {}
  286. func (*LogListReply) Descriptor() ([]byte, []int) {
  287. return fileDescriptor_a153da538f858886, []int{4}
  288. }
  289. func (m *LogListReply) XXX_Unmarshal(b []byte) error {
  290. return xxx_messageInfo_LogListReply.Unmarshal(m, b)
  291. }
  292. func (m *LogListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  293. return xxx_messageInfo_LogListReply.Marshal(b, m, deterministic)
  294. }
  295. func (m *LogListReply) XXX_Merge(src proto.Message) {
  296. xxx_messageInfo_LogListReply.Merge(m, src)
  297. }
  298. func (m *LogListReply) XXX_Size() int {
  299. return xxx_messageInfo_LogListReply.Size(m)
  300. }
  301. func (m *LogListReply) XXX_DiscardUnknown() {
  302. xxx_messageInfo_LogListReply.DiscardUnknown(m)
  303. }
  304. var xxx_messageInfo_LogListReply proto.InternalMessageInfo
  305. func (m *LogListReply) GetList() []*LogInfo {
  306. if m != nil {
  307. return m.List
  308. }
  309. return nil
  310. }
  311. func (m *LogListReply) GetTotal() int64 {
  312. if m != nil {
  313. return m.Total
  314. }
  315. return 0
  316. }
  317. func (m *LogListReply) GetPage() int32 {
  318. if m != nil {
  319. return m.Page
  320. }
  321. return 0
  322. }
  323. func (m *LogListReply) GetPageSize() int32 {
  324. if m != nil {
  325. return m.PageSize
  326. }
  327. return 0
  328. }
  329. func init() {
  330. proto.RegisterType((*LogAddRequest)(nil), "v1.LogAddRequest")
  331. proto.RegisterType((*LogAddReply)(nil), "v1.LogAddReply")
  332. proto.RegisterType((*LogInfo)(nil), "v1.LogInfo")
  333. proto.RegisterType((*LogListRequest)(nil), "v1.LogListRequest")
  334. proto.RegisterType((*LogListReply)(nil), "v1.LogListReply")
  335. }
  336. func init() {
  337. proto.RegisterFile("log.proto", fileDescriptor_a153da538f858886)
  338. }
  339. var fileDescriptor_a153da538f858886 = []byte{
  340. // 413 bytes of a gzipped FileDescriptorProto
  341. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcb, 0x6e, 0xdb, 0x30,
  342. 0x10, 0x84, 0x2c, 0xc9, 0xb6, 0xd6, 0x49, 0x10, 0x10, 0x41, 0x40, 0xf4, 0x81, 0xba, 0x3a, 0xe9,
  343. 0x12, 0x07, 0x6e, 0xbf, 0xa0, 0xbd, 0x05, 0x30, 0x72, 0x60, 0x6f, 0xbd, 0xb8, 0x4a, 0xc4, 0x08,
  344. 0x2c, 0x14, 0x2d, 0x4b, 0xae, 0x0d, 0x38, 0xdf, 0xd2, 0x6f, 0xe9, 0xb7, 0x15, 0x5c, 0x3d, 0x6c,
  345. 0xb4, 0x87, 0xa2, 0x27, 0xcd, 0x0e, 0x97, 0xdc, 0x99, 0x59, 0x41, 0xd6, 0x60, 0xbd, 0xb2, 0x0e,
  346. 0x09, 0xc5, 0x64, 0xbf, 0xce, 0x7f, 0x45, 0x70, 0xbe, 0xc1, 0xfa, 0x53, 0x55, 0x29, 0xfd, 0x63,
  347. 0xa7, 0x3d, 0x89, 0x4b, 0x88, 0x77, 0xa6, 0x92, 0xd1, 0x32, 0x2a, 0x62, 0x15, 0xa0, 0x78, 0x03,
  348. 0x19, 0x5a, 0xed, 0x4a, 0x32, 0xd8, 0xca, 0xc9, 0x32, 0x2a, 0x32, 0x75, 0x24, 0xc4, 0x35, 0x4c,
  349. 0x9d, 0xf6, 0xbb, 0x86, 0x64, 0xbc, 0x8c, 0x8a, 0x54, 0xf5, 0x55, 0xe0, 0x2b, 0x4d, 0xa5, 0x69,
  350. 0x64, 0xc2, 0x57, 0xfa, 0x4a, 0x08, 0x48, 0xe8, 0x60, 0xb5, 0x4c, 0xb9, 0x9b, 0xb1, 0x78, 0x05,
  351. 0xf3, 0x9d, 0xd7, 0xae, 0x2d, 0x9f, 0xb5, 0x9c, 0x72, 0xf7, 0x58, 0x8b, 0xb7, 0x00, 0xd6, 0xe1,
  352. 0x77, 0xfd, 0x48, 0x5b, 0x53, 0xc9, 0x19, 0xcb, 0xca, 0x7a, 0xe6, 0xae, 0xca, 0xcf, 0x61, 0x31,
  353. 0xe8, 0xb7, 0xcd, 0x21, 0xff, 0x39, 0x81, 0xd9, 0x06, 0xeb, 0xbb, 0xf6, 0x09, 0xc3, 0x24, 0x7e,
  354. 0x31, 0xe2, 0x17, 0x19, 0xff, 0x97, 0x97, 0xec, 0x9f, 0x5e, 0xfa, 0xac, 0xd2, 0x63, 0x56, 0xc1,
  355. 0x9d, 0x19, 0x5d, 0x30, 0x16, 0xef, 0xe1, 0x6c, 0x70, 0xc0, 0x7a, 0x66, 0x7c, 0xb6, 0xe8, 0xb9,
  356. 0xfb, 0xbf, 0x4d, 0xce, 0xff, 0x30, 0x79, 0x7a, 0xdc, 0xa2, 0xcc, 0x3a, 0xd9, 0xc3, 0x7d, 0x14,
  357. 0x05, 0x5c, 0xfa, 0xf2, 0x49, 0xd3, 0x61, 0xeb, 0xf4, 0x23, 0xba, 0x2a, 0x34, 0x01, 0x37, 0x5d,
  358. 0x74, 0xbc, 0x62, 0xfa, 0x1e, 0xf3, 0x6f, 0x70, 0xb1, 0xc1, 0x7a, 0x63, 0x3c, 0x0d, 0xeb, 0x16,
  359. 0x90, 0xd8, 0xb2, 0xee, 0x42, 0x4a, 0x15, 0x63, 0x71, 0x05, 0xa9, 0xa7, 0xd2, 0x11, 0x07, 0x14,
  360. 0xab, 0xae, 0x08, 0x66, 0x75, 0x5b, 0x71, 0x32, 0xb1, 0x0a, 0x70, 0x5c, 0x65, 0x72, 0x5c, 0x65,
  361. 0xbe, 0x87, 0xb3, 0x71, 0x82, 0x6d, 0x0e, 0xe2, 0x1d, 0x24, 0x8d, 0xf1, 0x24, 0xa3, 0x65, 0x5c,
  362. 0x2c, 0x3e, 0x2c, 0x56, 0xfb, 0xf5, 0xaa, 0xdf, 0x8f, 0xe2, 0x83, 0x30, 0x8c, 0x90, 0xca, 0x66,
  363. 0x18, 0xc6, 0xc5, 0x28, 0x2b, 0x3e, 0x91, 0xf5, 0x1a, 0xb2, 0xf0, 0xdd, 0x7a, 0xf3, 0x32, 0xcc,
  364. 0x9c, 0x07, 0xe2, 0x8b, 0x79, 0xd1, 0x9f, 0xaf, 0xbf, 0x5e, 0xf9, 0xe7, 0xd2, 0xd1, 0x8d, 0x37,
  365. 0xa4, 0x6f, 0x1a, 0xac, 0x6f, 0xed, 0xc3, 0xed, 0x7e, 0xfd, 0x30, 0xe5, 0x7f, 0xfd, 0xe3, 0xef,
  366. 0x00, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x02, 0x60, 0xf0, 0xf8, 0x02, 0x00, 0x00,
  367. }