123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.28.1
- // protoc v3.12.4
- // source: v1/request/sql.proto
- package request
- import (
- _ "github.com/mwitkow/go-proto-validators"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type TransactionBeginRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
- Namespace string `protobuf:"bytes,2,opt,name=Namespace,proto3" json:"Namespace,omitempty"`
- DataSource string `protobuf:"bytes,3,opt,name=DataSource,proto3" json:"DataSource,omitempty"`
- }
- func (x *TransactionBeginRequest) Reset() {
- *x = TransactionBeginRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_v1_request_sql_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *TransactionBeginRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TransactionBeginRequest) ProtoMessage() {}
- func (x *TransactionBeginRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_request_sql_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TransactionBeginRequest.ProtoReflect.Descriptor instead.
- func (*TransactionBeginRequest) Descriptor() ([]byte, []int) {
- return file_v1_request_sql_proto_rawDescGZIP(), []int{0}
- }
- func (x *TransactionBeginRequest) GetToken() string {
- if x != nil {
- return x.Token
- }
- return ""
- }
- func (x *TransactionBeginRequest) GetNamespace() string {
- if x != nil {
- return x.Namespace
- }
- return ""
- }
- func (x *TransactionBeginRequest) GetDataSource() string {
- if x != nil {
- return x.DataSource
- }
- return ""
- }
- type TransactionEndRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *TransactionEndRequest) Reset() {
- *x = TransactionEndRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_v1_request_sql_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *TransactionEndRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TransactionEndRequest) ProtoMessage() {}
- func (x *TransactionEndRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_request_sql_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TransactionEndRequest.ProtoReflect.Descriptor instead.
- func (*TransactionEndRequest) Descriptor() ([]byte, []int) {
- return file_v1_request_sql_proto_rawDescGZIP(), []int{1}
- }
- type TransactionOperation struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- // Types that are assignable to Request:
- //
- // *TransactionOperation_TransactionBeginRequest
- // *TransactionOperation_TransactionEndRequest
- // *TransactionOperation_ExecuteRawSqlJsonRequest
- Request isTransactionOperation_Request `protobuf_oneof:"Request"`
- }
- func (x *TransactionOperation) Reset() {
- *x = TransactionOperation{}
- if protoimpl.UnsafeEnabled {
- mi := &file_v1_request_sql_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *TransactionOperation) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TransactionOperation) ProtoMessage() {}
- func (x *TransactionOperation) ProtoReflect() protoreflect.Message {
- mi := &file_v1_request_sql_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TransactionOperation.ProtoReflect.Descriptor instead.
- func (*TransactionOperation) Descriptor() ([]byte, []int) {
- return file_v1_request_sql_proto_rawDescGZIP(), []int{2}
- }
- func (m *TransactionOperation) GetRequest() isTransactionOperation_Request {
- if m != nil {
- return m.Request
- }
- return nil
- }
- func (x *TransactionOperation) GetTransactionBeginRequest() *TransactionBeginRequest {
- if x, ok := x.GetRequest().(*TransactionOperation_TransactionBeginRequest); ok {
- return x.TransactionBeginRequest
- }
- return nil
- }
- func (x *TransactionOperation) GetTransactionEndRequest() *TransactionEndRequest {
- if x, ok := x.GetRequest().(*TransactionOperation_TransactionEndRequest); ok {
- return x.TransactionEndRequest
- }
- return nil
- }
- func (x *TransactionOperation) GetExecuteRawSqlJsonRequest() string {
- if x, ok := x.GetRequest().(*TransactionOperation_ExecuteRawSqlJsonRequest); ok {
- return x.ExecuteRawSqlJsonRequest
- }
- return ""
- }
- type isTransactionOperation_Request interface {
- isTransactionOperation_Request()
- }
- type TransactionOperation_TransactionBeginRequest struct {
- TransactionBeginRequest *TransactionBeginRequest `protobuf:"bytes,1,opt,name=TransactionBeginRequest,proto3,oneof"`
- }
- type TransactionOperation_TransactionEndRequest struct {
- TransactionEndRequest *TransactionEndRequest `protobuf:"bytes,2,opt,name=TransactionEndRequest,proto3,oneof"`
- }
- type TransactionOperation_ExecuteRawSqlJsonRequest struct {
- ExecuteRawSqlJsonRequest string `protobuf:"bytes,3,opt,name=ExecuteRawSqlJsonRequest,proto3,oneof"`
- }
- func (*TransactionOperation_TransactionBeginRequest) isTransactionOperation_Request() {}
- func (*TransactionOperation_TransactionEndRequest) isTransactionOperation_Request() {}
- func (*TransactionOperation_ExecuteRawSqlJsonRequest) isTransactionOperation_Request() {}
- var File_v1_request_sql_proto protoreflect.FileDescriptor
- var file_v1_request_sql_proto_rawDesc = []byte{
- 0x0a, 0x14, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2f, 0x73, 0x71, 0x6c,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x77, 0x69, 0x74,
- 0x6b, 0x6f, 0x77, 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76, 0x61, 0x6c,
- 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f,
- 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x01, 0x0a, 0x17, 0x54, 0x72, 0x61, 0x6e,
- 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x05, 0x54, 0x6f, 0x6b, 0x65,
- 0x6e, 0x12, 0x24, 0x0a, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x09, 0x4e, 0x61,
- 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f,
- 0x02, 0x58, 0x01, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22,
- 0x17, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e,
- 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x95, 0x02, 0x0a, 0x14, 0x54, 0x72, 0x61,
- 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x12, 0x5c, 0x0a, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
- 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x72, 0x61,
- 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
- 0x69, 0x6f, 0x6e, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
- 0x56, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e,
- 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e,
- 0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63,
- 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00,
- 0x52, 0x15, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x18, 0x45, 0x78, 0x65, 0x63, 0x75,
- 0x74, 0x65, 0x52, 0x61, 0x77, 0x53, 0x71, 0x6c, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x18, 0x45, 0x78, 0x65,
- 0x63, 0x75, 0x74, 0x65, 0x52, 0x61, 0x77, 0x53, 0x71, 0x6c, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x42, 0x1b, 0x5a, 0x19, 0x64, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x61, 0x70, 0x69, 0x2f,
- 0x70, 0x62, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x62, 0x06, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_v1_request_sql_proto_rawDescOnce sync.Once
- file_v1_request_sql_proto_rawDescData = file_v1_request_sql_proto_rawDesc
- )
- func file_v1_request_sql_proto_rawDescGZIP() []byte {
- file_v1_request_sql_proto_rawDescOnce.Do(func() {
- file_v1_request_sql_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_request_sql_proto_rawDescData)
- })
- return file_v1_request_sql_proto_rawDescData
- }
- var file_v1_request_sql_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
- var file_v1_request_sql_proto_goTypes = []interface{}{
- (*TransactionBeginRequest)(nil), // 0: request.TransactionBeginRequest
- (*TransactionEndRequest)(nil), // 1: request.TransactionEndRequest
- (*TransactionOperation)(nil), // 2: request.TransactionOperation
- }
- var file_v1_request_sql_proto_depIdxs = []int32{
- 0, // 0: request.TransactionOperation.TransactionBeginRequest:type_name -> request.TransactionBeginRequest
- 1, // 1: request.TransactionOperation.TransactionEndRequest:type_name -> request.TransactionEndRequest
- 2, // [2:2] is the sub-list for method output_type
- 2, // [2:2] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
- func init() { file_v1_request_sql_proto_init() }
- func file_v1_request_sql_proto_init() {
- if File_v1_request_sql_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_v1_request_sql_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TransactionBeginRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_v1_request_sql_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TransactionEndRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_v1_request_sql_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TransactionOperation); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- file_v1_request_sql_proto_msgTypes[2].OneofWrappers = []interface{}{
- (*TransactionOperation_TransactionBeginRequest)(nil),
- (*TransactionOperation_TransactionEndRequest)(nil),
- (*TransactionOperation_ExecuteRawSqlJsonRequest)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_v1_request_sql_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_v1_request_sql_proto_goTypes,
- DependencyIndexes: file_v1_request_sql_proto_depIdxs,
- MessageInfos: file_v1_request_sql_proto_msgTypes,
- }.Build()
- File_v1_request_sql_proto = out.File
- file_v1_request_sql_proto_rawDesc = nil
- file_v1_request_sql_proto_goTypes = nil
- file_v1_request_sql_proto_depIdxs = nil
- }
|