github.com/thanos-io/thanos@v0.32.5/pkg/info/infopb/rpc.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: info/infopb/rpc.proto 3 4 package infopb 5 6 import ( 7 context "context" 8 fmt "fmt" 9 io "io" 10 math "math" 11 math_bits "math/bits" 12 13 _ "github.com/gogo/protobuf/gogoproto" 14 proto "github.com/gogo/protobuf/proto" 15 labelpb "github.com/thanos-io/thanos/pkg/store/labelpb" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status "google.golang.org/grpc/status" 19 ) 20 21 // Reference imports to suppress errors if they are not otherwise used. 22 var _ = proto.Marshal 23 var _ = fmt.Errorf 24 var _ = math.Inf 25 26 // This is a compile-time assertion to ensure that this generated file 27 // is compatible with the proto package it is being compiled against. 28 // A compilation error at this line likely means your copy of the 29 // proto package needs to be updated. 30 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 31 32 type InfoRequest struct { 33 } 34 35 func (m *InfoRequest) Reset() { *m = InfoRequest{} } 36 func (m *InfoRequest) String() string { return proto.CompactTextString(m) } 37 func (*InfoRequest) ProtoMessage() {} 38 func (*InfoRequest) Descriptor() ([]byte, []int) { 39 return fileDescriptor_a1214ec45d2bf952, []int{0} 40 } 41 func (m *InfoRequest) XXX_Unmarshal(b []byte) error { 42 return m.Unmarshal(b) 43 } 44 func (m *InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 if deterministic { 46 return xxx_messageInfo_InfoRequest.Marshal(b, m, deterministic) 47 } else { 48 b = b[:cap(b)] 49 n, err := m.MarshalToSizedBuffer(b) 50 if err != nil { 51 return nil, err 52 } 53 return b[:n], nil 54 } 55 } 56 func (m *InfoRequest) XXX_Merge(src proto.Message) { 57 xxx_messageInfo_InfoRequest.Merge(m, src) 58 } 59 func (m *InfoRequest) XXX_Size() int { 60 return m.Size() 61 } 62 func (m *InfoRequest) XXX_DiscardUnknown() { 63 xxx_messageInfo_InfoRequest.DiscardUnknown(m) 64 } 65 66 var xxx_messageInfo_InfoRequest proto.InternalMessageInfo 67 68 type InfoResponse struct { 69 LabelSets []labelpb.ZLabelSet `protobuf:"bytes,1,rep,name=label_sets,json=labelSets,proto3" json:"label_sets"` 70 ComponentType string `protobuf:"bytes,2,opt,name=ComponentType,proto3" json:"ComponentType,omitempty"` 71 // StoreInfo holds the metadata related to Store API if exposed by the component otherwise it will be null. 72 Store *StoreInfo `protobuf:"bytes,3,opt,name=store,proto3" json:"store,omitempty"` 73 // RulesInfo holds the metadata related to Rules API if exposed by the component otherwise it will be null. 74 Rules *RulesInfo `protobuf:"bytes,4,opt,name=rules,proto3" json:"rules,omitempty"` 75 // MetricMetadataInfo holds the metadata related to Metadata API if exposed by the component otherwise it will be null. 76 MetricMetadata *MetricMetadataInfo `protobuf:"bytes,5,opt,name=metric_metadata,json=metricMetadata,proto3" json:"metric_metadata,omitempty"` 77 // TargetsInfo holds the metadata related to Targets API if exposed by the component otherwise it will be null. 78 Targets *TargetsInfo `protobuf:"bytes,6,opt,name=targets,proto3" json:"targets,omitempty"` 79 // ExemplarsInfo holds the metadata related to Exemplars API if exposed by the component otherwise it will be null. 80 Exemplars *ExemplarsInfo `protobuf:"bytes,7,opt,name=exemplars,proto3" json:"exemplars,omitempty"` 81 // QueryAPIInfo holds the metadata related to Query API if exposed by the component, otherwise it will be null. 82 Query *QueryAPIInfo `protobuf:"bytes,8,opt,name=query,proto3" json:"query,omitempty"` 83 } 84 85 func (m *InfoResponse) Reset() { *m = InfoResponse{} } 86 func (m *InfoResponse) String() string { return proto.CompactTextString(m) } 87 func (*InfoResponse) ProtoMessage() {} 88 func (*InfoResponse) Descriptor() ([]byte, []int) { 89 return fileDescriptor_a1214ec45d2bf952, []int{1} 90 } 91 func (m *InfoResponse) XXX_Unmarshal(b []byte) error { 92 return m.Unmarshal(b) 93 } 94 func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 95 if deterministic { 96 return xxx_messageInfo_InfoResponse.Marshal(b, m, deterministic) 97 } else { 98 b = b[:cap(b)] 99 n, err := m.MarshalToSizedBuffer(b) 100 if err != nil { 101 return nil, err 102 } 103 return b[:n], nil 104 } 105 } 106 func (m *InfoResponse) XXX_Merge(src proto.Message) { 107 xxx_messageInfo_InfoResponse.Merge(m, src) 108 } 109 func (m *InfoResponse) XXX_Size() int { 110 return m.Size() 111 } 112 func (m *InfoResponse) XXX_DiscardUnknown() { 113 xxx_messageInfo_InfoResponse.DiscardUnknown(m) 114 } 115 116 var xxx_messageInfo_InfoResponse proto.InternalMessageInfo 117 118 // StoreInfo holds the metadata related to Store API exposed by the component. 119 type StoreInfo struct { 120 MinTime int64 `protobuf:"varint,1,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` 121 MaxTime int64 `protobuf:"varint,2,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` 122 SupportsSharding bool `protobuf:"varint,3,opt,name=supports_sharding,json=supportsSharding,proto3" json:"supports_sharding,omitempty"` 123 // replica_aware means this store supports without_replica_labels of StoreAPI.Series. 124 SupportsWithoutReplicaLabels bool `protobuf:"varint,5,opt,name=supports_without_replica_labels,json=supportsWithoutReplicaLabels,proto3" json:"supports_without_replica_labels,omitempty"` 125 // TSDBInfos holds metadata for all TSDBs exposed by the store. 126 TsdbInfos []TSDBInfo `protobuf:"bytes,6,rep,name=tsdb_infos,json=tsdbInfos,proto3" json:"tsdb_infos"` 127 } 128 129 func (m *StoreInfo) Reset() { *m = StoreInfo{} } 130 func (m *StoreInfo) String() string { return proto.CompactTextString(m) } 131 func (*StoreInfo) ProtoMessage() {} 132 func (*StoreInfo) Descriptor() ([]byte, []int) { 133 return fileDescriptor_a1214ec45d2bf952, []int{2} 134 } 135 func (m *StoreInfo) XXX_Unmarshal(b []byte) error { 136 return m.Unmarshal(b) 137 } 138 func (m *StoreInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 139 if deterministic { 140 return xxx_messageInfo_StoreInfo.Marshal(b, m, deterministic) 141 } else { 142 b = b[:cap(b)] 143 n, err := m.MarshalToSizedBuffer(b) 144 if err != nil { 145 return nil, err 146 } 147 return b[:n], nil 148 } 149 } 150 func (m *StoreInfo) XXX_Merge(src proto.Message) { 151 xxx_messageInfo_StoreInfo.Merge(m, src) 152 } 153 func (m *StoreInfo) XXX_Size() int { 154 return m.Size() 155 } 156 func (m *StoreInfo) XXX_DiscardUnknown() { 157 xxx_messageInfo_StoreInfo.DiscardUnknown(m) 158 } 159 160 var xxx_messageInfo_StoreInfo proto.InternalMessageInfo 161 162 // RulesInfo holds the metadata related to Rules API exposed by the component. 163 type RulesInfo struct { 164 } 165 166 func (m *RulesInfo) Reset() { *m = RulesInfo{} } 167 func (m *RulesInfo) String() string { return proto.CompactTextString(m) } 168 func (*RulesInfo) ProtoMessage() {} 169 func (*RulesInfo) Descriptor() ([]byte, []int) { 170 return fileDescriptor_a1214ec45d2bf952, []int{3} 171 } 172 func (m *RulesInfo) XXX_Unmarshal(b []byte) error { 173 return m.Unmarshal(b) 174 } 175 func (m *RulesInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 176 if deterministic { 177 return xxx_messageInfo_RulesInfo.Marshal(b, m, deterministic) 178 } else { 179 b = b[:cap(b)] 180 n, err := m.MarshalToSizedBuffer(b) 181 if err != nil { 182 return nil, err 183 } 184 return b[:n], nil 185 } 186 } 187 func (m *RulesInfo) XXX_Merge(src proto.Message) { 188 xxx_messageInfo_RulesInfo.Merge(m, src) 189 } 190 func (m *RulesInfo) XXX_Size() int { 191 return m.Size() 192 } 193 func (m *RulesInfo) XXX_DiscardUnknown() { 194 xxx_messageInfo_RulesInfo.DiscardUnknown(m) 195 } 196 197 var xxx_messageInfo_RulesInfo proto.InternalMessageInfo 198 199 // MetricMetadataInfo holds the metadata related to Metadata API exposed by the component. 200 type MetricMetadataInfo struct { 201 } 202 203 func (m *MetricMetadataInfo) Reset() { *m = MetricMetadataInfo{} } 204 func (m *MetricMetadataInfo) String() string { return proto.CompactTextString(m) } 205 func (*MetricMetadataInfo) ProtoMessage() {} 206 func (*MetricMetadataInfo) Descriptor() ([]byte, []int) { 207 return fileDescriptor_a1214ec45d2bf952, []int{4} 208 } 209 func (m *MetricMetadataInfo) XXX_Unmarshal(b []byte) error { 210 return m.Unmarshal(b) 211 } 212 func (m *MetricMetadataInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 213 if deterministic { 214 return xxx_messageInfo_MetricMetadataInfo.Marshal(b, m, deterministic) 215 } else { 216 b = b[:cap(b)] 217 n, err := m.MarshalToSizedBuffer(b) 218 if err != nil { 219 return nil, err 220 } 221 return b[:n], nil 222 } 223 } 224 func (m *MetricMetadataInfo) XXX_Merge(src proto.Message) { 225 xxx_messageInfo_MetricMetadataInfo.Merge(m, src) 226 } 227 func (m *MetricMetadataInfo) XXX_Size() int { 228 return m.Size() 229 } 230 func (m *MetricMetadataInfo) XXX_DiscardUnknown() { 231 xxx_messageInfo_MetricMetadataInfo.DiscardUnknown(m) 232 } 233 234 var xxx_messageInfo_MetricMetadataInfo proto.InternalMessageInfo 235 236 // TargetsInfo holds the metadata related to Targets API exposed by the component. 237 type TargetsInfo struct { 238 } 239 240 func (m *TargetsInfo) Reset() { *m = TargetsInfo{} } 241 func (m *TargetsInfo) String() string { return proto.CompactTextString(m) } 242 func (*TargetsInfo) ProtoMessage() {} 243 func (*TargetsInfo) Descriptor() ([]byte, []int) { 244 return fileDescriptor_a1214ec45d2bf952, []int{5} 245 } 246 func (m *TargetsInfo) XXX_Unmarshal(b []byte) error { 247 return m.Unmarshal(b) 248 } 249 func (m *TargetsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 250 if deterministic { 251 return xxx_messageInfo_TargetsInfo.Marshal(b, m, deterministic) 252 } else { 253 b = b[:cap(b)] 254 n, err := m.MarshalToSizedBuffer(b) 255 if err != nil { 256 return nil, err 257 } 258 return b[:n], nil 259 } 260 } 261 func (m *TargetsInfo) XXX_Merge(src proto.Message) { 262 xxx_messageInfo_TargetsInfo.Merge(m, src) 263 } 264 func (m *TargetsInfo) XXX_Size() int { 265 return m.Size() 266 } 267 func (m *TargetsInfo) XXX_DiscardUnknown() { 268 xxx_messageInfo_TargetsInfo.DiscardUnknown(m) 269 } 270 271 var xxx_messageInfo_TargetsInfo proto.InternalMessageInfo 272 273 // ExemplarsInfo holds the metadata related to Exemplars API exposed by the component. 274 type ExemplarsInfo struct { 275 MinTime int64 `protobuf:"varint,1,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` 276 MaxTime int64 `protobuf:"varint,2,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` 277 } 278 279 func (m *ExemplarsInfo) Reset() { *m = ExemplarsInfo{} } 280 func (m *ExemplarsInfo) String() string { return proto.CompactTextString(m) } 281 func (*ExemplarsInfo) ProtoMessage() {} 282 func (*ExemplarsInfo) Descriptor() ([]byte, []int) { 283 return fileDescriptor_a1214ec45d2bf952, []int{6} 284 } 285 func (m *ExemplarsInfo) XXX_Unmarshal(b []byte) error { 286 return m.Unmarshal(b) 287 } 288 func (m *ExemplarsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 289 if deterministic { 290 return xxx_messageInfo_ExemplarsInfo.Marshal(b, m, deterministic) 291 } else { 292 b = b[:cap(b)] 293 n, err := m.MarshalToSizedBuffer(b) 294 if err != nil { 295 return nil, err 296 } 297 return b[:n], nil 298 } 299 } 300 func (m *ExemplarsInfo) XXX_Merge(src proto.Message) { 301 xxx_messageInfo_ExemplarsInfo.Merge(m, src) 302 } 303 func (m *ExemplarsInfo) XXX_Size() int { 304 return m.Size() 305 } 306 func (m *ExemplarsInfo) XXX_DiscardUnknown() { 307 xxx_messageInfo_ExemplarsInfo.DiscardUnknown(m) 308 } 309 310 var xxx_messageInfo_ExemplarsInfo proto.InternalMessageInfo 311 312 // QueryInfo holds the metadata related to Query API exposed by the component. 313 type QueryAPIInfo struct { 314 } 315 316 func (m *QueryAPIInfo) Reset() { *m = QueryAPIInfo{} } 317 func (m *QueryAPIInfo) String() string { return proto.CompactTextString(m) } 318 func (*QueryAPIInfo) ProtoMessage() {} 319 func (*QueryAPIInfo) Descriptor() ([]byte, []int) { 320 return fileDescriptor_a1214ec45d2bf952, []int{7} 321 } 322 func (m *QueryAPIInfo) XXX_Unmarshal(b []byte) error { 323 return m.Unmarshal(b) 324 } 325 func (m *QueryAPIInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 326 if deterministic { 327 return xxx_messageInfo_QueryAPIInfo.Marshal(b, m, deterministic) 328 } else { 329 b = b[:cap(b)] 330 n, err := m.MarshalToSizedBuffer(b) 331 if err != nil { 332 return nil, err 333 } 334 return b[:n], nil 335 } 336 } 337 func (m *QueryAPIInfo) XXX_Merge(src proto.Message) { 338 xxx_messageInfo_QueryAPIInfo.Merge(m, src) 339 } 340 func (m *QueryAPIInfo) XXX_Size() int { 341 return m.Size() 342 } 343 func (m *QueryAPIInfo) XXX_DiscardUnknown() { 344 xxx_messageInfo_QueryAPIInfo.DiscardUnknown(m) 345 } 346 347 var xxx_messageInfo_QueryAPIInfo proto.InternalMessageInfo 348 349 type TSDBInfo struct { 350 Labels labelpb.ZLabelSet `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels"` 351 MinTime int64 `protobuf:"varint,2,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` 352 MaxTime int64 `protobuf:"varint,3,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` 353 } 354 355 func (m *TSDBInfo) Reset() { *m = TSDBInfo{} } 356 func (m *TSDBInfo) String() string { return proto.CompactTextString(m) } 357 func (*TSDBInfo) ProtoMessage() {} 358 func (*TSDBInfo) Descriptor() ([]byte, []int) { 359 return fileDescriptor_a1214ec45d2bf952, []int{8} 360 } 361 func (m *TSDBInfo) XXX_Unmarshal(b []byte) error { 362 return m.Unmarshal(b) 363 } 364 func (m *TSDBInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 365 if deterministic { 366 return xxx_messageInfo_TSDBInfo.Marshal(b, m, deterministic) 367 } else { 368 b = b[:cap(b)] 369 n, err := m.MarshalToSizedBuffer(b) 370 if err != nil { 371 return nil, err 372 } 373 return b[:n], nil 374 } 375 } 376 func (m *TSDBInfo) XXX_Merge(src proto.Message) { 377 xxx_messageInfo_TSDBInfo.Merge(m, src) 378 } 379 func (m *TSDBInfo) XXX_Size() int { 380 return m.Size() 381 } 382 func (m *TSDBInfo) XXX_DiscardUnknown() { 383 xxx_messageInfo_TSDBInfo.DiscardUnknown(m) 384 } 385 386 var xxx_messageInfo_TSDBInfo proto.InternalMessageInfo 387 388 func init() { 389 proto.RegisterType((*InfoRequest)(nil), "thanos.info.InfoRequest") 390 proto.RegisterType((*InfoResponse)(nil), "thanos.info.InfoResponse") 391 proto.RegisterType((*StoreInfo)(nil), "thanos.info.StoreInfo") 392 proto.RegisterType((*RulesInfo)(nil), "thanos.info.RulesInfo") 393 proto.RegisterType((*MetricMetadataInfo)(nil), "thanos.info.MetricMetadataInfo") 394 proto.RegisterType((*TargetsInfo)(nil), "thanos.info.TargetsInfo") 395 proto.RegisterType((*ExemplarsInfo)(nil), "thanos.info.ExemplarsInfo") 396 proto.RegisterType((*QueryAPIInfo)(nil), "thanos.info.QueryAPIInfo") 397 proto.RegisterType((*TSDBInfo)(nil), "thanos.info.TSDBInfo") 398 } 399 400 func init() { proto.RegisterFile("info/infopb/rpc.proto", fileDescriptor_a1214ec45d2bf952) } 401 402 var fileDescriptor_a1214ec45d2bf952 = []byte{ 403 // 589 bytes of a gzipped FileDescriptorProto 404 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xdf, 0x8a, 0xda, 0x40, 405 0x14, 0xc6, 0x8d, 0x7f, 0xe3, 0x71, 0xdd, 0xee, 0x0e, 0xbb, 0x25, 0x4a, 0x89, 0x12, 0xf6, 0x42, 406 0x68, 0x31, 0x60, 0xa1, 0x94, 0xf6, 0xaa, 0x6e, 0x85, 0x6e, 0xe9, 0x42, 0x1b, 0x85, 0xc2, 0xde, 407 0x84, 0xa8, 0xb3, 0x1a, 0x48, 0x32, 0x63, 0x66, 0xa4, 0xfa, 0x16, 0x7d, 0x95, 0xbe, 0x85, 0x97, 408 0x7b, 0xd9, 0xab, 0xd2, 0xea, 0x43, 0xf4, 0xb6, 0xcc, 0x4c, 0x62, 0x0d, 0xdd, 0xbd, 0xe9, 0x8d, 409 0x66, 0xe6, 0xfb, 0x9d, 0xc9, 0x39, 0xdf, 0x39, 0x13, 0x38, 0xf7, 0xa3, 0x5b, 0x62, 0x8b, 0x1f, 410 0x3a, 0xb6, 0x63, 0x3a, 0xe9, 0xd2, 0x98, 0x70, 0x82, 0x6a, 0x7c, 0xee, 0x45, 0x84, 0x75, 0x85, 411 0xd0, 0x6c, 0x30, 0x4e, 0x62, 0x6c, 0x07, 0xde, 0x18, 0x07, 0x74, 0x6c, 0xf3, 0x35, 0xc5, 0x4c, 412 0x71, 0xcd, 0xb3, 0x19, 0x99, 0x11, 0xf9, 0x68, 0x8b, 0x27, 0xb5, 0x6b, 0xd5, 0xa1, 0x76, 0x15, 413 0xdd, 0x12, 0x07, 0x2f, 0x96, 0x98, 0x71, 0xeb, 0x5b, 0x01, 0x8e, 0xd4, 0x9a, 0x51, 0x12, 0x31, 414 0x8c, 0x5e, 0x00, 0xc8, 0xc3, 0x5c, 0x86, 0x39, 0x33, 0xb4, 0x76, 0xa1, 0x53, 0xeb, 0x9d, 0x76, 415 0x93, 0x57, 0xde, 0x7c, 0x10, 0xd2, 0x10, 0xf3, 0x7e, 0x71, 0xf3, 0xa3, 0x95, 0x73, 0xaa, 0x41, 416 0xb2, 0x66, 0xe8, 0x02, 0xea, 0x97, 0x24, 0xa4, 0x24, 0xc2, 0x11, 0x1f, 0xad, 0x29, 0x36, 0xf2, 417 0x6d, 0xad, 0x53, 0x75, 0xb2, 0x9b, 0xe8, 0x19, 0x94, 0x64, 0xc2, 0x46, 0xa1, 0xad, 0x75, 0x6a, 418 0xbd, 0xc7, 0xdd, 0x83, 0x5a, 0xba, 0x43, 0xa1, 0xc8, 0x64, 0x14, 0x24, 0xe8, 0x78, 0x19, 0x60, 419 0x66, 0x14, 0xef, 0xa1, 0x1d, 0xa1, 0x28, 0x5a, 0x42, 0xe8, 0x1d, 0x3c, 0x0a, 0x31, 0x8f, 0xfd, 420 0x89, 0x1b, 0x62, 0xee, 0x4d, 0x3d, 0xee, 0x19, 0x25, 0x19, 0xd7, 0xca, 0xc4, 0x5d, 0x4b, 0xe6, 421 0x3a, 0x41, 0xe4, 0x01, 0xc7, 0x61, 0x66, 0x0f, 0xf5, 0xa0, 0xc2, 0xbd, 0x78, 0x26, 0x0c, 0x28, 422 0xcb, 0x13, 0x8c, 0xcc, 0x09, 0x23, 0xa5, 0xc9, 0xd0, 0x14, 0x44, 0x2f, 0xa1, 0x8a, 0x57, 0x38, 423 0xa4, 0x81, 0x17, 0x33, 0xa3, 0x22, 0xa3, 0x9a, 0x99, 0xa8, 0x41, 0xaa, 0xca, 0xb8, 0xbf, 0x30, 424 0xb2, 0xa1, 0xb4, 0x58, 0xe2, 0x78, 0x6d, 0xe8, 0x32, 0xaa, 0x91, 0x89, 0xfa, 0x24, 0x94, 0x37, 425 0x1f, 0xaf, 0x54, 0xa1, 0x92, 0xb3, 0x7e, 0x6b, 0x50, 0xdd, 0x7b, 0x85, 0x1a, 0xa0, 0x87, 0x7e, 426 0xe4, 0x72, 0x3f, 0xc4, 0x86, 0xd6, 0xd6, 0x3a, 0x05, 0xa7, 0x12, 0xfa, 0xd1, 0xc8, 0x0f, 0xb1, 427 0x94, 0xbc, 0x95, 0x92, 0xf2, 0x89, 0xe4, 0xad, 0xa4, 0xf4, 0x14, 0x4e, 0xd9, 0x92, 0x52, 0x12, 428 0x73, 0xe6, 0xb2, 0xb9, 0x17, 0x4f, 0xfd, 0x68, 0x26, 0x9b, 0xa2, 0x3b, 0x27, 0xa9, 0x30, 0x4c, 429 0xf6, 0xd1, 0x00, 0x5a, 0x7b, 0xf8, 0x8b, 0xcf, 0xe7, 0x64, 0xc9, 0xdd, 0x18, 0xd3, 0xc0, 0x9f, 430 0x78, 0xae, 0x9c, 0x00, 0x26, 0x9d, 0xd6, 0x9d, 0x27, 0x29, 0xf6, 0x59, 0x51, 0x8e, 0x82, 0xe4, 431 0xd4, 0x30, 0xf4, 0x0a, 0x80, 0xb3, 0xe9, 0xd8, 0x15, 0x85, 0x09, 0x67, 0xc5, 0x68, 0x9d, 0x67, 432 0x9d, 0x1d, 0xbe, 0xed, 0x8b, 0xa2, 0xd2, 0xf1, 0x12, 0xb8, 0x58, 0xb3, 0xf7, 0x45, 0xbd, 0x78, 433 0x52, 0xb2, 0x6a, 0x50, 0xdd, 0xb7, 0xdd, 0x3a, 0x03, 0xf4, 0x6f, 0x2f, 0xc5, 0x7c, 0x1f, 0xf4, 434 0xc7, 0x1a, 0x40, 0x3d, 0x63, 0xfc, 0xff, 0xd9, 0x65, 0x1d, 0xc3, 0xd1, 0x61, 0x27, 0xac, 0x05, 435 0xe8, 0x69, 0xae, 0xc8, 0x86, 0x72, 0x62, 0x82, 0x26, 0x1b, 0xf8, 0xe0, 0x6d, 0x49, 0xb0, 0x4c, 436 0x0a, 0xf9, 0x87, 0x53, 0x28, 0x64, 0x52, 0xe8, 0x5d, 0x42, 0x51, 0xbe, 0xee, 0x75, 0xf2, 0x9f, 437 0x9d, 0xc9, 0x83, 0x3b, 0xdd, 0x6c, 0xdc, 0xa3, 0xa8, 0xdb, 0xdd, 0xbf, 0xd8, 0xfc, 0x32, 0x73, 438 0x9b, 0xad, 0xa9, 0xdd, 0x6d, 0x4d, 0xed, 0xe7, 0xd6, 0xd4, 0xbe, 0xee, 0xcc, 0xdc, 0xdd, 0xce, 439 0xcc, 0x7d, 0xdf, 0x99, 0xb9, 0x9b, 0xb2, 0xfa, 0xd6, 0x8c, 0xcb, 0xf2, 0x53, 0xf1, 0xfc, 0x4f, 440 0x00, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x5f, 0x0a, 0x2f, 0x81, 0x04, 0x00, 0x00, 441 } 442 443 // Reference imports to suppress errors if they are not otherwise used. 444 var _ context.Context 445 var _ grpc.ClientConn 446 447 // This is a compile-time assertion to ensure that this generated file 448 // is compatible with the grpc package it is being compiled against. 449 const _ = grpc.SupportPackageIsVersion4 450 451 // InfoClient is the client API for Info service. 452 // 453 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 454 type InfoClient interface { 455 // Info returns the metadata (Eg. LabelSets, Min/Max time) about all the APIs the component supports. 456 Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) 457 } 458 459 type infoClient struct { 460 cc *grpc.ClientConn 461 } 462 463 func NewInfoClient(cc *grpc.ClientConn) InfoClient { 464 return &infoClient{cc} 465 } 466 467 func (c *infoClient) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) { 468 out := new(InfoResponse) 469 err := c.cc.Invoke(ctx, "/thanos.info.Info/Info", in, out, opts...) 470 if err != nil { 471 return nil, err 472 } 473 return out, nil 474 } 475 476 // InfoServer is the server API for Info service. 477 type InfoServer interface { 478 // Info returns the metadata (Eg. LabelSets, Min/Max time) about all the APIs the component supports. 479 Info(context.Context, *InfoRequest) (*InfoResponse, error) 480 } 481 482 // UnimplementedInfoServer can be embedded to have forward compatible implementations. 483 type UnimplementedInfoServer struct { 484 } 485 486 func (*UnimplementedInfoServer) Info(ctx context.Context, req *InfoRequest) (*InfoResponse, error) { 487 return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") 488 } 489 490 func RegisterInfoServer(s *grpc.Server, srv InfoServer) { 491 s.RegisterService(&_Info_serviceDesc, srv) 492 } 493 494 func _Info_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 495 in := new(InfoRequest) 496 if err := dec(in); err != nil { 497 return nil, err 498 } 499 if interceptor == nil { 500 return srv.(InfoServer).Info(ctx, in) 501 } 502 info := &grpc.UnaryServerInfo{ 503 Server: srv, 504 FullMethod: "/thanos.info.Info/Info", 505 } 506 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 507 return srv.(InfoServer).Info(ctx, req.(*InfoRequest)) 508 } 509 return interceptor(ctx, in, info, handler) 510 } 511 512 var _Info_serviceDesc = grpc.ServiceDesc{ 513 ServiceName: "thanos.info.Info", 514 HandlerType: (*InfoServer)(nil), 515 Methods: []grpc.MethodDesc{ 516 { 517 MethodName: "Info", 518 Handler: _Info_Info_Handler, 519 }, 520 }, 521 Streams: []grpc.StreamDesc{}, 522 Metadata: "info/infopb/rpc.proto", 523 } 524 525 func (m *InfoRequest) Marshal() (dAtA []byte, err error) { 526 size := m.Size() 527 dAtA = make([]byte, size) 528 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 529 if err != nil { 530 return nil, err 531 } 532 return dAtA[:n], nil 533 } 534 535 func (m *InfoRequest) MarshalTo(dAtA []byte) (int, error) { 536 size := m.Size() 537 return m.MarshalToSizedBuffer(dAtA[:size]) 538 } 539 540 func (m *InfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 541 i := len(dAtA) 542 _ = i 543 var l int 544 _ = l 545 return len(dAtA) - i, nil 546 } 547 548 func (m *InfoResponse) Marshal() (dAtA []byte, err error) { 549 size := m.Size() 550 dAtA = make([]byte, size) 551 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 552 if err != nil { 553 return nil, err 554 } 555 return dAtA[:n], nil 556 } 557 558 func (m *InfoResponse) MarshalTo(dAtA []byte) (int, error) { 559 size := m.Size() 560 return m.MarshalToSizedBuffer(dAtA[:size]) 561 } 562 563 func (m *InfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 564 i := len(dAtA) 565 _ = i 566 var l int 567 _ = l 568 if m.Query != nil { 569 { 570 size, err := m.Query.MarshalToSizedBuffer(dAtA[:i]) 571 if err != nil { 572 return 0, err 573 } 574 i -= size 575 i = encodeVarintRpc(dAtA, i, uint64(size)) 576 } 577 i-- 578 dAtA[i] = 0x42 579 } 580 if m.Exemplars != nil { 581 { 582 size, err := m.Exemplars.MarshalToSizedBuffer(dAtA[:i]) 583 if err != nil { 584 return 0, err 585 } 586 i -= size 587 i = encodeVarintRpc(dAtA, i, uint64(size)) 588 } 589 i-- 590 dAtA[i] = 0x3a 591 } 592 if m.Targets != nil { 593 { 594 size, err := m.Targets.MarshalToSizedBuffer(dAtA[:i]) 595 if err != nil { 596 return 0, err 597 } 598 i -= size 599 i = encodeVarintRpc(dAtA, i, uint64(size)) 600 } 601 i-- 602 dAtA[i] = 0x32 603 } 604 if m.MetricMetadata != nil { 605 { 606 size, err := m.MetricMetadata.MarshalToSizedBuffer(dAtA[:i]) 607 if err != nil { 608 return 0, err 609 } 610 i -= size 611 i = encodeVarintRpc(dAtA, i, uint64(size)) 612 } 613 i-- 614 dAtA[i] = 0x2a 615 } 616 if m.Rules != nil { 617 { 618 size, err := m.Rules.MarshalToSizedBuffer(dAtA[:i]) 619 if err != nil { 620 return 0, err 621 } 622 i -= size 623 i = encodeVarintRpc(dAtA, i, uint64(size)) 624 } 625 i-- 626 dAtA[i] = 0x22 627 } 628 if m.Store != nil { 629 { 630 size, err := m.Store.MarshalToSizedBuffer(dAtA[:i]) 631 if err != nil { 632 return 0, err 633 } 634 i -= size 635 i = encodeVarintRpc(dAtA, i, uint64(size)) 636 } 637 i-- 638 dAtA[i] = 0x1a 639 } 640 if len(m.ComponentType) > 0 { 641 i -= len(m.ComponentType) 642 copy(dAtA[i:], m.ComponentType) 643 i = encodeVarintRpc(dAtA, i, uint64(len(m.ComponentType))) 644 i-- 645 dAtA[i] = 0x12 646 } 647 if len(m.LabelSets) > 0 { 648 for iNdEx := len(m.LabelSets) - 1; iNdEx >= 0; iNdEx-- { 649 { 650 size, err := m.LabelSets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 651 if err != nil { 652 return 0, err 653 } 654 i -= size 655 i = encodeVarintRpc(dAtA, i, uint64(size)) 656 } 657 i-- 658 dAtA[i] = 0xa 659 } 660 } 661 return len(dAtA) - i, nil 662 } 663 664 func (m *StoreInfo) Marshal() (dAtA []byte, err error) { 665 size := m.Size() 666 dAtA = make([]byte, size) 667 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 668 if err != nil { 669 return nil, err 670 } 671 return dAtA[:n], nil 672 } 673 674 func (m *StoreInfo) MarshalTo(dAtA []byte) (int, error) { 675 size := m.Size() 676 return m.MarshalToSizedBuffer(dAtA[:size]) 677 } 678 679 func (m *StoreInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 680 i := len(dAtA) 681 _ = i 682 var l int 683 _ = l 684 if len(m.TsdbInfos) > 0 { 685 for iNdEx := len(m.TsdbInfos) - 1; iNdEx >= 0; iNdEx-- { 686 { 687 size, err := m.TsdbInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 688 if err != nil { 689 return 0, err 690 } 691 i -= size 692 i = encodeVarintRpc(dAtA, i, uint64(size)) 693 } 694 i-- 695 dAtA[i] = 0x32 696 } 697 } 698 if m.SupportsWithoutReplicaLabels { 699 i-- 700 if m.SupportsWithoutReplicaLabels { 701 dAtA[i] = 1 702 } else { 703 dAtA[i] = 0 704 } 705 i-- 706 dAtA[i] = 0x28 707 } 708 if m.SupportsSharding { 709 i-- 710 if m.SupportsSharding { 711 dAtA[i] = 1 712 } else { 713 dAtA[i] = 0 714 } 715 i-- 716 dAtA[i] = 0x18 717 } 718 if m.MaxTime != 0 { 719 i = encodeVarintRpc(dAtA, i, uint64(m.MaxTime)) 720 i-- 721 dAtA[i] = 0x10 722 } 723 if m.MinTime != 0 { 724 i = encodeVarintRpc(dAtA, i, uint64(m.MinTime)) 725 i-- 726 dAtA[i] = 0x8 727 } 728 return len(dAtA) - i, nil 729 } 730 731 func (m *RulesInfo) Marshal() (dAtA []byte, err error) { 732 size := m.Size() 733 dAtA = make([]byte, size) 734 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 735 if err != nil { 736 return nil, err 737 } 738 return dAtA[:n], nil 739 } 740 741 func (m *RulesInfo) MarshalTo(dAtA []byte) (int, error) { 742 size := m.Size() 743 return m.MarshalToSizedBuffer(dAtA[:size]) 744 } 745 746 func (m *RulesInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 747 i := len(dAtA) 748 _ = i 749 var l int 750 _ = l 751 return len(dAtA) - i, nil 752 } 753 754 func (m *MetricMetadataInfo) Marshal() (dAtA []byte, err error) { 755 size := m.Size() 756 dAtA = make([]byte, size) 757 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 758 if err != nil { 759 return nil, err 760 } 761 return dAtA[:n], nil 762 } 763 764 func (m *MetricMetadataInfo) MarshalTo(dAtA []byte) (int, error) { 765 size := m.Size() 766 return m.MarshalToSizedBuffer(dAtA[:size]) 767 } 768 769 func (m *MetricMetadataInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 770 i := len(dAtA) 771 _ = i 772 var l int 773 _ = l 774 return len(dAtA) - i, nil 775 } 776 777 func (m *TargetsInfo) Marshal() (dAtA []byte, err error) { 778 size := m.Size() 779 dAtA = make([]byte, size) 780 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 781 if err != nil { 782 return nil, err 783 } 784 return dAtA[:n], nil 785 } 786 787 func (m *TargetsInfo) MarshalTo(dAtA []byte) (int, error) { 788 size := m.Size() 789 return m.MarshalToSizedBuffer(dAtA[:size]) 790 } 791 792 func (m *TargetsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 793 i := len(dAtA) 794 _ = i 795 var l int 796 _ = l 797 return len(dAtA) - i, nil 798 } 799 800 func (m *ExemplarsInfo) Marshal() (dAtA []byte, err error) { 801 size := m.Size() 802 dAtA = make([]byte, size) 803 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 804 if err != nil { 805 return nil, err 806 } 807 return dAtA[:n], nil 808 } 809 810 func (m *ExemplarsInfo) MarshalTo(dAtA []byte) (int, error) { 811 size := m.Size() 812 return m.MarshalToSizedBuffer(dAtA[:size]) 813 } 814 815 func (m *ExemplarsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 816 i := len(dAtA) 817 _ = i 818 var l int 819 _ = l 820 if m.MaxTime != 0 { 821 i = encodeVarintRpc(dAtA, i, uint64(m.MaxTime)) 822 i-- 823 dAtA[i] = 0x10 824 } 825 if m.MinTime != 0 { 826 i = encodeVarintRpc(dAtA, i, uint64(m.MinTime)) 827 i-- 828 dAtA[i] = 0x8 829 } 830 return len(dAtA) - i, nil 831 } 832 833 func (m *QueryAPIInfo) Marshal() (dAtA []byte, err error) { 834 size := m.Size() 835 dAtA = make([]byte, size) 836 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 837 if err != nil { 838 return nil, err 839 } 840 return dAtA[:n], nil 841 } 842 843 func (m *QueryAPIInfo) MarshalTo(dAtA []byte) (int, error) { 844 size := m.Size() 845 return m.MarshalToSizedBuffer(dAtA[:size]) 846 } 847 848 func (m *QueryAPIInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 849 i := len(dAtA) 850 _ = i 851 var l int 852 _ = l 853 return len(dAtA) - i, nil 854 } 855 856 func (m *TSDBInfo) Marshal() (dAtA []byte, err error) { 857 size := m.Size() 858 dAtA = make([]byte, size) 859 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 860 if err != nil { 861 return nil, err 862 } 863 return dAtA[:n], nil 864 } 865 866 func (m *TSDBInfo) MarshalTo(dAtA []byte) (int, error) { 867 size := m.Size() 868 return m.MarshalToSizedBuffer(dAtA[:size]) 869 } 870 871 func (m *TSDBInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 872 i := len(dAtA) 873 _ = i 874 var l int 875 _ = l 876 if m.MaxTime != 0 { 877 i = encodeVarintRpc(dAtA, i, uint64(m.MaxTime)) 878 i-- 879 dAtA[i] = 0x18 880 } 881 if m.MinTime != 0 { 882 i = encodeVarintRpc(dAtA, i, uint64(m.MinTime)) 883 i-- 884 dAtA[i] = 0x10 885 } 886 { 887 size, err := m.Labels.MarshalToSizedBuffer(dAtA[:i]) 888 if err != nil { 889 return 0, err 890 } 891 i -= size 892 i = encodeVarintRpc(dAtA, i, uint64(size)) 893 } 894 i-- 895 dAtA[i] = 0xa 896 return len(dAtA) - i, nil 897 } 898 899 func encodeVarintRpc(dAtA []byte, offset int, v uint64) int { 900 offset -= sovRpc(v) 901 base := offset 902 for v >= 1<<7 { 903 dAtA[offset] = uint8(v&0x7f | 0x80) 904 v >>= 7 905 offset++ 906 } 907 dAtA[offset] = uint8(v) 908 return base 909 } 910 func (m *InfoRequest) Size() (n int) { 911 if m == nil { 912 return 0 913 } 914 var l int 915 _ = l 916 return n 917 } 918 919 func (m *InfoResponse) Size() (n int) { 920 if m == nil { 921 return 0 922 } 923 var l int 924 _ = l 925 if len(m.LabelSets) > 0 { 926 for _, e := range m.LabelSets { 927 l = e.Size() 928 n += 1 + l + sovRpc(uint64(l)) 929 } 930 } 931 l = len(m.ComponentType) 932 if l > 0 { 933 n += 1 + l + sovRpc(uint64(l)) 934 } 935 if m.Store != nil { 936 l = m.Store.Size() 937 n += 1 + l + sovRpc(uint64(l)) 938 } 939 if m.Rules != nil { 940 l = m.Rules.Size() 941 n += 1 + l + sovRpc(uint64(l)) 942 } 943 if m.MetricMetadata != nil { 944 l = m.MetricMetadata.Size() 945 n += 1 + l + sovRpc(uint64(l)) 946 } 947 if m.Targets != nil { 948 l = m.Targets.Size() 949 n += 1 + l + sovRpc(uint64(l)) 950 } 951 if m.Exemplars != nil { 952 l = m.Exemplars.Size() 953 n += 1 + l + sovRpc(uint64(l)) 954 } 955 if m.Query != nil { 956 l = m.Query.Size() 957 n += 1 + l + sovRpc(uint64(l)) 958 } 959 return n 960 } 961 962 func (m *StoreInfo) Size() (n int) { 963 if m == nil { 964 return 0 965 } 966 var l int 967 _ = l 968 if m.MinTime != 0 { 969 n += 1 + sovRpc(uint64(m.MinTime)) 970 } 971 if m.MaxTime != 0 { 972 n += 1 + sovRpc(uint64(m.MaxTime)) 973 } 974 if m.SupportsSharding { 975 n += 2 976 } 977 if m.SupportsWithoutReplicaLabels { 978 n += 2 979 } 980 if len(m.TsdbInfos) > 0 { 981 for _, e := range m.TsdbInfos { 982 l = e.Size() 983 n += 1 + l + sovRpc(uint64(l)) 984 } 985 } 986 return n 987 } 988 989 func (m *RulesInfo) Size() (n int) { 990 if m == nil { 991 return 0 992 } 993 var l int 994 _ = l 995 return n 996 } 997 998 func (m *MetricMetadataInfo) Size() (n int) { 999 if m == nil { 1000 return 0 1001 } 1002 var l int 1003 _ = l 1004 return n 1005 } 1006 1007 func (m *TargetsInfo) Size() (n int) { 1008 if m == nil { 1009 return 0 1010 } 1011 var l int 1012 _ = l 1013 return n 1014 } 1015 1016 func (m *ExemplarsInfo) Size() (n int) { 1017 if m == nil { 1018 return 0 1019 } 1020 var l int 1021 _ = l 1022 if m.MinTime != 0 { 1023 n += 1 + sovRpc(uint64(m.MinTime)) 1024 } 1025 if m.MaxTime != 0 { 1026 n += 1 + sovRpc(uint64(m.MaxTime)) 1027 } 1028 return n 1029 } 1030 1031 func (m *QueryAPIInfo) Size() (n int) { 1032 if m == nil { 1033 return 0 1034 } 1035 var l int 1036 _ = l 1037 return n 1038 } 1039 1040 func (m *TSDBInfo) Size() (n int) { 1041 if m == nil { 1042 return 0 1043 } 1044 var l int 1045 _ = l 1046 l = m.Labels.Size() 1047 n += 1 + l + sovRpc(uint64(l)) 1048 if m.MinTime != 0 { 1049 n += 1 + sovRpc(uint64(m.MinTime)) 1050 } 1051 if m.MaxTime != 0 { 1052 n += 1 + sovRpc(uint64(m.MaxTime)) 1053 } 1054 return n 1055 } 1056 1057 func sovRpc(x uint64) (n int) { 1058 return (math_bits.Len64(x|1) + 6) / 7 1059 } 1060 func sozRpc(x uint64) (n int) { 1061 return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1062 } 1063 func (m *InfoRequest) Unmarshal(dAtA []byte) error { 1064 l := len(dAtA) 1065 iNdEx := 0 1066 for iNdEx < l { 1067 preIndex := iNdEx 1068 var wire uint64 1069 for shift := uint(0); ; shift += 7 { 1070 if shift >= 64 { 1071 return ErrIntOverflowRpc 1072 } 1073 if iNdEx >= l { 1074 return io.ErrUnexpectedEOF 1075 } 1076 b := dAtA[iNdEx] 1077 iNdEx++ 1078 wire |= uint64(b&0x7F) << shift 1079 if b < 0x80 { 1080 break 1081 } 1082 } 1083 fieldNum := int32(wire >> 3) 1084 wireType := int(wire & 0x7) 1085 if wireType == 4 { 1086 return fmt.Errorf("proto: InfoRequest: wiretype end group for non-group") 1087 } 1088 if fieldNum <= 0 { 1089 return fmt.Errorf("proto: InfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1090 } 1091 switch fieldNum { 1092 default: 1093 iNdEx = preIndex 1094 skippy, err := skipRpc(dAtA[iNdEx:]) 1095 if err != nil { 1096 return err 1097 } 1098 if (skippy < 0) || (iNdEx+skippy) < 0 { 1099 return ErrInvalidLengthRpc 1100 } 1101 if (iNdEx + skippy) > l { 1102 return io.ErrUnexpectedEOF 1103 } 1104 iNdEx += skippy 1105 } 1106 } 1107 1108 if iNdEx > l { 1109 return io.ErrUnexpectedEOF 1110 } 1111 return nil 1112 } 1113 func (m *InfoResponse) Unmarshal(dAtA []byte) error { 1114 l := len(dAtA) 1115 iNdEx := 0 1116 for iNdEx < l { 1117 preIndex := iNdEx 1118 var wire uint64 1119 for shift := uint(0); ; shift += 7 { 1120 if shift >= 64 { 1121 return ErrIntOverflowRpc 1122 } 1123 if iNdEx >= l { 1124 return io.ErrUnexpectedEOF 1125 } 1126 b := dAtA[iNdEx] 1127 iNdEx++ 1128 wire |= uint64(b&0x7F) << shift 1129 if b < 0x80 { 1130 break 1131 } 1132 } 1133 fieldNum := int32(wire >> 3) 1134 wireType := int(wire & 0x7) 1135 if wireType == 4 { 1136 return fmt.Errorf("proto: InfoResponse: wiretype end group for non-group") 1137 } 1138 if fieldNum <= 0 { 1139 return fmt.Errorf("proto: InfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1140 } 1141 switch fieldNum { 1142 case 1: 1143 if wireType != 2 { 1144 return fmt.Errorf("proto: wrong wireType = %d for field LabelSets", wireType) 1145 } 1146 var msglen int 1147 for shift := uint(0); ; shift += 7 { 1148 if shift >= 64 { 1149 return ErrIntOverflowRpc 1150 } 1151 if iNdEx >= l { 1152 return io.ErrUnexpectedEOF 1153 } 1154 b := dAtA[iNdEx] 1155 iNdEx++ 1156 msglen |= int(b&0x7F) << shift 1157 if b < 0x80 { 1158 break 1159 } 1160 } 1161 if msglen < 0 { 1162 return ErrInvalidLengthRpc 1163 } 1164 postIndex := iNdEx + msglen 1165 if postIndex < 0 { 1166 return ErrInvalidLengthRpc 1167 } 1168 if postIndex > l { 1169 return io.ErrUnexpectedEOF 1170 } 1171 m.LabelSets = append(m.LabelSets, labelpb.ZLabelSet{}) 1172 if err := m.LabelSets[len(m.LabelSets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1173 return err 1174 } 1175 iNdEx = postIndex 1176 case 2: 1177 if wireType != 2 { 1178 return fmt.Errorf("proto: wrong wireType = %d for field ComponentType", wireType) 1179 } 1180 var stringLen uint64 1181 for shift := uint(0); ; shift += 7 { 1182 if shift >= 64 { 1183 return ErrIntOverflowRpc 1184 } 1185 if iNdEx >= l { 1186 return io.ErrUnexpectedEOF 1187 } 1188 b := dAtA[iNdEx] 1189 iNdEx++ 1190 stringLen |= uint64(b&0x7F) << shift 1191 if b < 0x80 { 1192 break 1193 } 1194 } 1195 intStringLen := int(stringLen) 1196 if intStringLen < 0 { 1197 return ErrInvalidLengthRpc 1198 } 1199 postIndex := iNdEx + intStringLen 1200 if postIndex < 0 { 1201 return ErrInvalidLengthRpc 1202 } 1203 if postIndex > l { 1204 return io.ErrUnexpectedEOF 1205 } 1206 m.ComponentType = string(dAtA[iNdEx:postIndex]) 1207 iNdEx = postIndex 1208 case 3: 1209 if wireType != 2 { 1210 return fmt.Errorf("proto: wrong wireType = %d for field Store", wireType) 1211 } 1212 var msglen int 1213 for shift := uint(0); ; shift += 7 { 1214 if shift >= 64 { 1215 return ErrIntOverflowRpc 1216 } 1217 if iNdEx >= l { 1218 return io.ErrUnexpectedEOF 1219 } 1220 b := dAtA[iNdEx] 1221 iNdEx++ 1222 msglen |= int(b&0x7F) << shift 1223 if b < 0x80 { 1224 break 1225 } 1226 } 1227 if msglen < 0 { 1228 return ErrInvalidLengthRpc 1229 } 1230 postIndex := iNdEx + msglen 1231 if postIndex < 0 { 1232 return ErrInvalidLengthRpc 1233 } 1234 if postIndex > l { 1235 return io.ErrUnexpectedEOF 1236 } 1237 if m.Store == nil { 1238 m.Store = &StoreInfo{} 1239 } 1240 if err := m.Store.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1241 return err 1242 } 1243 iNdEx = postIndex 1244 case 4: 1245 if wireType != 2 { 1246 return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) 1247 } 1248 var msglen int 1249 for shift := uint(0); ; shift += 7 { 1250 if shift >= 64 { 1251 return ErrIntOverflowRpc 1252 } 1253 if iNdEx >= l { 1254 return io.ErrUnexpectedEOF 1255 } 1256 b := dAtA[iNdEx] 1257 iNdEx++ 1258 msglen |= int(b&0x7F) << shift 1259 if b < 0x80 { 1260 break 1261 } 1262 } 1263 if msglen < 0 { 1264 return ErrInvalidLengthRpc 1265 } 1266 postIndex := iNdEx + msglen 1267 if postIndex < 0 { 1268 return ErrInvalidLengthRpc 1269 } 1270 if postIndex > l { 1271 return io.ErrUnexpectedEOF 1272 } 1273 if m.Rules == nil { 1274 m.Rules = &RulesInfo{} 1275 } 1276 if err := m.Rules.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1277 return err 1278 } 1279 iNdEx = postIndex 1280 case 5: 1281 if wireType != 2 { 1282 return fmt.Errorf("proto: wrong wireType = %d for field MetricMetadata", wireType) 1283 } 1284 var msglen int 1285 for shift := uint(0); ; shift += 7 { 1286 if shift >= 64 { 1287 return ErrIntOverflowRpc 1288 } 1289 if iNdEx >= l { 1290 return io.ErrUnexpectedEOF 1291 } 1292 b := dAtA[iNdEx] 1293 iNdEx++ 1294 msglen |= int(b&0x7F) << shift 1295 if b < 0x80 { 1296 break 1297 } 1298 } 1299 if msglen < 0 { 1300 return ErrInvalidLengthRpc 1301 } 1302 postIndex := iNdEx + msglen 1303 if postIndex < 0 { 1304 return ErrInvalidLengthRpc 1305 } 1306 if postIndex > l { 1307 return io.ErrUnexpectedEOF 1308 } 1309 if m.MetricMetadata == nil { 1310 m.MetricMetadata = &MetricMetadataInfo{} 1311 } 1312 if err := m.MetricMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1313 return err 1314 } 1315 iNdEx = postIndex 1316 case 6: 1317 if wireType != 2 { 1318 return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType) 1319 } 1320 var msglen int 1321 for shift := uint(0); ; shift += 7 { 1322 if shift >= 64 { 1323 return ErrIntOverflowRpc 1324 } 1325 if iNdEx >= l { 1326 return io.ErrUnexpectedEOF 1327 } 1328 b := dAtA[iNdEx] 1329 iNdEx++ 1330 msglen |= int(b&0x7F) << shift 1331 if b < 0x80 { 1332 break 1333 } 1334 } 1335 if msglen < 0 { 1336 return ErrInvalidLengthRpc 1337 } 1338 postIndex := iNdEx + msglen 1339 if postIndex < 0 { 1340 return ErrInvalidLengthRpc 1341 } 1342 if postIndex > l { 1343 return io.ErrUnexpectedEOF 1344 } 1345 if m.Targets == nil { 1346 m.Targets = &TargetsInfo{} 1347 } 1348 if err := m.Targets.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1349 return err 1350 } 1351 iNdEx = postIndex 1352 case 7: 1353 if wireType != 2 { 1354 return fmt.Errorf("proto: wrong wireType = %d for field Exemplars", wireType) 1355 } 1356 var msglen int 1357 for shift := uint(0); ; shift += 7 { 1358 if shift >= 64 { 1359 return ErrIntOverflowRpc 1360 } 1361 if iNdEx >= l { 1362 return io.ErrUnexpectedEOF 1363 } 1364 b := dAtA[iNdEx] 1365 iNdEx++ 1366 msglen |= int(b&0x7F) << shift 1367 if b < 0x80 { 1368 break 1369 } 1370 } 1371 if msglen < 0 { 1372 return ErrInvalidLengthRpc 1373 } 1374 postIndex := iNdEx + msglen 1375 if postIndex < 0 { 1376 return ErrInvalidLengthRpc 1377 } 1378 if postIndex > l { 1379 return io.ErrUnexpectedEOF 1380 } 1381 if m.Exemplars == nil { 1382 m.Exemplars = &ExemplarsInfo{} 1383 } 1384 if err := m.Exemplars.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1385 return err 1386 } 1387 iNdEx = postIndex 1388 case 8: 1389 if wireType != 2 { 1390 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 1391 } 1392 var msglen int 1393 for shift := uint(0); ; shift += 7 { 1394 if shift >= 64 { 1395 return ErrIntOverflowRpc 1396 } 1397 if iNdEx >= l { 1398 return io.ErrUnexpectedEOF 1399 } 1400 b := dAtA[iNdEx] 1401 iNdEx++ 1402 msglen |= int(b&0x7F) << shift 1403 if b < 0x80 { 1404 break 1405 } 1406 } 1407 if msglen < 0 { 1408 return ErrInvalidLengthRpc 1409 } 1410 postIndex := iNdEx + msglen 1411 if postIndex < 0 { 1412 return ErrInvalidLengthRpc 1413 } 1414 if postIndex > l { 1415 return io.ErrUnexpectedEOF 1416 } 1417 if m.Query == nil { 1418 m.Query = &QueryAPIInfo{} 1419 } 1420 if err := m.Query.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1421 return err 1422 } 1423 iNdEx = postIndex 1424 default: 1425 iNdEx = preIndex 1426 skippy, err := skipRpc(dAtA[iNdEx:]) 1427 if err != nil { 1428 return err 1429 } 1430 if (skippy < 0) || (iNdEx+skippy) < 0 { 1431 return ErrInvalidLengthRpc 1432 } 1433 if (iNdEx + skippy) > l { 1434 return io.ErrUnexpectedEOF 1435 } 1436 iNdEx += skippy 1437 } 1438 } 1439 1440 if iNdEx > l { 1441 return io.ErrUnexpectedEOF 1442 } 1443 return nil 1444 } 1445 func (m *StoreInfo) Unmarshal(dAtA []byte) error { 1446 l := len(dAtA) 1447 iNdEx := 0 1448 for iNdEx < l { 1449 preIndex := iNdEx 1450 var wire uint64 1451 for shift := uint(0); ; shift += 7 { 1452 if shift >= 64 { 1453 return ErrIntOverflowRpc 1454 } 1455 if iNdEx >= l { 1456 return io.ErrUnexpectedEOF 1457 } 1458 b := dAtA[iNdEx] 1459 iNdEx++ 1460 wire |= uint64(b&0x7F) << shift 1461 if b < 0x80 { 1462 break 1463 } 1464 } 1465 fieldNum := int32(wire >> 3) 1466 wireType := int(wire & 0x7) 1467 if wireType == 4 { 1468 return fmt.Errorf("proto: StoreInfo: wiretype end group for non-group") 1469 } 1470 if fieldNum <= 0 { 1471 return fmt.Errorf("proto: StoreInfo: illegal tag %d (wire type %d)", fieldNum, wire) 1472 } 1473 switch fieldNum { 1474 case 1: 1475 if wireType != 0 { 1476 return fmt.Errorf("proto: wrong wireType = %d for field MinTime", wireType) 1477 } 1478 m.MinTime = 0 1479 for shift := uint(0); ; shift += 7 { 1480 if shift >= 64 { 1481 return ErrIntOverflowRpc 1482 } 1483 if iNdEx >= l { 1484 return io.ErrUnexpectedEOF 1485 } 1486 b := dAtA[iNdEx] 1487 iNdEx++ 1488 m.MinTime |= int64(b&0x7F) << shift 1489 if b < 0x80 { 1490 break 1491 } 1492 } 1493 case 2: 1494 if wireType != 0 { 1495 return fmt.Errorf("proto: wrong wireType = %d for field MaxTime", wireType) 1496 } 1497 m.MaxTime = 0 1498 for shift := uint(0); ; shift += 7 { 1499 if shift >= 64 { 1500 return ErrIntOverflowRpc 1501 } 1502 if iNdEx >= l { 1503 return io.ErrUnexpectedEOF 1504 } 1505 b := dAtA[iNdEx] 1506 iNdEx++ 1507 m.MaxTime |= int64(b&0x7F) << shift 1508 if b < 0x80 { 1509 break 1510 } 1511 } 1512 case 3: 1513 if wireType != 0 { 1514 return fmt.Errorf("proto: wrong wireType = %d for field SupportsSharding", wireType) 1515 } 1516 var v int 1517 for shift := uint(0); ; shift += 7 { 1518 if shift >= 64 { 1519 return ErrIntOverflowRpc 1520 } 1521 if iNdEx >= l { 1522 return io.ErrUnexpectedEOF 1523 } 1524 b := dAtA[iNdEx] 1525 iNdEx++ 1526 v |= int(b&0x7F) << shift 1527 if b < 0x80 { 1528 break 1529 } 1530 } 1531 m.SupportsSharding = bool(v != 0) 1532 case 5: 1533 if wireType != 0 { 1534 return fmt.Errorf("proto: wrong wireType = %d for field SupportsWithoutReplicaLabels", wireType) 1535 } 1536 var v int 1537 for shift := uint(0); ; shift += 7 { 1538 if shift >= 64 { 1539 return ErrIntOverflowRpc 1540 } 1541 if iNdEx >= l { 1542 return io.ErrUnexpectedEOF 1543 } 1544 b := dAtA[iNdEx] 1545 iNdEx++ 1546 v |= int(b&0x7F) << shift 1547 if b < 0x80 { 1548 break 1549 } 1550 } 1551 m.SupportsWithoutReplicaLabels = bool(v != 0) 1552 case 6: 1553 if wireType != 2 { 1554 return fmt.Errorf("proto: wrong wireType = %d for field TsdbInfos", wireType) 1555 } 1556 var msglen int 1557 for shift := uint(0); ; shift += 7 { 1558 if shift >= 64 { 1559 return ErrIntOverflowRpc 1560 } 1561 if iNdEx >= l { 1562 return io.ErrUnexpectedEOF 1563 } 1564 b := dAtA[iNdEx] 1565 iNdEx++ 1566 msglen |= int(b&0x7F) << shift 1567 if b < 0x80 { 1568 break 1569 } 1570 } 1571 if msglen < 0 { 1572 return ErrInvalidLengthRpc 1573 } 1574 postIndex := iNdEx + msglen 1575 if postIndex < 0 { 1576 return ErrInvalidLengthRpc 1577 } 1578 if postIndex > l { 1579 return io.ErrUnexpectedEOF 1580 } 1581 m.TsdbInfos = append(m.TsdbInfos, TSDBInfo{}) 1582 if err := m.TsdbInfos[len(m.TsdbInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1583 return err 1584 } 1585 iNdEx = postIndex 1586 default: 1587 iNdEx = preIndex 1588 skippy, err := skipRpc(dAtA[iNdEx:]) 1589 if err != nil { 1590 return err 1591 } 1592 if (skippy < 0) || (iNdEx+skippy) < 0 { 1593 return ErrInvalidLengthRpc 1594 } 1595 if (iNdEx + skippy) > l { 1596 return io.ErrUnexpectedEOF 1597 } 1598 iNdEx += skippy 1599 } 1600 } 1601 1602 if iNdEx > l { 1603 return io.ErrUnexpectedEOF 1604 } 1605 return nil 1606 } 1607 func (m *RulesInfo) Unmarshal(dAtA []byte) error { 1608 l := len(dAtA) 1609 iNdEx := 0 1610 for iNdEx < l { 1611 preIndex := iNdEx 1612 var wire uint64 1613 for shift := uint(0); ; shift += 7 { 1614 if shift >= 64 { 1615 return ErrIntOverflowRpc 1616 } 1617 if iNdEx >= l { 1618 return io.ErrUnexpectedEOF 1619 } 1620 b := dAtA[iNdEx] 1621 iNdEx++ 1622 wire |= uint64(b&0x7F) << shift 1623 if b < 0x80 { 1624 break 1625 } 1626 } 1627 fieldNum := int32(wire >> 3) 1628 wireType := int(wire & 0x7) 1629 if wireType == 4 { 1630 return fmt.Errorf("proto: RulesInfo: wiretype end group for non-group") 1631 } 1632 if fieldNum <= 0 { 1633 return fmt.Errorf("proto: RulesInfo: illegal tag %d (wire type %d)", fieldNum, wire) 1634 } 1635 switch fieldNum { 1636 default: 1637 iNdEx = preIndex 1638 skippy, err := skipRpc(dAtA[iNdEx:]) 1639 if err != nil { 1640 return err 1641 } 1642 if (skippy < 0) || (iNdEx+skippy) < 0 { 1643 return ErrInvalidLengthRpc 1644 } 1645 if (iNdEx + skippy) > l { 1646 return io.ErrUnexpectedEOF 1647 } 1648 iNdEx += skippy 1649 } 1650 } 1651 1652 if iNdEx > l { 1653 return io.ErrUnexpectedEOF 1654 } 1655 return nil 1656 } 1657 func (m *MetricMetadataInfo) Unmarshal(dAtA []byte) error { 1658 l := len(dAtA) 1659 iNdEx := 0 1660 for iNdEx < l { 1661 preIndex := iNdEx 1662 var wire uint64 1663 for shift := uint(0); ; shift += 7 { 1664 if shift >= 64 { 1665 return ErrIntOverflowRpc 1666 } 1667 if iNdEx >= l { 1668 return io.ErrUnexpectedEOF 1669 } 1670 b := dAtA[iNdEx] 1671 iNdEx++ 1672 wire |= uint64(b&0x7F) << shift 1673 if b < 0x80 { 1674 break 1675 } 1676 } 1677 fieldNum := int32(wire >> 3) 1678 wireType := int(wire & 0x7) 1679 if wireType == 4 { 1680 return fmt.Errorf("proto: MetricMetadataInfo: wiretype end group for non-group") 1681 } 1682 if fieldNum <= 0 { 1683 return fmt.Errorf("proto: MetricMetadataInfo: illegal tag %d (wire type %d)", fieldNum, wire) 1684 } 1685 switch fieldNum { 1686 default: 1687 iNdEx = preIndex 1688 skippy, err := skipRpc(dAtA[iNdEx:]) 1689 if err != nil { 1690 return err 1691 } 1692 if (skippy < 0) || (iNdEx+skippy) < 0 { 1693 return ErrInvalidLengthRpc 1694 } 1695 if (iNdEx + skippy) > l { 1696 return io.ErrUnexpectedEOF 1697 } 1698 iNdEx += skippy 1699 } 1700 } 1701 1702 if iNdEx > l { 1703 return io.ErrUnexpectedEOF 1704 } 1705 return nil 1706 } 1707 func (m *TargetsInfo) Unmarshal(dAtA []byte) error { 1708 l := len(dAtA) 1709 iNdEx := 0 1710 for iNdEx < l { 1711 preIndex := iNdEx 1712 var wire uint64 1713 for shift := uint(0); ; shift += 7 { 1714 if shift >= 64 { 1715 return ErrIntOverflowRpc 1716 } 1717 if iNdEx >= l { 1718 return io.ErrUnexpectedEOF 1719 } 1720 b := dAtA[iNdEx] 1721 iNdEx++ 1722 wire |= uint64(b&0x7F) << shift 1723 if b < 0x80 { 1724 break 1725 } 1726 } 1727 fieldNum := int32(wire >> 3) 1728 wireType := int(wire & 0x7) 1729 if wireType == 4 { 1730 return fmt.Errorf("proto: TargetsInfo: wiretype end group for non-group") 1731 } 1732 if fieldNum <= 0 { 1733 return fmt.Errorf("proto: TargetsInfo: illegal tag %d (wire type %d)", fieldNum, wire) 1734 } 1735 switch fieldNum { 1736 default: 1737 iNdEx = preIndex 1738 skippy, err := skipRpc(dAtA[iNdEx:]) 1739 if err != nil { 1740 return err 1741 } 1742 if (skippy < 0) || (iNdEx+skippy) < 0 { 1743 return ErrInvalidLengthRpc 1744 } 1745 if (iNdEx + skippy) > l { 1746 return io.ErrUnexpectedEOF 1747 } 1748 iNdEx += skippy 1749 } 1750 } 1751 1752 if iNdEx > l { 1753 return io.ErrUnexpectedEOF 1754 } 1755 return nil 1756 } 1757 func (m *ExemplarsInfo) Unmarshal(dAtA []byte) error { 1758 l := len(dAtA) 1759 iNdEx := 0 1760 for iNdEx < l { 1761 preIndex := iNdEx 1762 var wire uint64 1763 for shift := uint(0); ; shift += 7 { 1764 if shift >= 64 { 1765 return ErrIntOverflowRpc 1766 } 1767 if iNdEx >= l { 1768 return io.ErrUnexpectedEOF 1769 } 1770 b := dAtA[iNdEx] 1771 iNdEx++ 1772 wire |= uint64(b&0x7F) << shift 1773 if b < 0x80 { 1774 break 1775 } 1776 } 1777 fieldNum := int32(wire >> 3) 1778 wireType := int(wire & 0x7) 1779 if wireType == 4 { 1780 return fmt.Errorf("proto: ExemplarsInfo: wiretype end group for non-group") 1781 } 1782 if fieldNum <= 0 { 1783 return fmt.Errorf("proto: ExemplarsInfo: illegal tag %d (wire type %d)", fieldNum, wire) 1784 } 1785 switch fieldNum { 1786 case 1: 1787 if wireType != 0 { 1788 return fmt.Errorf("proto: wrong wireType = %d for field MinTime", wireType) 1789 } 1790 m.MinTime = 0 1791 for shift := uint(0); ; shift += 7 { 1792 if shift >= 64 { 1793 return ErrIntOverflowRpc 1794 } 1795 if iNdEx >= l { 1796 return io.ErrUnexpectedEOF 1797 } 1798 b := dAtA[iNdEx] 1799 iNdEx++ 1800 m.MinTime |= int64(b&0x7F) << shift 1801 if b < 0x80 { 1802 break 1803 } 1804 } 1805 case 2: 1806 if wireType != 0 { 1807 return fmt.Errorf("proto: wrong wireType = %d for field MaxTime", wireType) 1808 } 1809 m.MaxTime = 0 1810 for shift := uint(0); ; shift += 7 { 1811 if shift >= 64 { 1812 return ErrIntOverflowRpc 1813 } 1814 if iNdEx >= l { 1815 return io.ErrUnexpectedEOF 1816 } 1817 b := dAtA[iNdEx] 1818 iNdEx++ 1819 m.MaxTime |= int64(b&0x7F) << shift 1820 if b < 0x80 { 1821 break 1822 } 1823 } 1824 default: 1825 iNdEx = preIndex 1826 skippy, err := skipRpc(dAtA[iNdEx:]) 1827 if err != nil { 1828 return err 1829 } 1830 if (skippy < 0) || (iNdEx+skippy) < 0 { 1831 return ErrInvalidLengthRpc 1832 } 1833 if (iNdEx + skippy) > l { 1834 return io.ErrUnexpectedEOF 1835 } 1836 iNdEx += skippy 1837 } 1838 } 1839 1840 if iNdEx > l { 1841 return io.ErrUnexpectedEOF 1842 } 1843 return nil 1844 } 1845 func (m *QueryAPIInfo) Unmarshal(dAtA []byte) error { 1846 l := len(dAtA) 1847 iNdEx := 0 1848 for iNdEx < l { 1849 preIndex := iNdEx 1850 var wire uint64 1851 for shift := uint(0); ; shift += 7 { 1852 if shift >= 64 { 1853 return ErrIntOverflowRpc 1854 } 1855 if iNdEx >= l { 1856 return io.ErrUnexpectedEOF 1857 } 1858 b := dAtA[iNdEx] 1859 iNdEx++ 1860 wire |= uint64(b&0x7F) << shift 1861 if b < 0x80 { 1862 break 1863 } 1864 } 1865 fieldNum := int32(wire >> 3) 1866 wireType := int(wire & 0x7) 1867 if wireType == 4 { 1868 return fmt.Errorf("proto: QueryAPIInfo: wiretype end group for non-group") 1869 } 1870 if fieldNum <= 0 { 1871 return fmt.Errorf("proto: QueryAPIInfo: illegal tag %d (wire type %d)", fieldNum, wire) 1872 } 1873 switch fieldNum { 1874 default: 1875 iNdEx = preIndex 1876 skippy, err := skipRpc(dAtA[iNdEx:]) 1877 if err != nil { 1878 return err 1879 } 1880 if (skippy < 0) || (iNdEx+skippy) < 0 { 1881 return ErrInvalidLengthRpc 1882 } 1883 if (iNdEx + skippy) > l { 1884 return io.ErrUnexpectedEOF 1885 } 1886 iNdEx += skippy 1887 } 1888 } 1889 1890 if iNdEx > l { 1891 return io.ErrUnexpectedEOF 1892 } 1893 return nil 1894 } 1895 func (m *TSDBInfo) Unmarshal(dAtA []byte) error { 1896 l := len(dAtA) 1897 iNdEx := 0 1898 for iNdEx < l { 1899 preIndex := iNdEx 1900 var wire uint64 1901 for shift := uint(0); ; shift += 7 { 1902 if shift >= 64 { 1903 return ErrIntOverflowRpc 1904 } 1905 if iNdEx >= l { 1906 return io.ErrUnexpectedEOF 1907 } 1908 b := dAtA[iNdEx] 1909 iNdEx++ 1910 wire |= uint64(b&0x7F) << shift 1911 if b < 0x80 { 1912 break 1913 } 1914 } 1915 fieldNum := int32(wire >> 3) 1916 wireType := int(wire & 0x7) 1917 if wireType == 4 { 1918 return fmt.Errorf("proto: TSDBInfo: wiretype end group for non-group") 1919 } 1920 if fieldNum <= 0 { 1921 return fmt.Errorf("proto: TSDBInfo: illegal tag %d (wire type %d)", fieldNum, wire) 1922 } 1923 switch fieldNum { 1924 case 1: 1925 if wireType != 2 { 1926 return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) 1927 } 1928 var msglen int 1929 for shift := uint(0); ; shift += 7 { 1930 if shift >= 64 { 1931 return ErrIntOverflowRpc 1932 } 1933 if iNdEx >= l { 1934 return io.ErrUnexpectedEOF 1935 } 1936 b := dAtA[iNdEx] 1937 iNdEx++ 1938 msglen |= int(b&0x7F) << shift 1939 if b < 0x80 { 1940 break 1941 } 1942 } 1943 if msglen < 0 { 1944 return ErrInvalidLengthRpc 1945 } 1946 postIndex := iNdEx + msglen 1947 if postIndex < 0 { 1948 return ErrInvalidLengthRpc 1949 } 1950 if postIndex > l { 1951 return io.ErrUnexpectedEOF 1952 } 1953 if err := m.Labels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1954 return err 1955 } 1956 iNdEx = postIndex 1957 case 2: 1958 if wireType != 0 { 1959 return fmt.Errorf("proto: wrong wireType = %d for field MinTime", wireType) 1960 } 1961 m.MinTime = 0 1962 for shift := uint(0); ; shift += 7 { 1963 if shift >= 64 { 1964 return ErrIntOverflowRpc 1965 } 1966 if iNdEx >= l { 1967 return io.ErrUnexpectedEOF 1968 } 1969 b := dAtA[iNdEx] 1970 iNdEx++ 1971 m.MinTime |= int64(b&0x7F) << shift 1972 if b < 0x80 { 1973 break 1974 } 1975 } 1976 case 3: 1977 if wireType != 0 { 1978 return fmt.Errorf("proto: wrong wireType = %d for field MaxTime", wireType) 1979 } 1980 m.MaxTime = 0 1981 for shift := uint(0); ; shift += 7 { 1982 if shift >= 64 { 1983 return ErrIntOverflowRpc 1984 } 1985 if iNdEx >= l { 1986 return io.ErrUnexpectedEOF 1987 } 1988 b := dAtA[iNdEx] 1989 iNdEx++ 1990 m.MaxTime |= int64(b&0x7F) << shift 1991 if b < 0x80 { 1992 break 1993 } 1994 } 1995 default: 1996 iNdEx = preIndex 1997 skippy, err := skipRpc(dAtA[iNdEx:]) 1998 if err != nil { 1999 return err 2000 } 2001 if (skippy < 0) || (iNdEx+skippy) < 0 { 2002 return ErrInvalidLengthRpc 2003 } 2004 if (iNdEx + skippy) > l { 2005 return io.ErrUnexpectedEOF 2006 } 2007 iNdEx += skippy 2008 } 2009 } 2010 2011 if iNdEx > l { 2012 return io.ErrUnexpectedEOF 2013 } 2014 return nil 2015 } 2016 func skipRpc(dAtA []byte) (n int, err error) { 2017 l := len(dAtA) 2018 iNdEx := 0 2019 depth := 0 2020 for iNdEx < l { 2021 var wire uint64 2022 for shift := uint(0); ; shift += 7 { 2023 if shift >= 64 { 2024 return 0, ErrIntOverflowRpc 2025 } 2026 if iNdEx >= l { 2027 return 0, io.ErrUnexpectedEOF 2028 } 2029 b := dAtA[iNdEx] 2030 iNdEx++ 2031 wire |= (uint64(b) & 0x7F) << shift 2032 if b < 0x80 { 2033 break 2034 } 2035 } 2036 wireType := int(wire & 0x7) 2037 switch wireType { 2038 case 0: 2039 for shift := uint(0); ; shift += 7 { 2040 if shift >= 64 { 2041 return 0, ErrIntOverflowRpc 2042 } 2043 if iNdEx >= l { 2044 return 0, io.ErrUnexpectedEOF 2045 } 2046 iNdEx++ 2047 if dAtA[iNdEx-1] < 0x80 { 2048 break 2049 } 2050 } 2051 case 1: 2052 iNdEx += 8 2053 case 2: 2054 var length int 2055 for shift := uint(0); ; shift += 7 { 2056 if shift >= 64 { 2057 return 0, ErrIntOverflowRpc 2058 } 2059 if iNdEx >= l { 2060 return 0, io.ErrUnexpectedEOF 2061 } 2062 b := dAtA[iNdEx] 2063 iNdEx++ 2064 length |= (int(b) & 0x7F) << shift 2065 if b < 0x80 { 2066 break 2067 } 2068 } 2069 if length < 0 { 2070 return 0, ErrInvalidLengthRpc 2071 } 2072 iNdEx += length 2073 case 3: 2074 depth++ 2075 case 4: 2076 if depth == 0 { 2077 return 0, ErrUnexpectedEndOfGroupRpc 2078 } 2079 depth-- 2080 case 5: 2081 iNdEx += 4 2082 default: 2083 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 2084 } 2085 if iNdEx < 0 { 2086 return 0, ErrInvalidLengthRpc 2087 } 2088 if depth == 0 { 2089 return iNdEx, nil 2090 } 2091 } 2092 return 0, io.ErrUnexpectedEOF 2093 } 2094 2095 var ( 2096 ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") 2097 ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") 2098 ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group") 2099 )