sql.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.12.4
  5. // source: v1/request/sql.proto
  6. package request
  7. import (
  8. _ "github.com/mwitkow/go-proto-validators"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type TransactionBeginRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
  25. Namespace string `protobuf:"bytes,2,opt,name=Namespace,proto3" json:"Namespace,omitempty"`
  26. DataSource string `protobuf:"bytes,3,opt,name=DataSource,proto3" json:"DataSource,omitempty"`
  27. }
  28. func (x *TransactionBeginRequest) Reset() {
  29. *x = TransactionBeginRequest{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_v1_request_sql_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *TransactionBeginRequest) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*TransactionBeginRequest) ProtoMessage() {}
  40. func (x *TransactionBeginRequest) ProtoReflect() protoreflect.Message {
  41. mi := &file_v1_request_sql_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use TransactionBeginRequest.ProtoReflect.Descriptor instead.
  52. func (*TransactionBeginRequest) Descriptor() ([]byte, []int) {
  53. return file_v1_request_sql_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *TransactionBeginRequest) GetToken() string {
  56. if x != nil {
  57. return x.Token
  58. }
  59. return ""
  60. }
  61. func (x *TransactionBeginRequest) GetNamespace() string {
  62. if x != nil {
  63. return x.Namespace
  64. }
  65. return ""
  66. }
  67. func (x *TransactionBeginRequest) GetDataSource() string {
  68. if x != nil {
  69. return x.DataSource
  70. }
  71. return ""
  72. }
  73. type TransactionEndRequest struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. }
  78. func (x *TransactionEndRequest) Reset() {
  79. *x = TransactionEndRequest{}
  80. if protoimpl.UnsafeEnabled {
  81. mi := &file_v1_request_sql_proto_msgTypes[1]
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. ms.StoreMessageInfo(mi)
  84. }
  85. }
  86. func (x *TransactionEndRequest) String() string {
  87. return protoimpl.X.MessageStringOf(x)
  88. }
  89. func (*TransactionEndRequest) ProtoMessage() {}
  90. func (x *TransactionEndRequest) ProtoReflect() protoreflect.Message {
  91. mi := &file_v1_request_sql_proto_msgTypes[1]
  92. if protoimpl.UnsafeEnabled && x != nil {
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. if ms.LoadMessageInfo() == nil {
  95. ms.StoreMessageInfo(mi)
  96. }
  97. return ms
  98. }
  99. return mi.MessageOf(x)
  100. }
  101. // Deprecated: Use TransactionEndRequest.ProtoReflect.Descriptor instead.
  102. func (*TransactionEndRequest) Descriptor() ([]byte, []int) {
  103. return file_v1_request_sql_proto_rawDescGZIP(), []int{1}
  104. }
  105. type TransactionOperation struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. // Types that are assignable to Request:
  110. //
  111. // *TransactionOperation_TransactionBeginRequest
  112. // *TransactionOperation_TransactionEndRequest
  113. // *TransactionOperation_ExecuteRawSqlJsonRequest
  114. Request isTransactionOperation_Request `protobuf_oneof:"Request"`
  115. }
  116. func (x *TransactionOperation) Reset() {
  117. *x = TransactionOperation{}
  118. if protoimpl.UnsafeEnabled {
  119. mi := &file_v1_request_sql_proto_msgTypes[2]
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. ms.StoreMessageInfo(mi)
  122. }
  123. }
  124. func (x *TransactionOperation) String() string {
  125. return protoimpl.X.MessageStringOf(x)
  126. }
  127. func (*TransactionOperation) ProtoMessage() {}
  128. func (x *TransactionOperation) ProtoReflect() protoreflect.Message {
  129. mi := &file_v1_request_sql_proto_msgTypes[2]
  130. if protoimpl.UnsafeEnabled && x != nil {
  131. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  132. if ms.LoadMessageInfo() == nil {
  133. ms.StoreMessageInfo(mi)
  134. }
  135. return ms
  136. }
  137. return mi.MessageOf(x)
  138. }
  139. // Deprecated: Use TransactionOperation.ProtoReflect.Descriptor instead.
  140. func (*TransactionOperation) Descriptor() ([]byte, []int) {
  141. return file_v1_request_sql_proto_rawDescGZIP(), []int{2}
  142. }
  143. func (m *TransactionOperation) GetRequest() isTransactionOperation_Request {
  144. if m != nil {
  145. return m.Request
  146. }
  147. return nil
  148. }
  149. func (x *TransactionOperation) GetTransactionBeginRequest() *TransactionBeginRequest {
  150. if x, ok := x.GetRequest().(*TransactionOperation_TransactionBeginRequest); ok {
  151. return x.TransactionBeginRequest
  152. }
  153. return nil
  154. }
  155. func (x *TransactionOperation) GetTransactionEndRequest() *TransactionEndRequest {
  156. if x, ok := x.GetRequest().(*TransactionOperation_TransactionEndRequest); ok {
  157. return x.TransactionEndRequest
  158. }
  159. return nil
  160. }
  161. func (x *TransactionOperation) GetExecuteRawSqlJsonRequest() string {
  162. if x, ok := x.GetRequest().(*TransactionOperation_ExecuteRawSqlJsonRequest); ok {
  163. return x.ExecuteRawSqlJsonRequest
  164. }
  165. return ""
  166. }
  167. type isTransactionOperation_Request interface {
  168. isTransactionOperation_Request()
  169. }
  170. type TransactionOperation_TransactionBeginRequest struct {
  171. TransactionBeginRequest *TransactionBeginRequest `protobuf:"bytes,1,opt,name=TransactionBeginRequest,proto3,oneof"`
  172. }
  173. type TransactionOperation_TransactionEndRequest struct {
  174. TransactionEndRequest *TransactionEndRequest `protobuf:"bytes,2,opt,name=TransactionEndRequest,proto3,oneof"`
  175. }
  176. type TransactionOperation_ExecuteRawSqlJsonRequest struct {
  177. ExecuteRawSqlJsonRequest string `protobuf:"bytes,3,opt,name=ExecuteRawSqlJsonRequest,proto3,oneof"`
  178. }
  179. func (*TransactionOperation_TransactionBeginRequest) isTransactionOperation_Request() {}
  180. func (*TransactionOperation_TransactionEndRequest) isTransactionOperation_Request() {}
  181. func (*TransactionOperation_ExecuteRawSqlJsonRequest) isTransactionOperation_Request() {}
  182. var File_v1_request_sql_proto protoreflect.FileDescriptor
  183. var file_v1_request_sql_proto_rawDesc = []byte{
  184. 0x0a, 0x14, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2f, 0x73, 0x71, 0x6c,
  185. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  186. 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x77, 0x69, 0x74,
  187. 0x6b, 0x6f, 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76, 0x61, 0x6c,
  188. 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f,
  189. 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x01, 0x0a, 0x17, 0x54, 0x72, 0x61, 0x6e,
  190. 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75,
  191. 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01,
  192. 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x05, 0x54, 0x6f, 0x6b, 0x65,
  193. 0x6e, 0x12, 0x24, 0x0a, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02,
  194. 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x09, 0x4e, 0x61,
  195. 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53,
  196. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f,
  197. 0x02, 0x58, 0x01, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22,
  198. 0x17, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e,
  199. 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x95, 0x02, 0x0a, 0x14, 0x54, 0x72, 0x61,
  200. 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
  201. 0x6e, 0x12, 0x5c, 0x0a, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
  202. 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01,
  203. 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x72, 0x61,
  204. 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71,
  205. 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
  206. 0x69, 0x6f, 0x6e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  207. 0x56, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e,
  208. 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e,
  209. 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
  210. 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00,
  211. 0x52, 0x15, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64,
  212. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x18, 0x45, 0x78, 0x65, 0x63, 0x75,
  213. 0x74, 0x65, 0x52, 0x61, 0x77, 0x53, 0x71, 0x6c, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
  214. 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x18, 0x45, 0x78, 0x65,
  215. 0x63, 0x75, 0x74, 0x65, 0x52, 0x61, 0x77, 0x53, 0x71, 0x6c, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x65,
  216. 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  217. 0x42, 0x1b, 0x5a, 0x19, 0x64, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x61, 0x70, 0x69, 0x2f,
  218. 0x70, 0x62, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x62, 0x06, 0x70,
  219. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  220. }
  221. var (
  222. file_v1_request_sql_proto_rawDescOnce sync.Once
  223. file_v1_request_sql_proto_rawDescData = file_v1_request_sql_proto_rawDesc
  224. )
  225. func file_v1_request_sql_proto_rawDescGZIP() []byte {
  226. file_v1_request_sql_proto_rawDescOnce.Do(func() {
  227. file_v1_request_sql_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_request_sql_proto_rawDescData)
  228. })
  229. return file_v1_request_sql_proto_rawDescData
  230. }
  231. var file_v1_request_sql_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  232. var file_v1_request_sql_proto_goTypes = []interface{}{
  233. (*TransactionBeginRequest)(nil), // 0: request.TransactionBeginRequest
  234. (*TransactionEndRequest)(nil), // 1: request.TransactionEndRequest
  235. (*TransactionOperation)(nil), // 2: request.TransactionOperation
  236. }
  237. var file_v1_request_sql_proto_depIdxs = []int32{
  238. 0, // 0: request.TransactionOperation.TransactionBeginRequest:type_name -> request.TransactionBeginRequest
  239. 1, // 1: request.TransactionOperation.TransactionEndRequest:type_name -> request.TransactionEndRequest
  240. 2, // [2:2] is the sub-list for method output_type
  241. 2, // [2:2] is the sub-list for method input_type
  242. 2, // [2:2] is the sub-list for extension type_name
  243. 2, // [2:2] is the sub-list for extension extendee
  244. 0, // [0:2] is the sub-list for field type_name
  245. }
  246. func init() { file_v1_request_sql_proto_init() }
  247. func file_v1_request_sql_proto_init() {
  248. if File_v1_request_sql_proto != nil {
  249. return
  250. }
  251. if !protoimpl.UnsafeEnabled {
  252. file_v1_request_sql_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  253. switch v := v.(*TransactionBeginRequest); i {
  254. case 0:
  255. return &v.state
  256. case 1:
  257. return &v.sizeCache
  258. case 2:
  259. return &v.unknownFields
  260. default:
  261. return nil
  262. }
  263. }
  264. file_v1_request_sql_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  265. switch v := v.(*TransactionEndRequest); 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_v1_request_sql_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  277. switch v := v.(*TransactionOperation); 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. }
  289. file_v1_request_sql_proto_msgTypes[2].OneofWrappers = []interface{}{
  290. (*TransactionOperation_TransactionBeginRequest)(nil),
  291. (*TransactionOperation_TransactionEndRequest)(nil),
  292. (*TransactionOperation_ExecuteRawSqlJsonRequest)(nil),
  293. }
  294. type x struct{}
  295. out := protoimpl.TypeBuilder{
  296. File: protoimpl.DescBuilder{
  297. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  298. RawDescriptor: file_v1_request_sql_proto_rawDesc,
  299. NumEnums: 0,
  300. NumMessages: 3,
  301. NumExtensions: 0,
  302. NumServices: 0,
  303. },
  304. GoTypes: file_v1_request_sql_proto_goTypes,
  305. DependencyIndexes: file_v1_request_sql_proto_depIdxs,
  306. MessageInfos: file_v1_request_sql_proto_msgTypes,
  307. }.Build()
  308. File_v1_request_sql_proto = out.File
  309. file_v1_request_sql_proto_rawDesc = nil
  310. file_v1_request_sql_proto_goTypes = nil
  311. file_v1_request_sql_proto_depIdxs = nil
  312. }