@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.2 7.1
// protoc-gen-go v1.2 8.0
// protoc v3.6.1
// protoc v3.6.1
// source: command.proto
// source: command.proto
@ -76,6 +76,7 @@ const (
Command_COMMAND_TYPE_QUERY Command_Type = 1
Command_COMMAND_TYPE_QUERY Command_Type = 1
Command_COMMAND_TYPE_EXECUTE Command_Type = 2
Command_COMMAND_TYPE_EXECUTE Command_Type = 2
Command_COMMAND_TYPE_NOOP Command_Type = 3
Command_COMMAND_TYPE_NOOP Command_Type = 3
Command_COMMAND_TYPE_LOAD Command_Type = 4
)
)
// Enum value maps for Command_Type.
// Enum value maps for Command_Type.
@ -85,12 +86,14 @@ var (
1 : "COMMAND_TYPE_QUERY" ,
1 : "COMMAND_TYPE_QUERY" ,
2 : "COMMAND_TYPE_EXECUTE" ,
2 : "COMMAND_TYPE_EXECUTE" ,
3 : "COMMAND_TYPE_NOOP" ,
3 : "COMMAND_TYPE_NOOP" ,
4 : "COMMAND_TYPE_LOAD" ,
}
}
Command_Type_value = map [ string ] int32 {
Command_Type_value = map [ string ] int32 {
"COMMAND_TYPE_UNKNOWN" : 0 ,
"COMMAND_TYPE_UNKNOWN" : 0 ,
"COMMAND_TYPE_QUERY" : 1 ,
"COMMAND_TYPE_QUERY" : 1 ,
"COMMAND_TYPE_EXECUTE" : 2 ,
"COMMAND_TYPE_EXECUTE" : 2 ,
"COMMAND_TYPE_NOOP" : 3 ,
"COMMAND_TYPE_NOOP" : 3 ,
"COMMAND_TYPE_LOAD" : 4 ,
}
}
)
)
@ -118,7 +121,7 @@ func (x Command_Type) Number() protoreflect.EnumNumber {
// Deprecated: Use Command_Type.Descriptor instead.
// Deprecated: Use Command_Type.Descriptor instead.
func ( Command_Type ) EnumDescriptor ( ) ( [ ] byte , [ ] int ) {
func ( Command_Type ) EnumDescriptor ( ) ( [ ] byte , [ ] int ) {
return file_command_proto_rawDescGZIP ( ) , [ ] int { 9 , 0 }
return file_command_proto_rawDescGZIP ( ) , [ ] int { 10 , 0 }
}
}
type Parameter struct {
type Parameter struct {
@ -684,6 +687,53 @@ func (x *ExecuteResult) GetTime() float64 {
return 0
return 0
}
}
type LoadRequest struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
Data [ ] byte ` protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" `
}
func ( x * LoadRequest ) Reset ( ) {
* x = LoadRequest { }
if protoimpl . UnsafeEnabled {
mi := & file_command_proto_msgTypes [ 8 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * LoadRequest ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * LoadRequest ) ProtoMessage ( ) { }
func ( x * LoadRequest ) ProtoReflect ( ) protoreflect . Message {
mi := & file_command_proto_msgTypes [ 8 ]
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 LoadRequest.ProtoReflect.Descriptor instead.
func ( * LoadRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_command_proto_rawDescGZIP ( ) , [ ] int { 8 }
}
func ( x * LoadRequest ) GetData ( ) [ ] byte {
if x != nil {
return x . Data
}
return nil
}
type Noop struct {
type Noop struct {
state protoimpl . MessageState
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
sizeCache protoimpl . SizeCache
@ -695,7 +745,7 @@ type Noop struct {
func ( x * Noop ) Reset ( ) {
func ( x * Noop ) Reset ( ) {
* x = Noop { }
* x = Noop { }
if protoimpl . UnsafeEnabled {
if protoimpl . UnsafeEnabled {
mi := & file_command_proto_msgTypes [ 8 ]
mi := & file_command_proto_msgTypes [ 9 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
ms . StoreMessageInfo ( mi )
}
}
@ -708,7 +758,7 @@ func (x *Noop) String() string {
func ( * Noop ) ProtoMessage ( ) { }
func ( * Noop ) ProtoMessage ( ) { }
func ( x * Noop ) ProtoReflect ( ) protoreflect . Message {
func ( x * Noop ) ProtoReflect ( ) protoreflect . Message {
mi := & file_command_proto_msgTypes [ 8 ]
mi := & file_command_proto_msgTypes [ 9 ]
if protoimpl . UnsafeEnabled && x != nil {
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
if ms . LoadMessageInfo ( ) == nil {
@ -721,7 +771,7 @@ func (x *Noop) ProtoReflect() protoreflect.Message {
// Deprecated: Use Noop.ProtoReflect.Descriptor instead.
// Deprecated: Use Noop.ProtoReflect.Descriptor instead.
func ( * Noop ) Descriptor ( ) ( [ ] byte , [ ] int ) {
func ( * Noop ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_command_proto_rawDescGZIP ( ) , [ ] int { 8 }
return file_command_proto_rawDescGZIP ( ) , [ ] int { 9 }
}
}
func ( x * Noop ) GetId ( ) string {
func ( x * Noop ) GetId ( ) string {
@ -744,7 +794,7 @@ type Command struct {
func ( x * Command ) Reset ( ) {
func ( x * Command ) Reset ( ) {
* x = Command { }
* x = Command { }
if protoimpl . UnsafeEnabled {
if protoimpl . UnsafeEnabled {
mi := & file_command_proto_msgTypes [ 9 ]
mi := & file_command_proto_msgTypes [ 10 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
ms . StoreMessageInfo ( mi )
}
}
@ -757,7 +807,7 @@ func (x *Command) String() string {
func ( * Command ) ProtoMessage ( ) { }
func ( * Command ) ProtoMessage ( ) { }
func ( x * Command ) ProtoReflect ( ) protoreflect . Message {
func ( x * Command ) ProtoReflect ( ) protoreflect . Message {
mi := & file_command_proto_msgTypes [ 9 ]
mi := & file_command_proto_msgTypes [ 10 ]
if protoimpl . UnsafeEnabled && x != nil {
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
if ms . LoadMessageInfo ( ) == nil {
@ -770,7 +820,7 @@ func (x *Command) ProtoReflect() protoreflect.Message {
// Deprecated: Use Command.ProtoReflect.Descriptor instead.
// Deprecated: Use Command.ProtoReflect.Descriptor instead.
func ( * Command ) Descriptor ( ) ( [ ] byte , [ ] int ) {
func ( * Command ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_command_proto_rawDescGZIP ( ) , [ ] int { 9 }
return file_command_proto_rawDescGZIP ( ) , [ ] int { 10 }
}
}
func ( x * Command ) GetType ( ) Command_Type {
func ( x * Command ) GetType ( ) Command_Type {
@ -861,25 +911,29 @@ var file_command_proto_rawDesc = []byte{
0x66 , 0x66 , 0x65 , 0x63 , 0x74 , 0x65 , 0x64 , 0x12 , 0x14 , 0x0a , 0x05 , 0x65 , 0x72 , 0x72 , 0x6f , 0x72 ,
0x66 , 0x66 , 0x65 , 0x63 , 0x74 , 0x65 , 0x64 , 0x12 , 0x14 , 0x0a , 0x05 , 0x65 , 0x72 , 0x72 , 0x6f , 0x72 ,
0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x05 , 0x65 , 0x72 , 0x72 , 0x6f , 0x72 , 0x12 , 0x12 , 0x0a ,
0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x05 , 0x65 , 0x72 , 0x72 , 0x6f , 0x72 , 0x12 , 0x12 , 0x0a ,
0x04 , 0x74 , 0x69 , 0x6d , 0x65 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x01 , 0x52 , 0x04 , 0x74 , 0x69 , 0x6d ,
0x04 , 0x74 , 0x69 , 0x6d , 0x65 , 0x18 , 0x04 , 0x20 , 0x01 , 0x28 , 0x01 , 0x52 , 0x04 , 0x74 , 0x69 , 0x6d ,
0x65 , 0x22 , 0x16 , 0x0a , 0x04 , 0x4e , 0x6f , 0x6f , 0x70 , 0x12 , 0x0e , 0x0a , 0x02 , 0x69 , 0x64 , 0x18 ,
0x65 , 0x22 , 0x21 , 0x0a , 0x0b , 0x4c , 0x6f , 0x61 , 0x64 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 ,
0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x02 , 0x69 , 0x64 , 0x22 , 0xe0 , 0x01 , 0x0a , 0x07 , 0x43 , 0x6f ,
0x12 , 0x12 , 0x0a , 0x04 , 0x64 , 0x61 , 0x74 , 0x61 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x04 ,
0x6d , 0x6d , 0x61 , 0x6e , 0x64 , 0x12 , 0x29 , 0x0a , 0x04 , 0x74 , 0x79 , 0x70 , 0x65 , 0x18 , 0x01 , 0x20 ,
0x64 , 0x61 , 0x74 , 0x61 , 0x22 , 0x16 , 0x0a , 0x04 , 0x4e , 0x6f , 0x6f , 0x70 , 0x12 , 0x0e , 0x0a , 0x02 ,
0x01 , 0x28 , 0x0e , 0x32 , 0x15 , 0x2e , 0x63 , 0x6f , 0x6d , 0x6d , 0x61 , 0x6e , 0x64 , 0x2e , 0x43 , 0x6f ,
0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x02 , 0x69 , 0x64 , 0x22 , 0xf8 , 0x01 , 0x0a ,
0x6d , 0x6d , 0x61 , 0x6e , 0x64 , 0x2e , 0x54 , 0x79 , 0x70 , 0x65 , 0x52 , 0x04 , 0x74 , 0x79 , 0x70 , 0x65 ,
0x07 , 0x43 , 0x6f , 0x6d , 0x6d , 0x61 , 0x6e , 0x64 , 0x12 , 0x29 , 0x0a , 0x04 , 0x74 , 0x79 , 0x70 , 0x65 ,
0x12 , 0x1f , 0x0a , 0x0b , 0x73 , 0x75 , 0x62 , 0x5f , 0x63 , 0x6f , 0x6d , 0x6d , 0x61 , 0x6e , 0x64 , 0x18 ,
0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0e , 0x32 , 0x15 , 0x2e , 0x63 , 0x6f , 0x6d , 0x6d , 0x61 , 0x6e , 0x64 ,
0x02 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x0a , 0x73 , 0x75 , 0x62 , 0x43 , 0x6f , 0x6d , 0x6d , 0x61 , 0x6e ,
0x2e , 0x43 , 0x6f , 0x6d , 0x6d , 0x61 , 0x6e , 0x64 , 0x2e , 0x54 , 0x79 , 0x70 , 0x65 , 0x52 , 0x04 , 0x74 ,
0x64 , 0x12 , 0x1e , 0x0a , 0x0a , 0x63 , 0x6f , 0x6d , 0x70 , 0x72 , 0x65 , 0x73 , 0x73 , 0x65 , 0x64 , 0x18 ,
0x79 , 0x70 , 0x65 , 0x12 , 0x1f , 0x0a , 0x0b , 0x73 , 0x75 , 0x62 , 0x5f , 0x63 , 0x6f , 0x6d , 0x6d , 0x61 ,
0x03 , 0x20 , 0x01 , 0x28 , 0x08 , 0x52 , 0x0a , 0x63 , 0x6f , 0x6d , 0x70 , 0x72 , 0x65 , 0x73 , 0x73 , 0x65 ,
0x6e , 0x64 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x0a , 0x73 , 0x75 , 0x62 , 0x43 , 0x6f , 0x6d ,
0x64 , 0x22 , 0x69 , 0x0a , 0x04 , 0x54 , 0x79 , 0x70 , 0x65 , 0x12 , 0x18 , 0x0a , 0x14 , 0x43 , 0x4f , 0x4d ,
0x6d , 0x61 , 0x6e , 0x64 , 0x12 , 0x1e , 0x0a , 0x0a , 0x63 , 0x6f , 0x6d , 0x70 , 0x72 , 0x65 , 0x73 , 0x73 ,
0x4d , 0x41 , 0x4e , 0x44 , 0x5f , 0x54 , 0x59 , 0x50 , 0x45 , 0x5f , 0x55 , 0x4e , 0x4b , 0x4e , 0x4f , 0x57 ,
0x65 , 0x64 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x08 , 0x52 , 0x0a , 0x63 , 0x6f , 0x6d , 0x70 , 0x72 , 0x65 ,
0x4e , 0x10 , 0x00 , 0x12 , 0x16 , 0x0a , 0x12 , 0x43 , 0x4f , 0x4d , 0x4d , 0x41 , 0x4e , 0x44 , 0x5f , 0x54 ,
0x73 , 0x73 , 0x65 , 0x64 , 0x22 , 0x80 , 0x01 , 0x0a , 0x04 , 0x54 , 0x79 , 0x70 , 0x65 , 0x12 , 0x18 , 0x0a ,
0x59 , 0x50 , 0x45 , 0x5f , 0x51 , 0x55 , 0x45 , 0x52 , 0x59 , 0x10 , 0x01 , 0x12 , 0x18 , 0x0a , 0x14 , 0x43 ,
0x14 , 0x43 , 0x4f , 0x4d , 0x4d , 0x41 , 0x4e , 0x44 , 0x5f , 0x54 , 0x59 , 0x50 , 0x45 , 0x5f , 0x55 , 0x4e ,
0x4f , 0x4d , 0x4d , 0x41 , 0x4e , 0x44 , 0x5f , 0x54 , 0x59 , 0x50 , 0x45 , 0x5f , 0x45 , 0x58 , 0x45 , 0x43 ,
0x4b , 0x4e , 0x4f , 0x57 , 0x4e , 0x10 , 0x00 , 0x12 , 0x16 , 0x0a , 0x12 , 0x43 , 0x4f , 0x4d , 0x4d , 0x41 ,
0x55 , 0x54 , 0x45 , 0x10 , 0x02 , 0x12 , 0x15 , 0x0a , 0x11 , 0x43 , 0x4f , 0x4d , 0x4d , 0x41 , 0x4e , 0x44 ,
0x4e , 0x44 , 0x5f , 0x54 , 0x59 , 0x50 , 0x45 , 0x5f , 0x51 , 0x55 , 0x45 , 0x52 , 0x59 , 0x10 , 0x01 , 0x12 ,
0x5f , 0x54 , 0x59 , 0x50 , 0x45 , 0x5f , 0x4e , 0x4f , 0x4f , 0x50 , 0x10 , 0x03 , 0x42 , 0x22 , 0x5a , 0x20 ,
0x18 , 0x0a , 0x14 , 0x43 , 0x4f , 0x4d , 0x4d , 0x41 , 0x4e , 0x44 , 0x5f , 0x54 , 0x59 , 0x50 , 0x45 , 0x5f ,
0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x72 , 0x71 , 0x6c , 0x69 , 0x74 ,
0x45 , 0x58 , 0x45 , 0x43 , 0x55 , 0x54 , 0x45 , 0x10 , 0x02 , 0x12 , 0x15 , 0x0a , 0x11 , 0x43 , 0x4f , 0x4d ,
0x65 , 0x2f , 0x72 , 0x71 , 0x6c , 0x69 , 0x74 , 0x65 , 0x2f , 0x63 , 0x6f , 0x6d , 0x6d , 0x61 , 0x6e , 0x64 ,
0x4d , 0x41 , 0x4e , 0x44 , 0x5f , 0x54 , 0x59 , 0x50 , 0x45 , 0x5f , 0x4e , 0x4f , 0x4f , 0x50 , 0x10 , 0x03 ,
0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
0x12 , 0x15 , 0x0a , 0x11 , 0x43 , 0x4f , 0x4d , 0x4d , 0x41 , 0x4e , 0x44 , 0x5f , 0x54 , 0x59 , 0x50 , 0x45 ,
0x5f , 0x4c , 0x4f , 0x41 , 0x44 , 0x10 , 0x04 , 0x42 , 0x22 , 0x5a , 0x20 , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 ,
0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x72 , 0x71 , 0x6c , 0x69 , 0x74 , 0x65 , 0x2f , 0x72 , 0x71 , 0x6c ,
0x69 , 0x74 , 0x65 , 0x2f , 0x63 , 0x6f , 0x6d , 0x6d , 0x61 , 0x6e , 0x64 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x33 ,
}
}
var (
var (
@ -895,7 +949,7 @@ func file_command_proto_rawDescGZIP() []byte {
}
}
var file_command_proto_enumTypes = make ( [ ] protoimpl . EnumInfo , 2 )
var file_command_proto_enumTypes = make ( [ ] protoimpl . EnumInfo , 2 )
var file_command_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 1 0 )
var file_command_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 1 1 )
var file_command_proto_goTypes = [ ] interface { } {
var file_command_proto_goTypes = [ ] interface { } {
( QueryRequest_Level ) ( 0 ) , // 0: command.QueryRequest.Level
( QueryRequest_Level ) ( 0 ) , // 0: command.QueryRequest.Level
( Command_Type ) ( 0 ) , // 1: command.Command.Type
( Command_Type ) ( 0 ) , // 1: command.Command.Type
@ -907,8 +961,9 @@ var file_command_proto_goTypes = []interface{}{
( * QueryRows ) ( nil ) , // 7: command.QueryRows
( * QueryRows ) ( nil ) , // 7: command.QueryRows
( * ExecuteRequest ) ( nil ) , // 8: command.ExecuteRequest
( * ExecuteRequest ) ( nil ) , // 8: command.ExecuteRequest
( * ExecuteResult ) ( nil ) , // 9: command.ExecuteResult
( * ExecuteResult ) ( nil ) , // 9: command.ExecuteResult
( * Noop ) ( nil ) , // 10: command.Noop
( * LoadRequest ) ( nil ) , // 10: command.LoadRequest
( * Command ) ( nil ) , // 11: command.Command
( * Noop ) ( nil ) , // 11: command.Noop
( * Command ) ( nil ) , // 12: command.Command
}
}
var file_command_proto_depIdxs = [ ] int32 {
var file_command_proto_depIdxs = [ ] int32 {
2 , // 0: command.Statement.parameters:type_name -> command.Parameter
2 , // 0: command.Statement.parameters:type_name -> command.Parameter
@ -1029,7 +1084,7 @@ func file_command_proto_init() {
}
}
}
}
file_command_proto_msgTypes [ 8 ] . Exporter = func ( v interface { } , i int ) interface { } {
file_command_proto_msgTypes [ 8 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * Noop ) ; i {
switch v := v . ( * LoadRequest ) ; i {
case 0 :
case 0 :
return & v . state
return & v . state
case 1 :
case 1 :
@ -1041,6 +1096,18 @@ func file_command_proto_init() {
}
}
}
}
file_command_proto_msgTypes [ 9 ] . Exporter = func ( v interface { } , i int ) interface { } {
file_command_proto_msgTypes [ 9 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * Noop ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_command_proto_msgTypes [ 10 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * Command ) ; i {
switch v := v . ( * Command ) ; i {
case 0 :
case 0 :
return & v . state
return & v . state
@ -1066,7 +1133,7 @@ func file_command_proto_init() {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
RawDescriptor : file_command_proto_rawDesc ,
RawDescriptor : file_command_proto_rawDesc ,
NumEnums : 2 ,
NumEnums : 2 ,
NumMessages : 1 0 ,
NumMessages : 1 1 ,
NumExtensions : 0 ,
NumExtensions : 0 ,
NumServices : 0 ,
NumServices : 0 ,
} ,
} ,