|
|
|
|
@ -81,6 +81,8 @@ type Metadata struct { |
|
|
|
|
Columns []*ColumnDesc `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"` |
|
|
|
|
// Section sort information.
|
|
|
|
|
SortInfo *datasetmd.SectionSortInfo `protobuf:"bytes,2,opt,name=sort_info,json=sortInfo,proto3" json:"sort_info,omitempty"` |
|
|
|
|
// The tenant who owns the streams section.
|
|
|
|
|
Tenant string `protobuf:"bytes,3,opt,name=tenant,proto3" json:"tenant,omitempty"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *Metadata) Reset() { *m = Metadata{} } |
|
|
|
|
@ -129,6 +131,13 @@ func (m *Metadata) GetSortInfo() *datasetmd.SectionSortInfo { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *Metadata) GetTenant() string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Tenant |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ColumnDesc describes an individual column within the streams table.
|
|
|
|
|
type ColumnDesc struct { |
|
|
|
|
// Information about the column.
|
|
|
|
|
@ -286,38 +295,39 @@ func init() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var fileDescriptor_7b94842ca2f0bf8d = []byte{ |
|
|
|
|
// 495 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcd, 0x6a, 0xdb, 0x40, |
|
|
|
|
0x10, 0xc7, 0xb5, 0xf9, 0xaa, 0xbb, 0x81, 0xa0, 0x2e, 0x0d, 0x4d, 0x1a, 0xb2, 0xa4, 0x86, 0x90, |
|
|
|
|
0x50, 0x8a, 0x44, 0x93, 0x43, 0x29, 0x39, 0xf9, 0x63, 0x0b, 0x02, 0xcb, 0x16, 0x92, 0x42, 0xdb, |
|
|
|
|
0x5c, 0xc4, 0xda,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0xef, 0xa8, 0xab, 0xe8, 0x05, 0xdc, 0xbd, 0xdb, 0x62, 0xa3, 0x63, 0x5a, 0x36, 0x71, 0x1c, |
|
|
|
|
0xd2, 0xf4, 0x1c, 0xe3, 0x8c, 0xa8, 0x6b, 0xf5, 0x2f, 0xa3, 0x31, 0x56, 0xae, 0xc7, 0x58, 0xb9, |
|
|
|
|
0x19, 0x63, 0xf0, 0x35, 0xc3, 0xe0, 0x67, 0x86, 0xc1, 0xaf, 0x0c, 0x83, 0x51, 0x86, 0xc1, 0x9f, |
|
|
|
|
0x0c, 0x83, 0xbf, 0x19, 0x56, 0x6e, 0x32, 0x0c, 0xbe, 0x4f, 0xb0, 0x32, 0x9a, 0x60, 0xe5, 0x7a, |
|
|
|
|
0x82, 0x95, 0xb3, 0xba, 0x1f, 0x88, 0x4f, 0x17, 0x5d, 0xad, 0xc7, 0x43, 0xdd, 0x4f, 0xe8, 0x80, |
|
|
|
|
0x46, 0x54, 0x1f, 0xf2, 0xf3, 0x40, 0xbf, 0x3c, 0xd6, 0x1f, 0x78, 0x6e, 0xdd, 0x35, 0x79, 0x0f, |
|
|
|
|
0xc7, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf3, 0x6e, 0x49, 0x89, 0xa0, 0x03, 0x00, 0x00, |
|
|
|
|
// 510 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x4d, 0x6b, 0xdb, 0x40, |
|
|
|
|
0x10, 0xd5, 0xc6, 0x89, 0xeb, 0x6c, 0x20, 0xa8, 0x4b, 0xd3, 0x3a, 0x0d, 0x59, 0x5c, 0x43, 0x88, |
|
|
|
|
0x29, 0x45, 0xa2, 0xc9, 0xa1, 0x94, 0x9c, 0xfc, 0xb1, 0x05, 0x81, 0x65, 0x1b, 0x49, 0xa1, 0x6d, |
|
|
|
|
0x2e, 0x62, 0x6d, 0xaf, 0x55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0x9c, 0x87, 0xdb, 0xf5, 0x06, 0x69, 0xcb, 0xeb, 0xe8, 0x09, 0x94, 0xf3, 0x6d, 0xa3, 0xfb, |
|
|
|
|
0xde, 0x94, 0x37, 0xd0, 0x0b, 0xb8, 0x7f, 0x77, 0xc5, 0x66, 0x57, 0xef, 0x19, 0xc4, 0x34, 0x49, |
|
|
|
|
0xcb, 0x36, 0xb5, 0x33, 0x22, 0x17, 0x1b, 0x5f, 0x26, 0x53, 0x2c, 0x5d, 0x4f, 0xb1, 0x74, 0x33, |
|
|
|
|
0xc5, 0xe0, 0x6b, 0x8c, 0xc1, 0x8f, 0x18, 0x83, 0x5f, 0x31, 0x06, 0x93, 0x18, 0x83, 0x3f, 0x31, |
|
|
|
|
0x06, 0x7f, 0x63, 0x2c, 0xdd, 0xc4, 0x18, 0x7c, 0x9f, 0x61, 0x69, 0x32, 0xc3, 0xd2, 0xf5, 0x0c, |
|
|
|
|
0x4b, 0x67, 0x0d, 0xc7, 0x15, 0x9f, 0x2e, 0xfa, 0xca, 0x80, 0x7b, 0xaa, 0x13, 0xd2, 0x11, 0xf5, |
|
|
|
|
0xa9, 0x3a, 0xe6, 0xe7, 0xae, 0x7a, 0x79, 0xac, 0x3e, 0xf0, 0x19, 0xf6, 0x8b, 0xe9, 0x3b, 0x39, |
|
|
|
|
0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x50, 0xca, 0x19, 0xb8, 0x03, 0x00, 0x00, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (x ColumnType) String() string { |
|
|
|
|
@ -357,6 +367,9 @@ func (this *Metadata) Equal(that interface{}) bool { |
|
|
|
|
if !this.SortInfo.Equal(that1.SortInfo) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if this.Tenant != that1.Tenant { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
func (this *ColumnDesc) Equal(that interface{}) bool { |
|
|
|
|
@ -443,7 +456,7 @@ func (this *Metadata) GoString() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
} |
|
|
|
|
s := make([]string, 0, 6) |
|
|
|
|
s := make([]string, 0, 7) |
|
|
|
|
s = append(s, "&streamsmd.Metadata{") |
|
|
|
|
if this.Columns != nil { |
|
|
|
|
s = append(s, "Columns: "+fmt.Sprintf("%#v", this.Columns)+",\n") |
|
|
|
|
@ -451,6 +464,7 @@ func (this *Metadata) GoString() string { |
|
|
|
|
if this.SortInfo != nil { |
|
|
|
|
s = append(s, "SortInfo: "+fmt.Sprintf("%#v", this.SortInfo)+",\n") |
|
|
|
|
} |
|
|
|
|
s = append(s, "Tenant: "+fmt.Sprintf("%#v", this.Tenant)+",\n") |
|
|
|
|
s = append(s, "}") |
|
|
|
|
return strings.Join(s, "") |
|
|
|
|
} |
|
|
|
|
@ -519,6 +533,13 @@ func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
|
_ = i |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
if len(m.Tenant) > 0 { |
|
|
|
|
i -= len(m.Tenant) |
|
|
|
|
copy(dAtA[i:], m.Tenant) |
|
|
|
|
i = encodeVarintStreamsmd(dAtA, i, uint64(len(m.Tenant))) |
|
|
|
|
i-- |
|
|
|
|
dAtA[i] = 0x1a |
|
|
|
|
} |
|
|
|
|
if m.SortInfo != nil { |
|
|
|
|
{ |
|
|
|
|
size, err := m.SortInfo.MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
|
@ -687,6 +708,10 @@ func (m *Metadata) Size() (n int) { |
|
|
|
|
l = m.SortInfo.Size() |
|
|
|
|
n += 1 + l + sovStreamsmd(uint64(l)) |
|
|
|
|
} |
|
|
|
|
l = len(m.Tenant) |
|
|
|
|
if l > 0 { |
|
|
|
|
n += 1 + l + sovStreamsmd(uint64(l)) |
|
|
|
|
} |
|
|
|
|
return n |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -752,6 +777,7 @@ func (this *Metadata) String() string { |
|
|
|
|
s := strings.Join([]string{`&Metadata{`, |
|
|
|
|
`Columns:` + repeatedStringForColumns + `,`, |
|
|
|
|
`SortInfo:` + strings.Replace(fmt.Sprintf("%v", this.SortInfo), "SectionSortInfo", "datasetmd.SectionSortInfo", 1) + `,`, |
|
|
|
|
`Tenant:` + fmt.Sprintf("%v", this.Tenant) + `,`, |
|
|
|
|
`}`, |
|
|
|
|
}, "") |
|
|
|
|
return s |
|
|
|
|
@ -899,6 +925,38 @@ func (m *Metadata) Unmarshal(dAtA []byte) error { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
case 3: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Tenant", wireType) |
|
|
|
|
} |
|
|
|
|
var stringLen uint64 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowStreamsmd |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
stringLen |= uint64(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
intStringLen := int(stringLen) |
|
|
|
|
if intStringLen < 0 { |
|
|
|
|
return ErrInvalidLengthStreamsmd |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + intStringLen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthStreamsmd |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.Tenant = string(dAtA[iNdEx:postIndex]) |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
default: |
|
|
|
|
iNdEx = preIndex |
|
|
|
|
skippy, err := skipStreamsmd(dAtA[iNdEx:]) |
|
|
|
|
|