You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

547 lines
16 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: Themis.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package Themis is a generated protocol buffer package.
  6. It is generated from these files:
  7. Themis.proto
  8. It has these top-level messages:
  9. ThemisGetRequest
  10. ThemisBatchGetRequest
  11. ThemisBatchGetResponse
  12. ThemisPrewrite
  13. ThemisPrewriteRequest
  14. ThemisPrewriteResponse
  15. ThemisBatchPrewriteSecondaryRequest
  16. ThemisBatchPrewriteSecondaryResponse
  17. ThemisPrewriteResult
  18. ThemisCommitRequest
  19. ThemisCommitResponse
  20. ThemisBatchCommitSecondaryRequest
  21. ThemisBatchCommitSecondaryResponse
  22. ThemisBatchCommitSecondaryResult
  23. ThemisCommit
  24. EraseLockRequest
  25. EraseLockResponse
  26. LockExpiredRequest
  27. LockExpiredResponse
  28. */
  29. package themis
  30. import proto "github.com/golang/protobuf/proto"
  31. import fmt "fmt"
  32. import math "math"
  33. import Client "github.com/pingcap/go-hbase/proto"
  34. import Cell "github.com/pingcap/go-hbase/proto"
  35. // Reference imports to suppress errors if they are not otherwise used.
  36. var _ = proto.Marshal
  37. var _ = fmt.Errorf
  38. var _ = math.Inf
  39. type ThemisGetRequest struct {
  40. Get *Client.Get `protobuf:"bytes,1,req,name=get" json:"get,omitempty"`
  41. StartTs *uint64 `protobuf:"varint,2,req,name=startTs" json:"startTs,omitempty"`
  42. IgnoreLock *bool `protobuf:"varint,3,req,name=ignoreLock" json:"ignoreLock,omitempty"`
  43. XXX_unrecognized []byte `json:"-"`
  44. }
  45. func (m *ThemisGetRequest) Reset() { *m = ThemisGetRequest{} }
  46. func (m *ThemisGetRequest) String() string { return proto.CompactTextString(m) }
  47. func (*ThemisGetRequest) ProtoMessage() {}
  48. func (m *ThemisGetRequest) GetGet() *Client.Get {
  49. if m != nil {
  50. return m.Get
  51. }
  52. return nil
  53. }
  54. func (m *ThemisGetRequest) GetStartTs() uint64 {
  55. if m != nil && m.StartTs != nil {
  56. return *m.StartTs
  57. }
  58. return 0
  59. }
  60. func (m *ThemisGetRequest) GetIgnoreLock() bool {
  61. if m != nil && m.IgnoreLock != nil {
  62. return *m.IgnoreLock
  63. }
  64. return false
  65. }
  66. type ThemisBatchGetRequest struct {
  67. Gets []*Client.Get `protobuf:"bytes,1,rep,name=gets" json:"gets,omitempty"`
  68. StartTs *uint64 `protobuf:"varint,2,req,name=startTs" json:"startTs,omitempty"`
  69. IgnoreLock *bool `protobuf:"varint,3,req,name=ignoreLock" json:"ignoreLock,omitempty"`
  70. XXX_unrecognized []byte `json:"-"`
  71. }
  72. func (m *ThemisBatchGetRequest) Reset() { *m = ThemisBatchGetRequest{} }
  73. func (m *ThemisBatchGetRequest) String() string { return proto.CompactTextString(m) }
  74. func (*ThemisBatchGetRequest) ProtoMessage() {}
  75. func (m *ThemisBatchGetRequest) GetGets() []*Client.Get {
  76. if m != nil {
  77. return m.Gets
  78. }
  79. return nil
  80. }
  81. func (m *ThemisBatchGetRequest) GetStartTs() uint64 {
  82. if m != nil && m.StartTs != nil {
  83. return *m.StartTs
  84. }
  85. return 0
  86. }
  87. func (m *ThemisBatchGetRequest) GetIgnoreLock() bool {
  88. if m != nil && m.IgnoreLock != nil {
  89. return *m.IgnoreLock
  90. }
  91. return false
  92. }
  93. type ThemisBatchGetResponse struct {
  94. Rs []*Client.Result `protobuf:"bytes,1,rep,name=rs" json:"rs,omitempty"`
  95. XXX_unrecognized []byte `json:"-"`
  96. }
  97. func (m *ThemisBatchGetResponse) Reset() { *m = ThemisBatchGetResponse{} }
  98. func (m *ThemisBatchGetResponse) String() string { return proto.CompactTextString(m) }
  99. func (*ThemisBatchGetResponse) ProtoMessage() {}
  100. func (m *ThemisBatchGetResponse) GetRs() []*Client.Result {
  101. if m != nil {
  102. return m.Rs
  103. }
  104. return nil
  105. }
  106. type ThemisPrewrite struct {
  107. Row []byte `protobuf:"bytes,1,req,name=row" json:"row,omitempty"`
  108. Mutations []*Cell.Cell `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"`
  109. XXX_unrecognized []byte `json:"-"`
  110. }
  111. func (m *ThemisPrewrite) Reset() { *m = ThemisPrewrite{} }
  112. func (m *ThemisPrewrite) String() string { return proto.CompactTextString(m) }
  113. func (*ThemisPrewrite) ProtoMessage() {}
  114. func (m *ThemisPrewrite) GetRow() []byte {
  115. if m != nil {
  116. return m.Row
  117. }
  118. return nil
  119. }
  120. func (m *ThemisPrewrite) GetMutations() []*Cell.Cell {
  121. if m != nil {
  122. return m.Mutations
  123. }
  124. return nil
  125. }
  126. type ThemisPrewriteRequest struct {
  127. ThemisPrewrite *ThemisPrewrite `protobuf:"bytes,1,req,name=themisPrewrite" json:"themisPrewrite,omitempty"`
  128. PrewriteTs *uint64 `protobuf:"varint,2,req,name=prewriteTs" json:"prewriteTs,omitempty"`
  129. SecondaryLock []byte `protobuf:"bytes,3,req,name=secondaryLock" json:"secondaryLock,omitempty"`
  130. PrimaryLock []byte `protobuf:"bytes,4,req,name=primaryLock" json:"primaryLock,omitempty"`
  131. PrimaryIndex *int32 `protobuf:"varint,5,req,name=primaryIndex" json:"primaryIndex,omitempty"`
  132. XXX_unrecognized []byte `json:"-"`
  133. }
  134. func (m *ThemisPrewriteRequest) Reset() { *m = ThemisPrewriteRequest{} }
  135. func (m *ThemisPrewriteRequest) String() string { return proto.CompactTextString(m) }
  136. func (*ThemisPrewriteRequest) ProtoMessage() {}
  137. func (m *ThemisPrewriteRequest) GetThemisPrewrite() *ThemisPrewrite {
  138. if m != nil {
  139. return m.ThemisPrewrite
  140. }
  141. return nil
  142. }
  143. func (m *ThemisPrewriteRequest) GetPrewriteTs() uint64 {
  144. if m != nil && m.PrewriteTs != nil {
  145. return *m.PrewriteTs
  146. }
  147. return 0
  148. }
  149. func (m *ThemisPrewriteRequest) GetSecondaryLock() []byte {
  150. if m != nil {
  151. return m.SecondaryLock
  152. }
  153. return nil
  154. }
  155. func (m *ThemisPrewriteRequest) GetPrimaryLock() []byte {
  156. if m != nil {
  157. return m.PrimaryLock
  158. }
  159. return nil
  160. }
  161. func (m *ThemisPrewriteRequest) GetPrimaryIndex() int32 {
  162. if m != nil && m.PrimaryIndex != nil {
  163. return *m.PrimaryIndex
  164. }
  165. return 0
  166. }
  167. type ThemisPrewriteResponse struct {
  168. ThemisPrewriteResult *ThemisPrewriteResult `protobuf:"bytes,1,opt,name=themisPrewriteResult" json:"themisPrewriteResult,omitempty"`
  169. XXX_unrecognized []byte `json:"-"`
  170. }
  171. func (m *ThemisPrewriteResponse) Reset() { *m = ThemisPrewriteResponse{} }
  172. func (m *ThemisPrewriteResponse) String() string { return proto.CompactTextString(m) }
  173. func (*ThemisPrewriteResponse) ProtoMessage() {}
  174. func (m *ThemisPrewriteResponse) GetThemisPrewriteResult() *ThemisPrewriteResult {
  175. if m != nil {
  176. return m.ThemisPrewriteResult
  177. }
  178. return nil
  179. }
  180. type ThemisBatchPrewriteSecondaryRequest struct {
  181. ThemisPrewrite []*ThemisPrewrite `protobuf:"bytes,1,rep,name=themisPrewrite" json:"themisPrewrite,omitempty"`
  182. PrewriteTs *uint64 `protobuf:"varint,2,req,name=prewriteTs" json:"prewriteTs,omitempty"`
  183. SecondaryLock []byte `protobuf:"bytes,3,req,name=secondaryLock" json:"secondaryLock,omitempty"`
  184. XXX_unrecognized []byte `json:"-"`
  185. }
  186. func (m *ThemisBatchPrewriteSecondaryRequest) Reset() { *m = ThemisBatchPrewriteSecondaryRequest{} }
  187. func (m *ThemisBatchPrewriteSecondaryRequest) String() string { return proto.CompactTextString(m) }
  188. func (*ThemisBatchPrewriteSecondaryRequest) ProtoMessage() {}
  189. func (m *ThemisBatchPrewriteSecondaryRequest) GetThemisPrewrite() []*ThemisPrewrite {
  190. if m != nil {
  191. return m.ThemisPrewrite
  192. }
  193. return nil
  194. }
  195. func (m *ThemisBatchPrewriteSecondaryRequest) GetPrewriteTs() uint64 {
  196. if m != nil && m.PrewriteTs != nil {
  197. return *m.PrewriteTs
  198. }
  199. return 0
  200. }
  201. func (m *ThemisBatchPrewriteSecondaryRequest) GetSecondaryLock() []byte {
  202. if m != nil {
  203. return m.SecondaryLock
  204. }
  205. return nil
  206. }
  207. type ThemisBatchPrewriteSecondaryResponse struct {
  208. ThemisPrewriteResult []*ThemisPrewriteResult `protobuf:"bytes,1,rep,name=themisPrewriteResult" json:"themisPrewriteResult,omitempty"`
  209. RowsNotInRegion [][]byte `protobuf:"bytes,2,rep,name=rowsNotInRegion" json:"rowsNotInRegion,omitempty"`
  210. XXX_unrecognized []byte `json:"-"`
  211. }
  212. func (m *ThemisBatchPrewriteSecondaryResponse) Reset() { *m = ThemisBatchPrewriteSecondaryResponse{} }
  213. func (m *ThemisBatchPrewriteSecondaryResponse) String() string { return proto.CompactTextString(m) }
  214. func (*ThemisBatchPrewriteSecondaryResponse) ProtoMessage() {}
  215. func (m *ThemisBatchPrewriteSecondaryResponse) GetThemisPrewriteResult() []*ThemisPrewriteResult {
  216. if m != nil {
  217. return m.ThemisPrewriteResult
  218. }
  219. return nil
  220. }
  221. func (m *ThemisBatchPrewriteSecondaryResponse) GetRowsNotInRegion() [][]byte {
  222. if m != nil {
  223. return m.RowsNotInRegion
  224. }
  225. return nil
  226. }
  227. type ThemisPrewriteResult struct {
  228. NewerWriteTs *int64 `protobuf:"varint,1,req,name=newerWriteTs" json:"newerWriteTs,omitempty"`
  229. ExistLock []byte `protobuf:"bytes,2,req,name=existLock" json:"existLock,omitempty"`
  230. Family []byte `protobuf:"bytes,3,req,name=family" json:"family,omitempty"`
  231. Qualifier []byte `protobuf:"bytes,4,req,name=qualifier" json:"qualifier,omitempty"`
  232. LockExpired *bool `protobuf:"varint,5,req,name=lockExpired" json:"lockExpired,omitempty"`
  233. Row []byte `protobuf:"bytes,6,req,name=row" json:"row,omitempty"`
  234. XXX_unrecognized []byte `json:"-"`
  235. }
  236. func (m *ThemisPrewriteResult) Reset() { *m = ThemisPrewriteResult{} }
  237. func (m *ThemisPrewriteResult) String() string { return proto.CompactTextString(m) }
  238. func (*ThemisPrewriteResult) ProtoMessage() {}
  239. func (m *ThemisPrewriteResult) GetNewerWriteTs() int64 {
  240. if m != nil && m.NewerWriteTs != nil {
  241. return *m.NewerWriteTs
  242. }
  243. return 0
  244. }
  245. func (m *ThemisPrewriteResult) GetExistLock() []byte {
  246. if m != nil {
  247. return m.ExistLock
  248. }
  249. return nil
  250. }
  251. func (m *ThemisPrewriteResult) GetFamily() []byte {
  252. if m != nil {
  253. return m.Family
  254. }
  255. return nil
  256. }
  257. func (m *ThemisPrewriteResult) GetQualifier() []byte {
  258. if m != nil {
  259. return m.Qualifier
  260. }
  261. return nil
  262. }
  263. func (m *ThemisPrewriteResult) GetLockExpired() bool {
  264. if m != nil && m.LockExpired != nil {
  265. return *m.LockExpired
  266. }
  267. return false
  268. }
  269. func (m *ThemisPrewriteResult) GetRow() []byte {
  270. if m != nil {
  271. return m.Row
  272. }
  273. return nil
  274. }
  275. type ThemisCommitRequest struct {
  276. ThemisCommit *ThemisCommit `protobuf:"bytes,1,req,name=themisCommit" json:"themisCommit,omitempty"`
  277. XXX_unrecognized []byte `json:"-"`
  278. }
  279. func (m *ThemisCommitRequest) Reset() { *m = ThemisCommitRequest{} }
  280. func (m *ThemisCommitRequest) String() string { return proto.CompactTextString(m) }
  281. func (*ThemisCommitRequest) ProtoMessage() {}
  282. func (m *ThemisCommitRequest) GetThemisCommit() *ThemisCommit {
  283. if m != nil {
  284. return m.ThemisCommit
  285. }
  286. return nil
  287. }
  288. type ThemisCommitResponse struct {
  289. Result *bool `protobuf:"varint,1,req,name=result" json:"result,omitempty"`
  290. XXX_unrecognized []byte `json:"-"`
  291. }
  292. func (m *ThemisCommitResponse) Reset() { *m = ThemisCommitResponse{} }
  293. func (m *ThemisCommitResponse) String() string { return proto.CompactTextString(m) }
  294. func (*ThemisCommitResponse) ProtoMessage() {}
  295. func (m *ThemisCommitResponse) GetResult() bool {
  296. if m != nil && m.Result != nil {
  297. return *m.Result
  298. }
  299. return false
  300. }
  301. type ThemisBatchCommitSecondaryRequest struct {
  302. ThemisCommit []*ThemisCommit `protobuf:"bytes,1,rep,name=themisCommit" json:"themisCommit,omitempty"`
  303. XXX_unrecognized []byte `json:"-"`
  304. }
  305. func (m *ThemisBatchCommitSecondaryRequest) Reset() { *m = ThemisBatchCommitSecondaryRequest{} }
  306. func (m *ThemisBatchCommitSecondaryRequest) String() string { return proto.CompactTextString(m) }
  307. func (*ThemisBatchCommitSecondaryRequest) ProtoMessage() {}
  308. func (m *ThemisBatchCommitSecondaryRequest) GetThemisCommit() []*ThemisCommit {
  309. if m != nil {
  310. return m.ThemisCommit
  311. }
  312. return nil
  313. }
  314. type ThemisBatchCommitSecondaryResponse struct {
  315. BatchCommitSecondaryResult []*ThemisBatchCommitSecondaryResult `protobuf:"bytes,1,rep,name=batchCommitSecondaryResult" json:"batchCommitSecondaryResult,omitempty"`
  316. XXX_unrecognized []byte `json:"-"`
  317. }
  318. func (m *ThemisBatchCommitSecondaryResponse) Reset() { *m = ThemisBatchCommitSecondaryResponse{} }
  319. func (m *ThemisBatchCommitSecondaryResponse) String() string { return proto.CompactTextString(m) }
  320. func (*ThemisBatchCommitSecondaryResponse) ProtoMessage() {}
  321. func (m *ThemisBatchCommitSecondaryResponse) GetBatchCommitSecondaryResult() []*ThemisBatchCommitSecondaryResult {
  322. if m != nil {
  323. return m.BatchCommitSecondaryResult
  324. }
  325. return nil
  326. }
  327. type ThemisBatchCommitSecondaryResult struct {
  328. Row []byte `protobuf:"bytes,1,req,name=row" json:"row,omitempty"`
  329. Success *bool `protobuf:"varint,2,req,name=success" json:"success,omitempty"`
  330. XXX_unrecognized []byte `json:"-"`
  331. }
  332. func (m *ThemisBatchCommitSecondaryResult) Reset() { *m = ThemisBatchCommitSecondaryResult{} }
  333. func (m *ThemisBatchCommitSecondaryResult) String() string { return proto.CompactTextString(m) }
  334. func (*ThemisBatchCommitSecondaryResult) ProtoMessage() {}
  335. func (m *ThemisBatchCommitSecondaryResult) GetRow() []byte {
  336. if m != nil {
  337. return m.Row
  338. }
  339. return nil
  340. }
  341. func (m *ThemisBatchCommitSecondaryResult) GetSuccess() bool {
  342. if m != nil && m.Success != nil {
  343. return *m.Success
  344. }
  345. return false
  346. }
  347. type ThemisCommit struct {
  348. Row []byte `protobuf:"bytes,1,req,name=row" json:"row,omitempty"`
  349. Mutations []*Cell.Cell `protobuf:"bytes,2,rep,name=mutations" json:"mutations,omitempty"`
  350. PrewriteTs *uint64 `protobuf:"varint,3,req,name=prewriteTs" json:"prewriteTs,omitempty"`
  351. CommitTs *uint64 `protobuf:"varint,4,req,name=commitTs" json:"commitTs,omitempty"`
  352. PrimaryIndex *int32 `protobuf:"varint,5,req,name=primaryIndex" json:"primaryIndex,omitempty"`
  353. XXX_unrecognized []byte `json:"-"`
  354. }
  355. func (m *ThemisCommit) Reset() { *m = ThemisCommit{} }
  356. func (m *ThemisCommit) String() string { return proto.CompactTextString(m) }
  357. func (*ThemisCommit) ProtoMessage() {}
  358. func (m *ThemisCommit) GetRow() []byte {
  359. if m != nil {
  360. return m.Row
  361. }
  362. return nil
  363. }
  364. func (m *ThemisCommit) GetMutations() []*Cell.Cell {
  365. if m != nil {
  366. return m.Mutations
  367. }
  368. return nil
  369. }
  370. func (m *ThemisCommit) GetPrewriteTs() uint64 {
  371. if m != nil && m.PrewriteTs != nil {
  372. return *m.PrewriteTs
  373. }
  374. return 0
  375. }
  376. func (m *ThemisCommit) GetCommitTs() uint64 {
  377. if m != nil && m.CommitTs != nil {
  378. return *m.CommitTs
  379. }
  380. return 0
  381. }
  382. func (m *ThemisCommit) GetPrimaryIndex() int32 {
  383. if m != nil && m.PrimaryIndex != nil {
  384. return *m.PrimaryIndex
  385. }
  386. return 0
  387. }
  388. type EraseLockRequest struct {
  389. Row []byte `protobuf:"bytes,1,req,name=row" json:"row,omitempty"`
  390. Family []byte `protobuf:"bytes,2,req,name=family" json:"family,omitempty"`
  391. Qualifier []byte `protobuf:"bytes,3,req,name=qualifier" json:"qualifier,omitempty"`
  392. PrewriteTs *uint64 `protobuf:"varint,4,req,name=prewriteTs" json:"prewriteTs,omitempty"`
  393. XXX_unrecognized []byte `json:"-"`
  394. }
  395. func (m *EraseLockRequest) Reset() { *m = EraseLockRequest{} }
  396. func (m *EraseLockRequest) String() string { return proto.CompactTextString(m) }
  397. func (*EraseLockRequest) ProtoMessage() {}
  398. func (m *EraseLockRequest) GetRow() []byte {
  399. if m != nil {
  400. return m.Row
  401. }
  402. return nil
  403. }
  404. func (m *EraseLockRequest) GetFamily() []byte {
  405. if m != nil {
  406. return m.Family
  407. }
  408. return nil
  409. }
  410. func (m *EraseLockRequest) GetQualifier() []byte {
  411. if m != nil {
  412. return m.Qualifier
  413. }
  414. return nil
  415. }
  416. func (m *EraseLockRequest) GetPrewriteTs() uint64 {
  417. if m != nil && m.PrewriteTs != nil {
  418. return *m.PrewriteTs
  419. }
  420. return 0
  421. }
  422. type EraseLockResponse struct {
  423. Lock []byte `protobuf:"bytes,1,opt,name=lock" json:"lock,omitempty"`
  424. XXX_unrecognized []byte `json:"-"`
  425. }
  426. func (m *EraseLockResponse) Reset() { *m = EraseLockResponse{} }
  427. func (m *EraseLockResponse) String() string { return proto.CompactTextString(m) }
  428. func (*EraseLockResponse) ProtoMessage() {}
  429. func (m *EraseLockResponse) GetLock() []byte {
  430. if m != nil {
  431. return m.Lock
  432. }
  433. return nil
  434. }
  435. type LockExpiredRequest struct {
  436. Timestamp *uint64 `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"`
  437. XXX_unrecognized []byte `json:"-"`
  438. }
  439. func (m *LockExpiredRequest) Reset() { *m = LockExpiredRequest{} }
  440. func (m *LockExpiredRequest) String() string { return proto.CompactTextString(m) }
  441. func (*LockExpiredRequest) ProtoMessage() {}
  442. func (m *LockExpiredRequest) GetTimestamp() uint64 {
  443. if m != nil && m.Timestamp != nil {
  444. return *m.Timestamp
  445. }
  446. return 0
  447. }
  448. type LockExpiredResponse struct {
  449. Expired *bool `protobuf:"varint,1,req,name=expired" json:"expired,omitempty"`
  450. XXX_unrecognized []byte `json:"-"`
  451. }
  452. func (m *LockExpiredResponse) Reset() { *m = LockExpiredResponse{} }
  453. func (m *LockExpiredResponse) String() string { return proto.CompactTextString(m) }
  454. func (*LockExpiredResponse) ProtoMessage() {}
  455. func (m *LockExpiredResponse) GetExpired() bool {
  456. if m != nil && m.Expired != nil {
  457. return *m.Expired
  458. }
  459. return false
  460. }