refactor: common semantic type (#73)
This commit is contained in:
+312
-28
@@ -34,6 +34,164 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type SemanticType int32
|
||||
|
||||
const (
|
||||
SemanticType_TAG SemanticType = 0
|
||||
SemanticType_FIELD SemanticType = 1
|
||||
SemanticType_TIMESTAMP SemanticType = 2
|
||||
)
|
||||
|
||||
// Enum value maps for SemanticType.
|
||||
var (
|
||||
SemanticType_name = map[int32]string{
|
||||
0: "TAG",
|
||||
1: "FIELD",
|
||||
2: "TIMESTAMP",
|
||||
}
|
||||
SemanticType_value = map[string]int32{
|
||||
"TAG": 0,
|
||||
"FIELD": 1,
|
||||
"TIMESTAMP": 2,
|
||||
}
|
||||
)
|
||||
|
||||
func (x SemanticType) Enum() *SemanticType {
|
||||
p := new(SemanticType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x SemanticType) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (SemanticType) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_greptime_v1_common_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (SemanticType) Type() protoreflect.EnumType {
|
||||
return &file_greptime_v1_common_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x SemanticType) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SemanticType.Descriptor instead.
|
||||
func (SemanticType) EnumDescriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_common_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type ColumnDataType int32
|
||||
|
||||
const (
|
||||
ColumnDataType_BOOLEAN ColumnDataType = 0
|
||||
ColumnDataType_INT8 ColumnDataType = 1
|
||||
ColumnDataType_INT16 ColumnDataType = 2
|
||||
ColumnDataType_INT32 ColumnDataType = 3
|
||||
ColumnDataType_INT64 ColumnDataType = 4
|
||||
ColumnDataType_UINT8 ColumnDataType = 5
|
||||
ColumnDataType_UINT16 ColumnDataType = 6
|
||||
ColumnDataType_UINT32 ColumnDataType = 7
|
||||
ColumnDataType_UINT64 ColumnDataType = 8
|
||||
ColumnDataType_FLOAT32 ColumnDataType = 9
|
||||
ColumnDataType_FLOAT64 ColumnDataType = 10
|
||||
ColumnDataType_BINARY ColumnDataType = 11
|
||||
ColumnDataType_STRING ColumnDataType = 12
|
||||
ColumnDataType_DATE ColumnDataType = 13
|
||||
ColumnDataType_DATETIME ColumnDataType = 14
|
||||
ColumnDataType_TIMESTAMP_SECOND ColumnDataType = 15
|
||||
ColumnDataType_TIMESTAMP_MILLISECOND ColumnDataType = 16
|
||||
ColumnDataType_TIMESTAMP_MICROSECOND ColumnDataType = 17
|
||||
ColumnDataType_TIMESTAMP_NANOSECOND ColumnDataType = 18
|
||||
ColumnDataType_TIME_SECOND ColumnDataType = 19
|
||||
ColumnDataType_TIME_MILLISECOND ColumnDataType = 20
|
||||
ColumnDataType_TIME_MICROSECOND ColumnDataType = 21
|
||||
ColumnDataType_TIME_NANOSECOND ColumnDataType = 22
|
||||
)
|
||||
|
||||
// Enum value maps for ColumnDataType.
|
||||
var (
|
||||
ColumnDataType_name = map[int32]string{
|
||||
0: "BOOLEAN",
|
||||
1: "INT8",
|
||||
2: "INT16",
|
||||
3: "INT32",
|
||||
4: "INT64",
|
||||
5: "UINT8",
|
||||
6: "UINT16",
|
||||
7: "UINT32",
|
||||
8: "UINT64",
|
||||
9: "FLOAT32",
|
||||
10: "FLOAT64",
|
||||
11: "BINARY",
|
||||
12: "STRING",
|
||||
13: "DATE",
|
||||
14: "DATETIME",
|
||||
15: "TIMESTAMP_SECOND",
|
||||
16: "TIMESTAMP_MILLISECOND",
|
||||
17: "TIMESTAMP_MICROSECOND",
|
||||
18: "TIMESTAMP_NANOSECOND",
|
||||
19: "TIME_SECOND",
|
||||
20: "TIME_MILLISECOND",
|
||||
21: "TIME_MICROSECOND",
|
||||
22: "TIME_NANOSECOND",
|
||||
}
|
||||
ColumnDataType_value = map[string]int32{
|
||||
"BOOLEAN": 0,
|
||||
"INT8": 1,
|
||||
"INT16": 2,
|
||||
"INT32": 3,
|
||||
"INT64": 4,
|
||||
"UINT8": 5,
|
||||
"UINT16": 6,
|
||||
"UINT32": 7,
|
||||
"UINT64": 8,
|
||||
"FLOAT32": 9,
|
||||
"FLOAT64": 10,
|
||||
"BINARY": 11,
|
||||
"STRING": 12,
|
||||
"DATE": 13,
|
||||
"DATETIME": 14,
|
||||
"TIMESTAMP_SECOND": 15,
|
||||
"TIMESTAMP_MILLISECOND": 16,
|
||||
"TIMESTAMP_MICROSECOND": 17,
|
||||
"TIMESTAMP_NANOSECOND": 18,
|
||||
"TIME_SECOND": 19,
|
||||
"TIME_MILLISECOND": 20,
|
||||
"TIME_MICROSECOND": 21,
|
||||
"TIME_NANOSECOND": 22,
|
||||
}
|
||||
)
|
||||
|
||||
func (x ColumnDataType) Enum() *ColumnDataType {
|
||||
p := new(ColumnDataType)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x ColumnDataType) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (ColumnDataType) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_greptime_v1_common_proto_enumTypes[1].Descriptor()
|
||||
}
|
||||
|
||||
func (ColumnDataType) Type() protoreflect.EnumType {
|
||||
return &file_greptime_v1_common_proto_enumTypes[1]
|
||||
}
|
||||
|
||||
func (x ColumnDataType) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ColumnDataType.Descriptor instead.
|
||||
func (ColumnDataType) EnumDescriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_common_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type RequestHeader struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@@ -507,6 +665,77 @@ func (x *FlightMetadata) GetAffectedRows() *AffectedRows {
|
||||
return nil
|
||||
}
|
||||
|
||||
type ColumnDef struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Datatype ColumnDataType `protobuf:"varint,2,opt,name=datatype,proto3,enum=greptime.v1.ColumnDataType" json:"datatype,omitempty"`
|
||||
IsNullable bool `protobuf:"varint,3,opt,name=is_nullable,json=isNullable,proto3" json:"is_nullable,omitempty"`
|
||||
DefaultConstraint []byte `protobuf:"bytes,4,opt,name=default_constraint,json=defaultConstraint,proto3" json:"default_constraint,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ColumnDef) Reset() {
|
||||
*x = ColumnDef{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_common_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *ColumnDef) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ColumnDef) ProtoMessage() {}
|
||||
|
||||
func (x *ColumnDef) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_common_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 ColumnDef.ProtoReflect.Descriptor instead.
|
||||
func (*ColumnDef) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_common_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *ColumnDef) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ColumnDef) GetDatatype() ColumnDataType {
|
||||
if x != nil {
|
||||
return x.Datatype
|
||||
}
|
||||
return ColumnDataType_BOOLEAN
|
||||
}
|
||||
|
||||
func (x *ColumnDef) GetIsNullable() bool {
|
||||
if x != nil {
|
||||
return x.IsNullable
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *ColumnDef) GetDefaultConstraint() []byte {
|
||||
if x != nil {
|
||||
return x.DefaultConstraint
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_greptime_v1_common_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_greptime_v1_common_proto_rawDesc = []byte{
|
||||
@@ -556,13 +785,50 @@ var file_greptime_v1_common_proto_rawDesc = []byte{
|
||||
0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
|
||||
0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66,
|
||||
0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d,
|
||||
0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||||
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67,
|
||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x33,
|
||||
0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x22, 0xa8, 0x01, 0x0a, 0x09, 0x43, 0x6f,
|
||||
0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64,
|
||||
0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75,
|
||||
0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61,
|
||||
0x74, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c,
|
||||
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
|
||||
0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||
0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72,
|
||||
0x61, 0x69, 0x6e, 0x74, 0x2a, 0x31, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,
|
||||
0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a,
|
||||
0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45,
|
||||
0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a, 0xf9, 0x02, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75,
|
||||
0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f,
|
||||
0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10,
|
||||
0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05,
|
||||
0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34,
|
||||
0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a,
|
||||
0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e,
|
||||
0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10,
|
||||
0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b,
|
||||
0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42,
|
||||
0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e,
|
||||
0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a,
|
||||
0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54,
|
||||
0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
|
||||
0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d,
|
||||
0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15,
|
||||
0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53,
|
||||
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53,
|
||||
0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
|
||||
0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44,
|
||||
0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49,
|
||||
0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45,
|
||||
0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13,
|
||||
0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e,
|
||||
0x44, 0x10, 0x16, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67,
|
||||
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -577,28 +843,33 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte {
|
||||
return file_greptime_v1_common_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_greptime_v1_common_proto_goTypes = []interface{}{
|
||||
(*RequestHeader)(nil), // 0: greptime.v1.RequestHeader
|
||||
(*ResponseHeader)(nil), // 1: greptime.v1.ResponseHeader
|
||||
(*Status)(nil), // 2: greptime.v1.Status
|
||||
(*AuthHeader)(nil), // 3: greptime.v1.AuthHeader
|
||||
(*Basic)(nil), // 4: greptime.v1.Basic
|
||||
(*Token)(nil), // 5: greptime.v1.Token
|
||||
(*AffectedRows)(nil), // 6: greptime.v1.AffectedRows
|
||||
(*FlightMetadata)(nil), // 7: greptime.v1.FlightMetadata
|
||||
(SemanticType)(0), // 0: greptime.v1.SemanticType
|
||||
(ColumnDataType)(0), // 1: greptime.v1.ColumnDataType
|
||||
(*RequestHeader)(nil), // 2: greptime.v1.RequestHeader
|
||||
(*ResponseHeader)(nil), // 3: greptime.v1.ResponseHeader
|
||||
(*Status)(nil), // 4: greptime.v1.Status
|
||||
(*AuthHeader)(nil), // 5: greptime.v1.AuthHeader
|
||||
(*Basic)(nil), // 6: greptime.v1.Basic
|
||||
(*Token)(nil), // 7: greptime.v1.Token
|
||||
(*AffectedRows)(nil), // 8: greptime.v1.AffectedRows
|
||||
(*FlightMetadata)(nil), // 9: greptime.v1.FlightMetadata
|
||||
(*ColumnDef)(nil), // 10: greptime.v1.ColumnDef
|
||||
}
|
||||
var file_greptime_v1_common_proto_depIdxs = []int32{
|
||||
3, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
|
||||
2, // 1: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
|
||||
4, // 2: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
|
||||
5, // 3: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
|
||||
6, // 4: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
|
||||
5, // [5:5] is the sub-list for method output_type
|
||||
5, // [5:5] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
|
||||
4, // 1: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
|
||||
6, // 2: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
|
||||
7, // 3: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
|
||||
8, // 4: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
|
||||
1, // 5: greptime.v1.ColumnDef.datatype:type_name -> greptime.v1.ColumnDataType
|
||||
6, // [6:6] is the sub-list for method output_type
|
||||
6, // [6:6] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
6, // [6:6] is the sub-list for extension extendee
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_greptime_v1_common_proto_init() }
|
||||
@@ -703,6 +974,18 @@ func file_greptime_v1_common_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_greptime_v1_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*ColumnDef); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
file_greptime_v1_common_proto_msgTypes[0].OneofWrappers = []interface{}{}
|
||||
file_greptime_v1_common_proto_msgTypes[3].OneofWrappers = []interface{}{
|
||||
@@ -714,13 +997,14 @@ func file_greptime_v1_common_proto_init() {
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_greptime_v1_common_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumEnums: 2,
|
||||
NumMessages: 9,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_greptime_v1_common_proto_goTypes,
|
||||
DependencyIndexes: file_greptime_v1_common_proto_depIdxs,
|
||||
EnumInfos: file_greptime_v1_common_proto_enumTypes,
|
||||
MessageInfos: file_greptime_v1_common_proto_msgTypes,
|
||||
}.Build()
|
||||
File_greptime_v1_common_proto = out.File
|
||||
|
||||
Reference in New Issue
Block a user