diff --git a/influxql/query/internal/internal.pb.go b/influxql/query/internal/internal.pb.go index dd76e1b023..1f830fca91 100644 --- a/influxql/query/internal/internal.pb.go +++ b/influxql/query/internal/internal.pb.go @@ -1,27 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: internal/internal.proto -/* -Package query is a generated protocol buffer package. - -It is generated from these files: - internal/internal.proto - -It has these top-level messages: - Point - Aux - IteratorOptions - Measurements - Measurement - Interval - IteratorStats - VarRef -*/ package query -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -32,29 +18,50 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Point struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - Tags *string `protobuf:"bytes,2,req,name=Tags" json:"Tags,omitempty"` - Time *int64 `protobuf:"varint,3,req,name=Time" json:"Time,omitempty"` - Nil *bool `protobuf:"varint,4,req,name=Nil" json:"Nil,omitempty"` - Aux []*Aux `protobuf:"bytes,5,rep,name=Aux" json:"Aux,omitempty"` - Aggregated *uint32 `protobuf:"varint,6,opt,name=Aggregated" json:"Aggregated,omitempty"` - FloatValue *float64 `protobuf:"fixed64,7,opt,name=FloatValue" json:"FloatValue,omitempty"` - IntegerValue *int64 `protobuf:"varint,8,opt,name=IntegerValue" json:"IntegerValue,omitempty"` - StringValue *string `protobuf:"bytes,9,opt,name=StringValue" json:"StringValue,omitempty"` - BooleanValue *bool `protobuf:"varint,10,opt,name=BooleanValue" json:"BooleanValue,omitempty"` - UnsignedValue *uint64 `protobuf:"varint,12,opt,name=UnsignedValue" json:"UnsignedValue,omitempty"` - Stats *IteratorStats `protobuf:"bytes,11,opt,name=Stats" json:"Stats,omitempty"` - Trace []byte `protobuf:"bytes,13,opt,name=Trace" json:"Trace,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + Tags *string `protobuf:"bytes,2,req,name=Tags" json:"Tags,omitempty"` + Time *int64 `protobuf:"varint,3,req,name=Time" json:"Time,omitempty"` + Nil *bool `protobuf:"varint,4,req,name=Nil" json:"Nil,omitempty"` + Aux []*Aux `protobuf:"bytes,5,rep,name=Aux" json:"Aux,omitempty"` + Aggregated *uint32 `protobuf:"varint,6,opt,name=Aggregated" json:"Aggregated,omitempty"` + FloatValue *float64 `protobuf:"fixed64,7,opt,name=FloatValue" json:"FloatValue,omitempty"` + IntegerValue *int64 `protobuf:"varint,8,opt,name=IntegerValue" json:"IntegerValue,omitempty"` + StringValue *string `protobuf:"bytes,9,opt,name=StringValue" json:"StringValue,omitempty"` + BooleanValue *bool `protobuf:"varint,10,opt,name=BooleanValue" json:"BooleanValue,omitempty"` + UnsignedValue *uint64 `protobuf:"varint,12,opt,name=UnsignedValue" json:"UnsignedValue,omitempty"` + Stats *IteratorStats `protobuf:"bytes,11,opt,name=Stats" json:"Stats,omitempty"` + Trace []byte `protobuf:"bytes,13,opt,name=Trace" json:"Trace,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Point) Reset() { *m = Point{} } -func (m *Point) String() string { return proto.CompactTextString(m) } -func (*Point) ProtoMessage() {} -func (*Point) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{0} } +func (m *Point) Reset() { *m = Point{} } +func (m *Point) String() string { return proto.CompactTextString(m) } +func (*Point) ProtoMessage() {} +func (*Point) Descriptor() ([]byte, []int) { + return fileDescriptor_41ca0a4a9dd77d9e, []int{0} +} +func (m *Point) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Point.Unmarshal(m, b) +} +func (m *Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Point.Marshal(b, m, deterministic) +} +func (m *Point) XXX_Merge(src proto.Message) { + xxx_messageInfo_Point.Merge(m, src) +} +func (m *Point) XXX_Size() int { + return xxx_messageInfo_Point.Size(m) +} +func (m *Point) XXX_DiscardUnknown() { + xxx_messageInfo_Point.DiscardUnknown(m) +} + +var xxx_messageInfo_Point proto.InternalMessageInfo func (m *Point) GetName() string { if m != nil && m.Name != nil { @@ -148,19 +155,40 @@ func (m *Point) GetTrace() []byte { } type Aux struct { - DataType *int32 `protobuf:"varint,1,req,name=DataType" json:"DataType,omitempty"` - FloatValue *float64 `protobuf:"fixed64,2,opt,name=FloatValue" json:"FloatValue,omitempty"` - IntegerValue *int64 `protobuf:"varint,3,opt,name=IntegerValue" json:"IntegerValue,omitempty"` - StringValue *string `protobuf:"bytes,4,opt,name=StringValue" json:"StringValue,omitempty"` - BooleanValue *bool `protobuf:"varint,5,opt,name=BooleanValue" json:"BooleanValue,omitempty"` - UnsignedValue *uint64 `protobuf:"varint,6,opt,name=UnsignedValue" json:"UnsignedValue,omitempty"` - XXX_unrecognized []byte `json:"-"` + DataType *int32 `protobuf:"varint,1,req,name=DataType" json:"DataType,omitempty"` + FloatValue *float64 `protobuf:"fixed64,2,opt,name=FloatValue" json:"FloatValue,omitempty"` + IntegerValue *int64 `protobuf:"varint,3,opt,name=IntegerValue" json:"IntegerValue,omitempty"` + StringValue *string `protobuf:"bytes,4,opt,name=StringValue" json:"StringValue,omitempty"` + BooleanValue *bool `protobuf:"varint,5,opt,name=BooleanValue" json:"BooleanValue,omitempty"` + UnsignedValue *uint64 `protobuf:"varint,6,opt,name=UnsignedValue" json:"UnsignedValue,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Aux) Reset() { *m = Aux{} } -func (m *Aux) String() string { return proto.CompactTextString(m) } -func (*Aux) ProtoMessage() {} -func (*Aux) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{1} } +func (m *Aux) Reset() { *m = Aux{} } +func (m *Aux) String() string { return proto.CompactTextString(m) } +func (*Aux) ProtoMessage() {} +func (*Aux) Descriptor() ([]byte, []int) { + return fileDescriptor_41ca0a4a9dd77d9e, []int{1} +} +func (m *Aux) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Aux.Unmarshal(m, b) +} +func (m *Aux) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Aux.Marshal(b, m, deterministic) +} +func (m *Aux) XXX_Merge(src proto.Message) { + xxx_messageInfo_Aux.Merge(m, src) +} +func (m *Aux) XXX_Size() int { + return xxx_messageInfo_Aux.Size(m) +} +func (m *Aux) XXX_DiscardUnknown() { + xxx_messageInfo_Aux.DiscardUnknown(m) +} + +var xxx_messageInfo_Aux proto.InternalMessageInfo func (m *Aux) GetDataType() int32 { if m != nil && m.DataType != nil { @@ -205,35 +233,56 @@ func (m *Aux) GetUnsignedValue() uint64 { } type IteratorOptions struct { - Expr *string `protobuf:"bytes,1,opt,name=Expr" json:"Expr,omitempty"` - Aux []string `protobuf:"bytes,2,rep,name=Aux" json:"Aux,omitempty"` - Fields []*VarRef `protobuf:"bytes,17,rep,name=Fields" json:"Fields,omitempty"` - Sources []*Measurement `protobuf:"bytes,3,rep,name=Sources" json:"Sources,omitempty"` - Interval *Interval `protobuf:"bytes,4,opt,name=Interval" json:"Interval,omitempty"` - Dimensions []string `protobuf:"bytes,5,rep,name=Dimensions" json:"Dimensions,omitempty"` - GroupBy []string `protobuf:"bytes,19,rep,name=GroupBy" json:"GroupBy,omitempty"` - Fill *int32 `protobuf:"varint,6,opt,name=Fill" json:"Fill,omitempty"` - FillValue *float64 `protobuf:"fixed64,7,opt,name=FillValue" json:"FillValue,omitempty"` - Condition *string `protobuf:"bytes,8,opt,name=Condition" json:"Condition,omitempty"` - StartTime *int64 `protobuf:"varint,9,opt,name=StartTime" json:"StartTime,omitempty"` - EndTime *int64 `protobuf:"varint,10,opt,name=EndTime" json:"EndTime,omitempty"` - Location *string `protobuf:"bytes,21,opt,name=Location" json:"Location,omitempty"` - Ascending *bool `protobuf:"varint,11,opt,name=Ascending" json:"Ascending,omitempty"` - Limit *int64 `protobuf:"varint,12,opt,name=Limit" json:"Limit,omitempty"` - Offset *int64 `protobuf:"varint,13,opt,name=Offset" json:"Offset,omitempty"` - SLimit *int64 `protobuf:"varint,14,opt,name=SLimit" json:"SLimit,omitempty"` - SOffset *int64 `protobuf:"varint,15,opt,name=SOffset" json:"SOffset,omitempty"` - StripName *bool `protobuf:"varint,22,opt,name=StripName" json:"StripName,omitempty"` - Dedupe *bool `protobuf:"varint,16,opt,name=Dedupe" json:"Dedupe,omitempty"` - MaxSeriesN *int64 `protobuf:"varint,18,opt,name=MaxSeriesN" json:"MaxSeriesN,omitempty"` - Ordered *bool `protobuf:"varint,20,opt,name=Ordered" json:"Ordered,omitempty"` - XXX_unrecognized []byte `json:"-"` + Expr *string `protobuf:"bytes,1,opt,name=Expr" json:"Expr,omitempty"` + Aux []string `protobuf:"bytes,2,rep,name=Aux" json:"Aux,omitempty"` + Fields []*VarRef `protobuf:"bytes,17,rep,name=Fields" json:"Fields,omitempty"` + Sources []*Measurement `protobuf:"bytes,3,rep,name=Sources" json:"Sources,omitempty"` + Interval *Interval `protobuf:"bytes,4,opt,name=Interval" json:"Interval,omitempty"` + Dimensions []string `protobuf:"bytes,5,rep,name=Dimensions" json:"Dimensions,omitempty"` + GroupBy []string `protobuf:"bytes,19,rep,name=GroupBy" json:"GroupBy,omitempty"` + Fill *int32 `protobuf:"varint,6,opt,name=Fill" json:"Fill,omitempty"` + FillValue *float64 `protobuf:"fixed64,7,opt,name=FillValue" json:"FillValue,omitempty"` + Condition *string `protobuf:"bytes,8,opt,name=Condition" json:"Condition,omitempty"` + StartTime *int64 `protobuf:"varint,9,opt,name=StartTime" json:"StartTime,omitempty"` + EndTime *int64 `protobuf:"varint,10,opt,name=EndTime" json:"EndTime,omitempty"` + Location *string `protobuf:"bytes,21,opt,name=Location" json:"Location,omitempty"` + Ascending *bool `protobuf:"varint,11,opt,name=Ascending" json:"Ascending,omitempty"` + Limit *int64 `protobuf:"varint,12,opt,name=Limit" json:"Limit,omitempty"` + Offset *int64 `protobuf:"varint,13,opt,name=Offset" json:"Offset,omitempty"` + SLimit *int64 `protobuf:"varint,14,opt,name=SLimit" json:"SLimit,omitempty"` + SOffset *int64 `protobuf:"varint,15,opt,name=SOffset" json:"SOffset,omitempty"` + StripName *bool `protobuf:"varint,22,opt,name=StripName" json:"StripName,omitempty"` + Dedupe *bool `protobuf:"varint,16,opt,name=Dedupe" json:"Dedupe,omitempty"` + MaxSeriesN *int64 `protobuf:"varint,18,opt,name=MaxSeriesN" json:"MaxSeriesN,omitempty"` + Ordered *bool `protobuf:"varint,20,opt,name=Ordered" json:"Ordered,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *IteratorOptions) Reset() { *m = IteratorOptions{} } -func (m *IteratorOptions) String() string { return proto.CompactTextString(m) } -func (*IteratorOptions) ProtoMessage() {} -func (*IteratorOptions) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{2} } +func (m *IteratorOptions) Reset() { *m = IteratorOptions{} } +func (m *IteratorOptions) String() string { return proto.CompactTextString(m) } +func (*IteratorOptions) ProtoMessage() {} +func (*IteratorOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_41ca0a4a9dd77d9e, []int{2} +} +func (m *IteratorOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IteratorOptions.Unmarshal(m, b) +} +func (m *IteratorOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IteratorOptions.Marshal(b, m, deterministic) +} +func (m *IteratorOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_IteratorOptions.Merge(m, src) +} +func (m *IteratorOptions) XXX_Size() int { + return xxx_messageInfo_IteratorOptions.Size(m) +} +func (m *IteratorOptions) XXX_DiscardUnknown() { + xxx_messageInfo_IteratorOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_IteratorOptions proto.InternalMessageInfo func (m *IteratorOptions) GetExpr() string { if m != nil && m.Expr != nil { @@ -390,14 +439,35 @@ func (m *IteratorOptions) GetOrdered() bool { } type Measurements struct { - Items []*Measurement `protobuf:"bytes,1,rep,name=Items" json:"Items,omitempty"` - XXX_unrecognized []byte `json:"-"` + Items []*Measurement `protobuf:"bytes,1,rep,name=Items" json:"Items,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Measurements) Reset() { *m = Measurements{} } -func (m *Measurements) String() string { return proto.CompactTextString(m) } -func (*Measurements) ProtoMessage() {} -func (*Measurements) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{3} } +func (m *Measurements) Reset() { *m = Measurements{} } +func (m *Measurements) String() string { return proto.CompactTextString(m) } +func (*Measurements) ProtoMessage() {} +func (*Measurements) Descriptor() ([]byte, []int) { + return fileDescriptor_41ca0a4a9dd77d9e, []int{3} +} +func (m *Measurements) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Measurements.Unmarshal(m, b) +} +func (m *Measurements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Measurements.Marshal(b, m, deterministic) +} +func (m *Measurements) XXX_Merge(src proto.Message) { + xxx_messageInfo_Measurements.Merge(m, src) +} +func (m *Measurements) XXX_Size() int { + return xxx_messageInfo_Measurements.Size(m) +} +func (m *Measurements) XXX_DiscardUnknown() { + xxx_messageInfo_Measurements.DiscardUnknown(m) +} + +var xxx_messageInfo_Measurements proto.InternalMessageInfo func (m *Measurements) GetItems() []*Measurement { if m != nil { @@ -407,19 +477,40 @@ func (m *Measurements) GetItems() []*Measurement { } type Measurement struct { - Database *string `protobuf:"bytes,1,opt,name=Database" json:"Database,omitempty"` - RetentionPolicy *string `protobuf:"bytes,2,opt,name=RetentionPolicy" json:"RetentionPolicy,omitempty"` - Name *string `protobuf:"bytes,3,opt,name=Name" json:"Name,omitempty"` - Regex *string `protobuf:"bytes,4,opt,name=Regex" json:"Regex,omitempty"` - IsTarget *bool `protobuf:"varint,5,opt,name=IsTarget" json:"IsTarget,omitempty"` - SystemIterator *string `protobuf:"bytes,6,opt,name=SystemIterator" json:"SystemIterator,omitempty"` - XXX_unrecognized []byte `json:"-"` + Database *string `protobuf:"bytes,1,opt,name=Database" json:"Database,omitempty"` + RetentionPolicy *string `protobuf:"bytes,2,opt,name=RetentionPolicy" json:"RetentionPolicy,omitempty"` + Name *string `protobuf:"bytes,3,opt,name=Name" json:"Name,omitempty"` + Regex *string `protobuf:"bytes,4,opt,name=Regex" json:"Regex,omitempty"` + IsTarget *bool `protobuf:"varint,5,opt,name=IsTarget" json:"IsTarget,omitempty"` + SystemIterator *string `protobuf:"bytes,6,opt,name=SystemIterator" json:"SystemIterator,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Measurement) Reset() { *m = Measurement{} } -func (m *Measurement) String() string { return proto.CompactTextString(m) } -func (*Measurement) ProtoMessage() {} -func (*Measurement) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{4} } +func (m *Measurement) Reset() { *m = Measurement{} } +func (m *Measurement) String() string { return proto.CompactTextString(m) } +func (*Measurement) ProtoMessage() {} +func (*Measurement) Descriptor() ([]byte, []int) { + return fileDescriptor_41ca0a4a9dd77d9e, []int{4} +} +func (m *Measurement) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Measurement.Unmarshal(m, b) +} +func (m *Measurement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Measurement.Marshal(b, m, deterministic) +} +func (m *Measurement) XXX_Merge(src proto.Message) { + xxx_messageInfo_Measurement.Merge(m, src) +} +func (m *Measurement) XXX_Size() int { + return xxx_messageInfo_Measurement.Size(m) +} +func (m *Measurement) XXX_DiscardUnknown() { + xxx_messageInfo_Measurement.DiscardUnknown(m) +} + +var xxx_messageInfo_Measurement proto.InternalMessageInfo func (m *Measurement) GetDatabase() string { if m != nil && m.Database != nil { @@ -464,15 +555,36 @@ func (m *Measurement) GetSystemIterator() string { } type Interval struct { - Duration *int64 `protobuf:"varint,1,opt,name=Duration" json:"Duration,omitempty"` - Offset *int64 `protobuf:"varint,2,opt,name=Offset" json:"Offset,omitempty"` - XXX_unrecognized []byte `json:"-"` + Duration *int64 `protobuf:"varint,1,opt,name=Duration" json:"Duration,omitempty"` + Offset *int64 `protobuf:"varint,2,opt,name=Offset" json:"Offset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Interval) Reset() { *m = Interval{} } -func (m *Interval) String() string { return proto.CompactTextString(m) } -func (*Interval) ProtoMessage() {} -func (*Interval) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{5} } +func (m *Interval) Reset() { *m = Interval{} } +func (m *Interval) String() string { return proto.CompactTextString(m) } +func (*Interval) ProtoMessage() {} +func (*Interval) Descriptor() ([]byte, []int) { + return fileDescriptor_41ca0a4a9dd77d9e, []int{5} +} +func (m *Interval) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Interval.Unmarshal(m, b) +} +func (m *Interval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Interval.Marshal(b, m, deterministic) +} +func (m *Interval) XXX_Merge(src proto.Message) { + xxx_messageInfo_Interval.Merge(m, src) +} +func (m *Interval) XXX_Size() int { + return xxx_messageInfo_Interval.Size(m) +} +func (m *Interval) XXX_DiscardUnknown() { + xxx_messageInfo_Interval.DiscardUnknown(m) +} + +var xxx_messageInfo_Interval proto.InternalMessageInfo func (m *Interval) GetDuration() int64 { if m != nil && m.Duration != nil { @@ -489,15 +601,36 @@ func (m *Interval) GetOffset() int64 { } type IteratorStats struct { - SeriesN *int64 `protobuf:"varint,1,opt,name=SeriesN" json:"SeriesN,omitempty"` - PointN *int64 `protobuf:"varint,2,opt,name=PointN" json:"PointN,omitempty"` - XXX_unrecognized []byte `json:"-"` + SeriesN *int64 `protobuf:"varint,1,opt,name=SeriesN" json:"SeriesN,omitempty"` + PointN *int64 `protobuf:"varint,2,opt,name=PointN" json:"PointN,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *IteratorStats) Reset() { *m = IteratorStats{} } -func (m *IteratorStats) String() string { return proto.CompactTextString(m) } -func (*IteratorStats) ProtoMessage() {} -func (*IteratorStats) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{6} } +func (m *IteratorStats) Reset() { *m = IteratorStats{} } +func (m *IteratorStats) String() string { return proto.CompactTextString(m) } +func (*IteratorStats) ProtoMessage() {} +func (*IteratorStats) Descriptor() ([]byte, []int) { + return fileDescriptor_41ca0a4a9dd77d9e, []int{6} +} +func (m *IteratorStats) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IteratorStats.Unmarshal(m, b) +} +func (m *IteratorStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IteratorStats.Marshal(b, m, deterministic) +} +func (m *IteratorStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_IteratorStats.Merge(m, src) +} +func (m *IteratorStats) XXX_Size() int { + return xxx_messageInfo_IteratorStats.Size(m) +} +func (m *IteratorStats) XXX_DiscardUnknown() { + xxx_messageInfo_IteratorStats.DiscardUnknown(m) +} + +var xxx_messageInfo_IteratorStats proto.InternalMessageInfo func (m *IteratorStats) GetSeriesN() int64 { if m != nil && m.SeriesN != nil { @@ -514,15 +647,36 @@ func (m *IteratorStats) GetPointN() int64 { } type VarRef struct { - Val *string `protobuf:"bytes,1,req,name=Val" json:"Val,omitempty"` - Type *int32 `protobuf:"varint,2,opt,name=Type" json:"Type,omitempty"` - XXX_unrecognized []byte `json:"-"` + Val *string `protobuf:"bytes,1,req,name=Val" json:"Val,omitempty"` + Type *int32 `protobuf:"varint,2,opt,name=Type" json:"Type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *VarRef) Reset() { *m = VarRef{} } -func (m *VarRef) String() string { return proto.CompactTextString(m) } -func (*VarRef) ProtoMessage() {} -func (*VarRef) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{7} } +func (m *VarRef) Reset() { *m = VarRef{} } +func (m *VarRef) String() string { return proto.CompactTextString(m) } +func (*VarRef) ProtoMessage() {} +func (*VarRef) Descriptor() ([]byte, []int) { + return fileDescriptor_41ca0a4a9dd77d9e, []int{7} +} +func (m *VarRef) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VarRef.Unmarshal(m, b) +} +func (m *VarRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VarRef.Marshal(b, m, deterministic) +} +func (m *VarRef) XXX_Merge(src proto.Message) { + xxx_messageInfo_VarRef.Merge(m, src) +} +func (m *VarRef) XXX_Size() int { + return xxx_messageInfo_VarRef.Size(m) +} +func (m *VarRef) XXX_DiscardUnknown() { + xxx_messageInfo_VarRef.DiscardUnknown(m) +} + +var xxx_messageInfo_VarRef proto.InternalMessageInfo func (m *VarRef) GetVal() string { if m != nil && m.Val != nil { @@ -549,9 +703,9 @@ func init() { proto.RegisterType((*VarRef)(nil), "query.VarRef") } -func init() { proto.RegisterFile("internal/internal.proto", fileDescriptorInternal) } +func init() { proto.RegisterFile("internal/internal.proto", fileDescriptor_41ca0a4a9dd77d9e) } -var fileDescriptorInternal = []byte{ +var fileDescriptor_41ca0a4a9dd77d9e = []byte{ // 796 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x6d, 0x6f, 0xe3, 0x44, 0x10, 0x96, 0xe3, 0x3a, 0x8d, 0x27, 0xcd, 0xf5, 0x58, 0x4a, 0x59, 0xa1, 0x13, 0xb2, 0x2c, 0x40, diff --git a/models/fieldtype_string.go b/models/fieldtype_string.go index 3d181aa991..d8016e8bf3 100644 --- a/models/fieldtype_string.go +++ b/models/fieldtype_string.go @@ -4,6 +4,18 @@ package models import "strconv" +func _() { + // An "invalid array index" compiler error signifies that the constant values have changed. + // Re-run the stringer command to generate them again. + var x [1]struct{} + _ = x[Integer-0] + _ = x[Float-1] + _ = x[Boolean-2] + _ = x[String-3] + _ = x[Empty-4] + _ = x[Unsigned-5] +} + const _FieldType_name = "IntegerFloatBooleanStringEmptyUnsigned" var _FieldType_index = [...]uint8{0, 7, 12, 19, 25, 30, 38} diff --git a/pkg/tracing/wire/binary.pb.go b/pkg/tracing/wire/binary.pb.go index 8a8a9c4f14..935444aec8 100644 --- a/pkg/tracing/wire/binary.pb.go +++ b/pkg/tracing/wire/binary.pb.go @@ -1,31 +1,20 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: binary.proto -/* - Package wire is a generated protocol buffer package. - - It is generated from these files: - binary.proto - - It has these top-level messages: - SpanContext - Span - Trace - Field -*/ package wire -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "github.com/gogo/protobuf/gogoproto" -import _ "github.com/gogo/protobuf/types" - -import time "time" - -import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - -import io "io" +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + _ "github.com/gogo/protobuf/types" + github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" + io "io" + math "math" + math_bits "math/bits" + time "time" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -37,7 +26,7 @@ var _ = time.Kitchen // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Field_FieldType int32 @@ -58,6 +47,7 @@ var Field_FieldType_name = map[int32]string{ 4: "DURATION", 6: "FLOAT_64", } + var Field_FieldType_value = map[string]int32{ "STRING": 0, "BOOL": 1, @@ -70,17 +60,48 @@ var Field_FieldType_value = map[string]int32{ func (x Field_FieldType) String() string { return proto.EnumName(Field_FieldType_name, int32(x)) } -func (Field_FieldType) EnumDescriptor() ([]byte, []int) { return fileDescriptorBinary, []int{3, 0} } + +func (Field_FieldType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3aeef8c45497084a, []int{3, 0} +} type SpanContext struct { TraceID uint64 `protobuf:"varint,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` SpanID uint64 `protobuf:"varint,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` } -func (m *SpanContext) Reset() { *m = SpanContext{} } -func (m *SpanContext) String() string { return proto.CompactTextString(m) } -func (*SpanContext) ProtoMessage() {} -func (*SpanContext) Descriptor() ([]byte, []int) { return fileDescriptorBinary, []int{0} } +func (m *SpanContext) Reset() { *m = SpanContext{} } +func (m *SpanContext) String() string { return proto.CompactTextString(m) } +func (*SpanContext) ProtoMessage() {} +func (*SpanContext) Descriptor() ([]byte, []int) { + return fileDescriptor_3aeef8c45497084a, []int{0} +} +func (m *SpanContext) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SpanContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SpanContext.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SpanContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_SpanContext.Merge(m, src) +} +func (m *SpanContext) XXX_Size() int { + return m.Size() +} +func (m *SpanContext) XXX_DiscardUnknown() { + xxx_messageInfo_SpanContext.DiscardUnknown(m) +} + +var xxx_messageInfo_SpanContext proto.InternalMessageInfo func (m *SpanContext) GetTraceID() uint64 { if m != nil { @@ -97,18 +118,46 @@ func (m *SpanContext) GetSpanID() uint64 { } type Span struct { - Context SpanContext `protobuf:"bytes,1,opt,name=context" json:"context"` + Context SpanContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context"` ParentSpanID uint64 `protobuf:"varint,2,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Start time.Time `protobuf:"bytes,4,opt,name=start_time,json=startTime,stdtime" json:"start_time"` - Labels []string `protobuf:"bytes,5,rep,name=labels" json:"labels,omitempty"` - Fields []Field `protobuf:"bytes,6,rep,name=fields" json:"fields"` + Start time.Time `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"` + Labels []string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"` + Fields []Field `protobuf:"bytes,6,rep,name=fields,proto3" json:"fields"` } -func (m *Span) Reset() { *m = Span{} } -func (m *Span) String() string { return proto.CompactTextString(m) } -func (*Span) ProtoMessage() {} -func (*Span) Descriptor() ([]byte, []int) { return fileDescriptorBinary, []int{1} } +func (m *Span) Reset() { *m = Span{} } +func (m *Span) String() string { return proto.CompactTextString(m) } +func (*Span) ProtoMessage() {} +func (*Span) Descriptor() ([]byte, []int) { + return fileDescriptor_3aeef8c45497084a, []int{1} +} +func (m *Span) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Span.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Span) XXX_Merge(src proto.Message) { + xxx_messageInfo_Span.Merge(m, src) +} +func (m *Span) XXX_Size() int { + return m.Size() +} +func (m *Span) XXX_DiscardUnknown() { + xxx_messageInfo_Span.DiscardUnknown(m) +} + +var xxx_messageInfo_Span proto.InternalMessageInfo func (m *Span) GetContext() SpanContext { if m != nil { @@ -153,13 +202,41 @@ func (m *Span) GetFields() []Field { } type Trace struct { - Spans []*Span `protobuf:"bytes,1,rep,name=spans" json:"spans,omitempty"` + Spans []*Span `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"` } -func (m *Trace) Reset() { *m = Trace{} } -func (m *Trace) String() string { return proto.CompactTextString(m) } -func (*Trace) ProtoMessage() {} -func (*Trace) Descriptor() ([]byte, []int) { return fileDescriptorBinary, []int{2} } +func (m *Trace) Reset() { *m = Trace{} } +func (m *Trace) String() string { return proto.CompactTextString(m) } +func (*Trace) ProtoMessage() {} +func (*Trace) Descriptor() ([]byte, []int) { + return fileDescriptor_3aeef8c45497084a, []int{2} +} +func (m *Trace) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Trace.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Trace) XXX_Merge(src proto.Message) { + xxx_messageInfo_Trace.Merge(m, src) +} +func (m *Trace) XXX_Size() int { + return m.Size() +} +func (m *Trace) XXX_DiscardUnknown() { + xxx_messageInfo_Trace.DiscardUnknown(m) +} + +var xxx_messageInfo_Trace proto.InternalMessageInfo func (m *Trace) GetSpans() []*Span { if m != nil { @@ -177,10 +254,38 @@ type Field struct { Value isField_Value `protobuf_oneof:"value"` } -func (m *Field) Reset() { *m = Field{} } -func (m *Field) String() string { return proto.CompactTextString(m) } -func (*Field) ProtoMessage() {} -func (*Field) Descriptor() ([]byte, []int) { return fileDescriptorBinary, []int{3} } +func (m *Field) Reset() { *m = Field{} } +func (m *Field) String() string { return proto.CompactTextString(m) } +func (*Field) ProtoMessage() {} +func (*Field) Descriptor() ([]byte, []int) { + return fileDescriptor_3aeef8c45497084a, []int{3} +} +func (m *Field) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Field.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Field) XXX_Merge(src proto.Message) { + xxx_messageInfo_Field.Merge(m, src) +} +func (m *Field) XXX_Size() int { + return m.Size() +} +func (m *Field) XXX_DiscardUnknown() { + xxx_messageInfo_Field.DiscardUnknown(m) +} + +var xxx_messageInfo_Field proto.InternalMessageInfo type isField_Value interface { isField_Value() @@ -189,10 +294,10 @@ type isField_Value interface { } type Field_NumericVal struct { - NumericVal int64 `protobuf:"fixed64,3,opt,name=numeric_val,json=numericVal,proto3,oneof"` + NumericVal int64 `protobuf:"fixed64,3,opt,name=numeric_val,json=numericVal,proto3,oneof" json:"numeric_val,omitempty"` } type Field_StringVal struct { - StringVal string `protobuf:"bytes,4,opt,name=string_val,json=stringVal,proto3,oneof"` + StringVal string `protobuf:"bytes,4,opt,name=string_val,json=stringVal,proto3,oneof" json:"string_val,omitempty"` } func (*Field_NumericVal) isField_Value() {} @@ -233,82 +338,72 @@ func (m *Field) GetStringVal() string { return "" } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*Field) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _Field_OneofMarshaler, _Field_OneofUnmarshaler, _Field_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Field) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*Field_NumericVal)(nil), (*Field_StringVal)(nil), } } -func _Field_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*Field) - // value - switch x := m.Value.(type) { - case *Field_NumericVal: - _ = b.EncodeVarint(3<<3 | proto.WireFixed64) - _ = b.EncodeFixed64(uint64(x.NumericVal)) - case *Field_StringVal: - _ = b.EncodeVarint(4<<3 | proto.WireBytes) - _ = b.EncodeStringBytes(x.StringVal) - case nil: - default: - return fmt.Errorf("Field.Value has unexpected type %T", x) - } - return nil -} - -func _Field_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*Field) - switch tag { - case 3: // value.numeric_val - if wire != proto.WireFixed64 { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeFixed64() - m.Value = &Field_NumericVal{int64(x)} - return true, err - case 4: // value.string_val - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Value = &Field_StringVal{x} - return true, err - default: - return false, nil - } -} - -func _Field_OneofSizer(msg proto.Message) (n int) { - m := msg.(*Field) - // value - switch x := m.Value.(type) { - case *Field_NumericVal: - n += proto.SizeVarint(3<<3 | proto.WireFixed64) - n += 8 - case *Field_StringVal: - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.StringVal))) - n += len(x.StringVal) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - func init() { + proto.RegisterEnum("wire.Field_FieldType", Field_FieldType_name, Field_FieldType_value) proto.RegisterType((*SpanContext)(nil), "wire.SpanContext") proto.RegisterType((*Span)(nil), "wire.Span") proto.RegisterType((*Trace)(nil), "wire.Trace") proto.RegisterType((*Field)(nil), "wire.Field") - proto.RegisterEnum("wire.Field_FieldType", Field_FieldType_name, Field_FieldType_value) } + +func init() { proto.RegisterFile("binary.proto", fileDescriptor_3aeef8c45497084a) } + +var fileDescriptor_3aeef8c45497084a = []byte{ + // 633 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x52, 0x4d, 0x6f, 0x9b, 0x4a, + 0x14, 0x85, 0x18, 0xe3, 0x70, 0x9d, 0xf8, 0xe1, 0x79, 0x2f, 0x4f, 0x88, 0x4a, 0x80, 0x1c, 0xa9, + 0x72, 0x16, 0x25, 0x4a, 0x1a, 0x79, 0x1f, 0x62, 0xa5, 0x45, 0x8a, 0xec, 0x0a, 0x3b, 0x5d, 0x74, + 0x63, 0x8d, 0xed, 0x89, 0x8b, 0x8a, 0x01, 0xc1, 0x38, 0xad, 0xff, 0x41, 0xe5, 0x55, 0x56, 0xdd, + 0x79, 0xd5, 0x45, 0xff, 0x4a, 0x96, 0x59, 0x56, 0x5d, 0xd0, 0x8a, 0xfc, 0x91, 0x6a, 0x06, 0x7f, + 0xa4, 0xdd, 0xa0, 0x7b, 0xef, 0x39, 0xf7, 0x9c, 0xb9, 0x47, 0xc0, 0xde, 0xd0, 0x0f, 0x71, 0x32, + 0xb7, 0xe3, 0x24, 0xa2, 0x11, 0x92, 0x3e, 0xfa, 0x09, 0xd1, 0x5f, 0x4c, 0x7c, 0xfa, 0x7e, 0x36, + 0xb4, 0x47, 0xd1, 0xf4, 0x78, 0x12, 0x4d, 0xa2, 0x63, 0x0e, 0x0e, 0x67, 0x37, 0xbc, 0xe3, 0x0d, + 0xaf, 0x8a, 0x25, 0xdd, 0x9c, 0x44, 0xd1, 0x24, 0x20, 0x5b, 0x16, 0xf5, 0xa7, 0x24, 0xa5, 0x78, + 0x1a, 0x17, 0x84, 0xc6, 0x3b, 0xa8, 0xf6, 0x62, 0x1c, 0x5e, 0x44, 0x21, 0x25, 0x9f, 0x28, 0x7a, + 0x0e, 0xbb, 0x34, 0xc1, 0x23, 0x32, 0xf0, 0xc7, 0x9a, 0x68, 0x89, 0x4d, 0xc9, 0xa9, 0xe6, 0x99, + 0x59, 0xe9, 0xb3, 0x99, 0xdb, 0xf6, 0x2a, 0x1c, 0x74, 0xc7, 0xe8, 0x10, 0x2a, 0x69, 0x8c, 0x43, + 0x46, 0xdb, 0xe1, 0x34, 0xc8, 0x33, 0x53, 0x66, 0x4a, 0x6e, 0xdb, 0x93, 0x19, 0xe4, 0x8e, 0x1b, + 0x5f, 0x76, 0x40, 0x62, 0x23, 0x74, 0x02, 0x95, 0x51, 0x61, 0xc0, 0x45, 0xab, 0xa7, 0x75, 0x9b, + 0x1d, 0x63, 0x3f, 0x71, 0x76, 0xa4, 0xfb, 0xcc, 0x14, 0xbc, 0x35, 0x0f, 0xb5, 0xa0, 0x16, 0xe3, + 0x84, 0x84, 0x74, 0xf0, 0xa7, 0x8f, 0x9a, 0x67, 0xe6, 0xde, 0x1b, 0x8e, 0xac, 0xdc, 0xf6, 0xe2, + 0x6d, 0x37, 0x46, 0x08, 0xa4, 0x10, 0x4f, 0x89, 0x56, 0xb2, 0xc4, 0xa6, 0xe2, 0xf1, 0x1a, 0x5d, + 0x01, 0xa4, 0x14, 0x27, 0x74, 0xc0, 0x8e, 0xd7, 0x24, 0xfe, 0x02, 0xdd, 0x2e, 0x92, 0xb1, 0xd7, + 0xc9, 0xd8, 0xfd, 0x75, 0x32, 0x4e, 0x9d, 0x3d, 0x25, 0xcf, 0xcc, 0x72, 0x8f, 0x6d, 0xdd, 0xfd, + 0x34, 0x45, 0x4f, 0xe1, 0x02, 0x8c, 0x82, 0xfe, 0x07, 0x39, 0xc0, 0x43, 0x12, 0xa4, 0x5a, 0xd9, + 0x2a, 0x35, 0x15, 0x6f, 0xd5, 0xa1, 0x23, 0x90, 0x6f, 0x7c, 0x12, 0x8c, 0x53, 0x4d, 0xb6, 0x4a, + 0xcd, 0xea, 0x69, 0xb5, 0xb8, 0xf1, 0x92, 0xcd, 0x56, 0xd7, 0xad, 0x08, 0x8d, 0x23, 0x28, 0xf3, + 0x44, 0x91, 0x05, 0x65, 0x76, 0x5e, 0xaa, 0x89, 0x7c, 0x05, 0xb6, 0xb1, 0x78, 0x05, 0xd0, 0xf8, + 0x56, 0x82, 0x32, 0x97, 0x40, 0x2a, 0x94, 0x3e, 0x90, 0x39, 0x0f, 0x50, 0xf1, 0x58, 0x89, 0x2e, + 0x00, 0xb8, 0xe0, 0x80, 0xce, 0x63, 0xc2, 0xf3, 0xa9, 0x9d, 0x1e, 0x3c, 0x71, 0x2d, 0xbe, 0xfd, + 0x79, 0x4c, 0x9c, 0xfd, 0x3c, 0x33, 0x95, 0x4d, 0xeb, 0x29, 0x37, 0xeb, 0x12, 0x9d, 0x40, 0x35, + 0x9c, 0x4d, 0x49, 0xe2, 0x8f, 0x06, 0xb7, 0x38, 0xe0, 0xb9, 0xa9, 0x4e, 0x2d, 0xcf, 0x4c, 0xe8, + 0x14, 0xe3, 0xb7, 0x38, 0x78, 0x2d, 0x78, 0x10, 0x6e, 0x3a, 0x64, 0xb3, 0x3c, 0x13, 0x3f, 0x9c, + 0xf0, 0x0d, 0x96, 0xa7, 0x52, 0x18, 0xf4, 0xf8, 0xb4, 0x58, 0x50, 0xd2, 0x75, 0xd3, 0xf8, 0x21, + 0xc2, 0xd6, 0x1b, 0x99, 0x20, 0xf7, 0xfa, 0x9e, 0xdb, 0x79, 0xa5, 0x0a, 0xfa, 0xbf, 0x8b, 0xa5, + 0xf5, 0xcf, 0x06, 0x2a, 0xd6, 0xd1, 0x33, 0x90, 0x9c, 0x6e, 0xf7, 0x4a, 0x15, 0xf5, 0xfa, 0x62, + 0x69, 0xed, 0x6f, 0x8f, 0x88, 0xa2, 0x00, 0x19, 0x20, 0xbb, 0x9d, 0xfe, 0xa0, 0x75, 0xa6, 0xee, + 0xe8, 0x68, 0xb1, 0xb4, 0x6a, 0x1b, 0xd8, 0x0d, 0x69, 0xeb, 0x0c, 0x59, 0x50, 0xb9, 0x5e, 0x11, + 0x4a, 0x7f, 0xc9, 0x5f, 0xfb, 0x9c, 0x71, 0x08, 0xbb, 0xed, 0x6b, 0xef, 0xbc, 0xef, 0x76, 0x3b, + 0xaa, 0xa4, 0x1f, 0x2c, 0x96, 0x56, 0x7d, 0x43, 0x69, 0xcf, 0x12, 0x4c, 0xfd, 0x28, 0x44, 0x0d, + 0xd8, 0xbd, 0xbc, 0xea, 0x9e, 0x73, 0x1d, 0x59, 0xff, 0x6f, 0xb1, 0xb4, 0xd4, 0x0d, 0xe9, 0x32, + 0x88, 0x30, 0x6d, 0x9d, 0xe9, 0xd2, 0xe7, 0xaf, 0x86, 0xe0, 0x54, 0xa0, 0x7c, 0x8b, 0x83, 0x19, + 0x71, 0xb4, 0xfb, 0xdc, 0x10, 0x1f, 0x72, 0x43, 0xfc, 0x95, 0x1b, 0xe2, 0xdd, 0xa3, 0x21, 0x3c, + 0x3c, 0x1a, 0xc2, 0xf7, 0x47, 0x43, 0x18, 0xca, 0xfc, 0x1f, 0x7b, 0xf9, 0x3b, 0x00, 0x00, 0xff, + 0xff, 0xb5, 0xfc, 0x46, 0x87, 0xd0, 0x03, 0x00, 0x00, +} + func (m *SpanContext) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -316,27 +411,32 @@ func (m *SpanContext) Marshal() (dAtA []byte, err error) { } func (m *SpanContext) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SpanContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.TraceID != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintBinary(dAtA, i, uint64(m.TraceID)) - } if m.SpanID != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintBinary(dAtA, i, uint64(m.SpanID)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.TraceID != 0 { + i = encodeVarintBinary(dAtA, i, uint64(m.TraceID)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *Span) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -344,71 +444,75 @@ func (m *Span) Marshal() (dAtA []byte, err error) { } func (m *Span) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Span) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - dAtA[i] = 0xa - i++ - i = encodeVarintBinary(dAtA, i, uint64(m.Context.Size())) - n1, err := m.Context.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - if m.ParentSpanID != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintBinary(dAtA, i, uint64(m.ParentSpanID)) - } - if len(m.Name) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintBinary(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - dAtA[i] = 0x22 - i++ - i = encodeVarintBinary(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Start))) - n2, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - if len(m.Labels) > 0 { - for _, s := range m.Labels { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } if len(m.Fields) > 0 { - for _, msg := range m.Fields { - dAtA[i] = 0x32 - i++ - i = encodeVarintBinary(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Fields) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Fields[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBinary(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0x32 } } - return i, nil + if len(m.Labels) > 0 { + for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Labels[iNdEx]) + copy(dAtA[i:], m.Labels[iNdEx]) + i = encodeVarintBinary(dAtA, i, uint64(len(m.Labels[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):]) + if err1 != nil { + return 0, err1 + } + i -= n1 + i = encodeVarintBinary(dAtA, i, uint64(n1)) + i-- + dAtA[i] = 0x22 + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintBinary(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if m.ParentSpanID != 0 { + i = encodeVarintBinary(dAtA, i, uint64(m.ParentSpanID)) + i-- + dAtA[i] = 0x10 + } + { + size, err := m.Context.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBinary(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil } func (m *Trace) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -416,29 +520,36 @@ func (m *Trace) Marshal() (dAtA []byte, err error) { } func (m *Trace) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Trace) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Spans) > 0 { - for _, msg := range m.Spans { - dAtA[i] = 0xa - i++ - i = encodeVarintBinary(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Spans) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Spans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBinary(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *Field) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -446,74 +557,81 @@ func (m *Field) Marshal() (dAtA []byte, err error) { } func (m *Field) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Field) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintBinary(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } } if m.FieldType != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintBinary(dAtA, i, uint64(m.FieldType)) + i-- + dAtA[i] = 0x10 } - if m.Value != nil { - nn3, err := m.Value.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += nn3 + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintBinary(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *Field_NumericVal) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Field_NumericVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.NumericVal)) + i-- dAtA[i] = 0x19 - i++ - i = encodeFixed64Binary(dAtA, i, uint64(m.NumericVal)) - return i, nil + return len(dAtA) - i, nil } func (m *Field_StringVal) MarshalTo(dAtA []byte) (int, error) { - i := 0 - dAtA[i] = 0x22 - i++ + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Field_StringVal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.StringVal) + copy(dAtA[i:], m.StringVal) i = encodeVarintBinary(dAtA, i, uint64(len(m.StringVal))) - i += copy(dAtA[i:], m.StringVal) - return i, nil -} -func encodeFixed64Binary(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Binary(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 + i-- + dAtA[i] = 0x22 + return len(dAtA) - i, nil } func encodeVarintBinary(dAtA []byte, offset int, v uint64) int { + offset -= sovBinary(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *SpanContext) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TraceID != 0 { @@ -526,6 +644,9 @@ func (m *SpanContext) Size() (n int) { } func (m *Span) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = m.Context.Size() @@ -555,6 +676,9 @@ func (m *Span) Size() (n int) { } func (m *Trace) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Spans) > 0 { @@ -567,6 +691,9 @@ func (m *Trace) Size() (n int) { } func (m *Field) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -583,12 +710,18 @@ func (m *Field) Size() (n int) { } func (m *Field_NumericVal) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 9 return n } func (m *Field_StringVal) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.StringVal) @@ -597,14 +730,7 @@ func (m *Field_StringVal) Size() (n int) { } func sovBinary(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozBinary(x uint64) (n int) { return sovBinary(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -624,7 +750,7 @@ func (m *SpanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -652,7 +778,7 @@ func (m *SpanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TraceID |= (uint64(b) & 0x7F) << shift + m.TraceID |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -671,7 +797,7 @@ func (m *SpanContext) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SpanID |= (uint64(b) & 0x7F) << shift + m.SpanID |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -682,7 +808,7 @@ func (m *SpanContext) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBinary } if (iNdEx + skippy) > l { @@ -712,7 +838,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -740,7 +866,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -749,6 +875,9 @@ func (m *Span) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBinary } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBinary + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -770,7 +899,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ParentSpanID |= (uint64(b) & 0x7F) << shift + m.ParentSpanID |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -789,7 +918,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -799,6 +928,9 @@ func (m *Span) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBinary } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBinary + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -818,7 +950,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -827,6 +959,9 @@ func (m *Span) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBinary } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBinary + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -848,7 +983,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -858,6 +993,9 @@ func (m *Span) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBinary } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBinary + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -877,7 +1015,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -886,6 +1024,9 @@ func (m *Span) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBinary } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBinary + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -900,7 +1041,7 @@ func (m *Span) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBinary } if (iNdEx + skippy) > l { @@ -930,7 +1071,7 @@ func (m *Trace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -958,7 +1099,7 @@ func (m *Trace) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -967,6 +1108,9 @@ func (m *Trace) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBinary } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBinary + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -981,7 +1125,7 @@ func (m *Trace) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBinary } if (iNdEx + skippy) > l { @@ -1011,7 +1155,7 @@ func (m *Field) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1039,7 +1183,7 @@ func (m *Field) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1049,6 +1193,9 @@ func (m *Field) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBinary } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBinary + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1068,7 +1215,7 @@ func (m *Field) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FieldType |= (Field_FieldType(b) & 0x7F) << shift + m.FieldType |= Field_FieldType(b&0x7F) << shift if b < 0x80 { break } @@ -1081,15 +1228,8 @@ func (m *Field) Unmarshal(dAtA []byte) error { if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } + v = int64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) iNdEx += 8 - v = int64(dAtA[iNdEx-8]) - v |= int64(dAtA[iNdEx-7]) << 8 - v |= int64(dAtA[iNdEx-6]) << 16 - v |= int64(dAtA[iNdEx-5]) << 24 - v |= int64(dAtA[iNdEx-4]) << 32 - v |= int64(dAtA[iNdEx-3]) << 40 - v |= int64(dAtA[iNdEx-2]) << 48 - v |= int64(dAtA[iNdEx-1]) << 56 m.Value = &Field_NumericVal{v} case 4: if wireType != 2 { @@ -1105,7 +1245,7 @@ func (m *Field) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1115,6 +1255,9 @@ func (m *Field) Unmarshal(dAtA []byte) error { return ErrInvalidLengthBinary } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBinary + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1126,7 +1269,7 @@ func (m *Field) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBinary } if (iNdEx + skippy) > l { @@ -1144,6 +1287,7 @@ func (m *Field) Unmarshal(dAtA []byte) error { func skipBinary(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1175,10 +1319,8 @@ func skipBinary(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1195,98 +1337,34 @@ func skipBinary(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthBinary } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBinary - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipBinary(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBinary + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthBinary + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthBinary = fmt.Errorf("proto: negative length found during unmarshalling") - ErrIntOverflowBinary = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthBinary = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBinary = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBinary = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("binary.proto", fileDescriptorBinary) } - -var fileDescriptorBinary = []byte{ - // 624 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x52, 0x41, 0x6f, 0xda, 0x4c, - 0x10, 0xc5, 0xc1, 0x98, 0x78, 0x48, 0xf8, 0xcc, 0x7e, 0x4d, 0x85, 0x5c, 0x09, 0x5b, 0x44, 0xaa, - 0xc8, 0xa1, 0x8e, 0x92, 0x46, 0xdc, 0xe3, 0xa0, 0xb4, 0x96, 0x22, 0xa8, 0x0c, 0xe9, 0xa1, 0x17, - 0xb4, 0xc0, 0x42, 0xad, 0x1a, 0xaf, 0x65, 0x2f, 0x69, 0xf9, 0x07, 0x15, 0xa7, 0x9c, 0x7a, 0xe3, - 0xd4, 0x43, 0xff, 0x4a, 0x8e, 0x3d, 0xf7, 0xe0, 0x56, 0xee, 0x1f, 0xa9, 0x76, 0x0d, 0x26, 0xed, - 0xc5, 0x9a, 0x99, 0xf7, 0xe6, 0xbd, 0x9d, 0x27, 0xc3, 0xc1, 0xc8, 0x0b, 0x70, 0xb4, 0xb4, 0xc2, - 0x88, 0x32, 0x8a, 0xe4, 0x8f, 0x5e, 0x44, 0xf4, 0x17, 0x33, 0x8f, 0xbd, 0x5f, 0x8c, 0xac, 0x31, - 0x9d, 0x9f, 0xce, 0xe8, 0x8c, 0x9e, 0x0a, 0x70, 0xb4, 0x98, 0x8a, 0x4e, 0x34, 0xa2, 0xca, 0x96, - 0x74, 0x63, 0x46, 0xe9, 0xcc, 0x27, 0x3b, 0x16, 0xf3, 0xe6, 0x24, 0x66, 0x78, 0x1e, 0x66, 0x84, - 0xe6, 0x3b, 0xa8, 0xf4, 0x43, 0x1c, 0x5c, 0xd1, 0x80, 0x91, 0x4f, 0x0c, 0x3d, 0x87, 0x7d, 0x16, - 0xe1, 0x31, 0x19, 0x7a, 0x93, 0xba, 0x64, 0x4a, 0x2d, 0xd9, 0xae, 0xa4, 0x89, 0x51, 0x1e, 0xf0, - 0x99, 0xd3, 0x71, 0xcb, 0x02, 0x74, 0x26, 0xe8, 0x18, 0xca, 0x71, 0x88, 0x03, 0x4e, 0xdb, 0x13, - 0x34, 0x48, 0x13, 0x43, 0xe1, 0x4a, 0x4e, 0xc7, 0x55, 0x38, 0xe4, 0x4c, 0x9a, 0x5f, 0xf6, 0x40, - 0xe6, 0x23, 0x74, 0x06, 0xe5, 0x71, 0x66, 0x20, 0x44, 0x2b, 0xe7, 0x35, 0x8b, 0x1f, 0x63, 0x3d, - 0x72, 0xb6, 0xe5, 0x87, 0xc4, 0x28, 0xb8, 0x5b, 0x1e, 0x6a, 0x43, 0x35, 0xc4, 0x11, 0x09, 0xd8, - 0xf0, 0x6f, 0x1f, 0x2d, 0x4d, 0x8c, 0x83, 0x37, 0x02, 0xd9, 0xb8, 0x1d, 0x84, 0xbb, 0x6e, 0x82, - 0x10, 0xc8, 0x01, 0x9e, 0x93, 0x7a, 0xd1, 0x94, 0x5a, 0xaa, 0x2b, 0x6a, 0x74, 0x03, 0x10, 0x33, - 0x1c, 0xb1, 0x21, 0x3f, 0xbe, 0x2e, 0x8b, 0x17, 0xe8, 0x56, 0x96, 0x8c, 0xb5, 0x4d, 0xc6, 0x1a, - 0x6c, 0x93, 0xb1, 0x6b, 0xfc, 0x29, 0x69, 0x62, 0x94, 0xfa, 0x7c, 0xeb, 0xfe, 0xa7, 0x21, 0xb9, - 0xaa, 0x10, 0xe0, 0x14, 0xf4, 0x14, 0x14, 0x1f, 0x8f, 0x88, 0x1f, 0xd7, 0x4b, 0x66, 0xb1, 0xa5, - 0xba, 0x9b, 0x0e, 0x9d, 0x80, 0x32, 0xf5, 0x88, 0x3f, 0x89, 0xeb, 0x8a, 0x59, 0x6c, 0x55, 0xce, - 0x2b, 0xd9, 0x8d, 0xd7, 0x7c, 0xb6, 0xb9, 0x6e, 0x43, 0x68, 0x9e, 0x40, 0x49, 0x24, 0x8a, 0x4c, - 0x28, 0xf1, 0xf3, 0xe2, 0xba, 0x24, 0x56, 0x60, 0x17, 0x8b, 0x9b, 0x01, 0xcd, 0x6f, 0x45, 0x28, - 0x09, 0x09, 0xa4, 0x41, 0xf1, 0x03, 0x59, 0x8a, 0x00, 0x55, 0x97, 0x97, 0xe8, 0x0a, 0x40, 0x08, - 0x0e, 0xd9, 0x32, 0x24, 0x22, 0x9f, 0xea, 0xf9, 0xd1, 0x23, 0xd7, 0xec, 0x3b, 0x58, 0x86, 0xc4, - 0x3e, 0x4c, 0x13, 0x43, 0xcd, 0x5b, 0x57, 0x9d, 0x6e, 0x4b, 0x74, 0x06, 0x95, 0x60, 0x31, 0x27, - 0x91, 0x37, 0x1e, 0xde, 0x61, 0x5f, 0xe4, 0xa6, 0xd9, 0xd5, 0x34, 0x31, 0xa0, 0x9b, 0x8d, 0xdf, - 0x62, 0xff, 0x75, 0xc1, 0x85, 0x20, 0xef, 0x90, 0xc5, 0xf3, 0x8c, 0xbc, 0x60, 0x26, 0x36, 0x78, - 0x9e, 0x6a, 0x66, 0xd0, 0x17, 0xd3, 0x6c, 0x41, 0x8d, 0xb7, 0x4d, 0xf3, 0x87, 0x04, 0x3b, 0x6f, - 0x64, 0x80, 0xd2, 0x1f, 0xb8, 0x4e, 0xf7, 0x95, 0x56, 0xd0, 0xff, 0x5f, 0xad, 0xcd, 0xff, 0x72, - 0x28, 0x5b, 0x47, 0xcf, 0x40, 0xb6, 0x7b, 0xbd, 0x1b, 0x4d, 0xd2, 0x6b, 0xab, 0xb5, 0x79, 0xb8, - 0x3b, 0x82, 0x52, 0x1f, 0x35, 0x40, 0x71, 0xba, 0x83, 0x61, 0xfb, 0x42, 0xdb, 0xd3, 0xd1, 0x6a, - 0x6d, 0x56, 0x73, 0xd8, 0x09, 0x58, 0xfb, 0x02, 0x99, 0x50, 0xbe, 0xdd, 0x10, 0x8a, 0xff, 0xc8, - 0xdf, 0x7a, 0x82, 0x71, 0x0c, 0xfb, 0x9d, 0x5b, 0xf7, 0x72, 0xe0, 0xf4, 0xba, 0x9a, 0xac, 0x1f, - 0xad, 0xd6, 0x66, 0x2d, 0xa7, 0x74, 0x16, 0x11, 0x66, 0x1e, 0x0d, 0x50, 0x13, 0xf6, 0xaf, 0x6f, - 0x7a, 0x97, 0x42, 0x47, 0xd1, 0x9f, 0xac, 0xd6, 0xa6, 0x96, 0x93, 0xae, 0x7d, 0x8a, 0x59, 0xfb, - 0x42, 0x97, 0x3f, 0x7f, 0x6d, 0x14, 0xec, 0x32, 0x94, 0xee, 0xb0, 0xbf, 0x20, 0xb6, 0xf6, 0x90, - 0x36, 0xa4, 0xef, 0x69, 0x43, 0xfa, 0x95, 0x36, 0xa4, 0xfb, 0xdf, 0x8d, 0xc2, 0x48, 0x11, 0xff, - 0xd6, 0xcb, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x10, 0xad, 0x27, 0x39, 0xc8, 0x03, 0x00, 0x00, -} diff --git a/storage/flux/table.gen.go.tmpl b/storage/flux/table.gen.go.tmpl index fa68b16739..f5180f88cd 100644 --- a/storage/flux/table.gen.go.tmpl +++ b/storage/flux/table.gen.go.tmpl @@ -9,7 +9,7 @@ import ( "github.com/influxdata/flux" "github.com/influxdata/flux/arrow" "github.com/influxdata/flux/execute" - "github.com/influxdata/flux/interval" + "github.com/influxdata/flux/interval" "github.com/influxdata/flux/memory" "github.com/influxdata/flux/values" "github.com/influxdata/influxdb/v2" @@ -136,7 +136,7 @@ func new{{.Name}}WindowTable( } if t.createEmpty { start := int64(bounds.Start) - t.windowBounds = window.GetLatestBounds(values.Time(start)) + t.windowBounds = window.GetLatestBounds(values.Time(start)) } t.readTags(tags) t.init(t.advance) @@ -443,7 +443,7 @@ func new{{.Name}}EmptyWindowSelectorTable( arr: cur.Next(), rangeStart: rangeStart, rangeStop: rangeStop, - windowBounds: window.GetLatestBounds(values.Time(rangeStart)), + windowBounds: window.GetLatestBounds(values.Time(rangeStart)), window: window, timeColumn: timeColumn, } @@ -521,7 +521,7 @@ func (t *{{.name}}EmptyWindowSelectorTable) startTimes(builder *array.{{.ArrowTy builder.AppendNull() } - t.windowBounds = t.window.NextBounds(t.windowBounds) + t.windowBounds = t.window.NextBounds(t.windowBounds) // If the current array is non-empty and has // been read in its entirety, call Next(). @@ -568,7 +568,7 @@ func (t *{{.name}}EmptyWindowSelectorTable) stopTimes(builder *array.{{.ArrowTyp builder.AppendNull() } - t.windowBounds = t.window.NextBounds(t.windowBounds) + t.windowBounds = t.window.NextBounds(t.windowBounds) // If the current array is non-empty and has // been read in its entirety, call Next(). @@ -632,7 +632,7 @@ func (t *{{.name}}EmptyWindowSelectorTable) startStopTimes(builder *array.{{.Arr builder.AppendNull() } - t.windowBounds = t.window.NextBounds(t.windowBounds) + t.windowBounds = t.window.NextBounds(t.windowBounds) // If the current array is non-empty and has // been read in its entirety, call Next(). diff --git a/storage/reads/array_cursor_test.gen.go.tmpl b/storage/reads/array_cursor_test.gen.go.tmpl index 90e2171393..2500352346 100644 --- a/storage/reads/array_cursor_test.gen.go.tmpl +++ b/storage/reads/array_cursor_test.gen.go.tmpl @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/influxdata/flux/interval" + "github.com/influxdata/flux/interval" "github.com/influxdata/flux/values" "github.com/google/go-cmp/cmp" "github.com/influxdata/influxdb/v2/tsdb/cursors" @@ -57,11 +57,11 @@ func TestNewWindowAggregateArrayCursorMonths_{{$ColType}}(t *testing.T) { {{range .Aggs}} {{$Agg := .Name}} t.Run("{{$Agg}}", func(t *testing.T) { - window, _ := interval.NewWindow( - values.MakeDuration(int64(time.Hour), 0, false), - values.MakeDuration(int64(time.Hour), 0, false), - values.MakeDuration(0, 0, false), - ) + window, _ := interval.NewWindow( + values.MakeDuration(int64(time.Hour), 0, false), + values.MakeDuration(int64(time.Hour), 0, false), + values.MakeDuration(0, 0, false), + ) want := &{{$colType}}Window{{$Agg}}ArrayCursor{ {{$ColType}}ArrayCursor: &Mock{{$ColType}}ArrayCursor{}, @@ -87,11 +87,11 @@ func TestNewWindowAggregateArrayCursor_{{$ColType}}(t *testing.T) { {{range .Aggs}} {{$Agg := .Name}} t.Run("{{$Agg}}", func(t *testing.T) { - window, _ := interval.NewWindow( - values.MakeDuration(0, 1, false), - values.MakeDuration(0, 1, false), - values.MakeDuration(0, 0, false), - ) + window, _ := interval.NewWindow( + values.MakeDuration(0, 1, false), + values.MakeDuration(0, 1, false), + values.MakeDuration(0, 0, false), + ) want := &{{$colType}}Window{{$Agg}}ArrayCursor{ {{$ColType}}ArrayCursor: &Mock{{$ColType}}ArrayCursor{}, diff --git a/tsdb/cursors/arrayvalues.gen.go.tmpl b/tsdb/cursors/arrayvalues.gen.go.tmpl new file mode 100644 index 0000000000..3e7632aeeb --- /dev/null +++ b/tsdb/cursors/arrayvalues.gen.go.tmpl @@ -0,0 +1,259 @@ +package cursors + +{{range .}} +{{- $typename := print .Name "Array" }} +{{- $hasType := or (and .Type true) false }} + +type {{ $typename }} struct { + Timestamps []int64 +{{- if $hasType }} + Values []{{.Type}} +{{- end }} +} + +func New{{$typename}}Len(sz int) *{{$typename}} { + return &{{$typename}}{ + Timestamps: make([]int64, sz), +{{- if $hasType }} + Values: make([]{{.Type}}, sz), +{{- end }} + } +} + +func (a *{{ $typename }}) MinTime() int64 { + return a.Timestamps[0] +} + +func (a *{{ $typename }}) MaxTime() int64 { + return a.Timestamps[len(a.Timestamps)-1] +} + +func (a *{{ $typename}}) Len() int { + return len(a.Timestamps) +} + +// search performs a binary search for UnixNano() v in a +// and returns the position, i, where v would be inserted. +// An additional check of a.Timestamps[i] == v is necessary +// to determine if the value v exists. +func (a *{{ $typename }}) search(v int64) int { + // Define: f(x) → a.Timestamps[x] < v + // Define: f(-1) == true, f(n) == false + // Invariant: f(lo-1) == true, f(hi) == false + lo := 0 + hi := a.Len() + for lo < hi { + mid := int(uint(lo+hi) >> 1) + if a.Timestamps[mid] < v { + lo = mid + 1 // preserves f(lo-1) == true + } else { + hi = mid // preserves f(hi) == false + } + } + + // lo == hi + return lo +} + +// FindRange returns the positions where min and max would be +// inserted into the array. If a[0].UnixNano() > max or +// a[len-1].UnixNano() < min then FindRange returns (-1, -1) +// indicating the array is outside the [min, max]. The values must +// be deduplicated and sorted before calling FindRange or the results +// are undefined. +func (a *{{ $typename }}) FindRange(min, max int64) (int, int) { + if a.Len() == 0 || min > max { + return -1, -1 + } + + minVal := a.MinTime() + maxVal := a.MaxTime() + + if maxVal < min || minVal > max { + return -1, -1 + } + + return a.search(min), a.search(max) +} + +{{- if $hasType }} +// Exclude removes the subset of values in [min, max]. The values must +// be deduplicated and sorted before calling Exclude or the results are undefined. +func (a *{{ $typename }}) Exclude(min, max int64) { + rmin, rmax := a.FindRange(min, max) + if rmin == -1 && rmax == -1 { + return + } + + // a.Timestamps[rmin] ≥ min + // a.Timestamps[rmax] ≥ max + + if rmax < a.Len() { + if a.Timestamps[rmax] == max { + rmax++ + } + rest := a.Len()-rmax + if rest > 0 { + ts := a.Timestamps[:rmin+rest] + copy(ts[rmin:], a.Timestamps[rmax:]) + a.Timestamps = ts + + vs := a.Values[:rmin+rest] + copy(vs[rmin:], a.Values[rmax:]) + a.Values = vs + return + } + } + + a.Timestamps = a.Timestamps[:rmin] + a.Values = a.Values[:rmin] +} + +// Include returns the subset values between min and max inclusive. The values must +// be deduplicated and sorted before calling Include or the results are undefined. +func (a *{{ $typename }}) Include(min, max int64) { + rmin, rmax := a.FindRange(min, max) + if rmin == -1 && rmax == -1 { + a.Timestamps = a.Timestamps[:0] + a.Values = a.Values[:0] + return + } + + // a.Timestamps[rmin] ≥ min + // a.Timestamps[rmax] ≥ max + + if rmax < a.Len() && a.Timestamps[rmax] == max { + rmax++ + } + + if rmin > -1 { + ts := a.Timestamps[:rmax-rmin] + copy(ts, a.Timestamps[rmin:rmax]) + a.Timestamps = ts + vs := a.Values[:rmax-rmin] + copy(vs, a.Values[rmin:rmax]) + a.Values = vs + } else { + a.Timestamps = a.Timestamps[:rmax] + a.Values = a.Values[:rmax] + } +} + +// Merge overlays b to top of a. If two values conflict with +// the same timestamp, b is used. Both a and b must be sorted +// in ascending order. +func (a *{{ $typename }}) Merge(b *{{ $typename }}) { + if a.Len() == 0 { + *a = *b + return + } + + if b.Len() == 0 { + return + } + + // Normally, both a and b should not contain duplicates. Due to a bug in older versions, it's + // possible stored blocks might contain duplicate values. Remove them if they exists before + // merging. + // a = a.Deduplicate() + // b = b.Deduplicate() + + if a.MaxTime() < b.MinTime() { + a.Timestamps = append(a.Timestamps, b.Timestamps...) + a.Values = append(a.Values, b.Values...) + return + } + + if b.MaxTime() < a.MinTime() { + var tmp {{$typename}} + tmp.Timestamps = append(b.Timestamps, a.Timestamps...) + tmp.Values = append(b.Values, a.Values...) + *a = tmp + return + } + + out := New{{$typename}}Len(a.Len()+b.Len()) + i, j, k := 0, 0, 0 + for i < len(a.Timestamps) && j < len(b.Timestamps) { + if a.Timestamps[i] < b.Timestamps[j] { + out.Timestamps[k] = a.Timestamps[i] + out.Values[k] = a.Values[i] + i++ + } else if a.Timestamps[i] == b.Timestamps[j] { + out.Timestamps[k] = b.Timestamps[j] + out.Values[k] = b.Values[j] + i++ + j++ + } else { + out.Timestamps[k] = b.Timestamps[j] + out.Values[k] = b.Values[j] + j++ + } + k++ + } + + if i < len(a.Timestamps) { + n := copy(out.Timestamps[k:], a.Timestamps[i:]) + copy(out.Values[k:], a.Values[i:]) + k += n + } else if j < len(b.Timestamps) { + n := copy(out.Timestamps[k:], b.Timestamps[j:]) + copy(out.Values[k:], b.Values[j:]) + k += n + } + + a.Timestamps = out.Timestamps[:k] + a.Values = out.Values[:k] +} +{{ else }} +// Exclude removes the subset of timestamps in [min, max]. The timestamps must +// be deduplicated and sorted before calling Exclude or the results are undefined. +func (a *{{ $typename }}) Exclude(min, max int64) { + rmin, rmax := a.FindRange(min, max) + if rmin == -1 && rmax == -1 { + return + } + + // a.Timestamps[rmin] ≥ min + // a.Timestamps[rmax] ≥ max + + if rmax < a.Len() { + if a.Timestamps[rmax] == max { + rmax++ + } + rest := a.Len()-rmax + if rest > 0 { + ts := a.Timestamps[:rmin+rest] + copy(ts[rmin:], a.Timestamps[rmax:]) + a.Timestamps = ts + return + } + } + + a.Timestamps = a.Timestamps[:rmin] +} + +// Contains returns true if values exist between min and max inclusive. The +// values must be sorted before calling Contains or the results are undefined. +func (a *{{ $typename }}) Contains(min, max int64) bool { + rmin, rmax := a.FindRange(min, max) + if rmin == -1 && rmax == -1 { + return false + } + + // a.Timestamps[rmin] ≥ min + // a.Timestamps[rmax] ≥ max + + if a.Timestamps[rmin] == min { + return true + } + + if rmax < a.Len() && a.Timestamps[rmax] == max { + return true + } + + return rmax-rmin > 0 +} +{{ end }} + +{{ end }} diff --git a/tsdb/cursors/arrayvalues.gen.go.tmpldata b/tsdb/cursors/arrayvalues.gen.go.tmpldata new file mode 100644 index 0000000000..7ebe5b94c1 --- /dev/null +++ b/tsdb/cursors/arrayvalues.gen.go.tmpldata @@ -0,0 +1,26 @@ +[ + { + "Name":"Float", + "Type":"float64" + }, + { + "Name":"Integer", + "Type":"int64" + }, + { + "Name":"Unsigned", + "Type":"uint64" + }, + { + "Name":"String", + "Type":"string" + }, + { + "Name":"Boolean", + "Type":"bool" + }, + { + "Name":"Timestamp", + "Type": null + } +] diff --git a/tsdb/internal/meta.pb.go b/tsdb/internal/meta.pb.go index c7ce178ef4..929718bed8 100644 --- a/tsdb/internal/meta.pb.go +++ b/tsdb/internal/meta.pb.go @@ -5,12 +5,8 @@ package tsdb import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" - math "math" - - io "io" ) // Reference imports to suppress errors if they are not otherwise used. @@ -22,11 +18,11 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Series struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` - Tags []*Tag `protobuf:"bytes,2,rep,name=Tags" json:"Tags,omitempty"` + Tags []*Tag `protobuf:"bytes,2,rep,name=Tags,proto3" json:"Tags,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -36,28 +32,19 @@ func (m *Series) Reset() { *m = Series{} } func (m *Series) String() string { return proto.CompactTextString(m) } func (*Series) ProtoMessage() {} func (*Series) Descriptor() ([]byte, []int) { - return fileDescriptor_meta_3108ecf7b17f779e, []int{0} + return fileDescriptor_59b0956366e72083, []int{0} } func (m *Series) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Series.Unmarshal(m, b) } func (m *Series) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Series.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Series.Marshal(b, m, deterministic) } -func (dst *Series) XXX_Merge(src proto.Message) { - xxx_messageInfo_Series.Merge(dst, src) +func (m *Series) XXX_Merge(src proto.Message) { + xxx_messageInfo_Series.Merge(m, src) } func (m *Series) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Series.Size(m) } func (m *Series) XXX_DiscardUnknown() { xxx_messageInfo_Series.DiscardUnknown(m) @@ -91,28 +78,19 @@ func (m *Tag) Reset() { *m = Tag{} } func (m *Tag) String() string { return proto.CompactTextString(m) } func (*Tag) ProtoMessage() {} func (*Tag) Descriptor() ([]byte, []int) { - return fileDescriptor_meta_3108ecf7b17f779e, []int{1} + return fileDescriptor_59b0956366e72083, []int{1} } func (m *Tag) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Tag.Unmarshal(m, b) } func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Tag.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Tag.Marshal(b, m, deterministic) } -func (dst *Tag) XXX_Merge(src proto.Message) { - xxx_messageInfo_Tag.Merge(dst, src) +func (m *Tag) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tag.Merge(m, src) } func (m *Tag) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Tag.Size(m) } func (m *Tag) XXX_DiscardUnknown() { xxx_messageInfo_Tag.DiscardUnknown(m) @@ -136,7 +114,7 @@ func (m *Tag) GetValue() string { type MeasurementFields struct { Name []byte `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` - Fields []*Field `protobuf:"bytes,2,rep,name=Fields" json:"Fields,omitempty"` + Fields []*Field `protobuf:"bytes,2,rep,name=Fields,proto3" json:"Fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -146,28 +124,19 @@ func (m *MeasurementFields) Reset() { *m = MeasurementFields{} } func (m *MeasurementFields) String() string { return proto.CompactTextString(m) } func (*MeasurementFields) ProtoMessage() {} func (*MeasurementFields) Descriptor() ([]byte, []int) { - return fileDescriptor_meta_3108ecf7b17f779e, []int{2} + return fileDescriptor_59b0956366e72083, []int{2} } func (m *MeasurementFields) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_MeasurementFields.Unmarshal(m, b) } func (m *MeasurementFields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MeasurementFields.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_MeasurementFields.Marshal(b, m, deterministic) } -func (dst *MeasurementFields) XXX_Merge(src proto.Message) { - xxx_messageInfo_MeasurementFields.Merge(dst, src) +func (m *MeasurementFields) XXX_Merge(src proto.Message) { + xxx_messageInfo_MeasurementFields.Merge(m, src) } func (m *MeasurementFields) XXX_Size() int { - return m.Size() + return xxx_messageInfo_MeasurementFields.Size(m) } func (m *MeasurementFields) XXX_DiscardUnknown() { xxx_messageInfo_MeasurementFields.DiscardUnknown(m) @@ -201,28 +170,19 @@ func (m *Field) Reset() { *m = Field{} } func (m *Field) String() string { return proto.CompactTextString(m) } func (*Field) ProtoMessage() {} func (*Field) Descriptor() ([]byte, []int) { - return fileDescriptor_meta_3108ecf7b17f779e, []int{3} + return fileDescriptor_59b0956366e72083, []int{3} } func (m *Field) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Field.Unmarshal(m, b) } func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Field.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Field.Marshal(b, m, deterministic) } -func (dst *Field) XXX_Merge(src proto.Message) { - xxx_messageInfo_Field.Merge(dst, src) +func (m *Field) XXX_Merge(src proto.Message) { + xxx_messageInfo_Field.Merge(m, src) } func (m *Field) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Field.Size(m) } func (m *Field) XXX_DiscardUnknown() { xxx_messageInfo_Field.DiscardUnknown(m) @@ -245,7 +205,7 @@ func (m *Field) GetType() int32 { } type MeasurementFieldSet struct { - Measurements []*MeasurementFields `protobuf:"bytes,1,rep,name=Measurements" json:"Measurements,omitempty"` + Measurements []*MeasurementFields `protobuf:"bytes,1,rep,name=Measurements,proto3" json:"Measurements,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -255,28 +215,19 @@ func (m *MeasurementFieldSet) Reset() { *m = MeasurementFieldSet{} } func (m *MeasurementFieldSet) String() string { return proto.CompactTextString(m) } func (*MeasurementFieldSet) ProtoMessage() {} func (*MeasurementFieldSet) Descriptor() ([]byte, []int) { - return fileDescriptor_meta_3108ecf7b17f779e, []int{4} + return fileDescriptor_59b0956366e72083, []int{4} } func (m *MeasurementFieldSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_MeasurementFieldSet.Unmarshal(m, b) } func (m *MeasurementFieldSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MeasurementFieldSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_MeasurementFieldSet.Marshal(b, m, deterministic) } -func (dst *MeasurementFieldSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_MeasurementFieldSet.Merge(dst, src) +func (m *MeasurementFieldSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_MeasurementFieldSet.Merge(m, src) } func (m *MeasurementFieldSet) XXX_Size() int { - return m.Size() + return xxx_messageInfo_MeasurementFieldSet.Size(m) } func (m *MeasurementFieldSet) XXX_DiscardUnknown() { xxx_messageInfo_MeasurementFieldSet.DiscardUnknown(m) @@ -298,929 +249,24 @@ func init() { proto.RegisterType((*Field)(nil), "tsdb.Field") proto.RegisterType((*MeasurementFieldSet)(nil), "tsdb.MeasurementFieldSet") } -func (m *Series) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} -func (m *Series) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintMeta(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) - } - if len(m.Tags) > 0 { - for _, msg := range m.Tags { - dAtA[i] = 0x12 - i++ - i = encodeVarintMeta(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} +func init() { proto.RegisterFile("internal/meta.proto", fileDescriptor_59b0956366e72083) } -func (m *Tag) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Tag) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Key) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintMeta(dAtA, i, uint64(len(m.Key))) - i += copy(dAtA[i:], m.Key) - } - if len(m.Value) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintMeta(dAtA, i, uint64(len(m.Value))) - i += copy(dAtA[i:], m.Value) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *MeasurementFields) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MeasurementFields) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintMeta(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Fields) > 0 { - for _, msg := range m.Fields { - dAtA[i] = 0x12 - i++ - i = encodeVarintMeta(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *Field) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Field) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintMeta(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.Type != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintMeta(dAtA, i, uint64(m.Type)) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *MeasurementFieldSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MeasurementFieldSet) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Measurements) > 0 { - for _, msg := range m.Measurements { - dAtA[i] = 0xa - i++ - i = encodeVarintMeta(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func encodeVarintMeta(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *Series) Size() (n int) { - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovMeta(uint64(l)) - } - if len(m.Tags) > 0 { - for _, e := range m.Tags { - l = e.Size() - n += 1 + l + sovMeta(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Tag) Size() (n int) { - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovMeta(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovMeta(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MeasurementFields) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovMeta(uint64(l)) - } - if len(m.Fields) > 0 { - for _, e := range m.Fields { - l = e.Size() - n += 1 + l + sovMeta(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Field) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovMeta(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovMeta(uint64(m.Type)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MeasurementFieldSet) Size() (n int) { - var l int - _ = l - if len(m.Measurements) > 0 { - for _, e := range m.Measurements { - l = e.Size() - n += 1 + l + sovMeta(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovMeta(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozMeta(x uint64) (n int) { - return sovMeta(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Series) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Series: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Series: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - 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 ErrInvalidLengthMeta - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMeta - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tags = append(m.Tags, &Tag{}) - if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMeta(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMeta - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Tag) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Tag: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Tag: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - 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 ErrInvalidLengthMeta - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - 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 ErrInvalidLengthMeta - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMeta(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMeta - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MeasurementFields) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MeasurementFields: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MeasurementFields: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMeta - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = append(m.Name[:0], dAtA[iNdEx:postIndex]...) - if m.Name == nil { - m.Name = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Fields", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMeta - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Fields = append(m.Fields, &Field{}) - if err := m.Fields[len(m.Fields)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMeta(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMeta - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Field) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Field: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Field: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMeta - } - postIndex := iNdEx + byteLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = append(m.Name[:0], dAtA[iNdEx:postIndex]...) - if m.Name == nil { - m.Name = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipMeta(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMeta - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MeasurementFieldSet) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MeasurementFieldSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MeasurementFieldSet: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Measurements", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMeta - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMeta - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Measurements = append(m.Measurements, &MeasurementFields{}) - if err := m.Measurements[len(m.Measurements)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMeta(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMeta - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMeta(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMeta - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMeta - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMeta - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthMeta - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMeta - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipMeta(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthMeta = fmt.Errorf("proto: negative length found during unmarshalling") - ErrIntOverflowMeta = fmt.Errorf("proto: integer overflow") -) - -func init() { proto.RegisterFile("internal/meta.proto", fileDescriptor_meta_3108ecf7b17f779e) } - -var fileDescriptor_meta_3108ecf7b17f779e = []byte{ - // 245 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xce, 0xcc, 0x2b, 0x49, - 0x2d, 0xca, 0x4b, 0xcc, 0xd1, 0xcf, 0x4d, 0x2d, 0x49, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x62, 0x29, 0x29, 0x4e, 0x49, 0x52, 0xb2, 0xe4, 0x62, 0x0b, 0x4e, 0x2d, 0xca, 0x4c, 0x2d, 0x16, - 0x12, 0xe0, 0x62, 0xf6, 0x4e, 0xad, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0x31, 0x85, - 0x64, 0xb9, 0x58, 0x42, 0x12, 0xd3, 0x8b, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x38, 0xf5, - 0x40, 0x1a, 0xf4, 0x42, 0x12, 0xd3, 0x83, 0xc0, 0xc2, 0x4a, 0xba, 0x5c, 0xcc, 0x21, 0x89, 0xe9, - 0x58, 0xf4, 0x89, 0x70, 0xb1, 0x86, 0x25, 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x81, 0xc5, 0x20, 0x1c, - 0x25, 0x1f, 0x2e, 0x41, 0xdf, 0xd4, 0xc4, 0xe2, 0xd2, 0xa2, 0xd4, 0xdc, 0xd4, 0xbc, 0x12, 0xb7, - 0xcc, 0xd4, 0x9c, 0x94, 0x62, 0x21, 0x21, 0x2e, 0x16, 0xbf, 0xc4, 0xdc, 0x54, 0xb0, 0x6e, 0x9e, - 0x20, 0x30, 0x5b, 0x48, 0x99, 0x8b, 0x0d, 0x22, 0x0b, 0xb5, 0x98, 0x1b, 0x62, 0x31, 0x58, 0x2c, - 0x08, 0x2a, 0xa5, 0xa4, 0xcf, 0xc5, 0x0a, 0x66, 0x61, 0x35, 0x41, 0x88, 0x8b, 0x25, 0xa4, 0xb2, - 0x00, 0x62, 0x3f, 0x6b, 0x10, 0x98, 0xad, 0x14, 0xc4, 0x25, 0x8c, 0x6e, 0x7d, 0x70, 0x6a, 0x89, - 0x90, 0x35, 0x17, 0x0f, 0x92, 0x70, 0xb1, 0x04, 0x23, 0xd8, 0x4a, 0x71, 0x88, 0x95, 0x18, 0xee, - 0x0d, 0x42, 0x51, 0xec, 0xc4, 0x73, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, - 0xc9, 0x31, 0x26, 0xb1, 0x81, 0xc3, 0xd5, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x16, 0x53, 0x08, - 0x1b, 0x6e, 0x01, 0x00, 0x00, +var fileDescriptor_59b0956366e72083 = []byte{ + // 226 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x3d, 0x6b, 0xc3, 0x30, + 0x10, 0x86, 0x71, 0x2c, 0x1b, 0x72, 0xc9, 0xd0, 0x5e, 0x0a, 0xd5, 0x52, 0x08, 0xea, 0x92, 0xa5, + 0x0e, 0xb4, 0x53, 0xe9, 0xde, 0xa5, 0x1f, 0x83, 0x22, 0xba, 0x5f, 0xc8, 0x61, 0x0c, 0xb6, 0x13, + 0x24, 0x65, 0xc8, 0xbf, 0x2f, 0x3e, 0x79, 0xe8, 0x87, 0xb7, 0x57, 0xcf, 0xe9, 0xd5, 0x23, 0x0e, + 0x56, 0x4d, 0x1f, 0xd9, 0xf7, 0xd4, 0x6e, 0x3b, 0x8e, 0x54, 0x9d, 0xfc, 0x31, 0x1e, 0x51, 0xc5, + 0x70, 0xd8, 0x9b, 0x67, 0x28, 0x77, 0xec, 0x1b, 0x0e, 0x78, 0x05, 0xf9, 0x1b, 0x5f, 0x74, 0xb6, + 0xce, 0x36, 0x73, 0x3b, 0x44, 0xbc, 0x03, 0xe5, 0xa8, 0x0e, 0x7a, 0xb6, 0xce, 0x37, 0x8b, 0xc7, + 0x79, 0x35, 0x14, 0x2a, 0x47, 0xb5, 0x15, 0x6c, 0x1e, 0x20, 0x77, 0x54, 0x4f, 0xf4, 0x6e, 0xa0, + 0xf8, 0xa2, 0xf6, 0xcc, 0x7a, 0x26, 0x2c, 0x1d, 0xcc, 0x3b, 0x5c, 0x7f, 0x30, 0x85, 0xb3, 0xe7, + 0x8e, 0xfb, 0xf8, 0xda, 0x70, 0x7b, 0x08, 0x88, 0xa0, 0x3e, 0xa9, 0x63, 0x69, 0x2f, 0xad, 0x64, + 0xbc, 0x87, 0x32, 0x4d, 0x47, 0xf1, 0x22, 0x89, 0x85, 0xd9, 0x71, 0x64, 0xb6, 0x50, 0x48, 0x9a, + 0x7c, 0x01, 0x41, 0xb9, 0xcb, 0x29, 0xf9, 0x0b, 0x2b, 0xd9, 0x58, 0x58, 0xfd, 0xd5, 0xef, 0x38, + 0xe2, 0x0b, 0x2c, 0x7f, 0xe0, 0xa0, 0x33, 0x51, 0xde, 0x26, 0xe5, 0xbf, 0xff, 0xda, 0x5f, 0x97, + 0xf7, 0xa5, 0x6c, 0xf2, 0xe9, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xa3, 0xed, 0xcf, 0x26, 0x60, 0x01, + 0x00, 0x00, } diff --git a/v1/services/meta/data.go b/v1/services/meta/data.go index f8a90ccd4e..975b96e1be 100644 --- a/v1/services/meta/data.go +++ b/v1/services/meta/data.go @@ -1514,9 +1514,11 @@ func (si *ShardInfo) unmarshal(pb *internal.ShardInfo) { si.ID = pb.GetID() // If deprecated "OwnerIDs" exists then convert it to "Owners" format. - if len(pb.GetOwnerIDs()) > 0 { - si.Owners = make([]ShardOwner, len(pb.GetOwnerIDs())) - for i, x := range pb.GetOwnerIDs() { + //lint:ignore SA1019 we need to check for the presence of the deprecated field so we can convert it + oldStyleOwnerIds := pb.GetOwnerIDs() + if len(oldStyleOwnerIds) > 0 { + si.Owners = make([]ShardOwner, len(oldStyleOwnerIds)) + for i, x := range oldStyleOwnerIds { si.Owners[i].unmarshal(&internal.ShardOwner{ NodeID: proto.Uint64(x), }) diff --git a/v1/services/meta/internal/meta.pb.go b/v1/services/meta/internal/meta.pb.go index a294853f9e..13fef93eb8 100644 --- a/v1/services/meta/internal/meta.pb.go +++ b/v1/services/meta/internal/meta.pb.go @@ -1,65 +1,11 @@ -// Code generated by protoc-gen-gogo. +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: internal/meta.proto -// DO NOT EDIT! -/* -Package meta is a generated protocol buffer package. - -It is generated from these files: - internal/meta.proto - -It has these top-level messages: - Data - NodeInfo - DatabaseInfo - RetentionPolicySpec - RetentionPolicyInfo - ShardGroupInfo - ShardInfo - SubscriptionInfo - ShardOwner - ContinuousQueryInfo - UserInfo - UserPrivilege - Command - CreateNodeCommand - DeleteNodeCommand - CreateDatabaseCommand - DropDatabaseCommand - CreateRetentionPolicyCommand - DropRetentionPolicyCommand - SetDefaultRetentionPolicyCommand - UpdateRetentionPolicyCommand - CreateShardGroupCommand - DeleteShardGroupCommand - CreateContinuousQueryCommand - DropContinuousQueryCommand - CreateUserCommand - DropUserCommand - UpdateUserCommand - SetPrivilegeCommand - SetDataCommand - SetAdminPrivilegeCommand - UpdateNodeCommand - CreateSubscriptionCommand - DropSubscriptionCommand - RemovePeerCommand - CreateMetaNodeCommand - CreateDataNodeCommand - UpdateDataNodeCommand - DeleteMetaNodeCommand - DeleteDataNodeCommand - Response - SetMetaNodeCommand - DropShardCommand -*/ package meta import ( fmt "fmt" - proto "github.com/gogo/protobuf/proto" - math "math" ) @@ -72,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Command_Type int32 @@ -139,6 +85,7 @@ var Command_Type_name = map[int32]string{ 29: "SetMetaNodeCommand", 30: "DropShardCommand", } + var Command_Type_value = map[string]int32{ "CreateNodeCommand": 1, "DeleteNodeCommand": 2, @@ -176,9 +123,11 @@ func (x Command_Type) Enum() *Command_Type { *p = x return p } + func (x Command_Type) String() string { return proto.EnumName(Command_Type_name, int32(x)) } + func (x *Command_Type) UnmarshalJSON(data []byte) error { value, err := proto.UnmarshalJSONEnum(Command_Type_value, data, "Command_Type") if err != nil { @@ -187,7 +136,10 @@ func (x *Command_Type) UnmarshalJSON(data []byte) error { *x = Command_Type(value) return nil } -func (Command_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptorMeta, []int{12, 0} } + +func (Command_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{12, 0} +} type Data struct { Term *uint64 `protobuf:"varint,1,req,name=Term" json:"Term,omitempty"` @@ -200,15 +152,36 @@ type Data struct { MaxShardGroupID *uint64 `protobuf:"varint,8,req,name=MaxShardGroupID" json:"MaxShardGroupID,omitempty"` MaxShardID *uint64 `protobuf:"varint,9,req,name=MaxShardID" json:"MaxShardID,omitempty"` // added for 0.10.0 - DataNodes []*NodeInfo `protobuf:"bytes,10,rep,name=DataNodes" json:"DataNodes,omitempty"` - MetaNodes []*NodeInfo `protobuf:"bytes,11,rep,name=MetaNodes" json:"MetaNodes,omitempty"` - XXX_unrecognized []byte `json:"-"` + DataNodes []*NodeInfo `protobuf:"bytes,10,rep,name=DataNodes" json:"DataNodes,omitempty"` + MetaNodes []*NodeInfo `protobuf:"bytes,11,rep,name=MetaNodes" json:"MetaNodes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Data) Reset() { *m = Data{} } -func (m *Data) String() string { return proto.CompactTextString(m) } -func (*Data) ProtoMessage() {} -func (*Data) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{0} } +func (m *Data) Reset() { *m = Data{} } +func (m *Data) String() string { return proto.CompactTextString(m) } +func (*Data) ProtoMessage() {} +func (*Data) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{0} +} +func (m *Data) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Data.Unmarshal(m, b) +} +func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Data.Marshal(b, m, deterministic) +} +func (m *Data) XXX_Merge(src proto.Message) { + xxx_messageInfo_Data.Merge(m, src) +} +func (m *Data) XXX_Size() int { + return xxx_messageInfo_Data.Size(m) +} +func (m *Data) XXX_DiscardUnknown() { + xxx_messageInfo_Data.DiscardUnknown(m) +} + +var xxx_messageInfo_Data proto.InternalMessageInfo func (m *Data) GetTerm() uint64 { if m != nil && m.Term != nil { @@ -288,16 +261,37 @@ func (m *Data) GetMetaNodes() []*NodeInfo { } type NodeInfo struct { - ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` - Host *string `protobuf:"bytes,2,req,name=Host" json:"Host,omitempty"` - TCPHost *string `protobuf:"bytes,3,opt,name=TCPHost" json:"TCPHost,omitempty"` - XXX_unrecognized []byte `json:"-"` + ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` + Host *string `protobuf:"bytes,2,req,name=Host" json:"Host,omitempty"` + TCPHost *string `protobuf:"bytes,3,opt,name=TCPHost" json:"TCPHost,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *NodeInfo) Reset() { *m = NodeInfo{} } -func (m *NodeInfo) String() string { return proto.CompactTextString(m) } -func (*NodeInfo) ProtoMessage() {} -func (*NodeInfo) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{1} } +func (m *NodeInfo) Reset() { *m = NodeInfo{} } +func (m *NodeInfo) String() string { return proto.CompactTextString(m) } +func (*NodeInfo) ProtoMessage() {} +func (*NodeInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{1} +} +func (m *NodeInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeInfo.Unmarshal(m, b) +} +func (m *NodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeInfo.Marshal(b, m, deterministic) +} +func (m *NodeInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeInfo.Merge(m, src) +} +func (m *NodeInfo) XXX_Size() int { + return xxx_messageInfo_NodeInfo.Size(m) +} +func (m *NodeInfo) XXX_DiscardUnknown() { + xxx_messageInfo_NodeInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeInfo proto.InternalMessageInfo func (m *NodeInfo) GetID() uint64 { if m != nil && m.ID != nil { @@ -325,13 +319,34 @@ type DatabaseInfo struct { DefaultRetentionPolicy *string `protobuf:"bytes,2,req,name=DefaultRetentionPolicy" json:"DefaultRetentionPolicy,omitempty"` RetentionPolicies []*RetentionPolicyInfo `protobuf:"bytes,3,rep,name=RetentionPolicies" json:"RetentionPolicies,omitempty"` ContinuousQueries []*ContinuousQueryInfo `protobuf:"bytes,4,rep,name=ContinuousQueries" json:"ContinuousQueries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DatabaseInfo) Reset() { *m = DatabaseInfo{} } -func (m *DatabaseInfo) String() string { return proto.CompactTextString(m) } -func (*DatabaseInfo) ProtoMessage() {} -func (*DatabaseInfo) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{2} } +func (m *DatabaseInfo) Reset() { *m = DatabaseInfo{} } +func (m *DatabaseInfo) String() string { return proto.CompactTextString(m) } +func (*DatabaseInfo) ProtoMessage() {} +func (*DatabaseInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{2} +} +func (m *DatabaseInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DatabaseInfo.Unmarshal(m, b) +} +func (m *DatabaseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DatabaseInfo.Marshal(b, m, deterministic) +} +func (m *DatabaseInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_DatabaseInfo.Merge(m, src) +} +func (m *DatabaseInfo) XXX_Size() int { + return xxx_messageInfo_DatabaseInfo.Size(m) +} +func (m *DatabaseInfo) XXX_DiscardUnknown() { + xxx_messageInfo_DatabaseInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_DatabaseInfo proto.InternalMessageInfo func (m *DatabaseInfo) GetName() string { if m != nil && m.Name != nil { @@ -362,17 +377,38 @@ func (m *DatabaseInfo) GetContinuousQueries() []*ContinuousQueryInfo { } type RetentionPolicySpec struct { - Name *string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` - Duration *int64 `protobuf:"varint,2,opt,name=Duration" json:"Duration,omitempty"` - ShardGroupDuration *int64 `protobuf:"varint,3,opt,name=ShardGroupDuration" json:"ShardGroupDuration,omitempty"` - ReplicaN *uint32 `protobuf:"varint,4,opt,name=ReplicaN" json:"ReplicaN,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` + Duration *int64 `protobuf:"varint,2,opt,name=Duration" json:"Duration,omitempty"` + ShardGroupDuration *int64 `protobuf:"varint,3,opt,name=ShardGroupDuration" json:"ShardGroupDuration,omitempty"` + ReplicaN *uint32 `protobuf:"varint,4,opt,name=ReplicaN" json:"ReplicaN,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RetentionPolicySpec) Reset() { *m = RetentionPolicySpec{} } -func (m *RetentionPolicySpec) String() string { return proto.CompactTextString(m) } -func (*RetentionPolicySpec) ProtoMessage() {} -func (*RetentionPolicySpec) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{3} } +func (m *RetentionPolicySpec) Reset() { *m = RetentionPolicySpec{} } +func (m *RetentionPolicySpec) String() string { return proto.CompactTextString(m) } +func (*RetentionPolicySpec) ProtoMessage() {} +func (*RetentionPolicySpec) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{3} +} +func (m *RetentionPolicySpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetentionPolicySpec.Unmarshal(m, b) +} +func (m *RetentionPolicySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetentionPolicySpec.Marshal(b, m, deterministic) +} +func (m *RetentionPolicySpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetentionPolicySpec.Merge(m, src) +} +func (m *RetentionPolicySpec) XXX_Size() int { + return xxx_messageInfo_RetentionPolicySpec.Size(m) +} +func (m *RetentionPolicySpec) XXX_DiscardUnknown() { + xxx_messageInfo_RetentionPolicySpec.DiscardUnknown(m) +} + +var xxx_messageInfo_RetentionPolicySpec proto.InternalMessageInfo func (m *RetentionPolicySpec) GetName() string { if m != nil && m.Name != nil { @@ -403,19 +439,40 @@ func (m *RetentionPolicySpec) GetReplicaN() uint32 { } type RetentionPolicyInfo struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - Duration *int64 `protobuf:"varint,2,req,name=Duration" json:"Duration,omitempty"` - ShardGroupDuration *int64 `protobuf:"varint,3,req,name=ShardGroupDuration" json:"ShardGroupDuration,omitempty"` - ReplicaN *uint32 `protobuf:"varint,4,req,name=ReplicaN" json:"ReplicaN,omitempty"` - ShardGroups []*ShardGroupInfo `protobuf:"bytes,5,rep,name=ShardGroups" json:"ShardGroups,omitempty"` - Subscriptions []*SubscriptionInfo `protobuf:"bytes,6,rep,name=Subscriptions" json:"Subscriptions,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + Duration *int64 `protobuf:"varint,2,req,name=Duration" json:"Duration,omitempty"` + ShardGroupDuration *int64 `protobuf:"varint,3,req,name=ShardGroupDuration" json:"ShardGroupDuration,omitempty"` + ReplicaN *uint32 `protobuf:"varint,4,req,name=ReplicaN" json:"ReplicaN,omitempty"` + ShardGroups []*ShardGroupInfo `protobuf:"bytes,5,rep,name=ShardGroups" json:"ShardGroups,omitempty"` + Subscriptions []*SubscriptionInfo `protobuf:"bytes,6,rep,name=Subscriptions" json:"Subscriptions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RetentionPolicyInfo) Reset() { *m = RetentionPolicyInfo{} } -func (m *RetentionPolicyInfo) String() string { return proto.CompactTextString(m) } -func (*RetentionPolicyInfo) ProtoMessage() {} -func (*RetentionPolicyInfo) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{4} } +func (m *RetentionPolicyInfo) Reset() { *m = RetentionPolicyInfo{} } +func (m *RetentionPolicyInfo) String() string { return proto.CompactTextString(m) } +func (*RetentionPolicyInfo) ProtoMessage() {} +func (*RetentionPolicyInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{4} +} +func (m *RetentionPolicyInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetentionPolicyInfo.Unmarshal(m, b) +} +func (m *RetentionPolicyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetentionPolicyInfo.Marshal(b, m, deterministic) +} +func (m *RetentionPolicyInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetentionPolicyInfo.Merge(m, src) +} +func (m *RetentionPolicyInfo) XXX_Size() int { + return xxx_messageInfo_RetentionPolicyInfo.Size(m) +} +func (m *RetentionPolicyInfo) XXX_DiscardUnknown() { + xxx_messageInfo_RetentionPolicyInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_RetentionPolicyInfo proto.InternalMessageInfo func (m *RetentionPolicyInfo) GetName() string { if m != nil && m.Name != nil { @@ -460,19 +517,40 @@ func (m *RetentionPolicyInfo) GetSubscriptions() []*SubscriptionInfo { } type ShardGroupInfo struct { - ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` - StartTime *int64 `protobuf:"varint,2,req,name=StartTime" json:"StartTime,omitempty"` - EndTime *int64 `protobuf:"varint,3,req,name=EndTime" json:"EndTime,omitempty"` - DeletedAt *int64 `protobuf:"varint,4,req,name=DeletedAt" json:"DeletedAt,omitempty"` - Shards []*ShardInfo `protobuf:"bytes,5,rep,name=Shards" json:"Shards,omitempty"` - TruncatedAt *int64 `protobuf:"varint,6,opt,name=TruncatedAt" json:"TruncatedAt,omitempty"` - XXX_unrecognized []byte `json:"-"` + ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` + StartTime *int64 `protobuf:"varint,2,req,name=StartTime" json:"StartTime,omitempty"` + EndTime *int64 `protobuf:"varint,3,req,name=EndTime" json:"EndTime,omitempty"` + DeletedAt *int64 `protobuf:"varint,4,req,name=DeletedAt" json:"DeletedAt,omitempty"` + Shards []*ShardInfo `protobuf:"bytes,5,rep,name=Shards" json:"Shards,omitempty"` + TruncatedAt *int64 `protobuf:"varint,6,opt,name=TruncatedAt" json:"TruncatedAt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ShardGroupInfo) Reset() { *m = ShardGroupInfo{} } -func (m *ShardGroupInfo) String() string { return proto.CompactTextString(m) } -func (*ShardGroupInfo) ProtoMessage() {} -func (*ShardGroupInfo) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{5} } +func (m *ShardGroupInfo) Reset() { *m = ShardGroupInfo{} } +func (m *ShardGroupInfo) String() string { return proto.CompactTextString(m) } +func (*ShardGroupInfo) ProtoMessage() {} +func (*ShardGroupInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{5} +} +func (m *ShardGroupInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ShardGroupInfo.Unmarshal(m, b) +} +func (m *ShardGroupInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ShardGroupInfo.Marshal(b, m, deterministic) +} +func (m *ShardGroupInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardGroupInfo.Merge(m, src) +} +func (m *ShardGroupInfo) XXX_Size() int { + return xxx_messageInfo_ShardGroupInfo.Size(m) +} +func (m *ShardGroupInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ShardGroupInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardGroupInfo proto.InternalMessageInfo func (m *ShardGroupInfo) GetID() uint64 { if m != nil && m.ID != nil { @@ -517,16 +595,37 @@ func (m *ShardGroupInfo) GetTruncatedAt() int64 { } type ShardInfo struct { - ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` - OwnerIDs []uint64 `protobuf:"varint,2,rep,name=OwnerIDs" json:"OwnerIDs,omitempty"` - Owners []*ShardOwner `protobuf:"bytes,3,rep,name=Owners" json:"Owners,omitempty"` - XXX_unrecognized []byte `json:"-"` + ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` + OwnerIDs []uint64 `protobuf:"varint,2,rep,name=OwnerIDs" json:"OwnerIDs,omitempty"` // Deprecated: Do not use. + Owners []*ShardOwner `protobuf:"bytes,3,rep,name=Owners" json:"Owners,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ShardInfo) Reset() { *m = ShardInfo{} } -func (m *ShardInfo) String() string { return proto.CompactTextString(m) } -func (*ShardInfo) ProtoMessage() {} -func (*ShardInfo) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{6} } +func (m *ShardInfo) Reset() { *m = ShardInfo{} } +func (m *ShardInfo) String() string { return proto.CompactTextString(m) } +func (*ShardInfo) ProtoMessage() {} +func (*ShardInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{6} +} +func (m *ShardInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ShardInfo.Unmarshal(m, b) +} +func (m *ShardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ShardInfo.Marshal(b, m, deterministic) +} +func (m *ShardInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardInfo.Merge(m, src) +} +func (m *ShardInfo) XXX_Size() int { + return xxx_messageInfo_ShardInfo.Size(m) +} +func (m *ShardInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ShardInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardInfo proto.InternalMessageInfo func (m *ShardInfo) GetID() uint64 { if m != nil && m.ID != nil { @@ -535,6 +634,7 @@ func (m *ShardInfo) GetID() uint64 { return 0 } +// Deprecated: Do not use. func (m *ShardInfo) GetOwnerIDs() []uint64 { if m != nil { return m.OwnerIDs @@ -550,16 +650,37 @@ func (m *ShardInfo) GetOwners() []*ShardOwner { } type SubscriptionInfo struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - Mode *string `protobuf:"bytes,2,req,name=Mode" json:"Mode,omitempty"` - Destinations []string `protobuf:"bytes,3,rep,name=Destinations" json:"Destinations,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + Mode *string `protobuf:"bytes,2,req,name=Mode" json:"Mode,omitempty"` + Destinations []string `protobuf:"bytes,3,rep,name=Destinations" json:"Destinations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SubscriptionInfo) Reset() { *m = SubscriptionInfo{} } -func (m *SubscriptionInfo) String() string { return proto.CompactTextString(m) } -func (*SubscriptionInfo) ProtoMessage() {} -func (*SubscriptionInfo) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{7} } +func (m *SubscriptionInfo) Reset() { *m = SubscriptionInfo{} } +func (m *SubscriptionInfo) String() string { return proto.CompactTextString(m) } +func (*SubscriptionInfo) ProtoMessage() {} +func (*SubscriptionInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{7} +} +func (m *SubscriptionInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SubscriptionInfo.Unmarshal(m, b) +} +func (m *SubscriptionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SubscriptionInfo.Marshal(b, m, deterministic) +} +func (m *SubscriptionInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscriptionInfo.Merge(m, src) +} +func (m *SubscriptionInfo) XXX_Size() int { + return xxx_messageInfo_SubscriptionInfo.Size(m) +} +func (m *SubscriptionInfo) XXX_DiscardUnknown() { + xxx_messageInfo_SubscriptionInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscriptionInfo proto.InternalMessageInfo func (m *SubscriptionInfo) GetName() string { if m != nil && m.Name != nil { @@ -583,14 +704,35 @@ func (m *SubscriptionInfo) GetDestinations() []string { } type ShardOwner struct { - NodeID *uint64 `protobuf:"varint,1,req,name=NodeID" json:"NodeID,omitempty"` - XXX_unrecognized []byte `json:"-"` + NodeID *uint64 `protobuf:"varint,1,req,name=NodeID" json:"NodeID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ShardOwner) Reset() { *m = ShardOwner{} } -func (m *ShardOwner) String() string { return proto.CompactTextString(m) } -func (*ShardOwner) ProtoMessage() {} -func (*ShardOwner) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{8} } +func (m *ShardOwner) Reset() { *m = ShardOwner{} } +func (m *ShardOwner) String() string { return proto.CompactTextString(m) } +func (*ShardOwner) ProtoMessage() {} +func (*ShardOwner) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{8} +} +func (m *ShardOwner) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ShardOwner.Unmarshal(m, b) +} +func (m *ShardOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ShardOwner.Marshal(b, m, deterministic) +} +func (m *ShardOwner) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardOwner.Merge(m, src) +} +func (m *ShardOwner) XXX_Size() int { + return xxx_messageInfo_ShardOwner.Size(m) +} +func (m *ShardOwner) XXX_DiscardUnknown() { + xxx_messageInfo_ShardOwner.DiscardUnknown(m) +} + +var xxx_messageInfo_ShardOwner proto.InternalMessageInfo func (m *ShardOwner) GetNodeID() uint64 { if m != nil && m.NodeID != nil { @@ -600,15 +742,36 @@ func (m *ShardOwner) GetNodeID() uint64 { } type ContinuousQueryInfo struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - Query *string `protobuf:"bytes,2,req,name=Query" json:"Query,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + Query *string `protobuf:"bytes,2,req,name=Query" json:"Query,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ContinuousQueryInfo) Reset() { *m = ContinuousQueryInfo{} } -func (m *ContinuousQueryInfo) String() string { return proto.CompactTextString(m) } -func (*ContinuousQueryInfo) ProtoMessage() {} -func (*ContinuousQueryInfo) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{9} } +func (m *ContinuousQueryInfo) Reset() { *m = ContinuousQueryInfo{} } +func (m *ContinuousQueryInfo) String() string { return proto.CompactTextString(m) } +func (*ContinuousQueryInfo) ProtoMessage() {} +func (*ContinuousQueryInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{9} +} +func (m *ContinuousQueryInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContinuousQueryInfo.Unmarshal(m, b) +} +func (m *ContinuousQueryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContinuousQueryInfo.Marshal(b, m, deterministic) +} +func (m *ContinuousQueryInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContinuousQueryInfo.Merge(m, src) +} +func (m *ContinuousQueryInfo) XXX_Size() int { + return xxx_messageInfo_ContinuousQueryInfo.Size(m) +} +func (m *ContinuousQueryInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ContinuousQueryInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ContinuousQueryInfo proto.InternalMessageInfo func (m *ContinuousQueryInfo) GetName() string { if m != nil && m.Name != nil { @@ -625,17 +788,38 @@ func (m *ContinuousQueryInfo) GetQuery() string { } type UserInfo struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - Hash *string `protobuf:"bytes,2,req,name=Hash" json:"Hash,omitempty"` - Admin *bool `protobuf:"varint,3,req,name=Admin" json:"Admin,omitempty"` - Privileges []*UserPrivilege `protobuf:"bytes,4,rep,name=Privileges" json:"Privileges,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + Hash *string `protobuf:"bytes,2,req,name=Hash" json:"Hash,omitempty"` + Admin *bool `protobuf:"varint,3,req,name=Admin" json:"Admin,omitempty"` + Privileges []*UserPrivilege `protobuf:"bytes,4,rep,name=Privileges" json:"Privileges,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UserInfo) Reset() { *m = UserInfo{} } -func (m *UserInfo) String() string { return proto.CompactTextString(m) } -func (*UserInfo) ProtoMessage() {} -func (*UserInfo) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{10} } +func (m *UserInfo) Reset() { *m = UserInfo{} } +func (m *UserInfo) String() string { return proto.CompactTextString(m) } +func (*UserInfo) ProtoMessage() {} +func (*UserInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{10} +} +func (m *UserInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserInfo.Unmarshal(m, b) +} +func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserInfo.Marshal(b, m, deterministic) +} +func (m *UserInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserInfo.Merge(m, src) +} +func (m *UserInfo) XXX_Size() int { + return xxx_messageInfo_UserInfo.Size(m) +} +func (m *UserInfo) XXX_DiscardUnknown() { + xxx_messageInfo_UserInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_UserInfo proto.InternalMessageInfo func (m *UserInfo) GetName() string { if m != nil && m.Name != nil { @@ -666,15 +850,36 @@ func (m *UserInfo) GetPrivileges() []*UserPrivilege { } type UserPrivilege struct { - Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` - Privilege *int32 `protobuf:"varint,2,req,name=Privilege" json:"Privilege,omitempty"` - XXX_unrecognized []byte `json:"-"` + Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` + Privilege *int32 `protobuf:"varint,2,req,name=Privilege" json:"Privilege,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UserPrivilege) Reset() { *m = UserPrivilege{} } -func (m *UserPrivilege) String() string { return proto.CompactTextString(m) } -func (*UserPrivilege) ProtoMessage() {} -func (*UserPrivilege) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{11} } +func (m *UserPrivilege) Reset() { *m = UserPrivilege{} } +func (m *UserPrivilege) String() string { return proto.CompactTextString(m) } +func (*UserPrivilege) ProtoMessage() {} +func (*UserPrivilege) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{11} +} +func (m *UserPrivilege) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserPrivilege.Unmarshal(m, b) +} +func (m *UserPrivilege) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserPrivilege.Marshal(b, m, deterministic) +} +func (m *UserPrivilege) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserPrivilege.Merge(m, src) +} +func (m *UserPrivilege) XXX_Size() int { + return xxx_messageInfo_UserPrivilege.Size(m) +} +func (m *UserPrivilege) XXX_DiscardUnknown() { + xxx_messageInfo_UserPrivilege.DiscardUnknown(m) +} + +var xxx_messageInfo_UserPrivilege proto.InternalMessageInfo func (m *UserPrivilege) GetDatabase() string { if m != nil && m.Database != nil { @@ -692,14 +897,18 @@ func (m *UserPrivilege) GetPrivilege() int32 { type Command struct { Type *Command_Type `protobuf:"varint,1,req,name=type,enum=meta.Command_Type" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Command) Reset() { *m = Command{} } -func (m *Command) String() string { return proto.CompactTextString(m) } -func (*Command) ProtoMessage() {} -func (*Command) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{12} } +func (m *Command) Reset() { *m = Command{} } +func (m *Command) String() string { return proto.CompactTextString(m) } +func (*Command) ProtoMessage() {} +func (*Command) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{12} +} var extRange_Command = []proto.ExtensionRange{ {Start: 100, End: 536870911}, @@ -709,6 +918,24 @@ func (*Command) ExtensionRangeArray() []proto.ExtensionRange { return extRange_Command } +func (m *Command) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Command.Unmarshal(m, b) +} +func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Command.Marshal(b, m, deterministic) +} +func (m *Command) XXX_Merge(src proto.Message) { + xxx_messageInfo_Command.Merge(m, src) +} +func (m *Command) XXX_Size() int { + return xxx_messageInfo_Command.Size(m) +} +func (m *Command) XXX_DiscardUnknown() { + xxx_messageInfo_Command.DiscardUnknown(m) +} + +var xxx_messageInfo_Command proto.InternalMessageInfo + func (m *Command) GetType() Command_Type { if m != nil && m.Type != nil { return *m.Type @@ -719,15 +946,36 @@ func (m *Command) GetType() Command_Type { // This isn't used in >= 0.10.0. Kept around for upgrade purposes. Instead // look at CreateDataNodeCommand and CreateMetaNodeCommand type CreateNodeCommand struct { - Host *string `protobuf:"bytes,1,req,name=Host" json:"Host,omitempty"` - Rand *uint64 `protobuf:"varint,2,req,name=Rand" json:"Rand,omitempty"` - XXX_unrecognized []byte `json:"-"` + Host *string `protobuf:"bytes,1,req,name=Host" json:"Host,omitempty"` + Rand *uint64 `protobuf:"varint,2,req,name=Rand" json:"Rand,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CreateNodeCommand) Reset() { *m = CreateNodeCommand{} } -func (m *CreateNodeCommand) String() string { return proto.CompactTextString(m) } -func (*CreateNodeCommand) ProtoMessage() {} -func (*CreateNodeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{13} } +func (m *CreateNodeCommand) Reset() { *m = CreateNodeCommand{} } +func (m *CreateNodeCommand) String() string { return proto.CompactTextString(m) } +func (*CreateNodeCommand) ProtoMessage() {} +func (*CreateNodeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{13} +} +func (m *CreateNodeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateNodeCommand.Unmarshal(m, b) +} +func (m *CreateNodeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateNodeCommand.Marshal(b, m, deterministic) +} +func (m *CreateNodeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateNodeCommand.Merge(m, src) +} +func (m *CreateNodeCommand) XXX_Size() int { + return xxx_messageInfo_CreateNodeCommand.Size(m) +} +func (m *CreateNodeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_CreateNodeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateNodeCommand proto.InternalMessageInfo func (m *CreateNodeCommand) GetHost() string { if m != nil && m.Host != nil { @@ -753,15 +1001,36 @@ var E_CreateNodeCommand_Command = &proto.ExtensionDesc{ } type DeleteNodeCommand struct { - ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` - Force *bool `protobuf:"varint,2,req,name=Force" json:"Force,omitempty"` - XXX_unrecognized []byte `json:"-"` + ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` + Force *bool `protobuf:"varint,2,req,name=Force" json:"Force,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DeleteNodeCommand) Reset() { *m = DeleteNodeCommand{} } -func (m *DeleteNodeCommand) String() string { return proto.CompactTextString(m) } -func (*DeleteNodeCommand) ProtoMessage() {} -func (*DeleteNodeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{14} } +func (m *DeleteNodeCommand) Reset() { *m = DeleteNodeCommand{} } +func (m *DeleteNodeCommand) String() string { return proto.CompactTextString(m) } +func (*DeleteNodeCommand) ProtoMessage() {} +func (*DeleteNodeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{14} +} +func (m *DeleteNodeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteNodeCommand.Unmarshal(m, b) +} +func (m *DeleteNodeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteNodeCommand.Marshal(b, m, deterministic) +} +func (m *DeleteNodeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteNodeCommand.Merge(m, src) +} +func (m *DeleteNodeCommand) XXX_Size() int { + return xxx_messageInfo_DeleteNodeCommand.Size(m) +} +func (m *DeleteNodeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteNodeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteNodeCommand proto.InternalMessageInfo func (m *DeleteNodeCommand) GetID() uint64 { if m != nil && m.ID != nil { @@ -787,15 +1056,36 @@ var E_DeleteNodeCommand_Command = &proto.ExtensionDesc{ } type CreateDatabaseCommand struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - RetentionPolicy *RetentionPolicyInfo `protobuf:"bytes,2,opt,name=RetentionPolicy" json:"RetentionPolicy,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + RetentionPolicy *RetentionPolicyInfo `protobuf:"bytes,2,opt,name=RetentionPolicy" json:"RetentionPolicy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CreateDatabaseCommand) Reset() { *m = CreateDatabaseCommand{} } -func (m *CreateDatabaseCommand) String() string { return proto.CompactTextString(m) } -func (*CreateDatabaseCommand) ProtoMessage() {} -func (*CreateDatabaseCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{15} } +func (m *CreateDatabaseCommand) Reset() { *m = CreateDatabaseCommand{} } +func (m *CreateDatabaseCommand) String() string { return proto.CompactTextString(m) } +func (*CreateDatabaseCommand) ProtoMessage() {} +func (*CreateDatabaseCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{15} +} +func (m *CreateDatabaseCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDatabaseCommand.Unmarshal(m, b) +} +func (m *CreateDatabaseCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDatabaseCommand.Marshal(b, m, deterministic) +} +func (m *CreateDatabaseCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDatabaseCommand.Merge(m, src) +} +func (m *CreateDatabaseCommand) XXX_Size() int { + return xxx_messageInfo_CreateDatabaseCommand.Size(m) +} +func (m *CreateDatabaseCommand) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDatabaseCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDatabaseCommand proto.InternalMessageInfo func (m *CreateDatabaseCommand) GetName() string { if m != nil && m.Name != nil { @@ -821,14 +1111,35 @@ var E_CreateDatabaseCommand_Command = &proto.ExtensionDesc{ } type DropDatabaseCommand struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DropDatabaseCommand) Reset() { *m = DropDatabaseCommand{} } -func (m *DropDatabaseCommand) String() string { return proto.CompactTextString(m) } -func (*DropDatabaseCommand) ProtoMessage() {} -func (*DropDatabaseCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{16} } +func (m *DropDatabaseCommand) Reset() { *m = DropDatabaseCommand{} } +func (m *DropDatabaseCommand) String() string { return proto.CompactTextString(m) } +func (*DropDatabaseCommand) ProtoMessage() {} +func (*DropDatabaseCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{16} +} +func (m *DropDatabaseCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DropDatabaseCommand.Unmarshal(m, b) +} +func (m *DropDatabaseCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DropDatabaseCommand.Marshal(b, m, deterministic) +} +func (m *DropDatabaseCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropDatabaseCommand.Merge(m, src) +} +func (m *DropDatabaseCommand) XXX_Size() int { + return xxx_messageInfo_DropDatabaseCommand.Size(m) +} +func (m *DropDatabaseCommand) XXX_DiscardUnknown() { + xxx_messageInfo_DropDatabaseCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_DropDatabaseCommand proto.InternalMessageInfo func (m *DropDatabaseCommand) GetName() string { if m != nil && m.Name != nil { @@ -847,17 +1158,36 @@ var E_DropDatabaseCommand_Command = &proto.ExtensionDesc{ } type CreateRetentionPolicyCommand struct { - Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` - RetentionPolicy *RetentionPolicyInfo `protobuf:"bytes,2,req,name=RetentionPolicy" json:"RetentionPolicy,omitempty"` - XXX_unrecognized []byte `json:"-"` + Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` + RetentionPolicy *RetentionPolicyInfo `protobuf:"bytes,2,req,name=RetentionPolicy" json:"RetentionPolicy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateRetentionPolicyCommand) Reset() { *m = CreateRetentionPolicyCommand{} } func (m *CreateRetentionPolicyCommand) String() string { return proto.CompactTextString(m) } func (*CreateRetentionPolicyCommand) ProtoMessage() {} func (*CreateRetentionPolicyCommand) Descriptor() ([]byte, []int) { - return fileDescriptorMeta, []int{17} + return fileDescriptor_59b0956366e72083, []int{17} } +func (m *CreateRetentionPolicyCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateRetentionPolicyCommand.Unmarshal(m, b) +} +func (m *CreateRetentionPolicyCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateRetentionPolicyCommand.Marshal(b, m, deterministic) +} +func (m *CreateRetentionPolicyCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateRetentionPolicyCommand.Merge(m, src) +} +func (m *CreateRetentionPolicyCommand) XXX_Size() int { + return xxx_messageInfo_CreateRetentionPolicyCommand.Size(m) +} +func (m *CreateRetentionPolicyCommand) XXX_DiscardUnknown() { + xxx_messageInfo_CreateRetentionPolicyCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateRetentionPolicyCommand proto.InternalMessageInfo func (m *CreateRetentionPolicyCommand) GetDatabase() string { if m != nil && m.Database != nil { @@ -883,15 +1213,36 @@ var E_CreateRetentionPolicyCommand_Command = &proto.ExtensionDesc{ } type DropRetentionPolicyCommand struct { - Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` - Name *string `protobuf:"bytes,2,req,name=Name" json:"Name,omitempty"` - XXX_unrecognized []byte `json:"-"` + Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` + Name *string `protobuf:"bytes,2,req,name=Name" json:"Name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DropRetentionPolicyCommand) Reset() { *m = DropRetentionPolicyCommand{} } -func (m *DropRetentionPolicyCommand) String() string { return proto.CompactTextString(m) } -func (*DropRetentionPolicyCommand) ProtoMessage() {} -func (*DropRetentionPolicyCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{18} } +func (m *DropRetentionPolicyCommand) Reset() { *m = DropRetentionPolicyCommand{} } +func (m *DropRetentionPolicyCommand) String() string { return proto.CompactTextString(m) } +func (*DropRetentionPolicyCommand) ProtoMessage() {} +func (*DropRetentionPolicyCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{18} +} +func (m *DropRetentionPolicyCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DropRetentionPolicyCommand.Unmarshal(m, b) +} +func (m *DropRetentionPolicyCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DropRetentionPolicyCommand.Marshal(b, m, deterministic) +} +func (m *DropRetentionPolicyCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropRetentionPolicyCommand.Merge(m, src) +} +func (m *DropRetentionPolicyCommand) XXX_Size() int { + return xxx_messageInfo_DropRetentionPolicyCommand.Size(m) +} +func (m *DropRetentionPolicyCommand) XXX_DiscardUnknown() { + xxx_messageInfo_DropRetentionPolicyCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_DropRetentionPolicyCommand proto.InternalMessageInfo func (m *DropRetentionPolicyCommand) GetDatabase() string { if m != nil && m.Database != nil { @@ -917,17 +1268,36 @@ var E_DropRetentionPolicyCommand_Command = &proto.ExtensionDesc{ } type SetDefaultRetentionPolicyCommand struct { - Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` - Name *string `protobuf:"bytes,2,req,name=Name" json:"Name,omitempty"` - XXX_unrecognized []byte `json:"-"` + Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` + Name *string `protobuf:"bytes,2,req,name=Name" json:"Name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SetDefaultRetentionPolicyCommand) Reset() { *m = SetDefaultRetentionPolicyCommand{} } func (m *SetDefaultRetentionPolicyCommand) String() string { return proto.CompactTextString(m) } func (*SetDefaultRetentionPolicyCommand) ProtoMessage() {} func (*SetDefaultRetentionPolicyCommand) Descriptor() ([]byte, []int) { - return fileDescriptorMeta, []int{19} + return fileDescriptor_59b0956366e72083, []int{19} } +func (m *SetDefaultRetentionPolicyCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetDefaultRetentionPolicyCommand.Unmarshal(m, b) +} +func (m *SetDefaultRetentionPolicyCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetDefaultRetentionPolicyCommand.Marshal(b, m, deterministic) +} +func (m *SetDefaultRetentionPolicyCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetDefaultRetentionPolicyCommand.Merge(m, src) +} +func (m *SetDefaultRetentionPolicyCommand) XXX_Size() int { + return xxx_messageInfo_SetDefaultRetentionPolicyCommand.Size(m) +} +func (m *SetDefaultRetentionPolicyCommand) XXX_DiscardUnknown() { + xxx_messageInfo_SetDefaultRetentionPolicyCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_SetDefaultRetentionPolicyCommand proto.InternalMessageInfo func (m *SetDefaultRetentionPolicyCommand) GetDatabase() string { if m != nil && m.Database != nil { @@ -953,20 +1323,39 @@ var E_SetDefaultRetentionPolicyCommand_Command = &proto.ExtensionDesc{ } type UpdateRetentionPolicyCommand struct { - Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` - Name *string `protobuf:"bytes,2,req,name=Name" json:"Name,omitempty"` - NewName *string `protobuf:"bytes,3,opt,name=NewName" json:"NewName,omitempty"` - Duration *int64 `protobuf:"varint,4,opt,name=Duration" json:"Duration,omitempty"` - ReplicaN *uint32 `protobuf:"varint,5,opt,name=ReplicaN" json:"ReplicaN,omitempty"` - XXX_unrecognized []byte `json:"-"` + Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` + Name *string `protobuf:"bytes,2,req,name=Name" json:"Name,omitempty"` + NewName *string `protobuf:"bytes,3,opt,name=NewName" json:"NewName,omitempty"` + Duration *int64 `protobuf:"varint,4,opt,name=Duration" json:"Duration,omitempty"` + ReplicaN *uint32 `protobuf:"varint,5,opt,name=ReplicaN" json:"ReplicaN,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *UpdateRetentionPolicyCommand) Reset() { *m = UpdateRetentionPolicyCommand{} } func (m *UpdateRetentionPolicyCommand) String() string { return proto.CompactTextString(m) } func (*UpdateRetentionPolicyCommand) ProtoMessage() {} func (*UpdateRetentionPolicyCommand) Descriptor() ([]byte, []int) { - return fileDescriptorMeta, []int{20} + return fileDescriptor_59b0956366e72083, []int{20} } +func (m *UpdateRetentionPolicyCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateRetentionPolicyCommand.Unmarshal(m, b) +} +func (m *UpdateRetentionPolicyCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateRetentionPolicyCommand.Marshal(b, m, deterministic) +} +func (m *UpdateRetentionPolicyCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateRetentionPolicyCommand.Merge(m, src) +} +func (m *UpdateRetentionPolicyCommand) XXX_Size() int { + return xxx_messageInfo_UpdateRetentionPolicyCommand.Size(m) +} +func (m *UpdateRetentionPolicyCommand) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateRetentionPolicyCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateRetentionPolicyCommand proto.InternalMessageInfo func (m *UpdateRetentionPolicyCommand) GetDatabase() string { if m != nil && m.Database != nil { @@ -1013,16 +1402,37 @@ var E_UpdateRetentionPolicyCommand_Command = &proto.ExtensionDesc{ } type CreateShardGroupCommand struct { - Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` - Policy *string `protobuf:"bytes,2,req,name=Policy" json:"Policy,omitempty"` - Timestamp *int64 `protobuf:"varint,3,req,name=Timestamp" json:"Timestamp,omitempty"` - XXX_unrecognized []byte `json:"-"` + Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` + Policy *string `protobuf:"bytes,2,req,name=Policy" json:"Policy,omitempty"` + Timestamp *int64 `protobuf:"varint,3,req,name=Timestamp" json:"Timestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CreateShardGroupCommand) Reset() { *m = CreateShardGroupCommand{} } -func (m *CreateShardGroupCommand) String() string { return proto.CompactTextString(m) } -func (*CreateShardGroupCommand) ProtoMessage() {} -func (*CreateShardGroupCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{21} } +func (m *CreateShardGroupCommand) Reset() { *m = CreateShardGroupCommand{} } +func (m *CreateShardGroupCommand) String() string { return proto.CompactTextString(m) } +func (*CreateShardGroupCommand) ProtoMessage() {} +func (*CreateShardGroupCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{21} +} +func (m *CreateShardGroupCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateShardGroupCommand.Unmarshal(m, b) +} +func (m *CreateShardGroupCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateShardGroupCommand.Marshal(b, m, deterministic) +} +func (m *CreateShardGroupCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateShardGroupCommand.Merge(m, src) +} +func (m *CreateShardGroupCommand) XXX_Size() int { + return xxx_messageInfo_CreateShardGroupCommand.Size(m) +} +func (m *CreateShardGroupCommand) XXX_DiscardUnknown() { + xxx_messageInfo_CreateShardGroupCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateShardGroupCommand proto.InternalMessageInfo func (m *CreateShardGroupCommand) GetDatabase() string { if m != nil && m.Database != nil { @@ -1055,16 +1465,37 @@ var E_CreateShardGroupCommand_Command = &proto.ExtensionDesc{ } type DeleteShardGroupCommand struct { - Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` - Policy *string `protobuf:"bytes,2,req,name=Policy" json:"Policy,omitempty"` - ShardGroupID *uint64 `protobuf:"varint,3,req,name=ShardGroupID" json:"ShardGroupID,omitempty"` - XXX_unrecognized []byte `json:"-"` + Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` + Policy *string `protobuf:"bytes,2,req,name=Policy" json:"Policy,omitempty"` + ShardGroupID *uint64 `protobuf:"varint,3,req,name=ShardGroupID" json:"ShardGroupID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DeleteShardGroupCommand) Reset() { *m = DeleteShardGroupCommand{} } -func (m *DeleteShardGroupCommand) String() string { return proto.CompactTextString(m) } -func (*DeleteShardGroupCommand) ProtoMessage() {} -func (*DeleteShardGroupCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{22} } +func (m *DeleteShardGroupCommand) Reset() { *m = DeleteShardGroupCommand{} } +func (m *DeleteShardGroupCommand) String() string { return proto.CompactTextString(m) } +func (*DeleteShardGroupCommand) ProtoMessage() {} +func (*DeleteShardGroupCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{22} +} +func (m *DeleteShardGroupCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteShardGroupCommand.Unmarshal(m, b) +} +func (m *DeleteShardGroupCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteShardGroupCommand.Marshal(b, m, deterministic) +} +func (m *DeleteShardGroupCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteShardGroupCommand.Merge(m, src) +} +func (m *DeleteShardGroupCommand) XXX_Size() int { + return xxx_messageInfo_DeleteShardGroupCommand.Size(m) +} +func (m *DeleteShardGroupCommand) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteShardGroupCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteShardGroupCommand proto.InternalMessageInfo func (m *DeleteShardGroupCommand) GetDatabase() string { if m != nil && m.Database != nil { @@ -1097,18 +1528,37 @@ var E_DeleteShardGroupCommand_Command = &proto.ExtensionDesc{ } type CreateContinuousQueryCommand struct { - Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` - Name *string `protobuf:"bytes,2,req,name=Name" json:"Name,omitempty"` - Query *string `protobuf:"bytes,3,req,name=Query" json:"Query,omitempty"` - XXX_unrecognized []byte `json:"-"` + Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` + Name *string `protobuf:"bytes,2,req,name=Name" json:"Name,omitempty"` + Query *string `protobuf:"bytes,3,req,name=Query" json:"Query,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CreateContinuousQueryCommand) Reset() { *m = CreateContinuousQueryCommand{} } func (m *CreateContinuousQueryCommand) String() string { return proto.CompactTextString(m) } func (*CreateContinuousQueryCommand) ProtoMessage() {} func (*CreateContinuousQueryCommand) Descriptor() ([]byte, []int) { - return fileDescriptorMeta, []int{23} + return fileDescriptor_59b0956366e72083, []int{23} } +func (m *CreateContinuousQueryCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateContinuousQueryCommand.Unmarshal(m, b) +} +func (m *CreateContinuousQueryCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateContinuousQueryCommand.Marshal(b, m, deterministic) +} +func (m *CreateContinuousQueryCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateContinuousQueryCommand.Merge(m, src) +} +func (m *CreateContinuousQueryCommand) XXX_Size() int { + return xxx_messageInfo_CreateContinuousQueryCommand.Size(m) +} +func (m *CreateContinuousQueryCommand) XXX_DiscardUnknown() { + xxx_messageInfo_CreateContinuousQueryCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateContinuousQueryCommand proto.InternalMessageInfo func (m *CreateContinuousQueryCommand) GetDatabase() string { if m != nil && m.Database != nil { @@ -1141,15 +1591,36 @@ var E_CreateContinuousQueryCommand_Command = &proto.ExtensionDesc{ } type DropContinuousQueryCommand struct { - Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` - Name *string `protobuf:"bytes,2,req,name=Name" json:"Name,omitempty"` - XXX_unrecognized []byte `json:"-"` + Database *string `protobuf:"bytes,1,req,name=Database" json:"Database,omitempty"` + Name *string `protobuf:"bytes,2,req,name=Name" json:"Name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DropContinuousQueryCommand) Reset() { *m = DropContinuousQueryCommand{} } -func (m *DropContinuousQueryCommand) String() string { return proto.CompactTextString(m) } -func (*DropContinuousQueryCommand) ProtoMessage() {} -func (*DropContinuousQueryCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{24} } +func (m *DropContinuousQueryCommand) Reset() { *m = DropContinuousQueryCommand{} } +func (m *DropContinuousQueryCommand) String() string { return proto.CompactTextString(m) } +func (*DropContinuousQueryCommand) ProtoMessage() {} +func (*DropContinuousQueryCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{24} +} +func (m *DropContinuousQueryCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DropContinuousQueryCommand.Unmarshal(m, b) +} +func (m *DropContinuousQueryCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DropContinuousQueryCommand.Marshal(b, m, deterministic) +} +func (m *DropContinuousQueryCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropContinuousQueryCommand.Merge(m, src) +} +func (m *DropContinuousQueryCommand) XXX_Size() int { + return xxx_messageInfo_DropContinuousQueryCommand.Size(m) +} +func (m *DropContinuousQueryCommand) XXX_DiscardUnknown() { + xxx_messageInfo_DropContinuousQueryCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_DropContinuousQueryCommand proto.InternalMessageInfo func (m *DropContinuousQueryCommand) GetDatabase() string { if m != nil && m.Database != nil { @@ -1175,16 +1646,37 @@ var E_DropContinuousQueryCommand_Command = &proto.ExtensionDesc{ } type CreateUserCommand struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - Hash *string `protobuf:"bytes,2,req,name=Hash" json:"Hash,omitempty"` - Admin *bool `protobuf:"varint,3,req,name=Admin" json:"Admin,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + Hash *string `protobuf:"bytes,2,req,name=Hash" json:"Hash,omitempty"` + Admin *bool `protobuf:"varint,3,req,name=Admin" json:"Admin,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CreateUserCommand) Reset() { *m = CreateUserCommand{} } -func (m *CreateUserCommand) String() string { return proto.CompactTextString(m) } -func (*CreateUserCommand) ProtoMessage() {} -func (*CreateUserCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{25} } +func (m *CreateUserCommand) Reset() { *m = CreateUserCommand{} } +func (m *CreateUserCommand) String() string { return proto.CompactTextString(m) } +func (*CreateUserCommand) ProtoMessage() {} +func (*CreateUserCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{25} +} +func (m *CreateUserCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateUserCommand.Unmarshal(m, b) +} +func (m *CreateUserCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateUserCommand.Marshal(b, m, deterministic) +} +func (m *CreateUserCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateUserCommand.Merge(m, src) +} +func (m *CreateUserCommand) XXX_Size() int { + return xxx_messageInfo_CreateUserCommand.Size(m) +} +func (m *CreateUserCommand) XXX_DiscardUnknown() { + xxx_messageInfo_CreateUserCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateUserCommand proto.InternalMessageInfo func (m *CreateUserCommand) GetName() string { if m != nil && m.Name != nil { @@ -1217,14 +1709,35 @@ var E_CreateUserCommand_Command = &proto.ExtensionDesc{ } type DropUserCommand struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DropUserCommand) Reset() { *m = DropUserCommand{} } -func (m *DropUserCommand) String() string { return proto.CompactTextString(m) } -func (*DropUserCommand) ProtoMessage() {} -func (*DropUserCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{26} } +func (m *DropUserCommand) Reset() { *m = DropUserCommand{} } +func (m *DropUserCommand) String() string { return proto.CompactTextString(m) } +func (*DropUserCommand) ProtoMessage() {} +func (*DropUserCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{26} +} +func (m *DropUserCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DropUserCommand.Unmarshal(m, b) +} +func (m *DropUserCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DropUserCommand.Marshal(b, m, deterministic) +} +func (m *DropUserCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropUserCommand.Merge(m, src) +} +func (m *DropUserCommand) XXX_Size() int { + return xxx_messageInfo_DropUserCommand.Size(m) +} +func (m *DropUserCommand) XXX_DiscardUnknown() { + xxx_messageInfo_DropUserCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_DropUserCommand proto.InternalMessageInfo func (m *DropUserCommand) GetName() string { if m != nil && m.Name != nil { @@ -1243,15 +1756,36 @@ var E_DropUserCommand_Command = &proto.ExtensionDesc{ } type UpdateUserCommand struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - Hash *string `protobuf:"bytes,2,req,name=Hash" json:"Hash,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + Hash *string `protobuf:"bytes,2,req,name=Hash" json:"Hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UpdateUserCommand) Reset() { *m = UpdateUserCommand{} } -func (m *UpdateUserCommand) String() string { return proto.CompactTextString(m) } -func (*UpdateUserCommand) ProtoMessage() {} -func (*UpdateUserCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{27} } +func (m *UpdateUserCommand) Reset() { *m = UpdateUserCommand{} } +func (m *UpdateUserCommand) String() string { return proto.CompactTextString(m) } +func (*UpdateUserCommand) ProtoMessage() {} +func (*UpdateUserCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{27} +} +func (m *UpdateUserCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateUserCommand.Unmarshal(m, b) +} +func (m *UpdateUserCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateUserCommand.Marshal(b, m, deterministic) +} +func (m *UpdateUserCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateUserCommand.Merge(m, src) +} +func (m *UpdateUserCommand) XXX_Size() int { + return xxx_messageInfo_UpdateUserCommand.Size(m) +} +func (m *UpdateUserCommand) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateUserCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateUserCommand proto.InternalMessageInfo func (m *UpdateUserCommand) GetName() string { if m != nil && m.Name != nil { @@ -1277,16 +1811,37 @@ var E_UpdateUserCommand_Command = &proto.ExtensionDesc{ } type SetPrivilegeCommand struct { - Username *string `protobuf:"bytes,1,req,name=Username" json:"Username,omitempty"` - Database *string `protobuf:"bytes,2,req,name=Database" json:"Database,omitempty"` - Privilege *int32 `protobuf:"varint,3,req,name=Privilege" json:"Privilege,omitempty"` - XXX_unrecognized []byte `json:"-"` + Username *string `protobuf:"bytes,1,req,name=Username" json:"Username,omitempty"` + Database *string `protobuf:"bytes,2,req,name=Database" json:"Database,omitempty"` + Privilege *int32 `protobuf:"varint,3,req,name=Privilege" json:"Privilege,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SetPrivilegeCommand) Reset() { *m = SetPrivilegeCommand{} } -func (m *SetPrivilegeCommand) String() string { return proto.CompactTextString(m) } -func (*SetPrivilegeCommand) ProtoMessage() {} -func (*SetPrivilegeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{28} } +func (m *SetPrivilegeCommand) Reset() { *m = SetPrivilegeCommand{} } +func (m *SetPrivilegeCommand) String() string { return proto.CompactTextString(m) } +func (*SetPrivilegeCommand) ProtoMessage() {} +func (*SetPrivilegeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{28} +} +func (m *SetPrivilegeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetPrivilegeCommand.Unmarshal(m, b) +} +func (m *SetPrivilegeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetPrivilegeCommand.Marshal(b, m, deterministic) +} +func (m *SetPrivilegeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetPrivilegeCommand.Merge(m, src) +} +func (m *SetPrivilegeCommand) XXX_Size() int { + return xxx_messageInfo_SetPrivilegeCommand.Size(m) +} +func (m *SetPrivilegeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_SetPrivilegeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_SetPrivilegeCommand proto.InternalMessageInfo func (m *SetPrivilegeCommand) GetUsername() string { if m != nil && m.Username != nil { @@ -1319,14 +1874,35 @@ var E_SetPrivilegeCommand_Command = &proto.ExtensionDesc{ } type SetDataCommand struct { - Data *Data `protobuf:"bytes,1,req,name=Data" json:"Data,omitempty"` - XXX_unrecognized []byte `json:"-"` + Data *Data `protobuf:"bytes,1,req,name=Data" json:"Data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SetDataCommand) Reset() { *m = SetDataCommand{} } -func (m *SetDataCommand) String() string { return proto.CompactTextString(m) } -func (*SetDataCommand) ProtoMessage() {} -func (*SetDataCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{29} } +func (m *SetDataCommand) Reset() { *m = SetDataCommand{} } +func (m *SetDataCommand) String() string { return proto.CompactTextString(m) } +func (*SetDataCommand) ProtoMessage() {} +func (*SetDataCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{29} +} +func (m *SetDataCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetDataCommand.Unmarshal(m, b) +} +func (m *SetDataCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetDataCommand.Marshal(b, m, deterministic) +} +func (m *SetDataCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetDataCommand.Merge(m, src) +} +func (m *SetDataCommand) XXX_Size() int { + return xxx_messageInfo_SetDataCommand.Size(m) +} +func (m *SetDataCommand) XXX_DiscardUnknown() { + xxx_messageInfo_SetDataCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_SetDataCommand proto.InternalMessageInfo func (m *SetDataCommand) GetData() *Data { if m != nil { @@ -1345,15 +1921,36 @@ var E_SetDataCommand_Command = &proto.ExtensionDesc{ } type SetAdminPrivilegeCommand struct { - Username *string `protobuf:"bytes,1,req,name=Username" json:"Username,omitempty"` - Admin *bool `protobuf:"varint,2,req,name=Admin" json:"Admin,omitempty"` - XXX_unrecognized []byte `json:"-"` + Username *string `protobuf:"bytes,1,req,name=Username" json:"Username,omitempty"` + Admin *bool `protobuf:"varint,2,req,name=Admin" json:"Admin,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SetAdminPrivilegeCommand) Reset() { *m = SetAdminPrivilegeCommand{} } -func (m *SetAdminPrivilegeCommand) String() string { return proto.CompactTextString(m) } -func (*SetAdminPrivilegeCommand) ProtoMessage() {} -func (*SetAdminPrivilegeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{30} } +func (m *SetAdminPrivilegeCommand) Reset() { *m = SetAdminPrivilegeCommand{} } +func (m *SetAdminPrivilegeCommand) String() string { return proto.CompactTextString(m) } +func (*SetAdminPrivilegeCommand) ProtoMessage() {} +func (*SetAdminPrivilegeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{30} +} +func (m *SetAdminPrivilegeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetAdminPrivilegeCommand.Unmarshal(m, b) +} +func (m *SetAdminPrivilegeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetAdminPrivilegeCommand.Marshal(b, m, deterministic) +} +func (m *SetAdminPrivilegeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetAdminPrivilegeCommand.Merge(m, src) +} +func (m *SetAdminPrivilegeCommand) XXX_Size() int { + return xxx_messageInfo_SetAdminPrivilegeCommand.Size(m) +} +func (m *SetAdminPrivilegeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_SetAdminPrivilegeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_SetAdminPrivilegeCommand proto.InternalMessageInfo func (m *SetAdminPrivilegeCommand) GetUsername() string { if m != nil && m.Username != nil { @@ -1379,15 +1976,36 @@ var E_SetAdminPrivilegeCommand_Command = &proto.ExtensionDesc{ } type UpdateNodeCommand struct { - ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` - Host *string `protobuf:"bytes,2,req,name=Host" json:"Host,omitempty"` - XXX_unrecognized []byte `json:"-"` + ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` + Host *string `protobuf:"bytes,2,req,name=Host" json:"Host,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UpdateNodeCommand) Reset() { *m = UpdateNodeCommand{} } -func (m *UpdateNodeCommand) String() string { return proto.CompactTextString(m) } -func (*UpdateNodeCommand) ProtoMessage() {} -func (*UpdateNodeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{31} } +func (m *UpdateNodeCommand) Reset() { *m = UpdateNodeCommand{} } +func (m *UpdateNodeCommand) String() string { return proto.CompactTextString(m) } +func (*UpdateNodeCommand) ProtoMessage() {} +func (*UpdateNodeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{31} +} +func (m *UpdateNodeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateNodeCommand.Unmarshal(m, b) +} +func (m *UpdateNodeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateNodeCommand.Marshal(b, m, deterministic) +} +func (m *UpdateNodeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateNodeCommand.Merge(m, src) +} +func (m *UpdateNodeCommand) XXX_Size() int { + return xxx_messageInfo_UpdateNodeCommand.Size(m) +} +func (m *UpdateNodeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateNodeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateNodeCommand proto.InternalMessageInfo func (m *UpdateNodeCommand) GetID() uint64 { if m != nil && m.ID != nil { @@ -1413,18 +2031,39 @@ var E_UpdateNodeCommand_Command = &proto.ExtensionDesc{ } type CreateSubscriptionCommand struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - Database *string `protobuf:"bytes,2,req,name=Database" json:"Database,omitempty"` - RetentionPolicy *string `protobuf:"bytes,3,req,name=RetentionPolicy" json:"RetentionPolicy,omitempty"` - Mode *string `protobuf:"bytes,4,req,name=Mode" json:"Mode,omitempty"` - Destinations []string `protobuf:"bytes,5,rep,name=Destinations" json:"Destinations,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + Database *string `protobuf:"bytes,2,req,name=Database" json:"Database,omitempty"` + RetentionPolicy *string `protobuf:"bytes,3,req,name=RetentionPolicy" json:"RetentionPolicy,omitempty"` + Mode *string `protobuf:"bytes,4,req,name=Mode" json:"Mode,omitempty"` + Destinations []string `protobuf:"bytes,5,rep,name=Destinations" json:"Destinations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CreateSubscriptionCommand) Reset() { *m = CreateSubscriptionCommand{} } -func (m *CreateSubscriptionCommand) String() string { return proto.CompactTextString(m) } -func (*CreateSubscriptionCommand) ProtoMessage() {} -func (*CreateSubscriptionCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{32} } +func (m *CreateSubscriptionCommand) Reset() { *m = CreateSubscriptionCommand{} } +func (m *CreateSubscriptionCommand) String() string { return proto.CompactTextString(m) } +func (*CreateSubscriptionCommand) ProtoMessage() {} +func (*CreateSubscriptionCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{32} +} +func (m *CreateSubscriptionCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateSubscriptionCommand.Unmarshal(m, b) +} +func (m *CreateSubscriptionCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateSubscriptionCommand.Marshal(b, m, deterministic) +} +func (m *CreateSubscriptionCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateSubscriptionCommand.Merge(m, src) +} +func (m *CreateSubscriptionCommand) XXX_Size() int { + return xxx_messageInfo_CreateSubscriptionCommand.Size(m) +} +func (m *CreateSubscriptionCommand) XXX_DiscardUnknown() { + xxx_messageInfo_CreateSubscriptionCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateSubscriptionCommand proto.InternalMessageInfo func (m *CreateSubscriptionCommand) GetName() string { if m != nil && m.Name != nil { @@ -1471,16 +2110,37 @@ var E_CreateSubscriptionCommand_Command = &proto.ExtensionDesc{ } type DropSubscriptionCommand struct { - Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` - Database *string `protobuf:"bytes,2,req,name=Database" json:"Database,omitempty"` - RetentionPolicy *string `protobuf:"bytes,3,req,name=RetentionPolicy" json:"RetentionPolicy,omitempty"` - XXX_unrecognized []byte `json:"-"` + Name *string `protobuf:"bytes,1,req,name=Name" json:"Name,omitempty"` + Database *string `protobuf:"bytes,2,req,name=Database" json:"Database,omitempty"` + RetentionPolicy *string `protobuf:"bytes,3,req,name=RetentionPolicy" json:"RetentionPolicy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DropSubscriptionCommand) Reset() { *m = DropSubscriptionCommand{} } -func (m *DropSubscriptionCommand) String() string { return proto.CompactTextString(m) } -func (*DropSubscriptionCommand) ProtoMessage() {} -func (*DropSubscriptionCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{33} } +func (m *DropSubscriptionCommand) Reset() { *m = DropSubscriptionCommand{} } +func (m *DropSubscriptionCommand) String() string { return proto.CompactTextString(m) } +func (*DropSubscriptionCommand) ProtoMessage() {} +func (*DropSubscriptionCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{33} +} +func (m *DropSubscriptionCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DropSubscriptionCommand.Unmarshal(m, b) +} +func (m *DropSubscriptionCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DropSubscriptionCommand.Marshal(b, m, deterministic) +} +func (m *DropSubscriptionCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropSubscriptionCommand.Merge(m, src) +} +func (m *DropSubscriptionCommand) XXX_Size() int { + return xxx_messageInfo_DropSubscriptionCommand.Size(m) +} +func (m *DropSubscriptionCommand) XXX_DiscardUnknown() { + xxx_messageInfo_DropSubscriptionCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_DropSubscriptionCommand proto.InternalMessageInfo func (m *DropSubscriptionCommand) GetName() string { if m != nil && m.Name != nil { @@ -1513,15 +2173,36 @@ var E_DropSubscriptionCommand_Command = &proto.ExtensionDesc{ } type RemovePeerCommand struct { - ID *uint64 `protobuf:"varint,1,opt,name=ID" json:"ID,omitempty"` - Addr *string `protobuf:"bytes,2,req,name=Addr" json:"Addr,omitempty"` - XXX_unrecognized []byte `json:"-"` + ID *uint64 `protobuf:"varint,1,opt,name=ID" json:"ID,omitempty"` + Addr *string `protobuf:"bytes,2,req,name=Addr" json:"Addr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RemovePeerCommand) Reset() { *m = RemovePeerCommand{} } -func (m *RemovePeerCommand) String() string { return proto.CompactTextString(m) } -func (*RemovePeerCommand) ProtoMessage() {} -func (*RemovePeerCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{34} } +func (m *RemovePeerCommand) Reset() { *m = RemovePeerCommand{} } +func (m *RemovePeerCommand) String() string { return proto.CompactTextString(m) } +func (*RemovePeerCommand) ProtoMessage() {} +func (*RemovePeerCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{34} +} +func (m *RemovePeerCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemovePeerCommand.Unmarshal(m, b) +} +func (m *RemovePeerCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemovePeerCommand.Marshal(b, m, deterministic) +} +func (m *RemovePeerCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemovePeerCommand.Merge(m, src) +} +func (m *RemovePeerCommand) XXX_Size() int { + return xxx_messageInfo_RemovePeerCommand.Size(m) +} +func (m *RemovePeerCommand) XXX_DiscardUnknown() { + xxx_messageInfo_RemovePeerCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_RemovePeerCommand proto.InternalMessageInfo func (m *RemovePeerCommand) GetID() uint64 { if m != nil && m.ID != nil { @@ -1547,16 +2228,37 @@ var E_RemovePeerCommand_Command = &proto.ExtensionDesc{ } type CreateMetaNodeCommand struct { - HTTPAddr *string `protobuf:"bytes,1,req,name=HTTPAddr" json:"HTTPAddr,omitempty"` - TCPAddr *string `protobuf:"bytes,2,req,name=TCPAddr" json:"TCPAddr,omitempty"` - Rand *uint64 `protobuf:"varint,3,req,name=Rand" json:"Rand,omitempty"` - XXX_unrecognized []byte `json:"-"` + HTTPAddr *string `protobuf:"bytes,1,req,name=HTTPAddr" json:"HTTPAddr,omitempty"` + TCPAddr *string `protobuf:"bytes,2,req,name=TCPAddr" json:"TCPAddr,omitempty"` + Rand *uint64 `protobuf:"varint,3,req,name=Rand" json:"Rand,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CreateMetaNodeCommand) Reset() { *m = CreateMetaNodeCommand{} } -func (m *CreateMetaNodeCommand) String() string { return proto.CompactTextString(m) } -func (*CreateMetaNodeCommand) ProtoMessage() {} -func (*CreateMetaNodeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{35} } +func (m *CreateMetaNodeCommand) Reset() { *m = CreateMetaNodeCommand{} } +func (m *CreateMetaNodeCommand) String() string { return proto.CompactTextString(m) } +func (*CreateMetaNodeCommand) ProtoMessage() {} +func (*CreateMetaNodeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{35} +} +func (m *CreateMetaNodeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateMetaNodeCommand.Unmarshal(m, b) +} +func (m *CreateMetaNodeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateMetaNodeCommand.Marshal(b, m, deterministic) +} +func (m *CreateMetaNodeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateMetaNodeCommand.Merge(m, src) +} +func (m *CreateMetaNodeCommand) XXX_Size() int { + return xxx_messageInfo_CreateMetaNodeCommand.Size(m) +} +func (m *CreateMetaNodeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_CreateMetaNodeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateMetaNodeCommand proto.InternalMessageInfo func (m *CreateMetaNodeCommand) GetHTTPAddr() string { if m != nil && m.HTTPAddr != nil { @@ -1589,15 +2291,36 @@ var E_CreateMetaNodeCommand_Command = &proto.ExtensionDesc{ } type CreateDataNodeCommand struct { - HTTPAddr *string `protobuf:"bytes,1,req,name=HTTPAddr" json:"HTTPAddr,omitempty"` - TCPAddr *string `protobuf:"bytes,2,req,name=TCPAddr" json:"TCPAddr,omitempty"` - XXX_unrecognized []byte `json:"-"` + HTTPAddr *string `protobuf:"bytes,1,req,name=HTTPAddr" json:"HTTPAddr,omitempty"` + TCPAddr *string `protobuf:"bytes,2,req,name=TCPAddr" json:"TCPAddr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CreateDataNodeCommand) Reset() { *m = CreateDataNodeCommand{} } -func (m *CreateDataNodeCommand) String() string { return proto.CompactTextString(m) } -func (*CreateDataNodeCommand) ProtoMessage() {} -func (*CreateDataNodeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{36} } +func (m *CreateDataNodeCommand) Reset() { *m = CreateDataNodeCommand{} } +func (m *CreateDataNodeCommand) String() string { return proto.CompactTextString(m) } +func (*CreateDataNodeCommand) ProtoMessage() {} +func (*CreateDataNodeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{36} +} +func (m *CreateDataNodeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDataNodeCommand.Unmarshal(m, b) +} +func (m *CreateDataNodeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDataNodeCommand.Marshal(b, m, deterministic) +} +func (m *CreateDataNodeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDataNodeCommand.Merge(m, src) +} +func (m *CreateDataNodeCommand) XXX_Size() int { + return xxx_messageInfo_CreateDataNodeCommand.Size(m) +} +func (m *CreateDataNodeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDataNodeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDataNodeCommand proto.InternalMessageInfo func (m *CreateDataNodeCommand) GetHTTPAddr() string { if m != nil && m.HTTPAddr != nil { @@ -1623,16 +2346,37 @@ var E_CreateDataNodeCommand_Command = &proto.ExtensionDesc{ } type UpdateDataNodeCommand struct { - ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` - Host *string `protobuf:"bytes,2,req,name=Host" json:"Host,omitempty"` - TCPHost *string `protobuf:"bytes,3,req,name=TCPHost" json:"TCPHost,omitempty"` - XXX_unrecognized []byte `json:"-"` + ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` + Host *string `protobuf:"bytes,2,req,name=Host" json:"Host,omitempty"` + TCPHost *string `protobuf:"bytes,3,req,name=TCPHost" json:"TCPHost,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *UpdateDataNodeCommand) Reset() { *m = UpdateDataNodeCommand{} } -func (m *UpdateDataNodeCommand) String() string { return proto.CompactTextString(m) } -func (*UpdateDataNodeCommand) ProtoMessage() {} -func (*UpdateDataNodeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{37} } +func (m *UpdateDataNodeCommand) Reset() { *m = UpdateDataNodeCommand{} } +func (m *UpdateDataNodeCommand) String() string { return proto.CompactTextString(m) } +func (*UpdateDataNodeCommand) ProtoMessage() {} +func (*UpdateDataNodeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{37} +} +func (m *UpdateDataNodeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateDataNodeCommand.Unmarshal(m, b) +} +func (m *UpdateDataNodeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateDataNodeCommand.Marshal(b, m, deterministic) +} +func (m *UpdateDataNodeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateDataNodeCommand.Merge(m, src) +} +func (m *UpdateDataNodeCommand) XXX_Size() int { + return xxx_messageInfo_UpdateDataNodeCommand.Size(m) +} +func (m *UpdateDataNodeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateDataNodeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateDataNodeCommand proto.InternalMessageInfo func (m *UpdateDataNodeCommand) GetID() uint64 { if m != nil && m.ID != nil { @@ -1665,14 +2409,35 @@ var E_UpdateDataNodeCommand_Command = &proto.ExtensionDesc{ } type DeleteMetaNodeCommand struct { - ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` - XXX_unrecognized []byte `json:"-"` + ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DeleteMetaNodeCommand) Reset() { *m = DeleteMetaNodeCommand{} } -func (m *DeleteMetaNodeCommand) String() string { return proto.CompactTextString(m) } -func (*DeleteMetaNodeCommand) ProtoMessage() {} -func (*DeleteMetaNodeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{38} } +func (m *DeleteMetaNodeCommand) Reset() { *m = DeleteMetaNodeCommand{} } +func (m *DeleteMetaNodeCommand) String() string { return proto.CompactTextString(m) } +func (*DeleteMetaNodeCommand) ProtoMessage() {} +func (*DeleteMetaNodeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{38} +} +func (m *DeleteMetaNodeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteMetaNodeCommand.Unmarshal(m, b) +} +func (m *DeleteMetaNodeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteMetaNodeCommand.Marshal(b, m, deterministic) +} +func (m *DeleteMetaNodeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteMetaNodeCommand.Merge(m, src) +} +func (m *DeleteMetaNodeCommand) XXX_Size() int { + return xxx_messageInfo_DeleteMetaNodeCommand.Size(m) +} +func (m *DeleteMetaNodeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteMetaNodeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteMetaNodeCommand proto.InternalMessageInfo func (m *DeleteMetaNodeCommand) GetID() uint64 { if m != nil && m.ID != nil { @@ -1691,14 +2456,35 @@ var E_DeleteMetaNodeCommand_Command = &proto.ExtensionDesc{ } type DeleteDataNodeCommand struct { - ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` - XXX_unrecognized []byte `json:"-"` + ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DeleteDataNodeCommand) Reset() { *m = DeleteDataNodeCommand{} } -func (m *DeleteDataNodeCommand) String() string { return proto.CompactTextString(m) } -func (*DeleteDataNodeCommand) ProtoMessage() {} -func (*DeleteDataNodeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{39} } +func (m *DeleteDataNodeCommand) Reset() { *m = DeleteDataNodeCommand{} } +func (m *DeleteDataNodeCommand) String() string { return proto.CompactTextString(m) } +func (*DeleteDataNodeCommand) ProtoMessage() {} +func (*DeleteDataNodeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{39} +} +func (m *DeleteDataNodeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteDataNodeCommand.Unmarshal(m, b) +} +func (m *DeleteDataNodeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteDataNodeCommand.Marshal(b, m, deterministic) +} +func (m *DeleteDataNodeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteDataNodeCommand.Merge(m, src) +} +func (m *DeleteDataNodeCommand) XXX_Size() int { + return xxx_messageInfo_DeleteDataNodeCommand.Size(m) +} +func (m *DeleteDataNodeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteDataNodeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteDataNodeCommand proto.InternalMessageInfo func (m *DeleteDataNodeCommand) GetID() uint64 { if m != nil && m.ID != nil { @@ -1717,16 +2503,37 @@ var E_DeleteDataNodeCommand_Command = &proto.ExtensionDesc{ } type Response struct { - OK *bool `protobuf:"varint,1,req,name=OK" json:"OK,omitempty"` - Error *string `protobuf:"bytes,2,opt,name=Error" json:"Error,omitempty"` - Index *uint64 `protobuf:"varint,3,opt,name=Index" json:"Index,omitempty"` - XXX_unrecognized []byte `json:"-"` + OK *bool `protobuf:"varint,1,req,name=OK" json:"OK,omitempty"` + Error *string `protobuf:"bytes,2,opt,name=Error" json:"Error,omitempty"` + Index *uint64 `protobuf:"varint,3,opt,name=Index" json:"Index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Response) Reset() { *m = Response{} } -func (m *Response) String() string { return proto.CompactTextString(m) } -func (*Response) ProtoMessage() {} -func (*Response) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{40} } +func (m *Response) Reset() { *m = Response{} } +func (m *Response) String() string { return proto.CompactTextString(m) } +func (*Response) ProtoMessage() {} +func (*Response) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{40} +} +func (m *Response) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Response.Unmarshal(m, b) +} +func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Response.Marshal(b, m, deterministic) +} +func (m *Response) XXX_Merge(src proto.Message) { + xxx_messageInfo_Response.Merge(m, src) +} +func (m *Response) XXX_Size() int { + return xxx_messageInfo_Response.Size(m) +} +func (m *Response) XXX_DiscardUnknown() { + xxx_messageInfo_Response.DiscardUnknown(m) +} + +var xxx_messageInfo_Response proto.InternalMessageInfo func (m *Response) GetOK() bool { if m != nil && m.OK != nil { @@ -1752,16 +2559,37 @@ func (m *Response) GetIndex() uint64 { // SetMetaNodeCommand is for the initial metanode in a cluster or // if the single host restarts and its hostname changes, this will update it type SetMetaNodeCommand struct { - HTTPAddr *string `protobuf:"bytes,1,req,name=HTTPAddr" json:"HTTPAddr,omitempty"` - TCPAddr *string `protobuf:"bytes,2,req,name=TCPAddr" json:"TCPAddr,omitempty"` - Rand *uint64 `protobuf:"varint,3,req,name=Rand" json:"Rand,omitempty"` - XXX_unrecognized []byte `json:"-"` + HTTPAddr *string `protobuf:"bytes,1,req,name=HTTPAddr" json:"HTTPAddr,omitempty"` + TCPAddr *string `protobuf:"bytes,2,req,name=TCPAddr" json:"TCPAddr,omitempty"` + Rand *uint64 `protobuf:"varint,3,req,name=Rand" json:"Rand,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SetMetaNodeCommand) Reset() { *m = SetMetaNodeCommand{} } -func (m *SetMetaNodeCommand) String() string { return proto.CompactTextString(m) } -func (*SetMetaNodeCommand) ProtoMessage() {} -func (*SetMetaNodeCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{41} } +func (m *SetMetaNodeCommand) Reset() { *m = SetMetaNodeCommand{} } +func (m *SetMetaNodeCommand) String() string { return proto.CompactTextString(m) } +func (*SetMetaNodeCommand) ProtoMessage() {} +func (*SetMetaNodeCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{41} +} +func (m *SetMetaNodeCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetMetaNodeCommand.Unmarshal(m, b) +} +func (m *SetMetaNodeCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetMetaNodeCommand.Marshal(b, m, deterministic) +} +func (m *SetMetaNodeCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetMetaNodeCommand.Merge(m, src) +} +func (m *SetMetaNodeCommand) XXX_Size() int { + return xxx_messageInfo_SetMetaNodeCommand.Size(m) +} +func (m *SetMetaNodeCommand) XXX_DiscardUnknown() { + xxx_messageInfo_SetMetaNodeCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_SetMetaNodeCommand proto.InternalMessageInfo func (m *SetMetaNodeCommand) GetHTTPAddr() string { if m != nil && m.HTTPAddr != nil { @@ -1794,14 +2622,35 @@ var E_SetMetaNodeCommand_Command = &proto.ExtensionDesc{ } type DropShardCommand struct { - ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` - XXX_unrecognized []byte `json:"-"` + ID *uint64 `protobuf:"varint,1,req,name=ID" json:"ID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DropShardCommand) Reset() { *m = DropShardCommand{} } -func (m *DropShardCommand) String() string { return proto.CompactTextString(m) } -func (*DropShardCommand) ProtoMessage() {} -func (*DropShardCommand) Descriptor() ([]byte, []int) { return fileDescriptorMeta, []int{42} } +func (m *DropShardCommand) Reset() { *m = DropShardCommand{} } +func (m *DropShardCommand) String() string { return proto.CompactTextString(m) } +func (*DropShardCommand) ProtoMessage() {} +func (*DropShardCommand) Descriptor() ([]byte, []int) { + return fileDescriptor_59b0956366e72083, []int{42} +} +func (m *DropShardCommand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DropShardCommand.Unmarshal(m, b) +} +func (m *DropShardCommand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DropShardCommand.Marshal(b, m, deterministic) +} +func (m *DropShardCommand) XXX_Merge(src proto.Message) { + xxx_messageInfo_DropShardCommand.Merge(m, src) +} +func (m *DropShardCommand) XXX_Size() int { + return xxx_messageInfo_DropShardCommand.Size(m) +} +func (m *DropShardCommand) XXX_DiscardUnknown() { + xxx_messageInfo_DropShardCommand.DiscardUnknown(m) +} + +var xxx_messageInfo_DropShardCommand proto.InternalMessageInfo func (m *DropShardCommand) GetID() uint64 { if m != nil && m.ID != nil { @@ -1820,6 +2669,7 @@ var E_DropShardCommand_Command = &proto.ExtensionDesc{ } func init() { + proto.RegisterEnum("meta.Command_Type", Command_Type_name, Command_Type_value) proto.RegisterType((*Data)(nil), "meta.Data") proto.RegisterType((*NodeInfo)(nil), "meta.NodeInfo") proto.RegisterType((*DatabaseInfo)(nil), "meta.DatabaseInfo") @@ -1833,71 +2683,70 @@ func init() { proto.RegisterType((*UserInfo)(nil), "meta.UserInfo") proto.RegisterType((*UserPrivilege)(nil), "meta.UserPrivilege") proto.RegisterType((*Command)(nil), "meta.Command") + proto.RegisterExtension(E_CreateNodeCommand_Command) proto.RegisterType((*CreateNodeCommand)(nil), "meta.CreateNodeCommand") + proto.RegisterExtension(E_DeleteNodeCommand_Command) proto.RegisterType((*DeleteNodeCommand)(nil), "meta.DeleteNodeCommand") + proto.RegisterExtension(E_CreateDatabaseCommand_Command) proto.RegisterType((*CreateDatabaseCommand)(nil), "meta.CreateDatabaseCommand") + proto.RegisterExtension(E_DropDatabaseCommand_Command) proto.RegisterType((*DropDatabaseCommand)(nil), "meta.DropDatabaseCommand") + proto.RegisterExtension(E_CreateRetentionPolicyCommand_Command) proto.RegisterType((*CreateRetentionPolicyCommand)(nil), "meta.CreateRetentionPolicyCommand") + proto.RegisterExtension(E_DropRetentionPolicyCommand_Command) proto.RegisterType((*DropRetentionPolicyCommand)(nil), "meta.DropRetentionPolicyCommand") + proto.RegisterExtension(E_SetDefaultRetentionPolicyCommand_Command) proto.RegisterType((*SetDefaultRetentionPolicyCommand)(nil), "meta.SetDefaultRetentionPolicyCommand") + proto.RegisterExtension(E_UpdateRetentionPolicyCommand_Command) proto.RegisterType((*UpdateRetentionPolicyCommand)(nil), "meta.UpdateRetentionPolicyCommand") + proto.RegisterExtension(E_CreateShardGroupCommand_Command) proto.RegisterType((*CreateShardGroupCommand)(nil), "meta.CreateShardGroupCommand") + proto.RegisterExtension(E_DeleteShardGroupCommand_Command) proto.RegisterType((*DeleteShardGroupCommand)(nil), "meta.DeleteShardGroupCommand") + proto.RegisterExtension(E_CreateContinuousQueryCommand_Command) proto.RegisterType((*CreateContinuousQueryCommand)(nil), "meta.CreateContinuousQueryCommand") + proto.RegisterExtension(E_DropContinuousQueryCommand_Command) proto.RegisterType((*DropContinuousQueryCommand)(nil), "meta.DropContinuousQueryCommand") + proto.RegisterExtension(E_CreateUserCommand_Command) proto.RegisterType((*CreateUserCommand)(nil), "meta.CreateUserCommand") + proto.RegisterExtension(E_DropUserCommand_Command) proto.RegisterType((*DropUserCommand)(nil), "meta.DropUserCommand") + proto.RegisterExtension(E_UpdateUserCommand_Command) proto.RegisterType((*UpdateUserCommand)(nil), "meta.UpdateUserCommand") + proto.RegisterExtension(E_SetPrivilegeCommand_Command) proto.RegisterType((*SetPrivilegeCommand)(nil), "meta.SetPrivilegeCommand") + proto.RegisterExtension(E_SetDataCommand_Command) proto.RegisterType((*SetDataCommand)(nil), "meta.SetDataCommand") + proto.RegisterExtension(E_SetAdminPrivilegeCommand_Command) proto.RegisterType((*SetAdminPrivilegeCommand)(nil), "meta.SetAdminPrivilegeCommand") + proto.RegisterExtension(E_UpdateNodeCommand_Command) proto.RegisterType((*UpdateNodeCommand)(nil), "meta.UpdateNodeCommand") + proto.RegisterExtension(E_CreateSubscriptionCommand_Command) proto.RegisterType((*CreateSubscriptionCommand)(nil), "meta.CreateSubscriptionCommand") + proto.RegisterExtension(E_DropSubscriptionCommand_Command) proto.RegisterType((*DropSubscriptionCommand)(nil), "meta.DropSubscriptionCommand") + proto.RegisterExtension(E_RemovePeerCommand_Command) proto.RegisterType((*RemovePeerCommand)(nil), "meta.RemovePeerCommand") + proto.RegisterExtension(E_CreateMetaNodeCommand_Command) proto.RegisterType((*CreateMetaNodeCommand)(nil), "meta.CreateMetaNodeCommand") + proto.RegisterExtension(E_CreateDataNodeCommand_Command) proto.RegisterType((*CreateDataNodeCommand)(nil), "meta.CreateDataNodeCommand") + proto.RegisterExtension(E_UpdateDataNodeCommand_Command) proto.RegisterType((*UpdateDataNodeCommand)(nil), "meta.UpdateDataNodeCommand") + proto.RegisterExtension(E_DeleteMetaNodeCommand_Command) proto.RegisterType((*DeleteMetaNodeCommand)(nil), "meta.DeleteMetaNodeCommand") + proto.RegisterExtension(E_DeleteDataNodeCommand_Command) proto.RegisterType((*DeleteDataNodeCommand)(nil), "meta.DeleteDataNodeCommand") proto.RegisterType((*Response)(nil), "meta.Response") - proto.RegisterType((*SetMetaNodeCommand)(nil), "meta.SetMetaNodeCommand") - proto.RegisterType((*DropShardCommand)(nil), "meta.DropShardCommand") - proto.RegisterEnum("meta.Command_Type", Command_Type_name, Command_Type_value) - proto.RegisterExtension(E_CreateNodeCommand_Command) - proto.RegisterExtension(E_DeleteNodeCommand_Command) - proto.RegisterExtension(E_CreateDatabaseCommand_Command) - proto.RegisterExtension(E_DropDatabaseCommand_Command) - proto.RegisterExtension(E_CreateRetentionPolicyCommand_Command) - proto.RegisterExtension(E_DropRetentionPolicyCommand_Command) - proto.RegisterExtension(E_SetDefaultRetentionPolicyCommand_Command) - proto.RegisterExtension(E_UpdateRetentionPolicyCommand_Command) - proto.RegisterExtension(E_CreateShardGroupCommand_Command) - proto.RegisterExtension(E_DeleteShardGroupCommand_Command) - proto.RegisterExtension(E_CreateContinuousQueryCommand_Command) - proto.RegisterExtension(E_DropContinuousQueryCommand_Command) - proto.RegisterExtension(E_CreateUserCommand_Command) - proto.RegisterExtension(E_DropUserCommand_Command) - proto.RegisterExtension(E_UpdateUserCommand_Command) - proto.RegisterExtension(E_SetPrivilegeCommand_Command) - proto.RegisterExtension(E_SetDataCommand_Command) - proto.RegisterExtension(E_SetAdminPrivilegeCommand_Command) - proto.RegisterExtension(E_UpdateNodeCommand_Command) - proto.RegisterExtension(E_CreateSubscriptionCommand_Command) - proto.RegisterExtension(E_DropSubscriptionCommand_Command) - proto.RegisterExtension(E_RemovePeerCommand_Command) - proto.RegisterExtension(E_CreateMetaNodeCommand_Command) - proto.RegisterExtension(E_CreateDataNodeCommand_Command) - proto.RegisterExtension(E_UpdateDataNodeCommand_Command) - proto.RegisterExtension(E_DeleteMetaNodeCommand_Command) - proto.RegisterExtension(E_DeleteDataNodeCommand_Command) proto.RegisterExtension(E_SetMetaNodeCommand_Command) + proto.RegisterType((*SetMetaNodeCommand)(nil), "meta.SetMetaNodeCommand") proto.RegisterExtension(E_DropShardCommand_Command) + proto.RegisterType((*DropShardCommand)(nil), "meta.DropShardCommand") } -func init() { proto.RegisterFile("internal/meta.proto", fileDescriptorMeta) } +func init() { proto.RegisterFile("internal/meta.proto", fileDescriptor_59b0956366e72083) } -var fileDescriptorMeta = []byte{ +var fileDescriptor_59b0956366e72083 = []byte{ // 1808 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0x4b, 0x6f, 0x1c, 0xc7, 0x11, 0x46, 0xcf, 0x3e, 0xb8, 0x5b, 0x7c, 0xaa, 0xf9, 0x1a, 0x4a, 0x14, 0xb3, 0x18, 0x08, 0xca, diff --git a/v1/services/storage/gen.go b/v1/services/storage/gen.go index f53948c8f7..336d030661 100644 --- a/v1/services/storage/gen.go +++ b/v1/services/storage/gen.go @@ -1,3 +1,3 @@ package storage -//go:generate protoc -I$GOPATH/src/github.com/influxdata/influxdb/vendor -I. --gogofaster_out=. source.proto +//go:generate protoc -I$GOPATH/src -I. --gogofaster_out=. source.proto diff --git a/v1/services/storage/source.pb.go b/v1/services/storage/source.pb.go index 9d037e3f04..d3a02cd430 100644 --- a/v1/services/storage/source.pb.go +++ b/v1/services/storage/source.pb.go @@ -1,27 +1,15 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: source.proto -/* - Package storage is a generated protocol buffer package. - - It is generated from these files: - source.proto - - It has these top-level messages: - ReadSource -*/ package storage import ( fmt "fmt" - - proto "github.com/gogo/protobuf/proto" - - math "math" - _ "github.com/gogo/protobuf/gogoproto" - + proto "github.com/gogo/protobuf/proto" io "io" + math "math" + math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -33,7 +21,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type ReadSource struct { // Database identifies which database to query. @@ -42,18 +30,67 @@ type ReadSource struct { RetentionPolicy string `protobuf:"bytes,2,opt,name=retention_policy,json=retentionPolicy,proto3" json:"retention_policy,omitempty"` } -func (m *ReadSource) Reset() { *m = ReadSource{} } -func (m *ReadSource) String() string { return proto.CompactTextString(m) } -func (*ReadSource) ProtoMessage() {} -func (*ReadSource) Descriptor() ([]byte, []int) { return fileDescriptorSource, []int{0} } +func (m *ReadSource) Reset() { *m = ReadSource{} } +func (m *ReadSource) String() string { return proto.CompactTextString(m) } +func (*ReadSource) ProtoMessage() {} +func (*ReadSource) Descriptor() ([]byte, []int) { + return fileDescriptor_9229c9b6eb8e6b85, []int{0} +} +func (m *ReadSource) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReadSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReadSource.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReadSource) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadSource.Merge(m, src) +} +func (m *ReadSource) XXX_Size() int { + return m.Size() +} +func (m *ReadSource) XXX_DiscardUnknown() { + xxx_messageInfo_ReadSource.DiscardUnknown(m) +} + +var xxx_messageInfo_ReadSource proto.InternalMessageInfo func init() { proto.RegisterType((*ReadSource)(nil), "com.github.influxdata.influxdb.services.storage.ReadSource") } + +func init() { proto.RegisterFile("source.proto", fileDescriptor_9229c9b6eb8e6b85) } + +var fileDescriptor_9229c9b6eb8e6b85 = []byte{ + // 219 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0xce, 0x2f, 0x2d, + 0x4a, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xd2, 0x4f, 0xce, 0xcf, 0xd5, 0x4b, 0xcf, + 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0xcb, 0xcc, 0x4b, 0xcb, 0x29, 0xad, 0x48, 0x49, 0x2c, 0x49, 0x84, + 0x31, 0x93, 0xf4, 0x8a, 0x53, 0x8b, 0xca, 0x32, 0x93, 0x53, 0x8b, 0xf5, 0x8a, 0x4b, 0xf2, 0x8b, + 0x12, 0xd3, 0x53, 0xa5, 0x74, 0xa1, 0x8a, 0x93, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, + 0xc1, 0xe6, 0x24, 0x95, 0xa6, 0x81, 0x79, 0x60, 0x0e, 0x98, 0x05, 0x31, 0x5f, 0x29, 0x83, 0x8b, + 0x2b, 0x28, 0x35, 0x31, 0x25, 0x18, 0x6c, 0xa7, 0x90, 0x14, 0x17, 0x07, 0xc8, 0xf8, 0xa4, 0xc4, + 0xe2, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x38, 0x5f, 0xc8, 0x8e, 0x4b, 0xa0, 0x28, + 0xb5, 0x24, 0x35, 0xaf, 0x24, 0x33, 0x3f, 0x2f, 0xbe, 0x20, 0x3f, 0x27, 0x33, 0xb9, 0x52, 0x82, + 0x09, 0xa4, 0xc6, 0x49, 0xf8, 0xd1, 0x3d, 0x79, 0xfe, 0x20, 0x98, 0x5c, 0x00, 0x58, 0x2a, 0x88, + 0xbf, 0x08, 0x55, 0xc0, 0x49, 0xf5, 0xc4, 0x43, 0x39, 0x86, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, + 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, + 0x3c, 0x96, 0x63, 0x88, 0x62, 0x87, 0xba, 0x3f, 0x89, 0x0d, 0xec, 0x2e, 0x63, 0x40, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x6c, 0xc4, 0xa8, 0x70, 0x07, 0x01, 0x00, 0x00, +} + func (m *ReadSource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -61,53 +98,47 @@ func (m *ReadSource) Marshal() (dAtA []byte, err error) { } func (m *ReadSource) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReadSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Database) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintSource(dAtA, i, uint64(len(m.Database))) - i += copy(dAtA[i:], m.Database) - } if len(m.RetentionPolicy) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.RetentionPolicy) + copy(dAtA[i:], m.RetentionPolicy) i = encodeVarintSource(dAtA, i, uint64(len(m.RetentionPolicy))) - i += copy(dAtA[i:], m.RetentionPolicy) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.Database) > 0 { + i -= len(m.Database) + copy(dAtA[i:], m.Database) + i = encodeVarintSource(dAtA, i, uint64(len(m.Database))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func encodeFixed64Source(dAtA []byte, offset int, v uint64) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - dAtA[offset+4] = uint8(v >> 32) - dAtA[offset+5] = uint8(v >> 40) - dAtA[offset+6] = uint8(v >> 48) - dAtA[offset+7] = uint8(v >> 56) - return offset + 8 -} -func encodeFixed32Source(dAtA []byte, offset int, v uint32) int { - dAtA[offset] = uint8(v) - dAtA[offset+1] = uint8(v >> 8) - dAtA[offset+2] = uint8(v >> 16) - dAtA[offset+3] = uint8(v >> 24) - return offset + 4 -} func encodeVarintSource(dAtA []byte, offset int, v uint64) int { + offset -= sovSource(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *ReadSource) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Database) @@ -122,14 +153,7 @@ func (m *ReadSource) Size() (n int) { } func sovSource(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozSource(x uint64) (n int) { return sovSource(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -149,7 +173,7 @@ func (m *ReadSource) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -177,7 +201,7 @@ func (m *ReadSource) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -187,6 +211,9 @@ func (m *ReadSource) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSource } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSource + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -206,7 +233,7 @@ func (m *ReadSource) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -216,6 +243,9 @@ func (m *ReadSource) Unmarshal(dAtA []byte) error { return ErrInvalidLengthSource } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSource + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -227,7 +257,7 @@ func (m *ReadSource) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthSource } if (iNdEx + skippy) > l { @@ -245,6 +275,7 @@ func (m *ReadSource) Unmarshal(dAtA []byte) error { func skipSource(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -276,10 +307,8 @@ func skipSource(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -296,73 +325,34 @@ func skipSource(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthSource } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowSource - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipSource(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSource + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthSource + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthSource = fmt.Errorf("proto: negative length found during unmarshalling") - ErrIntOverflowSource = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthSource = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSource = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSource = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("source.proto", fileDescriptorSource) } - -var fileDescriptorSource = []byte{ - // 210 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0xce, 0x2f, 0x2d, - 0x4a, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xd2, 0x4f, 0xce, 0xcf, 0xd5, 0x4b, 0xcf, - 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0xcb, 0xcc, 0x4b, 0xcb, 0x29, 0xad, 0x48, 0x49, 0x2c, 0x49, 0x84, - 0x31, 0x93, 0xf4, 0x8a, 0x53, 0x8b, 0xca, 0x32, 0x93, 0x53, 0x8b, 0xf5, 0x8a, 0x4b, 0xf2, 0x8b, - 0x12, 0xd3, 0x53, 0xa5, 0x74, 0xa1, 0x8a, 0x93, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, - 0xc1, 0xe6, 0x24, 0x95, 0xa6, 0x81, 0x79, 0x60, 0x0e, 0x98, 0x05, 0x31, 0x5f, 0x29, 0x83, 0x8b, - 0x2b, 0x28, 0x35, 0x31, 0x25, 0x18, 0x6c, 0xa7, 0x90, 0x14, 0x17, 0x07, 0xc8, 0xf8, 0xa4, 0xc4, - 0xe2, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x38, 0x5f, 0xc8, 0x8e, 0x4b, 0xa0, 0x28, - 0xb5, 0x24, 0x35, 0xaf, 0x24, 0x33, 0x3f, 0x2f, 0xbe, 0x20, 0x3f, 0x27, 0x33, 0xb9, 0x52, 0x82, - 0x09, 0xa4, 0xc6, 0x49, 0xf8, 0xd1, 0x3d, 0x79, 0xfe, 0x20, 0x98, 0x5c, 0x00, 0x58, 0x2a, 0x88, - 0xbf, 0x08, 0x55, 0xc0, 0x49, 0xf6, 0xc4, 0x43, 0x39, 0x86, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, - 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x28, 0x76, 0xa8, 0xbb, 0x93, - 0xd8, 0xc0, 0xee, 0x31, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x5a, 0xd6, 0xd1, 0xff, 0x00, - 0x00, 0x00, -}