github.com/m3db/m3@v1.5.0/src/metrics/generated/proto/aggregationpb/aggregation.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/m3db/m3/src/metrics/generated/proto/aggregationpb/aggregation.proto 3 4 // Copyright (c) 2021 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 /* 25 Package aggregationpb is a generated protocol buffer package. 26 27 It is generated from these files: 28 github.com/m3db/m3/src/metrics/generated/proto/aggregationpb/aggregation.proto 29 30 It has these top-level messages: 31 AggregationID 32 */ 33 package aggregationpb 34 35 import proto "github.com/gogo/protobuf/proto" 36 import fmt "fmt" 37 import math "math" 38 39 import io "io" 40 41 // Reference imports to suppress errors if they are not otherwise used. 42 var _ = proto.Marshal 43 var _ = fmt.Errorf 44 var _ = math.Inf 45 46 // This is a compile-time assertion to ensure that this generated file 47 // is compatible with the proto package it is being compiled against. 48 // A compilation error at this line likely means your copy of the 49 // proto package needs to be updated. 50 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 51 52 type AggregationType int32 53 54 const ( 55 AggregationType_UNKNOWN AggregationType = 0 56 AggregationType_LAST AggregationType = 1 57 AggregationType_MIN AggregationType = 2 58 AggregationType_MAX AggregationType = 3 59 AggregationType_MEAN AggregationType = 4 60 AggregationType_MEDIAN AggregationType = 5 61 AggregationType_COUNT AggregationType = 6 62 AggregationType_SUM AggregationType = 7 63 AggregationType_SUMSQ AggregationType = 8 64 AggregationType_STDEV AggregationType = 9 65 AggregationType_P10 AggregationType = 10 66 AggregationType_P20 AggregationType = 11 67 AggregationType_P30 AggregationType = 12 68 AggregationType_P40 AggregationType = 13 69 AggregationType_P50 AggregationType = 14 70 AggregationType_P60 AggregationType = 15 71 AggregationType_P70 AggregationType = 16 72 AggregationType_P80 AggregationType = 17 73 AggregationType_P90 AggregationType = 18 74 AggregationType_P95 AggregationType = 19 75 AggregationType_P99 AggregationType = 20 76 AggregationType_P999 AggregationType = 21 77 AggregationType_P9999 AggregationType = 22 78 AggregationType_P25 AggregationType = 23 79 AggregationType_P75 AggregationType = 24 80 ) 81 82 var AggregationType_name = map[int32]string{ 83 0: "UNKNOWN", 84 1: "LAST", 85 2: "MIN", 86 3: "MAX", 87 4: "MEAN", 88 5: "MEDIAN", 89 6: "COUNT", 90 7: "SUM", 91 8: "SUMSQ", 92 9: "STDEV", 93 10: "P10", 94 11: "P20", 95 12: "P30", 96 13: "P40", 97 14: "P50", 98 15: "P60", 99 16: "P70", 100 17: "P80", 101 18: "P90", 102 19: "P95", 103 20: "P99", 104 21: "P999", 105 22: "P9999", 106 23: "P25", 107 24: "P75", 108 } 109 var AggregationType_value = map[string]int32{ 110 "UNKNOWN": 0, 111 "LAST": 1, 112 "MIN": 2, 113 "MAX": 3, 114 "MEAN": 4, 115 "MEDIAN": 5, 116 "COUNT": 6, 117 "SUM": 7, 118 "SUMSQ": 8, 119 "STDEV": 9, 120 "P10": 10, 121 "P20": 11, 122 "P30": 12, 123 "P40": 13, 124 "P50": 14, 125 "P60": 15, 126 "P70": 16, 127 "P80": 17, 128 "P90": 18, 129 "P95": 19, 130 "P99": 20, 131 "P999": 21, 132 "P9999": 22, 133 "P25": 23, 134 "P75": 24, 135 } 136 137 func (x AggregationType) String() string { 138 return proto.EnumName(AggregationType_name, int32(x)) 139 } 140 func (AggregationType) EnumDescriptor() ([]byte, []int) { return fileDescriptorAggregation, []int{0} } 141 142 // AggregationID is a unique identifier uniquely identifying 143 // one or more aggregation types. 144 type AggregationID struct { 145 Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 146 } 147 148 func (m *AggregationID) Reset() { *m = AggregationID{} } 149 func (m *AggregationID) String() string { return proto.CompactTextString(m) } 150 func (*AggregationID) ProtoMessage() {} 151 func (*AggregationID) Descriptor() ([]byte, []int) { return fileDescriptorAggregation, []int{0} } 152 153 func (m *AggregationID) GetId() uint64 { 154 if m != nil { 155 return m.Id 156 } 157 return 0 158 } 159 160 func init() { 161 proto.RegisterType((*AggregationID)(nil), "aggregationpb.AggregationID") 162 proto.RegisterEnum("aggregationpb.AggregationType", AggregationType_name, AggregationType_value) 163 } 164 func (m *AggregationID) Marshal() (dAtA []byte, err error) { 165 size := m.Size() 166 dAtA = make([]byte, size) 167 n, err := m.MarshalTo(dAtA) 168 if err != nil { 169 return nil, err 170 } 171 return dAtA[:n], nil 172 } 173 174 func (m *AggregationID) MarshalTo(dAtA []byte) (int, error) { 175 var i int 176 _ = i 177 var l int 178 _ = l 179 if m.Id != 0 { 180 dAtA[i] = 0x8 181 i++ 182 i = encodeVarintAggregation(dAtA, i, uint64(m.Id)) 183 } 184 return i, nil 185 } 186 187 func encodeVarintAggregation(dAtA []byte, offset int, v uint64) int { 188 for v >= 1<<7 { 189 dAtA[offset] = uint8(v&0x7f | 0x80) 190 v >>= 7 191 offset++ 192 } 193 dAtA[offset] = uint8(v) 194 return offset + 1 195 } 196 func (m *AggregationID) Size() (n int) { 197 var l int 198 _ = l 199 if m.Id != 0 { 200 n += 1 + sovAggregation(uint64(m.Id)) 201 } 202 return n 203 } 204 205 func sovAggregation(x uint64) (n int) { 206 for { 207 n++ 208 x >>= 7 209 if x == 0 { 210 break 211 } 212 } 213 return n 214 } 215 func sozAggregation(x uint64) (n int) { 216 return sovAggregation(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 217 } 218 func (m *AggregationID) Unmarshal(dAtA []byte) error { 219 l := len(dAtA) 220 iNdEx := 0 221 for iNdEx < l { 222 preIndex := iNdEx 223 var wire uint64 224 for shift := uint(0); ; shift += 7 { 225 if shift >= 64 { 226 return ErrIntOverflowAggregation 227 } 228 if iNdEx >= l { 229 return io.ErrUnexpectedEOF 230 } 231 b := dAtA[iNdEx] 232 iNdEx++ 233 wire |= (uint64(b) & 0x7F) << shift 234 if b < 0x80 { 235 break 236 } 237 } 238 fieldNum := int32(wire >> 3) 239 wireType := int(wire & 0x7) 240 if wireType == 4 { 241 return fmt.Errorf("proto: AggregationID: wiretype end group for non-group") 242 } 243 if fieldNum <= 0 { 244 return fmt.Errorf("proto: AggregationID: illegal tag %d (wire type %d)", fieldNum, wire) 245 } 246 switch fieldNum { 247 case 1: 248 if wireType != 0 { 249 return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) 250 } 251 m.Id = 0 252 for shift := uint(0); ; shift += 7 { 253 if shift >= 64 { 254 return ErrIntOverflowAggregation 255 } 256 if iNdEx >= l { 257 return io.ErrUnexpectedEOF 258 } 259 b := dAtA[iNdEx] 260 iNdEx++ 261 m.Id |= (uint64(b) & 0x7F) << shift 262 if b < 0x80 { 263 break 264 } 265 } 266 default: 267 iNdEx = preIndex 268 skippy, err := skipAggregation(dAtA[iNdEx:]) 269 if err != nil { 270 return err 271 } 272 if skippy < 0 { 273 return ErrInvalidLengthAggregation 274 } 275 if (iNdEx + skippy) > l { 276 return io.ErrUnexpectedEOF 277 } 278 iNdEx += skippy 279 } 280 } 281 282 if iNdEx > l { 283 return io.ErrUnexpectedEOF 284 } 285 return nil 286 } 287 func skipAggregation(dAtA []byte) (n int, err error) { 288 l := len(dAtA) 289 iNdEx := 0 290 for iNdEx < l { 291 var wire uint64 292 for shift := uint(0); ; shift += 7 { 293 if shift >= 64 { 294 return 0, ErrIntOverflowAggregation 295 } 296 if iNdEx >= l { 297 return 0, io.ErrUnexpectedEOF 298 } 299 b := dAtA[iNdEx] 300 iNdEx++ 301 wire |= (uint64(b) & 0x7F) << shift 302 if b < 0x80 { 303 break 304 } 305 } 306 wireType := int(wire & 0x7) 307 switch wireType { 308 case 0: 309 for shift := uint(0); ; shift += 7 { 310 if shift >= 64 { 311 return 0, ErrIntOverflowAggregation 312 } 313 if iNdEx >= l { 314 return 0, io.ErrUnexpectedEOF 315 } 316 iNdEx++ 317 if dAtA[iNdEx-1] < 0x80 { 318 break 319 } 320 } 321 return iNdEx, nil 322 case 1: 323 iNdEx += 8 324 return iNdEx, nil 325 case 2: 326 var length int 327 for shift := uint(0); ; shift += 7 { 328 if shift >= 64 { 329 return 0, ErrIntOverflowAggregation 330 } 331 if iNdEx >= l { 332 return 0, io.ErrUnexpectedEOF 333 } 334 b := dAtA[iNdEx] 335 iNdEx++ 336 length |= (int(b) & 0x7F) << shift 337 if b < 0x80 { 338 break 339 } 340 } 341 iNdEx += length 342 if length < 0 { 343 return 0, ErrInvalidLengthAggregation 344 } 345 return iNdEx, nil 346 case 3: 347 for { 348 var innerWire uint64 349 var start int = iNdEx 350 for shift := uint(0); ; shift += 7 { 351 if shift >= 64 { 352 return 0, ErrIntOverflowAggregation 353 } 354 if iNdEx >= l { 355 return 0, io.ErrUnexpectedEOF 356 } 357 b := dAtA[iNdEx] 358 iNdEx++ 359 innerWire |= (uint64(b) & 0x7F) << shift 360 if b < 0x80 { 361 break 362 } 363 } 364 innerWireType := int(innerWire & 0x7) 365 if innerWireType == 4 { 366 break 367 } 368 next, err := skipAggregation(dAtA[start:]) 369 if err != nil { 370 return 0, err 371 } 372 iNdEx = start + next 373 } 374 return iNdEx, nil 375 case 4: 376 return iNdEx, nil 377 case 5: 378 iNdEx += 4 379 return iNdEx, nil 380 default: 381 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 382 } 383 } 384 panic("unreachable") 385 } 386 387 var ( 388 ErrInvalidLengthAggregation = fmt.Errorf("proto: negative length found during unmarshaling") 389 ErrIntOverflowAggregation = fmt.Errorf("proto: integer overflow") 390 ) 391 392 func init() { 393 proto.RegisterFile("github.com/m3db/m3/src/metrics/generated/proto/aggregationpb/aggregation.proto", fileDescriptorAggregation) 394 } 395 396 var fileDescriptorAggregation = []byte{ 397 // 328 bytes of a gzipped FileDescriptorProto 398 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0xd1, 0xbb, 0x4e, 0xc3, 0x30, 399 0x14, 0x06, 0xe0, 0x26, 0xbd, 0xbb, 0xb4, 0x3d, 0x98, 0x5b, 0xa7, 0x80, 0x98, 0x10, 0x43, 0x6d, 400 0x08, 0x01, 0x22, 0xb1, 0x04, 0xda, 0xa1, 0x82, 0xb8, 0x85, 0x24, 0x80, 0xd8, 0x9a, 0xc6, 0x0a, 401 0x19, 0xd2, 0x54, 0x69, 0x18, 0xd8, 0x79, 0x00, 0x1e, 0x8b, 0x91, 0x47, 0x40, 0xe1, 0x45, 0x90, 402 0x9d, 0x81, 0x32, 0xb3, 0x7d, 0x3e, 0xff, 0x2f, 0x1f, 0x4b, 0x46, 0x2c, 0x8c, 0xb2, 0xe7, 0x17, 403 0xbf, 0x3f, 0x4b, 0x62, 0x12, 0xeb, 0x81, 0x4f, 0x62, 0x9d, 0x2c, 0xd3, 0x19, 0x89, 0x79, 0x96, 404 0x46, 0xb3, 0x25, 0x09, 0xf9, 0x9c, 0xa7, 0xd3, 0x8c, 0x07, 0x64, 0x91, 0x26, 0x59, 0x42, 0xa6, 405 0x61, 0x98, 0xf2, 0x70, 0x9a, 0x45, 0xc9, 0x7c, 0xe1, 0xaf, 0x9e, 0xfa, 0x32, 0xc7, 0xed, 0x3f, 406 0x85, 0xfd, 0x5d, 0xd4, 0xb6, 0x7e, 0x07, 0xa3, 0x01, 0xee, 0x20, 0x35, 0x0a, 0x7a, 0xca, 0x9e, 407 0x72, 0x50, 0xb9, 0x53, 0xa3, 0xe0, 0xf0, 0x4d, 0x45, 0xdd, 0x95, 0x86, 0xfb, 0xba, 0xe0, 0xb8, 408 0x85, 0xea, 0x1e, 0xbb, 0x66, 0xe3, 0x07, 0x06, 0x25, 0xdc, 0x40, 0x95, 0x1b, 0xcb, 0x71, 0x41, 409 0xc1, 0x75, 0x54, 0xb6, 0x47, 0x0c, 0x54, 0x09, 0xeb, 0x11, 0xca, 0x22, 0xb3, 0x87, 0x16, 0x83, 410 0x0a, 0x46, 0xa8, 0x66, 0x0f, 0x07, 0x23, 0x8b, 0x41, 0x15, 0x37, 0x51, 0xf5, 0x6a, 0xec, 0x31, 411 0x17, 0x6a, 0xa2, 0xe9, 0x78, 0x36, 0xd4, 0xc5, 0xcc, 0xf1, 0x6c, 0xe7, 0x16, 0x1a, 0x92, 0xee, 412 0x60, 0x78, 0x0f, 0x4d, 0x11, 0x4f, 0x8e, 0x28, 0x20, 0x89, 0x63, 0x0a, 0x2d, 0x09, 0x9d, 0xc2, 413 0x9a, 0xc4, 0x09, 0x85, 0xb6, 0x84, 0x41, 0xa1, 0x23, 0x71, 0x4a, 0xa1, 0x2b, 0x71, 0x46, 0x01, 414 0x24, 0xce, 0x29, 0xac, 0x4b, 0x98, 0x14, 0x70, 0x01, 0x03, 0x36, 0x0a, 0x98, 0xb0, 0x29, 0x9e, 415 0x38, 0x31, 0x4d, 0x13, 0xb6, 0xc4, 0x5e, 0x21, 0x13, 0xb6, 0x8b, 0x75, 0x06, 0xec, 0x14, 0x57, 416 0x19, 0xd0, 0xbb, 0x64, 0x1f, 0xb9, 0xa6, 0x7c, 0xe6, 0x9a, 0xf2, 0x95, 0x6b, 0xca, 0xfb, 0xb7, 417 0x56, 0x7a, 0xba, 0xf8, 0xcf, 0xc7, 0xf8, 0x35, 0x39, 0xd4, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 418 0xe6, 0x7e, 0xf0, 0xe7, 0xdf, 0x01, 0x00, 0x00, 419 }