diff --git a/go.mod b/go.mod index b1092a3bf5..582f505985 100644 --- a/go.mod +++ b/go.mod @@ -39,7 +39,7 @@ require ( github.com/go-ldap/ldap v2.5.1+incompatible // indirect github.com/go-test/deep v1.0.1 // indirect github.com/gocql/gocql v0.0.0-20181124151448-70385f88b28b // indirect - github.com/gogo/protobuf v1.2.0 + github.com/gogo/protobuf v1.2.1 github.com/golang/gddo v0.0.0-20181116215533-9bd4a3295021 github.com/golang/protobuf v1.2.0 github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db diff --git a/go.sum b/go.sum index 18c03fb7e8..6347b952bb 100644 --- a/go.sum +++ b/go.sum @@ -134,6 +134,8 @@ github.com/gocql/gocql v0.0.0-20181124151448-70385f88b28b h1:dnUw9Ih14dCKzbtZxm+ github.com/gocql/gocql v0.0.0-20181124151448-70385f88b28b/go.mod h1:4Fw1eo5iaEhDUs8XyuhSVCVy52Jq3L+/3GJgYkwc+/0= github.com/gogo/protobuf v1.2.0 h1:xU6/SpYbvkNYiptHJYEDRseDLvYE7wSqhYYNy0QSUzI= github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1 h1:/s5zKNz0uPFCZ5hddgPdo2TK2TVrUNMn0OOX8/aZMTE= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= github.com/golang/gddo v0.0.0-20181116215533-9bd4a3295021 h1:HYV500jCgk+IC68L5sWrLFIWMpaUFfXXpJSAb7XOoBk= github.com/golang/gddo v0.0.0-20181116215533-9bd4a3295021/go.mod h1:xEhNfoBDX1hzLm2Nf80qUvZ2sVwoMZ8d6IE2SrsQfh4= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= @@ -260,6 +262,7 @@ github.com/kevinburke/go-bindata v3.11.0+incompatible/go.mod h1:/pEEZ72flUW2p0yi github.com/kevinburke/ssh_config v0.0.0-20180830205328-81db2a75821e/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a h1:X/UFlwD2/UV0RCy+8ITi4DmxJwk83YUH7bXwkJIHHMo= github.com/keybase/go-crypto v0.0.0-20181127160227-255a5089e85a/go.mod h1:ghbZscTyKdM07+Fw3KSi0hcJm+AlEUWj8QLlPtijN/M= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= @@ -466,6 +469,7 @@ golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c h1:fqgJT0MGcGpPgpWU7VRdRjuArfcOvC4AoJmILihzhDg= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181221154417-3ad2d988d5e2 h1:M7NLB69gFpUH4s6SJLwXiVs45aZfVjqGKynfNFKSGcI= diff --git a/scripts/protoc-gen-gogo b/scripts/protoc-gen-gogo index b022fd4d6b..f6accc57a4 100755 --- a/scripts/protoc-gen-gogo +++ b/scripts/protoc-gen-gogo @@ -1,2 +1,2 @@ -#!/bin/bash +#!/usr/bin/env bash env GO111MODULE=on go run github.com/gogo/protobuf/protoc-gen-gogo "$@" diff --git a/scripts/protoc-gen-gogofaster b/scripts/protoc-gen-gogofaster index 756edc515d..e883c4fc10 100755 --- a/scripts/protoc-gen-gogofaster +++ b/scripts/protoc-gen-gogofaster @@ -1,2 +1,2 @@ -#!/bin/bash +#!/usr/bin/env bash env GO111MODULE=on go run github.com/gogo/protobuf/protoc-gen-gogofaster "$@" diff --git a/storage/reads/datatypes/predicate.pb.go b/storage/reads/datatypes/predicate.pb.go index e2f5283f78..068385c250 100644 --- a/storage/reads/datatypes/predicate.pb.go +++ b/storage/reads/datatypes/predicate.pb.go @@ -3,14 +3,14 @@ package datatypes -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "github.com/gogo/protobuf/gogoproto" - -import encoding_binary "encoding/binary" - -import io "io" +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -42,6 +42,7 @@ var Node_Type_name = map[int32]string{ 4: "LITERAL", 5: "FIELD_REF", } + var Node_Type_value = map[string]int32{ "LOGICAL_EXPRESSION": 0, "COMPARISON_EXPRESSION": 1, @@ -54,8 +55,9 @@ var Node_Type_value = map[string]int32{ func (x Node_Type) String() string { return proto.EnumName(Node_Type_name, int32(x)) } + func (Node_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_predicate_dbcd4976a789e072, []int{0, 0} + return fileDescriptor_87cba9804b436f42, []int{0, 0} } type Node_Comparison int32 @@ -83,6 +85,7 @@ var Node_Comparison_name = map[int32]string{ 7: "GT", 8: "GTE", } + var Node_Comparison_value = map[string]int32{ "EQUAL": 0, "NOT_EQUAL": 1, @@ -98,8 +101,9 @@ var Node_Comparison_value = map[string]int32{ func (x Node_Comparison) String() string { return proto.EnumName(Node_Comparison_name, int32(x)) } + func (Node_Comparison) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_predicate_dbcd4976a789e072, []int{0, 1} + return fileDescriptor_87cba9804b436f42, []int{0, 1} } // Logical operators apply to boolean values and combine to produce a single boolean result. @@ -114,6 +118,7 @@ var Node_Logical_name = map[int32]string{ 0: "AND", 1: "OR", } + var Node_Logical_value = map[string]int32{ "AND": 0, "OR": 1, @@ -122,13 +127,14 @@ var Node_Logical_value = map[string]int32{ func (x Node_Logical) String() string { return proto.EnumName(Node_Logical_name, int32(x)) } + func (Node_Logical) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_predicate_dbcd4976a789e072, []int{0, 2} + return fileDescriptor_87cba9804b436f42, []int{0, 2} } type Node struct { NodeType Node_Type `protobuf:"varint,1,opt,name=node_type,json=nodeType,proto3,enum=influxdata.platform.storage.Node_Type" json:"nodeType"` - Children []*Node `protobuf:"bytes,2,rep,name=children" json:"children,omitempty"` + Children []*Node `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"` // Types that are valid to be assigned to Value: // *Node_StringValue // *Node_BooleanValue @@ -140,16 +146,14 @@ type Node struct { // *Node_FieldRefValue // *Node_Logical_ // *Node_Comparison_ - Value isNode_Value `protobuf_oneof:"value"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Value isNode_Value `protobuf_oneof:"value"` } func (m *Node) Reset() { *m = Node{} } func (m *Node) String() string { return proto.CompactTextString(m) } func (*Node) ProtoMessage() {} func (*Node) Descriptor() ([]byte, []int) { - return fileDescriptor_predicate_dbcd4976a789e072, []int{0} + return fileDescriptor_87cba9804b436f42, []int{0} } func (m *Node) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -166,8 +170,8 @@ func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (dst *Node) XXX_Merge(src proto.Message) { - xxx_messageInfo_Node.Merge(dst, src) +func (m *Node) XXX_Merge(src proto.Message) { + xxx_messageInfo_Node.Merge(m, src) } func (m *Node) XXX_Size() int { return m.Size() @@ -373,7 +377,7 @@ func _Node_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { _ = b.EncodeVarint(uint64(x.Comparison)) case nil: default: - return fmt.Errorf("node.Value has unexpected type %T", x) + return fmt.Errorf("Node.Value has unexpected type %T", x) } return nil } @@ -502,16 +506,14 @@ func _Node_OneofSizer(msg proto.Message) (n int) { } type Predicate struct { - Root *Node `protobuf:"bytes,1,opt,name=root" json:"root,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Root *Node `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` } func (m *Predicate) Reset() { *m = Predicate{} } func (m *Predicate) String() string { return proto.CompactTextString(m) } func (*Predicate) ProtoMessage() {} func (*Predicate) Descriptor() ([]byte, []int) { - return fileDescriptor_predicate_dbcd4976a789e072, []int{1} + return fileDescriptor_87cba9804b436f42, []int{1} } func (m *Predicate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -528,8 +530,8 @@ func (m *Predicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (dst *Predicate) XXX_Merge(src proto.Message) { - xxx_messageInfo_Predicate.Merge(dst, src) +func (m *Predicate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Predicate.Merge(m, src) } func (m *Predicate) XXX_Size() int { return m.Size() @@ -548,12 +550,74 @@ func (m *Predicate) GetRoot() *Node { } func init() { - proto.RegisterType((*Node)(nil), "influxdata.platform.storage.Node") - proto.RegisterType((*Predicate)(nil), "influxdata.platform.storage.Predicate") proto.RegisterEnum("influxdata.platform.storage.Node_Type", Node_Type_name, Node_Type_value) proto.RegisterEnum("influxdata.platform.storage.Node_Comparison", Node_Comparison_name, Node_Comparison_value) proto.RegisterEnum("influxdata.platform.storage.Node_Logical", Node_Logical_name, Node_Logical_value) + proto.RegisterType((*Node)(nil), "influxdata.platform.storage.Node") + proto.RegisterType((*Predicate)(nil), "influxdata.platform.storage.Predicate") } + +func init() { proto.RegisterFile("predicate.proto", fileDescriptor_87cba9804b436f42) } + +var fileDescriptor_87cba9804b436f42 = []byte{ + // 869 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x95, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0xc7, 0x45, 0x7d, 0x58, 0xe2, 0xc8, 0x1f, 0xcc, 0xc6, 0x8e, 0x55, 0xa6, 0x91, 0xb6, 0x36, + 0x5a, 0x28, 0x40, 0xa1, 0xc0, 0x6e, 0x7d, 0x0a, 0x8a, 0x82, 0x74, 0x68, 0x59, 0x00, 0x2b, 0xa9, + 0x14, 0xd3, 0x04, 0x05, 0x0a, 0x81, 0xb1, 0x56, 0x0c, 0x01, 0x86, 0xab, 0x2e, 0x57, 0x85, 0xf3, + 0x06, 0x05, 0x4f, 0xbd, 0x07, 0x3c, 0xf5, 0x65, 0x7a, 0x29, 0x90, 0x63, 0x4f, 0x42, 0x21, 0xdf, + 0xfa, 0x14, 0x05, 0xbf, 0xe5, 0xb6, 0xa8, 0x73, 0xdb, 0x99, 0xfd, 0xff, 0xfe, 0x3b, 0x3b, 0x1c, + 0xad, 0x60, 0x6f, 0xc1, 0xc8, 0xcc, 0xb9, 0xb2, 0x38, 0xe9, 0x2d, 0x18, 0xe5, 0x14, 0x3d, 0x74, + 0xbc, 0xb9, 0xbb, 0xbc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0x62, 0xc4, 0x46, 0xef, 0xbd, + 0xff, 0x6a, 0x2b, 0xfe, 0x37, 0xf8, 0xe2, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x27, 0x63, 0xc0, + 0x0c, 0x53, 0x06, 0x00, 0x00, +} + func (m *Node) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -714,6 +778,9 @@ func encodeVarintPredicate(dAtA []byte, offset int, v uint64) int { return offset + 1 } func (m *Node) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.NodeType != 0 { @@ -732,6 +799,9 @@ func (m *Node) Size() (n int) { } func (m *Node_StringValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.StringValue) @@ -739,30 +809,45 @@ func (m *Node_StringValue) Size() (n int) { return n } func (m *Node_BooleanValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 2 return n } func (m *Node_IntegerValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovPredicate(uint64(m.IntegerValue)) return n } func (m *Node_UnsignedValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovPredicate(uint64(m.UnsignedValue)) return n } func (m *Node_FloatValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 9 return n } func (m *Node_RegexValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.RegexValue) @@ -770,6 +855,9 @@ func (m *Node_RegexValue) Size() (n int) { return n } func (m *Node_TagRefValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.TagRefValue) @@ -777,6 +865,9 @@ func (m *Node_TagRefValue) Size() (n int) { return n } func (m *Node_FieldRefValue) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.FieldRefValue) @@ -784,18 +875,27 @@ func (m *Node_FieldRefValue) Size() (n int) { return n } func (m *Node_Logical_) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovPredicate(uint64(m.Logical)) return n } func (m *Node_Comparison_) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l n += 1 + sovPredicate(uint64(m.Comparison)) return n } func (m *Predicate) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Root != nil { @@ -833,7 +933,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -861,7 +961,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NodeType |= (Node_Type(b) & 0x7F) << shift + m.NodeType |= Node_Type(b&0x7F) << shift if b < 0x80 { break } @@ -880,7 +980,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -889,6 +989,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPredicate } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPredicate + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -911,7 +1014,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -921,6 +1024,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPredicate } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredicate + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -940,7 +1046,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -961,7 +1067,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -981,7 +1087,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1012,7 +1118,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1022,6 +1128,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPredicate } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredicate + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1041,7 +1150,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1051,6 +1160,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPredicate } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredicate + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1070,7 +1182,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1080,6 +1192,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPredicate } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredicate + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1099,7 +1214,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (Node_Logical(b) & 0x7F) << shift + v |= Node_Logical(b&0x7F) << shift if b < 0x80 { break } @@ -1119,7 +1234,7 @@ func (m *Node) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (Node_Comparison(b) & 0x7F) << shift + v |= Node_Comparison(b&0x7F) << shift if b < 0x80 { break } @@ -1134,6 +1249,9 @@ func (m *Node) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthPredicate } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPredicate + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1161,7 +1279,7 @@ func (m *Predicate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1189,7 +1307,7 @@ func (m *Predicate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1198,6 +1316,9 @@ func (m *Predicate) Unmarshal(dAtA []byte) error { return ErrInvalidLengthPredicate } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPredicate + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1217,6 +1338,9 @@ func (m *Predicate) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthPredicate } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthPredicate + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1283,10 +1407,13 @@ func skipPredicate(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthPredicate } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthPredicate + } return iNdEx, nil case 3: for { @@ -1315,6 +1442,9 @@ func skipPredicate(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthPredicate + } } return iNdEx, nil case 4: @@ -1333,63 +1463,3 @@ var ( ErrInvalidLengthPredicate = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPredicate = fmt.Errorf("proto: integer overflow") ) - -func init() { proto.RegisterFile("predicate.proto", fileDescriptor_predicate_dbcd4976a789e072) } - -var fileDescriptor_predicate_dbcd4976a789e072 = []byte{ - // 860 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x95, 0xdd, 0x8e, 0xdb, 0x44, - 0x14, 0xc7, 0xe3, 0x7c, 0x6c, 0xe2, 0x93, 0xfd, 0x70, 0xa7, 0xbb, 0xdd, 0xe0, 0xa5, 0xc9, 0xb0, - 0x15, 0x28, 0x95, 0x50, 0xaa, 0x5d, 0xd8, 0xab, 0x0a, 0xa1, 0x78, 0xeb, 0xcd, 0x46, 0x32, 0x49, - 0x70, 0x5c, 0x5a, 0x21, 0xa1, 0x68, 0xba, 0x99, 0xb8, 0x96, 0x5c, 0x4f, 0x18, 0x4f, 0xd0, 0xf6, - 0x0d, 0x90, 0xaf, 0xb8, 0xaf, 0x7c, 0xc5, 0xcb, 0x70, 0x83, 0xc4, 0x13, 0x44, 0x28, 0xdc, 0xf1, - 0x14, 0xc8, 0xdf, 0x29, 0x20, 0x96, 0xbb, 0x39, 0x67, 0xfe, 0xbf, 0xff, 0x9c, 0x39, 0x3e, 0x99, - 0xc0, 0xc1, 0x92, 0xd3, 0xb9, 0x73, 0x43, 0x04, 0xed, 0x2d, 0x39, 0x13, 0x0c, 0x9d, 0x38, 0xde, - 0xc2, 0x5d, 0xdd, 0xce, 0x89, 0x20, 0xbd, 0xa5, 0x4b, 0xc4, 0x82, 0xf1, 0x37, 0x3d, 0x5f, 0x30, - 0x4e, 0x6c, 0xaa, 0x1e, 0xda, 0xcc, 0x66, 0xb1, 0xee, 0x49, 0xb4, 0x4a, 0x90, 0xd3, 0x77, 0x4d, - 0xa8, 0x8e, 0xd8, 0x9c, 0xa2, 0xef, 0x40, 0xf6, 0xd8, 0x9c, 0xce, 0xc4, 0xdb, 0x25, 0x6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b0, 0x74, 0x65, 0x47, 0x3d, 0x0e, 0x42, 0x7c, 0xff, 0xfd, 0xcd, 0xa4, 0xde, 0x87, - 0x50, 0x1e, 0x58, 0x4a, 0x5d, 0x3d, 0x0a, 0x42, 0x7c, 0xaf, 0x10, 0x0c, 0x38, 0x25, 0x82, 0x72, - 0xf4, 0x08, 0x2a, 0x03, 0x4b, 0x57, 0x1a, 0xaa, 0x1a, 0x84, 0xf8, 0xc1, 0x3f, 0xf6, 0x63, 0x8f, - 0xb4, 0x9f, 0x5f, 0x42, 0x3d, 0x1d, 0x21, 0x74, 0x0c, 0x95, 0xfe, 0xe8, 0x99, 0x52, 0x52, 0xf7, - 0x83, 0x10, 0x43, 0x9a, 0xed, 0x7b, 0x73, 0x74, 0x04, 0xe5, 0xb1, 0xa9, 0x48, 0xea, 0x5e, 0x10, - 0x62, 0x39, 0xcd, 0x8f, 0x79, 0x62, 0xa0, 0xd5, 0xa1, 0x16, 0xff, 0xf0, 0x4e, 0x35, 0x90, 0x27, - 0xd9, 0x1b, 0x8f, 0x2e, 0xa0, 0xca, 0x19, 0x13, 0xf1, 0xe3, 0xfc, 0xbf, 0x9e, 0xcf, 0x58, 0xae, - 0x9d, 0xfc, 0xb2, 0x69, 0x4b, 0xbf, 0x6d, 0xda, 0xd2, 0xef, 0x9b, 0xb6, 0xf4, 0xd3, 0x1f, 0xed, - 0xd2, 0xb7, 0x72, 0xc4, 0x44, 0xef, 0xbc, 0xff, 0x6a, 0x27, 0xfe, 0x17, 0xf8, 0xec, 0xaf, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xef, 0xb8, 0x31, 0xd8, 0x4b, 0x06, 0x00, 0x00, -} diff --git a/storage/reads/datatypes/storage_common.pb.go b/storage/reads/datatypes/storage_common.pb.go index 8b55a785f0..8b8272c35b 100644 --- a/storage/reads/datatypes/storage_common.pb.go +++ b/storage/reads/datatypes/storage_common.pb.go @@ -3,18 +3,17 @@ package datatypes -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "github.com/gogo/protobuf/gogoproto" -import types "github.com/gogo/protobuf/types" - -import context "golang.org/x/net/context" -import grpc "google.golang.org/grpc" - -import encoding_binary "encoding/binary" - -import io "io" +import ( + context "context" + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + types "github.com/gogo/protobuf/types" + grpc "google.golang.org/grpc" + io "io" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -48,6 +47,7 @@ var ReadRequest_Group_name = map[int32]string{ 2: "GROUP_BY", 3: "GROUP_EXCEPT", } + var ReadRequest_Group_value = map[string]int32{ "GROUP_NONE": 0, "GROUP_ALL": 1, @@ -58,8 +58,9 @@ var ReadRequest_Group_value = map[string]int32{ func (x ReadRequest_Group) String() string { return proto.EnumName(ReadRequest_Group_name, int32(x)) } + func (ReadRequest_Group) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{0, 0} + return fileDescriptor_715e4bf4cdf1f73d, []int{0, 0} } type ReadRequest_HintFlags int32 @@ -78,6 +79,7 @@ var ReadRequest_HintFlags_name = map[int32]string{ 2: "HINT_NO_SERIES", 4: "HINT_SCHEMA_ALL_TIME", } + var ReadRequest_HintFlags_value = map[string]int32{ "HINT_NONE": 0, "HINT_NO_POINTS": 1, @@ -88,8 +90,9 @@ var ReadRequest_HintFlags_value = map[string]int32{ func (x ReadRequest_HintFlags) String() string { return proto.EnumName(ReadRequest_HintFlags_name, int32(x)) } + func (ReadRequest_HintFlags) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{0, 1} + return fileDescriptor_715e4bf4cdf1f73d, []int{0, 1} } type Aggregate_AggregateType int32 @@ -105,6 +108,7 @@ var Aggregate_AggregateType_name = map[int32]string{ 1: "SUM", 2: "COUNT", } + var Aggregate_AggregateType_value = map[string]int32{ "NONE": 0, "SUM": 1, @@ -114,8 +118,9 @@ var Aggregate_AggregateType_value = map[string]int32{ func (x Aggregate_AggregateType) String() string { return proto.EnumName(Aggregate_AggregateType_name, int32(x)) } + func (Aggregate_AggregateType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{1, 0} + return fileDescriptor_715e4bf4cdf1f73d, []int{1, 0} } type ReadResponse_FrameType int32 @@ -129,6 +134,7 @@ var ReadResponse_FrameType_name = map[int32]string{ 0: "SERIES", 1: "POINTS", } + var ReadResponse_FrameType_value = map[string]int32{ "SERIES": 0, "POINTS": 1, @@ -137,8 +143,9 @@ var ReadResponse_FrameType_value = map[string]int32{ func (x ReadResponse_FrameType) String() string { return proto.EnumName(ReadResponse_FrameType_name, int32(x)) } + func (ReadResponse_FrameType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3, 0} + return fileDescriptor_715e4bf4cdf1f73d, []int{3, 0} } type ReadResponse_DataType int32 @@ -158,6 +165,7 @@ var ReadResponse_DataType_name = map[int32]string{ 3: "BOOLEAN", 4: "STRING", } + var ReadResponse_DataType_value = map[string]int32{ "FLOAT": 0, "INTEGER": 1, @@ -169,25 +177,26 @@ var ReadResponse_DataType_value = map[string]int32{ func (x ReadResponse_DataType) String() string { return proto.EnumName(ReadResponse_DataType_name, int32(x)) } + func (ReadResponse_DataType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3, 1} + return fileDescriptor_715e4bf4cdf1f73d, []int{3, 1} } // Request message for Storage.Read. type ReadRequest struct { - ReadSource *types.Any `protobuf:"bytes,13,opt,name=read_source,json=readSource" json:"read_source,omitempty"` - TimestampRange TimestampRange `protobuf:"bytes,2,opt,name=timestamp_range,json=timestampRange" json:"timestamp_range"` + ReadSource *types.Any `protobuf:"bytes,13,opt,name=read_source,json=readSource,proto3" json:"read_source,omitempty"` + TimestampRange TimestampRange `protobuf:"bytes,2,opt,name=timestamp_range,json=timestampRange,proto3" json:"timestamp_range"` // Descending indicates whether points should be returned in descending order. Descending bool `protobuf:"varint,3,opt,name=descending,proto3" json:"descending,omitempty"` // GroupKeys specifies a list of tag keys used to order the data. It is dependent on the Group property to determine // its behavior. - GroupKeys []string `protobuf:"bytes,4,rep,name=group_keys,json=groupKeys" json:"group_keys,omitempty"` + GroupKeys []string `protobuf:"bytes,4,rep,name=group_keys,json=groupKeys,proto3" json:"group_keys,omitempty"` // Group ReadRequest_Group `protobuf:"varint,11,opt,name=group,proto3,enum=influxdata.platform.storage.ReadRequest_Group" json:"group,omitempty"` // Aggregate specifies an optional aggregate to apply to the data. // TODO(sgc): switch to slice for multiple aggregates in a single request - Aggregate *Aggregate `protobuf:"bytes,9,opt,name=aggregate" json:"aggregate,omitempty"` - Predicate *Predicate `protobuf:"bytes,5,opt,name=predicate" json:"predicate,omitempty"` + Aggregate *Aggregate `protobuf:"bytes,9,opt,name=aggregate,proto3" json:"aggregate,omitempty"` + Predicate *Predicate `protobuf:"bytes,5,opt,name=predicate,proto3" json:"predicate,omitempty"` // SeriesLimit determines the maximum number of series to be returned for the request. Specify 0 for no limit. SeriesLimit int64 `protobuf:"varint,6,opt,name=series_limit,json=seriesLimit,proto3" json:"series_limit,omitempty"` // SeriesOffset determines how many series to skip before processing the request. @@ -196,19 +205,17 @@ type ReadRequest struct { // Specify 0 for no limit. -1 to return series frames only. PointsLimit int64 `protobuf:"varint,8,opt,name=points_limit,json=pointsLimit,proto3" json:"points_limit,omitempty"` // Trace contains opaque data if a trace is active. - Trace map[string]string `protobuf:"bytes,10,rep,name=trace" json:"trace,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Trace map[string]string `protobuf:"bytes,10,rep,name=trace,proto3" json:"trace,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Hints is a bitwise OR of HintFlags to control the behavior // of the read request. - Hints HintFlags `protobuf:"fixed32,12,opt,name=hints,proto3,casttype=HintFlags" json:"hints,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Hints HintFlags `protobuf:"fixed32,12,opt,name=hints,proto3,casttype=HintFlags" json:"hints,omitempty"` } func (m *ReadRequest) Reset() { *m = ReadRequest{} } func (m *ReadRequest) String() string { return proto.CompactTextString(m) } func (*ReadRequest) ProtoMessage() {} func (*ReadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{0} + return fileDescriptor_715e4bf4cdf1f73d, []int{0} } func (m *ReadRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -225,8 +232,8 @@ func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (dst *ReadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadRequest.Merge(dst, src) +func (m *ReadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadRequest.Merge(m, src) } func (m *ReadRequest) XXX_Size() int { return m.Size() @@ -238,16 +245,14 @@ func (m *ReadRequest) XXX_DiscardUnknown() { var xxx_messageInfo_ReadRequest proto.InternalMessageInfo type Aggregate struct { - Type Aggregate_AggregateType `protobuf:"varint,1,opt,name=type,proto3,enum=influxdata.platform.storage.Aggregate_AggregateType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Type Aggregate_AggregateType `protobuf:"varint,1,opt,name=type,proto3,enum=influxdata.platform.storage.Aggregate_AggregateType" json:"type,omitempty"` } func (m *Aggregate) Reset() { *m = Aggregate{} } func (m *Aggregate) String() string { return proto.CompactTextString(m) } func (*Aggregate) ProtoMessage() {} func (*Aggregate) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{1} + return fileDescriptor_715e4bf4cdf1f73d, []int{1} } func (m *Aggregate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -264,8 +269,8 @@ func (m *Aggregate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (dst *Aggregate) XXX_Merge(src proto.Message) { - xxx_messageInfo_Aggregate.Merge(dst, src) +func (m *Aggregate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Aggregate.Merge(m, src) } func (m *Aggregate) XXX_Size() int { return m.Size() @@ -277,17 +282,15 @@ func (m *Aggregate) XXX_DiscardUnknown() { var xxx_messageInfo_Aggregate proto.InternalMessageInfo type Tag struct { - Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } 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_storage_common_01b6ac29b3fb8162, []int{2} + return fileDescriptor_715e4bf4cdf1f73d, []int{2} } func (m *Tag) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -304,8 +307,8 @@ func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -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() @@ -318,16 +321,14 @@ var xxx_messageInfo_Tag proto.InternalMessageInfo // Response message for Storage.Read. type ReadResponse struct { - Frames []ReadResponse_Frame `protobuf:"bytes,1,rep,name=frames" json:"frames"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Frames []ReadResponse_Frame `protobuf:"bytes,1,rep,name=frames,proto3" json:"frames"` } func (m *ReadResponse) Reset() { *m = ReadResponse{} } func (m *ReadResponse) String() string { return proto.CompactTextString(m) } func (*ReadResponse) ProtoMessage() {} func (*ReadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3} + return fileDescriptor_715e4bf4cdf1f73d, []int{3} } func (m *ReadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -344,8 +345,8 @@ func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (dst *ReadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadResponse.Merge(dst, src) +func (m *ReadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadResponse.Merge(m, src) } func (m *ReadResponse) XXX_Size() int { return m.Size() @@ -365,16 +366,14 @@ type ReadResponse_Frame struct { // *ReadResponse_Frame_UnsignedPoints // *ReadResponse_Frame_BooleanPoints // *ReadResponse_Frame_StringPoints - Data isReadResponse_Frame_Data `protobuf_oneof:"data"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Data isReadResponse_Frame_Data `protobuf_oneof:"data"` } func (m *ReadResponse_Frame) Reset() { *m = ReadResponse_Frame{} } func (m *ReadResponse_Frame) String() string { return proto.CompactTextString(m) } func (*ReadResponse_Frame) ProtoMessage() {} func (*ReadResponse_Frame) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3, 0} + return fileDescriptor_715e4bf4cdf1f73d, []int{3, 0} } func (m *ReadResponse_Frame) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -391,8 +390,8 @@ func (m *ReadResponse_Frame) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (dst *ReadResponse_Frame) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadResponse_Frame.Merge(dst, src) +func (m *ReadResponse_Frame) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadResponse_Frame.Merge(m, src) } func (m *ReadResponse_Frame) XXX_Size() int { return m.Size() @@ -410,25 +409,25 @@ type isReadResponse_Frame_Data interface { } type ReadResponse_Frame_Group struct { - Group *ReadResponse_GroupFrame `protobuf:"bytes,7,opt,name=group,oneof"` + Group *ReadResponse_GroupFrame `protobuf:"bytes,7,opt,name=group,proto3,oneof"` } type ReadResponse_Frame_Series struct { - Series *ReadResponse_SeriesFrame `protobuf:"bytes,1,opt,name=series,oneof"` + Series *ReadResponse_SeriesFrame `protobuf:"bytes,1,opt,name=series,proto3,oneof"` } type ReadResponse_Frame_FloatPoints struct { - FloatPoints *ReadResponse_FloatPointsFrame `protobuf:"bytes,2,opt,name=float_points,json=floatPoints,oneof"` + FloatPoints *ReadResponse_FloatPointsFrame `protobuf:"bytes,2,opt,name=float_points,json=floatPoints,proto3,oneof"` } type ReadResponse_Frame_IntegerPoints struct { - IntegerPoints *ReadResponse_IntegerPointsFrame `protobuf:"bytes,3,opt,name=integer_points,json=integerPoints,oneof"` + IntegerPoints *ReadResponse_IntegerPointsFrame `protobuf:"bytes,3,opt,name=integer_points,json=integerPoints,proto3,oneof"` } type ReadResponse_Frame_UnsignedPoints struct { - UnsignedPoints *ReadResponse_UnsignedPointsFrame `protobuf:"bytes,4,opt,name=unsigned_points,json=unsignedPoints,oneof"` + UnsignedPoints *ReadResponse_UnsignedPointsFrame `protobuf:"bytes,4,opt,name=unsigned_points,json=unsignedPoints,proto3,oneof"` } type ReadResponse_Frame_BooleanPoints struct { - BooleanPoints *ReadResponse_BooleanPointsFrame `protobuf:"bytes,5,opt,name=boolean_points,json=booleanPoints,oneof"` + BooleanPoints *ReadResponse_BooleanPointsFrame `protobuf:"bytes,5,opt,name=boolean_points,json=booleanPoints,proto3,oneof"` } type ReadResponse_Frame_StringPoints struct { - StringPoints *ReadResponse_StringPointsFrame `protobuf:"bytes,6,opt,name=string_points,json=stringPoints,oneof"` + StringPoints *ReadResponse_StringPointsFrame `protobuf:"bytes,6,opt,name=string_points,json=stringPoints,proto3,oneof"` } func (*ReadResponse_Frame_Group) isReadResponse_Frame_Data() {} @@ -549,7 +548,7 @@ func _ReadResponse_Frame_OneofMarshaler(msg proto.Message, b *proto.Buffer) erro } case nil: default: - return fmt.Errorf("readResponse_Frame.Data has unexpected type %T", x) + return fmt.Errorf("ReadResponse_Frame.Data has unexpected type %T", x) } return nil } @@ -666,18 +665,16 @@ func _ReadResponse_Frame_OneofSizer(msg proto.Message) (n int) { type ReadResponse_GroupFrame struct { // TagKeys - TagKeys [][]byte `protobuf:"bytes,1,rep,name=tag_keys,json=tagKeys" json:"tag_keys,omitempty"` + TagKeys [][]byte `protobuf:"bytes,1,rep,name=tag_keys,json=tagKeys,proto3" json:"tag_keys,omitempty"` // PartitionKeyVals is the values of the partition key for this group, order matching ReadRequest.GroupKeys - PartitionKeyVals [][]byte `protobuf:"bytes,2,rep,name=partition_key_vals,json=partitionKeyVals" json:"partition_key_vals,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + PartitionKeyVals [][]byte `protobuf:"bytes,2,rep,name=partition_key_vals,json=partitionKeyVals,proto3" json:"partition_key_vals,omitempty"` } func (m *ReadResponse_GroupFrame) Reset() { *m = ReadResponse_GroupFrame{} } func (m *ReadResponse_GroupFrame) String() string { return proto.CompactTextString(m) } func (*ReadResponse_GroupFrame) ProtoMessage() {} func (*ReadResponse_GroupFrame) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3, 1} + return fileDescriptor_715e4bf4cdf1f73d, []int{3, 1} } func (m *ReadResponse_GroupFrame) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -694,8 +691,8 @@ func (m *ReadResponse_GroupFrame) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (dst *ReadResponse_GroupFrame) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadResponse_GroupFrame.Merge(dst, src) +func (m *ReadResponse_GroupFrame) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadResponse_GroupFrame.Merge(m, src) } func (m *ReadResponse_GroupFrame) XXX_Size() int { return m.Size() @@ -707,17 +704,15 @@ func (m *ReadResponse_GroupFrame) XXX_DiscardUnknown() { var xxx_messageInfo_ReadResponse_GroupFrame proto.InternalMessageInfo type ReadResponse_SeriesFrame struct { - Tags []Tag `protobuf:"bytes,1,rep,name=tags" json:"tags"` - DataType ReadResponse_DataType `protobuf:"varint,2,opt,name=data_type,json=dataType,proto3,enum=influxdata.platform.storage.ReadResponse_DataType" json:"data_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Tags []Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags"` + DataType ReadResponse_DataType `protobuf:"varint,2,opt,name=data_type,json=dataType,proto3,enum=influxdata.platform.storage.ReadResponse_DataType" json:"data_type,omitempty"` } func (m *ReadResponse_SeriesFrame) Reset() { *m = ReadResponse_SeriesFrame{} } func (m *ReadResponse_SeriesFrame) String() string { return proto.CompactTextString(m) } func (*ReadResponse_SeriesFrame) ProtoMessage() {} func (*ReadResponse_SeriesFrame) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3, 2} + return fileDescriptor_715e4bf4cdf1f73d, []int{3, 2} } func (m *ReadResponse_SeriesFrame) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -734,8 +729,8 @@ func (m *ReadResponse_SeriesFrame) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (dst *ReadResponse_SeriesFrame) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadResponse_SeriesFrame.Merge(dst, src) +func (m *ReadResponse_SeriesFrame) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadResponse_SeriesFrame.Merge(m, src) } func (m *ReadResponse_SeriesFrame) XXX_Size() int { return m.Size() @@ -747,17 +742,15 @@ func (m *ReadResponse_SeriesFrame) XXX_DiscardUnknown() { var xxx_messageInfo_ReadResponse_SeriesFrame proto.InternalMessageInfo type ReadResponse_FloatPointsFrame struct { - Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps" json:"timestamps,omitempty"` - Values []float64 `protobuf:"fixed64,2,rep,packed,name=values" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"` + Values []float64 `protobuf:"fixed64,2,rep,packed,name=values,proto3" json:"values,omitempty"` } func (m *ReadResponse_FloatPointsFrame) Reset() { *m = ReadResponse_FloatPointsFrame{} } func (m *ReadResponse_FloatPointsFrame) String() string { return proto.CompactTextString(m) } func (*ReadResponse_FloatPointsFrame) ProtoMessage() {} func (*ReadResponse_FloatPointsFrame) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3, 3} + return fileDescriptor_715e4bf4cdf1f73d, []int{3, 3} } func (m *ReadResponse_FloatPointsFrame) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -774,8 +767,8 @@ func (m *ReadResponse_FloatPointsFrame) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (dst *ReadResponse_FloatPointsFrame) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadResponse_FloatPointsFrame.Merge(dst, src) +func (m *ReadResponse_FloatPointsFrame) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadResponse_FloatPointsFrame.Merge(m, src) } func (m *ReadResponse_FloatPointsFrame) XXX_Size() int { return m.Size() @@ -787,17 +780,15 @@ func (m *ReadResponse_FloatPointsFrame) XXX_DiscardUnknown() { var xxx_messageInfo_ReadResponse_FloatPointsFrame proto.InternalMessageInfo type ReadResponse_IntegerPointsFrame struct { - Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps" json:"timestamps,omitempty"` - Values []int64 `protobuf:"varint,2,rep,packed,name=values" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"` + Values []int64 `protobuf:"varint,2,rep,packed,name=values,proto3" json:"values,omitempty"` } func (m *ReadResponse_IntegerPointsFrame) Reset() { *m = ReadResponse_IntegerPointsFrame{} } func (m *ReadResponse_IntegerPointsFrame) String() string { return proto.CompactTextString(m) } func (*ReadResponse_IntegerPointsFrame) ProtoMessage() {} func (*ReadResponse_IntegerPointsFrame) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3, 4} + return fileDescriptor_715e4bf4cdf1f73d, []int{3, 4} } func (m *ReadResponse_IntegerPointsFrame) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -814,8 +805,8 @@ func (m *ReadResponse_IntegerPointsFrame) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (dst *ReadResponse_IntegerPointsFrame) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadResponse_IntegerPointsFrame.Merge(dst, src) +func (m *ReadResponse_IntegerPointsFrame) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadResponse_IntegerPointsFrame.Merge(m, src) } func (m *ReadResponse_IntegerPointsFrame) XXX_Size() int { return m.Size() @@ -827,17 +818,15 @@ func (m *ReadResponse_IntegerPointsFrame) XXX_DiscardUnknown() { var xxx_messageInfo_ReadResponse_IntegerPointsFrame proto.InternalMessageInfo type ReadResponse_UnsignedPointsFrame struct { - Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps" json:"timestamps,omitempty"` - Values []uint64 `protobuf:"varint,2,rep,packed,name=values" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"` + Values []uint64 `protobuf:"varint,2,rep,packed,name=values,proto3" json:"values,omitempty"` } func (m *ReadResponse_UnsignedPointsFrame) Reset() { *m = ReadResponse_UnsignedPointsFrame{} } func (m *ReadResponse_UnsignedPointsFrame) String() string { return proto.CompactTextString(m) } func (*ReadResponse_UnsignedPointsFrame) ProtoMessage() {} func (*ReadResponse_UnsignedPointsFrame) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3, 5} + return fileDescriptor_715e4bf4cdf1f73d, []int{3, 5} } func (m *ReadResponse_UnsignedPointsFrame) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -854,8 +843,8 @@ func (m *ReadResponse_UnsignedPointsFrame) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (dst *ReadResponse_UnsignedPointsFrame) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadResponse_UnsignedPointsFrame.Merge(dst, src) +func (m *ReadResponse_UnsignedPointsFrame) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadResponse_UnsignedPointsFrame.Merge(m, src) } func (m *ReadResponse_UnsignedPointsFrame) XXX_Size() int { return m.Size() @@ -867,17 +856,15 @@ func (m *ReadResponse_UnsignedPointsFrame) XXX_DiscardUnknown() { var xxx_messageInfo_ReadResponse_UnsignedPointsFrame proto.InternalMessageInfo type ReadResponse_BooleanPointsFrame struct { - Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps" json:"timestamps,omitempty"` - Values []bool `protobuf:"varint,2,rep,packed,name=values" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"` + Values []bool `protobuf:"varint,2,rep,packed,name=values,proto3" json:"values,omitempty"` } func (m *ReadResponse_BooleanPointsFrame) Reset() { *m = ReadResponse_BooleanPointsFrame{} } func (m *ReadResponse_BooleanPointsFrame) String() string { return proto.CompactTextString(m) } func (*ReadResponse_BooleanPointsFrame) ProtoMessage() {} func (*ReadResponse_BooleanPointsFrame) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3, 6} + return fileDescriptor_715e4bf4cdf1f73d, []int{3, 6} } func (m *ReadResponse_BooleanPointsFrame) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -894,8 +881,8 @@ func (m *ReadResponse_BooleanPointsFrame) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (dst *ReadResponse_BooleanPointsFrame) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadResponse_BooleanPointsFrame.Merge(dst, src) +func (m *ReadResponse_BooleanPointsFrame) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadResponse_BooleanPointsFrame.Merge(m, src) } func (m *ReadResponse_BooleanPointsFrame) XXX_Size() int { return m.Size() @@ -907,17 +894,15 @@ func (m *ReadResponse_BooleanPointsFrame) XXX_DiscardUnknown() { var xxx_messageInfo_ReadResponse_BooleanPointsFrame proto.InternalMessageInfo type ReadResponse_StringPointsFrame struct { - Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps" json:"timestamps,omitempty"` - Values []string `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"` + Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` } func (m *ReadResponse_StringPointsFrame) Reset() { *m = ReadResponse_StringPointsFrame{} } func (m *ReadResponse_StringPointsFrame) String() string { return proto.CompactTextString(m) } func (*ReadResponse_StringPointsFrame) ProtoMessage() {} func (*ReadResponse_StringPointsFrame) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{3, 7} + return fileDescriptor_715e4bf4cdf1f73d, []int{3, 7} } func (m *ReadResponse_StringPointsFrame) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -934,8 +919,8 @@ func (m *ReadResponse_StringPointsFrame) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (dst *ReadResponse_StringPointsFrame) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadResponse_StringPointsFrame.Merge(dst, src) +func (m *ReadResponse_StringPointsFrame) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReadResponse_StringPointsFrame.Merge(m, src) } func (m *ReadResponse_StringPointsFrame) XXX_Size() int { return m.Size() @@ -947,16 +932,14 @@ func (m *ReadResponse_StringPointsFrame) XXX_DiscardUnknown() { var xxx_messageInfo_ReadResponse_StringPointsFrame proto.InternalMessageInfo type CapabilitiesResponse struct { - Caps map[string]string `protobuf:"bytes,1,rep,name=caps" json:"caps,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + Caps map[string]string `protobuf:"bytes,1,rep,name=caps,proto3" json:"caps,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (m *CapabilitiesResponse) Reset() { *m = CapabilitiesResponse{} } func (m *CapabilitiesResponse) String() string { return proto.CompactTextString(m) } func (*CapabilitiesResponse) ProtoMessage() {} func (*CapabilitiesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{4} + return fileDescriptor_715e4bf4cdf1f73d, []int{4} } func (m *CapabilitiesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -973,8 +956,8 @@ func (m *CapabilitiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (dst *CapabilitiesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CapabilitiesResponse.Merge(dst, src) +func (m *CapabilitiesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CapabilitiesResponse.Merge(m, src) } func (m *CapabilitiesResponse) XXX_Size() int { return m.Size() @@ -986,15 +969,13 @@ func (m *CapabilitiesResponse) XXX_DiscardUnknown() { var xxx_messageInfo_CapabilitiesResponse proto.InternalMessageInfo type HintsResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` } func (m *HintsResponse) Reset() { *m = HintsResponse{} } func (m *HintsResponse) String() string { return proto.CompactTextString(m) } func (*HintsResponse) ProtoMessage() {} func (*HintsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{5} + return fileDescriptor_715e4bf4cdf1f73d, []int{5} } func (m *HintsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1011,8 +992,8 @@ func (m *HintsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (dst *HintsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_HintsResponse.Merge(dst, src) +func (m *HintsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_HintsResponse.Merge(m, src) } func (m *HintsResponse) XXX_Size() int { return m.Size() @@ -1028,16 +1009,14 @@ type TimestampRange struct { // Start defines the inclusive lower bound. Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` // End defines the inclusive upper bound. - End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_sizecache int32 `json:"-"` + End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` } func (m *TimestampRange) Reset() { *m = TimestampRange{} } func (m *TimestampRange) String() string { return proto.CompactTextString(m) } func (*TimestampRange) ProtoMessage() {} func (*TimestampRange) Descriptor() ([]byte, []int) { - return fileDescriptor_storage_common_01b6ac29b3fb8162, []int{6} + return fileDescriptor_715e4bf4cdf1f73d, []int{6} } func (m *TimestampRange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1054,8 +1033,8 @@ func (m *TimestampRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return b[:n], nil } } -func (dst *TimestampRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimestampRange.Merge(dst, src) +func (m *TimestampRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimestampRange.Merge(m, src) } func (m *TimestampRange) XXX_Size() int { return m.Size() @@ -1067,6 +1046,11 @@ func (m *TimestampRange) XXX_DiscardUnknown() { var xxx_messageInfo_TimestampRange proto.InternalMessageInfo func init() { + proto.RegisterEnum("influxdata.platform.storage.ReadRequest_Group", ReadRequest_Group_name, ReadRequest_Group_value) + proto.RegisterEnum("influxdata.platform.storage.ReadRequest_HintFlags", ReadRequest_HintFlags_name, ReadRequest_HintFlags_value) + proto.RegisterEnum("influxdata.platform.storage.Aggregate_AggregateType", Aggregate_AggregateType_name, Aggregate_AggregateType_value) + proto.RegisterEnum("influxdata.platform.storage.ReadResponse_FrameType", ReadResponse_FrameType_name, ReadResponse_FrameType_value) + proto.RegisterEnum("influxdata.platform.storage.ReadResponse_DataType", ReadResponse_DataType_name, ReadResponse_DataType_value) proto.RegisterType((*ReadRequest)(nil), "influxdata.platform.storage.ReadRequest") proto.RegisterMapType((map[string]string)(nil), "influxdata.platform.storage.ReadRequest.TraceEntry") proto.RegisterType((*Aggregate)(nil), "influxdata.platform.storage.Aggregate") @@ -1084,11 +1068,109 @@ func init() { proto.RegisterMapType((map[string]string)(nil), "influxdata.platform.storage.CapabilitiesResponse.CapsEntry") proto.RegisterType((*HintsResponse)(nil), "influxdata.platform.storage.HintsResponse") proto.RegisterType((*TimestampRange)(nil), "influxdata.platform.storage.TimestampRange") - proto.RegisterEnum("influxdata.platform.storage.ReadRequest_Group", ReadRequest_Group_name, ReadRequest_Group_value) - proto.RegisterEnum("influxdata.platform.storage.ReadRequest_HintFlags", ReadRequest_HintFlags_name, ReadRequest_HintFlags_value) - proto.RegisterEnum("influxdata.platform.storage.Aggregate_AggregateType", Aggregate_AggregateType_name, Aggregate_AggregateType_value) - proto.RegisterEnum("influxdata.platform.storage.ReadResponse_FrameType", ReadResponse_FrameType_name, ReadResponse_FrameType_value) - proto.RegisterEnum("influxdata.platform.storage.ReadResponse_DataType", ReadResponse_DataType_name, ReadResponse_DataType_value) +} + +func init() { proto.RegisterFile("storage_common.proto", fileDescriptor_715e4bf4cdf1f73d) } + +var fileDescriptor_715e4bf4cdf1f73d = []byte{ + // 1547 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x57, 0x4f, 0x8f, 0xea, 0xc8, + 0x11, 0xc7, 0xfc, 0xa7, 0xf8, 0x33, 0x7e, 0xbd, 0x64, 0xc4, 0xfa, 0x65, 0xc1, 0x8b, 0xa2, 0x0d, + 0x49, 0x36, 0x4c, 0xc2, 0xee, 0x2a, 0x4f, 0x2f, 0xc9, 0x01, 0xe6, 0xf1, 0x06, 0x32, 0x33, 0x30, + 0x6a, 0x98, 0x28, 0x1b, 0x29, 0x42, 0x3d, 0xd0, 0x78, 0xad, 0x35, 0xb6, 0x63, 0x9b, 0xd5, 0x20, + 0xe5, 0x9e, 0x15, 0xa7, 0xcd, 0x35, 0x12, 0x52, 0xa4, 0x1c, 0x73, 0xcf, 0x67, 0x78, 0xb7, 0xec, + 0x31, 0x27, 0x94, 0xf0, 0x3e, 0x44, 0xa4, 0x9c, 0xa2, 0xee, 0xb6, 0xc1, 0xcc, 0xbc, 0x8c, 0xe0, + 0xd6, 0xf5, 0xab, 0xaa, 0x5f, 0x75, 0x97, 0xab, 0xaa, 0xdb, 0x50, 0x74, 0x3d, 0xcb, 0x21, 0x1a, + 0x1d, 0x8d, 0xad, 0xd9, 0xcc, 0x32, 0xeb, 0xb6, 0x63, 0x79, 0x16, 0x7a, 0xae, 0x9b, 0x53, 0x63, + 0x7e, 0x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xf2, 0xfc, + 0x19, 0x19, 0x30, 0x57, 0x5f, 0xc0, 0x83, 0xff, 0x13, 0xe6, 0xec, 0x7a, 0xc4, 0xf1, 0x38, 0x61, + 0x0c, 0x0b, 0x81, 0x05, 0xa1, 0xe6, 0x84, 0x13, 0xc6, 0x30, 0x5b, 0x36, 0xbe, 0x89, 0x42, 0x6a, + 0x20, 0x36, 0x8d, 0x7e, 0x07, 0x71, 0xd6, 0xae, 0xa8, 0x76, 0xe8, 0xeb, 0x57, 0xf9, 0xc1, 0xc1, + 0xbd, 0xff, 0x13, 0x09, 0x7d, 0x0e, 0xb9, 0x70, 0x5a, 0xd0, 0xe9, 0xa3, 0x5f, 0xba, 0x36, 0xfb, + 0x83, 0x54, 0x7e, 0x7a, 0x74, 0x66, 0xd1, 0x25, 0x88, 0x77, 0xf5, 0xff, 0xe5, 0xfc, 0xe1, 0x93, + 0x9c, 0x7b, 0xc9, 0x6c, 0x7d, 0xff, 0xcd, 0xbf, 0xcb, 0x91, 0x37, 0x9b, 0xb2, 0xf4, 0xed, 0xa6, + 0x2c, 0xfd, 0x6b, 0x53, 0x96, 0xbe, 0x79, 0x5b, 0x8e, 0x7c, 0xfb, 0xb6, 0x1c, 0xf9, 0xe7, 0xdb, + 0x72, 0xe4, 0xb7, 0x7c, 0xfe, 0xb1, 0xf1, 0xe7, 0xde, 0x25, 0x79, 0x90, 0x4f, 0xfe, 0x17, 0x00, + 0x00, 0xff, 0xff, 0x61, 0xb5, 0x14, 0xbe, 0x53, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1099,8 +1181,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Storage service - +// StorageClient is the client API for Storage service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type StorageClient interface { // Read performs a read operation using the given ReadRequest Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (Storage_ReadClient, error) @@ -1167,8 +1250,7 @@ func (c *storageClient) Hints(ctx context.Context, in *types.Empty, opts ...grpc return out, nil } -// Server API for Storage service - +// StorageServer is the server API for Storage service. type StorageServer interface { // Read performs a read operation using the given ReadRequest Read(*ReadRequest, Storage_ReadServer) error @@ -1345,7 +1427,7 @@ func (m *ReadRequest) MarshalTo(dAtA []byte) (int, error) { i += n3 } if len(m.Trace) > 0 { - for k := range m.Trace { + for k, _ := range m.Trace { dAtA[i] = 0x52 i++ v := m.Trace[k] @@ -1884,7 +1966,7 @@ func (m *CapabilitiesResponse) MarshalTo(dAtA []byte) (int, error) { var l int _ = l if len(m.Caps) > 0 { - for k := range m.Caps { + for k, _ := range m.Caps { dAtA[i] = 0xa i++ v := m.Caps[k] @@ -1959,6 +2041,9 @@ func encodeVarintStorageCommon(dAtA []byte, offset int, v uint64) int { return offset + 1 } func (m *ReadRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = m.TimestampRange.Size() @@ -2011,6 +2096,9 @@ func (m *ReadRequest) Size() (n int) { } func (m *Aggregate) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Type != 0 { @@ -2020,6 +2108,9 @@ func (m *Aggregate) Size() (n int) { } func (m *Tag) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l l = len(m.Key) @@ -2034,6 +2125,9 @@ func (m *Tag) Size() (n int) { } func (m *ReadResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Frames) > 0 { @@ -2046,6 +2140,9 @@ func (m *ReadResponse) Size() (n int) { } func (m *ReadResponse_Frame) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Data != nil { @@ -2055,6 +2152,9 @@ func (m *ReadResponse_Frame) Size() (n int) { } func (m *ReadResponse_Frame_Series) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Series != nil { @@ -2064,6 +2164,9 @@ func (m *ReadResponse_Frame_Series) Size() (n int) { return n } func (m *ReadResponse_Frame_FloatPoints) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.FloatPoints != nil { @@ -2073,6 +2176,9 @@ func (m *ReadResponse_Frame_FloatPoints) Size() (n int) { return n } func (m *ReadResponse_Frame_IntegerPoints) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.IntegerPoints != nil { @@ -2082,6 +2188,9 @@ func (m *ReadResponse_Frame_IntegerPoints) Size() (n int) { return n } func (m *ReadResponse_Frame_UnsignedPoints) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.UnsignedPoints != nil { @@ -2091,6 +2200,9 @@ func (m *ReadResponse_Frame_UnsignedPoints) Size() (n int) { return n } func (m *ReadResponse_Frame_BooleanPoints) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.BooleanPoints != nil { @@ -2100,6 +2212,9 @@ func (m *ReadResponse_Frame_BooleanPoints) Size() (n int) { return n } func (m *ReadResponse_Frame_StringPoints) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.StringPoints != nil { @@ -2109,6 +2224,9 @@ func (m *ReadResponse_Frame_StringPoints) Size() (n int) { return n } func (m *ReadResponse_Frame_Group) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Group != nil { @@ -2118,6 +2236,9 @@ func (m *ReadResponse_Frame_Group) Size() (n int) { return n } func (m *ReadResponse_GroupFrame) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.TagKeys) > 0 { @@ -2136,6 +2257,9 @@ func (m *ReadResponse_GroupFrame) Size() (n int) { } func (m *ReadResponse_SeriesFrame) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Tags) > 0 { @@ -2151,6 +2275,9 @@ func (m *ReadResponse_SeriesFrame) Size() (n int) { } func (m *ReadResponse_FloatPointsFrame) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Timestamps) > 0 { @@ -2163,6 +2290,9 @@ func (m *ReadResponse_FloatPointsFrame) Size() (n int) { } func (m *ReadResponse_IntegerPointsFrame) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Timestamps) > 0 { @@ -2179,6 +2309,9 @@ func (m *ReadResponse_IntegerPointsFrame) Size() (n int) { } func (m *ReadResponse_UnsignedPointsFrame) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Timestamps) > 0 { @@ -2195,6 +2328,9 @@ func (m *ReadResponse_UnsignedPointsFrame) Size() (n int) { } func (m *ReadResponse_BooleanPointsFrame) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Timestamps) > 0 { @@ -2207,6 +2343,9 @@ func (m *ReadResponse_BooleanPointsFrame) Size() (n int) { } func (m *ReadResponse_StringPointsFrame) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Timestamps) > 0 { @@ -2222,6 +2361,9 @@ func (m *ReadResponse_StringPointsFrame) Size() (n int) { } func (m *CapabilitiesResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if len(m.Caps) > 0 { @@ -2236,12 +2378,18 @@ func (m *CapabilitiesResponse) Size() (n int) { } func (m *HintsResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l return n } func (m *TimestampRange) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.Start != 0 { @@ -2281,7 +2429,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2309,7 +2457,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2318,6 +2466,9 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2339,7 +2490,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2359,7 +2510,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2369,6 +2520,9 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2388,7 +2542,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2397,6 +2551,9 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2421,7 +2578,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SeriesLimit |= (int64(b) & 0x7F) << shift + m.SeriesLimit |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2440,7 +2597,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SeriesOffset |= (int64(b) & 0x7F) << shift + m.SeriesOffset |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2459,7 +2616,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PointsLimit |= (int64(b) & 0x7F) << shift + m.PointsLimit |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -2478,7 +2635,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2487,6 +2644,9 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2511,7 +2671,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2520,6 +2680,9 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2540,7 +2703,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2557,7 +2720,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2567,6 +2730,9 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthStorageCommon + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -2583,7 +2749,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift + stringLenmapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2593,6 +2759,9 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthStorageCommon + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -2629,7 +2798,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Group |= (ReadRequest_Group(b) & 0x7F) << shift + m.Group |= ReadRequest_Group(b&0x7F) << shift if b < 0x80 { break } @@ -2658,7 +2827,7 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2667,6 +2836,9 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2686,6 +2858,9 @@ func (m *ReadRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2713,7 +2888,7 @@ func (m *Aggregate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2741,7 +2916,7 @@ func (m *Aggregate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (Aggregate_AggregateType(b) & 0x7F) << shift + m.Type |= Aggregate_AggregateType(b&0x7F) << shift if b < 0x80 { break } @@ -2755,6 +2930,9 @@ func (m *Aggregate) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2782,7 +2960,7 @@ func (m *Tag) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2810,7 +2988,7 @@ func (m *Tag) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2819,6 +2997,9 @@ func (m *Tag) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2841,7 +3022,7 @@ func (m *Tag) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2850,6 +3031,9 @@ func (m *Tag) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2867,6 +3051,9 @@ func (m *Tag) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2894,7 +3081,7 @@ func (m *ReadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2922,7 +3109,7 @@ func (m *ReadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2931,6 +3118,9 @@ func (m *ReadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2948,6 +3138,9 @@ func (m *ReadResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2975,7 +3168,7 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3003,7 +3196,7 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3012,6 +3205,9 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3035,7 +3231,7 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3044,6 +3240,9 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3067,7 +3266,7 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3076,6 +3275,9 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3099,7 +3301,7 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3108,6 +3310,9 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3131,7 +3336,7 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3140,6 +3345,9 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3163,7 +3371,7 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3172,6 +3380,9 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3195,7 +3406,7 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3204,6 +3415,9 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3222,6 +3436,9 @@ func (m *ReadResponse_Frame) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3249,7 +3466,7 @@ func (m *ReadResponse_GroupFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3277,7 +3494,7 @@ func (m *ReadResponse_GroupFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3286,6 +3503,9 @@ func (m *ReadResponse_GroupFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3306,7 +3526,7 @@ func (m *ReadResponse_GroupFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3315,6 +3535,9 @@ func (m *ReadResponse_GroupFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3330,6 +3553,9 @@ func (m *ReadResponse_GroupFrame) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3357,7 +3583,7 @@ func (m *ReadResponse_SeriesFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3385,7 +3611,7 @@ func (m *ReadResponse_SeriesFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3394,6 +3620,9 @@ func (m *ReadResponse_SeriesFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -3416,7 +3645,7 @@ func (m *ReadResponse_SeriesFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.DataType |= (ReadResponse_DataType(b) & 0x7F) << shift + m.DataType |= ReadResponse_DataType(b&0x7F) << shift if b < 0x80 { break } @@ -3430,6 +3659,9 @@ func (m *ReadResponse_SeriesFrame) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3457,7 +3689,7 @@ func (m *ReadResponse_FloatPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3491,7 +3723,7 @@ func (m *ReadResponse_FloatPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3500,9 +3732,17 @@ func (m *ReadResponse_FloatPointsFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + elementCount = packedLen / 8 + if elementCount != 0 && len(m.Timestamps) == 0 { + m.Timestamps = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 if (iNdEx + 8) > l { @@ -3536,7 +3776,7 @@ func (m *ReadResponse_FloatPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3545,9 +3785,17 @@ func (m *ReadResponse_FloatPointsFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + elementCount = packedLen / 8 + if elementCount != 0 && len(m.Values) == 0 { + m.Values = make([]float64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 if (iNdEx + 8) > l { @@ -3570,6 +3818,9 @@ func (m *ReadResponse_FloatPointsFrame) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3597,7 +3848,7 @@ func (m *ReadResponse_IntegerPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3631,7 +3882,7 @@ func (m *ReadResponse_IntegerPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3640,9 +3891,17 @@ func (m *ReadResponse_IntegerPointsFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + elementCount = packedLen / 8 + if elementCount != 0 && len(m.Timestamps) == 0 { + m.Timestamps = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 if (iNdEx + 8) > l { @@ -3667,7 +3926,7 @@ func (m *ReadResponse_IntegerPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3684,7 +3943,7 @@ func (m *ReadResponse_IntegerPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3693,9 +3952,23 @@ func (m *ReadResponse_IntegerPointsFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Values) == 0 { + m.Values = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 for shift := uint(0); ; shift += 7 { @@ -3707,7 +3980,7 @@ func (m *ReadResponse_IntegerPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int64(b) & 0x7F) << shift + v |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3726,6 +3999,9 @@ func (m *ReadResponse_IntegerPointsFrame) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3753,7 +4029,7 @@ func (m *ReadResponse_UnsignedPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3787,7 +4063,7 @@ func (m *ReadResponse_UnsignedPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3796,9 +4072,17 @@ func (m *ReadResponse_UnsignedPointsFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + elementCount = packedLen / 8 + if elementCount != 0 && len(m.Timestamps) == 0 { + m.Timestamps = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 if (iNdEx + 8) > l { @@ -3823,7 +4107,7 @@ func (m *ReadResponse_UnsignedPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3840,7 +4124,7 @@ func (m *ReadResponse_UnsignedPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3849,9 +4133,23 @@ func (m *ReadResponse_UnsignedPointsFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.Values) == 0 { + m.Values = make([]uint64, 0, elementCount) + } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { @@ -3863,7 +4161,7 @@ func (m *ReadResponse_UnsignedPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (uint64(b) & 0x7F) << shift + v |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3882,6 +4180,9 @@ func (m *ReadResponse_UnsignedPointsFrame) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -3909,7 +4210,7 @@ func (m *ReadResponse_BooleanPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3943,7 +4244,7 @@ func (m *ReadResponse_BooleanPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3952,9 +4253,17 @@ func (m *ReadResponse_BooleanPointsFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + elementCount = packedLen / 8 + if elementCount != 0 && len(m.Timestamps) == 0 { + m.Timestamps = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 if (iNdEx + 8) > l { @@ -3979,7 +4288,7 @@ func (m *ReadResponse_BooleanPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -3996,7 +4305,7 @@ func (m *ReadResponse_BooleanPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4005,9 +4314,17 @@ func (m *ReadResponse_BooleanPointsFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + elementCount = packedLen + if elementCount != 0 && len(m.Values) == 0 { + m.Values = make([]bool, 0, elementCount) + } for iNdEx < postIndex { var v int for shift := uint(0); ; shift += 7 { @@ -4019,7 +4336,7 @@ func (m *ReadResponse_BooleanPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4038,6 +4355,9 @@ func (m *ReadResponse_BooleanPointsFrame) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4065,7 +4385,7 @@ func (m *ReadResponse_StringPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4099,7 +4419,7 @@ func (m *ReadResponse_StringPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - packedLen |= (int(b) & 0x7F) << shift + packedLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4108,9 +4428,17 @@ func (m *ReadResponse_StringPointsFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } + var elementCount int + elementCount = packedLen / 8 + if elementCount != 0 && len(m.Timestamps) == 0 { + m.Timestamps = make([]int64, 0, elementCount) + } for iNdEx < postIndex { var v int64 if (iNdEx + 8) > l { @@ -4137,7 +4465,7 @@ func (m *ReadResponse_StringPointsFrame) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4147,6 +4475,9 @@ func (m *ReadResponse_StringPointsFrame) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4161,6 +4492,9 @@ func (m *ReadResponse_StringPointsFrame) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4188,7 +4522,7 @@ func (m *CapabilitiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4216,7 +4550,7 @@ func (m *CapabilitiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -4225,6 +4559,9 @@ func (m *CapabilitiesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStorageCommon + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -4245,7 +4582,7 @@ func (m *CapabilitiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4262,7 +4599,7 @@ func (m *CapabilitiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift + stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4272,6 +4609,9 @@ func (m *CapabilitiesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthStorageCommon + } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } @@ -4288,7 +4628,7 @@ func (m *CapabilitiesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLenmapvalue |= (uint64(b) & 0x7F) << shift + stringLenmapvalue |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4298,6 +4638,9 @@ func (m *CapabilitiesResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthStorageCommon } postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthStorageCommon + } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF } @@ -4329,6 +4672,9 @@ func (m *CapabilitiesResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4356,7 +4702,7 @@ func (m *HintsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4379,6 +4725,9 @@ func (m *HintsResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4406,7 +4755,7 @@ func (m *TimestampRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4434,7 +4783,7 @@ func (m *TimestampRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Start |= (int64(b) & 0x7F) << shift + m.Start |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4453,7 +4802,7 @@ func (m *TimestampRange) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.End |= (int64(b) & 0x7F) << shift + m.End |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -4467,6 +4816,9 @@ func (m *TimestampRange) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthStorageCommon } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthStorageCommon + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -4533,10 +4885,13 @@ func skipStorageCommon(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthStorageCommon } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthStorageCommon + } return iNdEx, nil case 3: for { @@ -4565,6 +4920,9 @@ func skipStorageCommon(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthStorageCommon + } } return iNdEx, nil case 4: @@ -4583,108 +4941,3 @@ var ( ErrInvalidLengthStorageCommon = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStorageCommon = fmt.Errorf("proto: integer overflow") ) - -func init() { - proto.RegisterFile("storage_common.proto", fileDescriptor_storage_common_01b6ac29b3fb8162) -} - -var fileDescriptor_storage_common_01b6ac29b3fb8162 = []byte{ - // 1539 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x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b, 0xd1, - 0x37, 0xc4, 0x60, 0xb5, 0xce, 0x3c, 0x8a, 0x9b, 0x75, 0x45, 0xbe, 0x0d, 0xb4, 0x57, 0x74, 0xf1, - 0x2b, 0x62, 0xb8, 0x58, 0xb6, 0x1f, 0x49, 0x94, 0x3f, 0x49, 0x90, 0x0d, 0xf5, 0x10, 0x7a, 0x0d, - 0x71, 0x8f, 0x68, 0x41, 0x87, 0xab, 0xcf, 0x3f, 0xaa, 0x88, 0xe6, 0xb7, 0x34, 0xf7, 0x41, 0x7d, - 0xc8, 0x30, 0xc3, 0x11, 0x1f, 0x94, 0x51, 0x3e, 0x28, 0x1b, 0x87, 0xe7, 0xe7, 0x82, 0x78, 0x84, - 0x8f, 0xc9, 0xf4, 0xc4, 0x5f, 0x29, 0xbf, 0x04, 0xf9, 0x71, 0x23, 0xb2, 0x27, 0xd9, 0xf6, 0x91, - 0x26, 0xc2, 0x94, 0x71, 0x48, 0x82, 0x4e, 0x21, 0xc9, 0xc7, 0x97, 0x48, 0x84, 0x84, 0xfd, 0x9d, - 0x72, 0x0d, 0xe8, 0x69, 0x83, 0x1d, 0x89, 0x16, 0xdb, 0xa2, 0xdd, 0xc0, 0x07, 0xef, 0xe9, 0x99, - 0x23, 0xe1, 0xe2, 0xe1, 0xe0, 0x9e, 0x76, 0xc1, 0x91, 0x68, 0xe9, 0x2d, 0xda, 0x15, 0xbc, 0x78, - 0x52, 0xda, 0x47, 0x82, 0x65, 0x02, 0xb0, 0xea, 0x00, 0x32, 0x1c, 0xc0, 0xbf, 0xaa, 0x92, 0xfe, - 0x45, 0x1b, 0x51, 0x3e, 0x58, 0xae, 0xd4, 0x93, 0xad, 0xca, 0xbf, 0x6b, 0x2b, 0x90, 0xdc, 0xde, - 0xd7, 0xfb, 0x06, 0x22, 0x16, 0xff, 0x26, 0xfa, 0x9b, 0x04, 0xe9, 0xe0, 0x7b, 0xa3, 0xef, 0x42, - 0xe2, 0xcd, 0x75, 0xbf, 0x39, 0x94, 0x23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0x3e, 0x79, 0x21, 0xb7, 0xd9, - 0x1f, 0xa4, 0xf2, 0x93, 0xa3, 0x33, 0x8b, 0xae, 0x40, 0x3c, 0xcf, 0xff, 0x2f, 0xe6, 0x0f, 0x9e, - 0xc5, 0xdc, 0x4b, 0x66, 0xab, 0xf2, 0xee, 0x5f, 0xe5, 0xc8, 0xbb, 0x4d, 0x59, 0xfa, 0xc7, 0xa6, - 0x2c, 0xfd, 0x73, 0x53, 0x96, 0xde, 0xfe, 0xbb, 0x1c, 0xf9, 0x0d, 0x9f, 0x7b, 0x6c, 0xec, 0xb9, - 0xf7, 0x49, 0x0e, 0xfe, 0xd9, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x62, 0x34, 0xad, 0x1c, 0x4b, - 0x0f, 0x00, 0x00, -} diff --git a/task/backend/meta.pb.go b/task/backend/meta.pb.go index 8f1cb8b68d..9f0c7da232 100644 --- a/task/backend/meta.pb.go +++ b/task/backend/meta.pb.go @@ -3,12 +3,13 @@ package backend -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "github.com/gogo/protobuf/gogoproto" - -import io "io" +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -47,7 +48,7 @@ func (m *StoreTaskMeta) Reset() { *m = StoreTaskMeta{} } func (m *StoreTaskMeta) String() string { return proto.CompactTextString(m) } func (*StoreTaskMeta) ProtoMessage() {} func (*StoreTaskMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_meta_b8385560be3db2c8, []int{0} + return fileDescriptor_3b5ea8fe65782bcc, []int{0} } func (m *StoreTaskMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -64,8 +65,8 @@ func (m *StoreTaskMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (dst *StoreTaskMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreTaskMeta.Merge(dst, src) +func (m *StoreTaskMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreTaskMeta.Merge(m, src) } func (m *StoreTaskMeta) XXX_Size() int { return m.Size() @@ -164,7 +165,7 @@ func (m *StoreTaskMetaRun) Reset() { *m = StoreTaskMetaRun{} } func (m *StoreTaskMetaRun) String() string { return proto.CompactTextString(m) } func (*StoreTaskMetaRun) ProtoMessage() {} func (*StoreTaskMetaRun) Descriptor() ([]byte, []int) { - return fileDescriptor_meta_b8385560be3db2c8, []int{1} + return fileDescriptor_3b5ea8fe65782bcc, []int{1} } func (m *StoreTaskMetaRun) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -181,8 +182,8 @@ func (m *StoreTaskMetaRun) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (dst *StoreTaskMetaRun) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreTaskMetaRun.Merge(dst, src) +func (m *StoreTaskMetaRun) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreTaskMetaRun.Merge(m, src) } func (m *StoreTaskMetaRun) XXX_Size() int { return m.Size() @@ -254,7 +255,7 @@ func (m *StoreTaskMetaManualRun) Reset() { *m = StoreTaskMetaManualRun{} func (m *StoreTaskMetaManualRun) String() string { return proto.CompactTextString(m) } func (*StoreTaskMetaManualRun) ProtoMessage() {} func (*StoreTaskMetaManualRun) Descriptor() ([]byte, []int) { - return fileDescriptor_meta_b8385560be3db2c8, []int{2} + return fileDescriptor_3b5ea8fe65782bcc, []int{2} } func (m *StoreTaskMetaManualRun) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -271,8 +272,8 @@ func (m *StoreTaskMetaManualRun) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (dst *StoreTaskMetaManualRun) XXX_Merge(src proto.Message) { - xxx_messageInfo_StoreTaskMetaManualRun.Merge(dst, src) +func (m *StoreTaskMetaManualRun) XXX_Merge(src proto.Message) { + xxx_messageInfo_StoreTaskMetaManualRun.Merge(m, src) } func (m *StoreTaskMetaManualRun) XXX_Size() int { return m.Size() @@ -323,6 +324,47 @@ func init() { proto.RegisterType((*StoreTaskMetaRun)(nil), "com.influxdata.platform.task.backend.StoreTaskMetaRun") proto.RegisterType((*StoreTaskMetaManualRun)(nil), "com.influxdata.platform.task.backend.StoreTaskMetaManualRun") } + +func init() { proto.RegisterFile("meta.proto", fileDescriptor_3b5ea8fe65782bcc) } + +var fileDescriptor_3b5ea8fe65782bcc = []byte{ + // 544 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xc1, 0x6e, 0xd3, 0x4c, + 0x10, 0xae, 0x7f, 0xc7, 0x69, 0xb3, 0xf9, 0xd3, 0x98, 0xa5, 0xaa, 0x2c, 0x10, 0x8e, 0x1b, 0x81, + 0x08, 0x17, 0x23, 0x81, 0xc4, 0x09, 0x21, 0xa5, 0x81, 0x43, 0x0f, 0xbd, 0x6c, 0x39, 0x21, 0x21, + 0x6b, 0x6b, 0xaf, 0x83, 0x15, 0x7b, 0x37, 0xac, 0x67, 0x21, 0xe1, 0x29, 0x78, 0x14, 0xae, 0xbc, + 0x01, 0xc7, 0x1e, 0x39, 0x55, 0x28, 0x79, 0x0d, 0x0e, 0x68, 0x77, 0x93, 0xd0, 0x96, 0x1c, 0x10, + 0xb7, 0x99, 0x6f, 0x76, 0x67, 0xbf, 0xef, 0x9b, 0x59, 0x84, 0x2a, 0x06, 0x34, 0x9e, 0x4a, 0x01, + 0x02, 0xdf, 0x4f, 0x45, 0x15, 0x17, 0x3c, 0x2f, 0xd5, 0x2c, 0xa3, 0x1a, 0x2d, 0x29, 0xe4, 0x42, + 0x56, 0x31, 0xd0, 0x7a, 0x12, 0x9f, 0xd3, 0x74, 0xc2, 0x78, 0x76, 0xe7, 0x60, 0x2c, 0xc6, 0xc2, + 0x5c, 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6, 0x7b, + 0x72, 0x7c, 0xf4, 0x6d, 0x11, 0x3a, 0x17, 0x8b, 0xd0, 0xf9, 0xb1, 0x08, 0x9d, 0xcf, 0xcb, 0x70, + 0xe7, 0x62, 0x19, 0xee, 0x7c, 0x5f, 0x86, 0x3b, 0x6f, 0x76, 0x57, 0x43, 0x3b, 0x6f, 0x9a, 0x7f, + 0xf9, 0xf4, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xca, 0x64, 0xf6, 0x93, 0xe1, 0x03, 0x00, 0x00, +} + func (m *StoreTaskMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -637,7 +679,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -665,7 +707,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.MaxConcurrency |= (int32(b) & 0x7F) << shift + m.MaxConcurrency |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -684,7 +726,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LatestCompleted |= (int64(b) & 0x7F) << shift + m.LatestCompleted |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -703,7 +745,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -713,6 +755,9 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMeta } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMeta + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -732,7 +777,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -741,6 +786,9 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMeta } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMeta + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -763,7 +811,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -773,6 +821,9 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMeta } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMeta + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -792,7 +843,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -802,6 +853,9 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMeta } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMeta + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -821,7 +875,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CreatedAt |= (int64(b) & 0x7F) << shift + m.CreatedAt |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -840,7 +894,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.UpdatedAt |= (int64(b) & 0x7F) << shift + m.UpdatedAt |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -859,7 +913,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AuthorizationID |= (uint64(b) & 0x7F) << shift + m.AuthorizationID |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -878,7 +932,7 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -887,6 +941,9 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthMeta } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMeta + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -904,6 +961,9 @@ func (m *StoreTaskMeta) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMeta } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMeta + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -931,7 +991,7 @@ func (m *StoreTaskMetaRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -959,7 +1019,7 @@ func (m *StoreTaskMetaRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Now |= (int64(b) & 0x7F) << shift + m.Now |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -978,7 +1038,7 @@ func (m *StoreTaskMetaRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Try |= (uint32(b) & 0x7F) << shift + m.Try |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -997,7 +1057,7 @@ func (m *StoreTaskMetaRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RunID |= (uint64(b) & 0x7F) << shift + m.RunID |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1016,7 +1076,7 @@ func (m *StoreTaskMetaRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RangeStart |= (int64(b) & 0x7F) << shift + m.RangeStart |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1035,7 +1095,7 @@ func (m *StoreTaskMetaRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RangeEnd |= (int64(b) & 0x7F) << shift + m.RangeEnd |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1054,7 +1114,7 @@ func (m *StoreTaskMetaRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestedAt |= (int64(b) & 0x7F) << shift + m.RequestedAt |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1068,6 +1128,9 @@ func (m *StoreTaskMetaRun) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMeta } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMeta + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1095,7 +1158,7 @@ func (m *StoreTaskMetaManualRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1123,7 +1186,7 @@ func (m *StoreTaskMetaManualRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Start |= (int64(b) & 0x7F) << shift + m.Start |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1142,7 +1205,7 @@ func (m *StoreTaskMetaManualRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.End |= (int64(b) & 0x7F) << shift + m.End |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1161,7 +1224,7 @@ func (m *StoreTaskMetaManualRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LatestCompleted |= (int64(b) & 0x7F) << shift + m.LatestCompleted |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1180,7 +1243,7 @@ func (m *StoreTaskMetaManualRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RequestedAt |= (int64(b) & 0x7F) << shift + m.RequestedAt |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -1199,7 +1262,7 @@ func (m *StoreTaskMetaManualRun) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RunID |= (uint64(b) & 0x7F) << shift + m.RunID |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1213,6 +1276,9 @@ func (m *StoreTaskMetaManualRun) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthMeta } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMeta + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1279,10 +1345,13 @@ func skipMeta(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthMeta } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthMeta + } return iNdEx, nil case 3: for { @@ -1311,6 +1380,9 @@ func skipMeta(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthMeta + } } return iNdEx, nil case 4: @@ -1329,43 +1401,3 @@ var ( ErrInvalidLengthMeta = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMeta = fmt.Errorf("proto: integer overflow") ) - -func init() { proto.RegisterFile("meta.proto", fileDescriptor_meta_b8385560be3db2c8) } - -var fileDescriptor_meta_b8385560be3db2c8 = []byte{ - // 544 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xc1, 0x6e, 0xd3, 0x4c, - 0x10, 0xae, 0x7f, 0xc7, 0x69, 0xb3, 0xf9, 0xd3, 0x98, 0xa5, 0xaa, 0x2c, 0x10, 0x8e, 0x1b, 0x81, - 0x08, 0x17, 0x23, 0x81, 0xc4, 0x09, 0x21, 0xa5, 0x81, 0x43, 0x0f, 0xbd, 0x6c, 0x39, 0x21, 0x21, - 0x6b, 0x6b, 0xaf, 0x83, 0x15, 0x7b, 0x37, 0xac, 0x67, 0x21, 0xe1, 0x29, 0x78, 0x14, 0xae, 0xbc, - 0x01, 0xc7, 0x1e, 0x39, 0x55, 0x28, 0x79, 0x0d, 0x0e, 0x68, 0x77, 0x93, 0xd0, 0x96, 0x1c, 0x10, - 0xb7, 0x99, 0x6f, 0x76, 0x67, 0xbf, 0xef, 0x9b, 0x59, 0x84, 0x2a, 0x06, 0x34, 0x9e, 0x4a, 0x01, - 0x02, 0xdf, 0x4f, 0x45, 0x15, 0x17, 0x3c, 0x2f, 0xd5, 0x2c, 0xa3, 0x1a, 0x2d, 0x29, 0xe4, 0x42, - 0x56, 0x31, 0xd0, 0x7a, 0x12, 0x9f, 0xd3, 0x74, 0xc2, 0x78, 0x76, 0xe7, 0x60, 0x2c, 0xc6, 0xc2, - 0x5c, 0x78, 0xac, 0x23, 0x7b, 0xb7, 0xff, 0xd3, 0x45, 0x9d, 0x33, 0x10, 0x92, 0xbd, 0xa6, 0xf5, - 0xe4, 0x94, 0x01, 0xc5, 0x0f, 0x51, 0xb7, 0xa2, 0xb3, 0x24, 0x15, 0x3c, 0x55, 0x52, 0x32, 0x9e, - 0xce, 0x03, 0x27, 0x72, 0x06, 0x1e, 0xd9, 0xaf, 0xe8, 0x6c, 0xf4, 0x1b, 0xc5, 0x8f, 0x90, 0x5f, - 0x52, 0x60, 0x35, 0x24, 0xa9, 0xa8, 0xa6, 0x25, 0x03, 0x96, 0x05, 0xff, 0x45, 0xce, 0xc0, 0x25, - 0x5d, 0x8b, 0x8f, 0xd6, 0x30, 0x3e, 0x44, 0xcd, 0x1a, 0x28, 0xa8, 0x3a, 0x70, 0x23, 0x67, 0xd0, - 0x22, 0xab, 0x0c, 0xa7, 0xe8, 0x96, 0x6d, 0x07, 0xe5, 0x3c, 0x91, 0x8a, 0xf3, 0x82, 0x8f, 0x83,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