github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/dbnode/generated/proto/namespace/namespace.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/m3db/m3/src/dbnode/generated/proto/namespace/namespace.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 namespace is a generated protocol buffer package. 26 27 It is generated from these files: 28 github.com/m3db/m3/src/dbnode/generated/proto/namespace/namespace.proto 29 github.com/m3db/m3/src/dbnode/generated/proto/namespace/schema.proto 30 31 It has these top-level messages: 32 RetentionOptions 33 IndexOptions 34 NamespaceOptions 35 AggregationOptions 36 Aggregation 37 AggregatedAttributes 38 DownsampleOptions 39 StagingState 40 Registry 41 NamespaceRuntimeOptions 42 ExtendedOptions 43 SchemaOptions 44 SchemaHistory 45 FileDescriptorSet 46 */ 47 package namespace 48 49 import proto "github.com/gogo/protobuf/proto" 50 import fmt "fmt" 51 import math "math" 52 import google_protobuf "github.com/gogo/protobuf/types" 53 import google_protobuf1 "github.com/gogo/protobuf/types" 54 55 import io "io" 56 57 // Reference imports to suppress errors if they are not otherwise used. 58 var _ = proto.Marshal 59 var _ = fmt.Errorf 60 var _ = math.Inf 61 62 // This is a compile-time assertion to ensure that this generated file 63 // is compatible with the proto package it is being compiled against. 64 // A compilation error at this line likely means your copy of the 65 // proto package needs to be updated. 66 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 67 68 // StagingStatus represents the current status of the namespace. 69 type StagingStatus int32 70 71 const ( 72 // Namespace has an unknown staging status. 73 StagingStatus_UNKNOWN StagingStatus = 0 74 // Namespace is being initialized and is not ready to receive traffic. 75 StagingStatus_INITIALIZING StagingStatus = 1 76 // Namespace is ready to receive traffic. 77 StagingStatus_READY StagingStatus = 2 78 ) 79 80 var StagingStatus_name = map[int32]string{ 81 0: "UNKNOWN", 82 1: "INITIALIZING", 83 2: "READY", 84 } 85 var StagingStatus_value = map[string]int32{ 86 "UNKNOWN": 0, 87 "INITIALIZING": 1, 88 "READY": 2, 89 } 90 91 func (x StagingStatus) String() string { 92 return proto.EnumName(StagingStatus_name, int32(x)) 93 } 94 func (StagingStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{0} } 95 96 type RetentionOptions struct { 97 RetentionPeriodNanos int64 `protobuf:"varint,1,opt,name=retentionPeriodNanos,proto3" json:"retentionPeriodNanos,omitempty"` 98 BlockSizeNanos int64 `protobuf:"varint,2,opt,name=blockSizeNanos,proto3" json:"blockSizeNanos,omitempty"` 99 BufferFutureNanos int64 `protobuf:"varint,3,opt,name=bufferFutureNanos,proto3" json:"bufferFutureNanos,omitempty"` 100 BufferPastNanos int64 `protobuf:"varint,4,opt,name=bufferPastNanos,proto3" json:"bufferPastNanos,omitempty"` 101 BlockDataExpiry bool `protobuf:"varint,5,opt,name=blockDataExpiry,proto3" json:"blockDataExpiry,omitempty"` 102 BlockDataExpiryAfterNotAccessPeriodNanos int64 `protobuf:"varint,6,opt,name=blockDataExpiryAfterNotAccessPeriodNanos,proto3" json:"blockDataExpiryAfterNotAccessPeriodNanos,omitempty"` 103 FutureRetentionPeriodNanos int64 `protobuf:"varint,7,opt,name=futureRetentionPeriodNanos,proto3" json:"futureRetentionPeriodNanos,omitempty"` 104 } 105 106 func (m *RetentionOptions) Reset() { *m = RetentionOptions{} } 107 func (m *RetentionOptions) String() string { return proto.CompactTextString(m) } 108 func (*RetentionOptions) ProtoMessage() {} 109 func (*RetentionOptions) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{0} } 110 111 func (m *RetentionOptions) GetRetentionPeriodNanos() int64 { 112 if m != nil { 113 return m.RetentionPeriodNanos 114 } 115 return 0 116 } 117 118 func (m *RetentionOptions) GetBlockSizeNanos() int64 { 119 if m != nil { 120 return m.BlockSizeNanos 121 } 122 return 0 123 } 124 125 func (m *RetentionOptions) GetBufferFutureNanos() int64 { 126 if m != nil { 127 return m.BufferFutureNanos 128 } 129 return 0 130 } 131 132 func (m *RetentionOptions) GetBufferPastNanos() int64 { 133 if m != nil { 134 return m.BufferPastNanos 135 } 136 return 0 137 } 138 139 func (m *RetentionOptions) GetBlockDataExpiry() bool { 140 if m != nil { 141 return m.BlockDataExpiry 142 } 143 return false 144 } 145 146 func (m *RetentionOptions) GetBlockDataExpiryAfterNotAccessPeriodNanos() int64 { 147 if m != nil { 148 return m.BlockDataExpiryAfterNotAccessPeriodNanos 149 } 150 return 0 151 } 152 153 func (m *RetentionOptions) GetFutureRetentionPeriodNanos() int64 { 154 if m != nil { 155 return m.FutureRetentionPeriodNanos 156 } 157 return 0 158 } 159 160 type IndexOptions struct { 161 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 162 BlockSizeNanos int64 `protobuf:"varint,2,opt,name=blockSizeNanos,proto3" json:"blockSizeNanos,omitempty"` 163 } 164 165 func (m *IndexOptions) Reset() { *m = IndexOptions{} } 166 func (m *IndexOptions) String() string { return proto.CompactTextString(m) } 167 func (*IndexOptions) ProtoMessage() {} 168 func (*IndexOptions) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{1} } 169 170 func (m *IndexOptions) GetEnabled() bool { 171 if m != nil { 172 return m.Enabled 173 } 174 return false 175 } 176 177 func (m *IndexOptions) GetBlockSizeNanos() int64 { 178 if m != nil { 179 return m.BlockSizeNanos 180 } 181 return 0 182 } 183 184 type NamespaceOptions struct { 185 BootstrapEnabled bool `protobuf:"varint,1,opt,name=bootstrapEnabled,proto3" json:"bootstrapEnabled,omitempty"` 186 FlushEnabled bool `protobuf:"varint,2,opt,name=flushEnabled,proto3" json:"flushEnabled,omitempty"` 187 WritesToCommitLog bool `protobuf:"varint,3,opt,name=writesToCommitLog,proto3" json:"writesToCommitLog,omitempty"` 188 CleanupEnabled bool `protobuf:"varint,4,opt,name=cleanupEnabled,proto3" json:"cleanupEnabled,omitempty"` 189 RepairEnabled bool `protobuf:"varint,5,opt,name=repairEnabled,proto3" json:"repairEnabled,omitempty"` 190 RetentionOptions *RetentionOptions `protobuf:"bytes,6,opt,name=retentionOptions" json:"retentionOptions,omitempty"` 191 SnapshotEnabled bool `protobuf:"varint,7,opt,name=snapshotEnabled,proto3" json:"snapshotEnabled,omitempty"` 192 IndexOptions *IndexOptions `protobuf:"bytes,8,opt,name=indexOptions" json:"indexOptions,omitempty"` 193 SchemaOptions *SchemaOptions `protobuf:"bytes,9,opt,name=schemaOptions" json:"schemaOptions,omitempty"` 194 ColdWritesEnabled bool `protobuf:"varint,10,opt,name=coldWritesEnabled,proto3" json:"coldWritesEnabled,omitempty"` 195 RuntimeOptions *NamespaceRuntimeOptions `protobuf:"bytes,11,opt,name=runtimeOptions" json:"runtimeOptions,omitempty"` 196 CacheBlocksOnRetrieve *google_protobuf1.BoolValue `protobuf:"bytes,12,opt,name=cacheBlocksOnRetrieve" json:"cacheBlocksOnRetrieve,omitempty"` 197 AggregationOptions *AggregationOptions `protobuf:"bytes,13,opt,name=aggregationOptions" json:"aggregationOptions,omitempty"` 198 StagingState *StagingState `protobuf:"bytes,14,opt,name=stagingState" json:"stagingState,omitempty"` 199 // Use larger field ID to ensure new fields are always added before extended options. 200 ExtendedOptions *ExtendedOptions `protobuf:"bytes,1000,opt,name=extendedOptions" json:"extendedOptions,omitempty"` 201 } 202 203 func (m *NamespaceOptions) Reset() { *m = NamespaceOptions{} } 204 func (m *NamespaceOptions) String() string { return proto.CompactTextString(m) } 205 func (*NamespaceOptions) ProtoMessage() {} 206 func (*NamespaceOptions) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{2} } 207 208 func (m *NamespaceOptions) GetBootstrapEnabled() bool { 209 if m != nil { 210 return m.BootstrapEnabled 211 } 212 return false 213 } 214 215 func (m *NamespaceOptions) GetFlushEnabled() bool { 216 if m != nil { 217 return m.FlushEnabled 218 } 219 return false 220 } 221 222 func (m *NamespaceOptions) GetWritesToCommitLog() bool { 223 if m != nil { 224 return m.WritesToCommitLog 225 } 226 return false 227 } 228 229 func (m *NamespaceOptions) GetCleanupEnabled() bool { 230 if m != nil { 231 return m.CleanupEnabled 232 } 233 return false 234 } 235 236 func (m *NamespaceOptions) GetRepairEnabled() bool { 237 if m != nil { 238 return m.RepairEnabled 239 } 240 return false 241 } 242 243 func (m *NamespaceOptions) GetRetentionOptions() *RetentionOptions { 244 if m != nil { 245 return m.RetentionOptions 246 } 247 return nil 248 } 249 250 func (m *NamespaceOptions) GetSnapshotEnabled() bool { 251 if m != nil { 252 return m.SnapshotEnabled 253 } 254 return false 255 } 256 257 func (m *NamespaceOptions) GetIndexOptions() *IndexOptions { 258 if m != nil { 259 return m.IndexOptions 260 } 261 return nil 262 } 263 264 func (m *NamespaceOptions) GetSchemaOptions() *SchemaOptions { 265 if m != nil { 266 return m.SchemaOptions 267 } 268 return nil 269 } 270 271 func (m *NamespaceOptions) GetColdWritesEnabled() bool { 272 if m != nil { 273 return m.ColdWritesEnabled 274 } 275 return false 276 } 277 278 func (m *NamespaceOptions) GetRuntimeOptions() *NamespaceRuntimeOptions { 279 if m != nil { 280 return m.RuntimeOptions 281 } 282 return nil 283 } 284 285 func (m *NamespaceOptions) GetCacheBlocksOnRetrieve() *google_protobuf1.BoolValue { 286 if m != nil { 287 return m.CacheBlocksOnRetrieve 288 } 289 return nil 290 } 291 292 func (m *NamespaceOptions) GetAggregationOptions() *AggregationOptions { 293 if m != nil { 294 return m.AggregationOptions 295 } 296 return nil 297 } 298 299 func (m *NamespaceOptions) GetStagingState() *StagingState { 300 if m != nil { 301 return m.StagingState 302 } 303 return nil 304 } 305 306 func (m *NamespaceOptions) GetExtendedOptions() *ExtendedOptions { 307 if m != nil { 308 return m.ExtendedOptions 309 } 310 return nil 311 } 312 313 // AggregationOptions is a set of options for aggregating data 314 // within the namespace. 315 type AggregationOptions struct { 316 // aggregations is a repeated field to support the ability to send aggregated data 317 // to a namespace also receiving unaggregated data. In this case, the namespace will 318 // have one Aggregation with aggregated set to false and another with aggregated set to true. 319 Aggregations []*Aggregation `protobuf:"bytes,1,rep,name=aggregations" json:"aggregations,omitempty"` 320 } 321 322 func (m *AggregationOptions) Reset() { *m = AggregationOptions{} } 323 func (m *AggregationOptions) String() string { return proto.CompactTextString(m) } 324 func (*AggregationOptions) ProtoMessage() {} 325 func (*AggregationOptions) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{3} } 326 327 func (m *AggregationOptions) GetAggregations() []*Aggregation { 328 if m != nil { 329 return m.Aggregations 330 } 331 return nil 332 } 333 334 // Aggregation describes data points within the namespace. 335 type Aggregation struct { 336 // aggregated is true if data points are aggregated, false otherwise. 337 Aggregated bool `protobuf:"varint,1,opt,name=aggregated,proto3" json:"aggregated,omitempty"` 338 // attributes specifies how to aggregate data when aggregated is set to true. 339 // This field is ignored when aggregated is false and required when aggregated 340 // is true. 341 Attributes *AggregatedAttributes `protobuf:"bytes,2,opt,name=attributes" json:"attributes,omitempty"` 342 } 343 344 func (m *Aggregation) Reset() { *m = Aggregation{} } 345 func (m *Aggregation) String() string { return proto.CompactTextString(m) } 346 func (*Aggregation) ProtoMessage() {} 347 func (*Aggregation) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{4} } 348 349 func (m *Aggregation) GetAggregated() bool { 350 if m != nil { 351 return m.Aggregated 352 } 353 return false 354 } 355 356 func (m *Aggregation) GetAttributes() *AggregatedAttributes { 357 if m != nil { 358 return m.Attributes 359 } 360 return nil 361 } 362 363 // AggregatedAttributes describe how to aggregate data. 364 type AggregatedAttributes struct { 365 // resolutionNanos is the time range to aggregate data across. 366 ResolutionNanos int64 `protobuf:"varint,1,opt,name=resolutionNanos,proto3" json:"resolutionNanos,omitempty"` 367 DownsampleOptions *DownsampleOptions `protobuf:"bytes,2,opt,name=downsampleOptions" json:"downsampleOptions,omitempty"` 368 } 369 370 func (m *AggregatedAttributes) Reset() { *m = AggregatedAttributes{} } 371 func (m *AggregatedAttributes) String() string { return proto.CompactTextString(m) } 372 func (*AggregatedAttributes) ProtoMessage() {} 373 func (*AggregatedAttributes) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{5} } 374 375 func (m *AggregatedAttributes) GetResolutionNanos() int64 { 376 if m != nil { 377 return m.ResolutionNanos 378 } 379 return 0 380 } 381 382 func (m *AggregatedAttributes) GetDownsampleOptions() *DownsampleOptions { 383 if m != nil { 384 return m.DownsampleOptions 385 } 386 return nil 387 } 388 389 // DownsampleOptions is a set of options related to downsampling data. 390 type DownsampleOptions struct { 391 // all indicates whether to send data points to this namespace. If false, 392 // data points must be sent via rollup/recording rules. Defaults to true. 393 All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"` 394 } 395 396 func (m *DownsampleOptions) Reset() { *m = DownsampleOptions{} } 397 func (m *DownsampleOptions) String() string { return proto.CompactTextString(m) } 398 func (*DownsampleOptions) ProtoMessage() {} 399 func (*DownsampleOptions) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{6} } 400 401 func (m *DownsampleOptions) GetAll() bool { 402 if m != nil { 403 return m.All 404 } 405 return false 406 } 407 408 // StagingState is state related to the namespace's availability for 409 // reads and writes. 410 type StagingState struct { 411 Status StagingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=namespace.StagingStatus" json:"status,omitempty"` 412 } 413 414 func (m *StagingState) Reset() { *m = StagingState{} } 415 func (m *StagingState) String() string { return proto.CompactTextString(m) } 416 func (*StagingState) ProtoMessage() {} 417 func (*StagingState) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{7} } 418 419 func (m *StagingState) GetStatus() StagingStatus { 420 if m != nil { 421 return m.Status 422 } 423 return StagingStatus_UNKNOWN 424 } 425 426 type Registry struct { 427 Namespaces map[string]*NamespaceOptions `protobuf:"bytes,1,rep,name=namespaces" json:"namespaces,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` 428 } 429 430 func (m *Registry) Reset() { *m = Registry{} } 431 func (m *Registry) String() string { return proto.CompactTextString(m) } 432 func (*Registry) ProtoMessage() {} 433 func (*Registry) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{8} } 434 435 func (m *Registry) GetNamespaces() map[string]*NamespaceOptions { 436 if m != nil { 437 return m.Namespaces 438 } 439 return nil 440 } 441 442 type NamespaceRuntimeOptions struct { 443 WriteIndexingPerCPUConcurrency *google_protobuf1.DoubleValue `protobuf:"bytes,1,opt,name=writeIndexingPerCPUConcurrency" json:"writeIndexingPerCPUConcurrency,omitempty"` 444 FlushIndexingPerCPUConcurrency *google_protobuf1.DoubleValue `protobuf:"bytes,2,opt,name=flushIndexingPerCPUConcurrency" json:"flushIndexingPerCPUConcurrency,omitempty"` 445 } 446 447 func (m *NamespaceRuntimeOptions) Reset() { *m = NamespaceRuntimeOptions{} } 448 func (m *NamespaceRuntimeOptions) String() string { return proto.CompactTextString(m) } 449 func (*NamespaceRuntimeOptions) ProtoMessage() {} 450 func (*NamespaceRuntimeOptions) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{9} } 451 452 func (m *NamespaceRuntimeOptions) GetWriteIndexingPerCPUConcurrency() *google_protobuf1.DoubleValue { 453 if m != nil { 454 return m.WriteIndexingPerCPUConcurrency 455 } 456 return nil 457 } 458 459 func (m *NamespaceRuntimeOptions) GetFlushIndexingPerCPUConcurrency() *google_protobuf1.DoubleValue { 460 if m != nil { 461 return m.FlushIndexingPerCPUConcurrency 462 } 463 return nil 464 } 465 466 type ExtendedOptions struct { 467 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 468 Options *google_protobuf.Struct `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"` 469 } 470 471 func (m *ExtendedOptions) Reset() { *m = ExtendedOptions{} } 472 func (m *ExtendedOptions) String() string { return proto.CompactTextString(m) } 473 func (*ExtendedOptions) ProtoMessage() {} 474 func (*ExtendedOptions) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{10} } 475 476 func (m *ExtendedOptions) GetType() string { 477 if m != nil { 478 return m.Type 479 } 480 return "" 481 } 482 483 func (m *ExtendedOptions) GetOptions() *google_protobuf.Struct { 484 if m != nil { 485 return m.Options 486 } 487 return nil 488 } 489 490 func init() { 491 proto.RegisterType((*RetentionOptions)(nil), "namespace.RetentionOptions") 492 proto.RegisterType((*IndexOptions)(nil), "namespace.IndexOptions") 493 proto.RegisterType((*NamespaceOptions)(nil), "namespace.NamespaceOptions") 494 proto.RegisterType((*AggregationOptions)(nil), "namespace.AggregationOptions") 495 proto.RegisterType((*Aggregation)(nil), "namespace.Aggregation") 496 proto.RegisterType((*AggregatedAttributes)(nil), "namespace.AggregatedAttributes") 497 proto.RegisterType((*DownsampleOptions)(nil), "namespace.DownsampleOptions") 498 proto.RegisterType((*StagingState)(nil), "namespace.StagingState") 499 proto.RegisterType((*Registry)(nil), "namespace.Registry") 500 proto.RegisterType((*NamespaceRuntimeOptions)(nil), "namespace.NamespaceRuntimeOptions") 501 proto.RegisterType((*ExtendedOptions)(nil), "namespace.ExtendedOptions") 502 proto.RegisterEnum("namespace.StagingStatus", StagingStatus_name, StagingStatus_value) 503 } 504 func (m *RetentionOptions) Marshal() (dAtA []byte, err error) { 505 size := m.Size() 506 dAtA = make([]byte, size) 507 n, err := m.MarshalTo(dAtA) 508 if err != nil { 509 return nil, err 510 } 511 return dAtA[:n], nil 512 } 513 514 func (m *RetentionOptions) MarshalTo(dAtA []byte) (int, error) { 515 var i int 516 _ = i 517 var l int 518 _ = l 519 if m.RetentionPeriodNanos != 0 { 520 dAtA[i] = 0x8 521 i++ 522 i = encodeVarintNamespace(dAtA, i, uint64(m.RetentionPeriodNanos)) 523 } 524 if m.BlockSizeNanos != 0 { 525 dAtA[i] = 0x10 526 i++ 527 i = encodeVarintNamespace(dAtA, i, uint64(m.BlockSizeNanos)) 528 } 529 if m.BufferFutureNanos != 0 { 530 dAtA[i] = 0x18 531 i++ 532 i = encodeVarintNamespace(dAtA, i, uint64(m.BufferFutureNanos)) 533 } 534 if m.BufferPastNanos != 0 { 535 dAtA[i] = 0x20 536 i++ 537 i = encodeVarintNamespace(dAtA, i, uint64(m.BufferPastNanos)) 538 } 539 if m.BlockDataExpiry { 540 dAtA[i] = 0x28 541 i++ 542 if m.BlockDataExpiry { 543 dAtA[i] = 1 544 } else { 545 dAtA[i] = 0 546 } 547 i++ 548 } 549 if m.BlockDataExpiryAfterNotAccessPeriodNanos != 0 { 550 dAtA[i] = 0x30 551 i++ 552 i = encodeVarintNamespace(dAtA, i, uint64(m.BlockDataExpiryAfterNotAccessPeriodNanos)) 553 } 554 if m.FutureRetentionPeriodNanos != 0 { 555 dAtA[i] = 0x38 556 i++ 557 i = encodeVarintNamespace(dAtA, i, uint64(m.FutureRetentionPeriodNanos)) 558 } 559 return i, nil 560 } 561 562 func (m *IndexOptions) Marshal() (dAtA []byte, err error) { 563 size := m.Size() 564 dAtA = make([]byte, size) 565 n, err := m.MarshalTo(dAtA) 566 if err != nil { 567 return nil, err 568 } 569 return dAtA[:n], nil 570 } 571 572 func (m *IndexOptions) MarshalTo(dAtA []byte) (int, error) { 573 var i int 574 _ = i 575 var l int 576 _ = l 577 if m.Enabled { 578 dAtA[i] = 0x8 579 i++ 580 if m.Enabled { 581 dAtA[i] = 1 582 } else { 583 dAtA[i] = 0 584 } 585 i++ 586 } 587 if m.BlockSizeNanos != 0 { 588 dAtA[i] = 0x10 589 i++ 590 i = encodeVarintNamespace(dAtA, i, uint64(m.BlockSizeNanos)) 591 } 592 return i, nil 593 } 594 595 func (m *NamespaceOptions) Marshal() (dAtA []byte, err error) { 596 size := m.Size() 597 dAtA = make([]byte, size) 598 n, err := m.MarshalTo(dAtA) 599 if err != nil { 600 return nil, err 601 } 602 return dAtA[:n], nil 603 } 604 605 func (m *NamespaceOptions) MarshalTo(dAtA []byte) (int, error) { 606 var i int 607 _ = i 608 var l int 609 _ = l 610 if m.BootstrapEnabled { 611 dAtA[i] = 0x8 612 i++ 613 if m.BootstrapEnabled { 614 dAtA[i] = 1 615 } else { 616 dAtA[i] = 0 617 } 618 i++ 619 } 620 if m.FlushEnabled { 621 dAtA[i] = 0x10 622 i++ 623 if m.FlushEnabled { 624 dAtA[i] = 1 625 } else { 626 dAtA[i] = 0 627 } 628 i++ 629 } 630 if m.WritesToCommitLog { 631 dAtA[i] = 0x18 632 i++ 633 if m.WritesToCommitLog { 634 dAtA[i] = 1 635 } else { 636 dAtA[i] = 0 637 } 638 i++ 639 } 640 if m.CleanupEnabled { 641 dAtA[i] = 0x20 642 i++ 643 if m.CleanupEnabled { 644 dAtA[i] = 1 645 } else { 646 dAtA[i] = 0 647 } 648 i++ 649 } 650 if m.RepairEnabled { 651 dAtA[i] = 0x28 652 i++ 653 if m.RepairEnabled { 654 dAtA[i] = 1 655 } else { 656 dAtA[i] = 0 657 } 658 i++ 659 } 660 if m.RetentionOptions != nil { 661 dAtA[i] = 0x32 662 i++ 663 i = encodeVarintNamespace(dAtA, i, uint64(m.RetentionOptions.Size())) 664 n1, err := m.RetentionOptions.MarshalTo(dAtA[i:]) 665 if err != nil { 666 return 0, err 667 } 668 i += n1 669 } 670 if m.SnapshotEnabled { 671 dAtA[i] = 0x38 672 i++ 673 if m.SnapshotEnabled { 674 dAtA[i] = 1 675 } else { 676 dAtA[i] = 0 677 } 678 i++ 679 } 680 if m.IndexOptions != nil { 681 dAtA[i] = 0x42 682 i++ 683 i = encodeVarintNamespace(dAtA, i, uint64(m.IndexOptions.Size())) 684 n2, err := m.IndexOptions.MarshalTo(dAtA[i:]) 685 if err != nil { 686 return 0, err 687 } 688 i += n2 689 } 690 if m.SchemaOptions != nil { 691 dAtA[i] = 0x4a 692 i++ 693 i = encodeVarintNamespace(dAtA, i, uint64(m.SchemaOptions.Size())) 694 n3, err := m.SchemaOptions.MarshalTo(dAtA[i:]) 695 if err != nil { 696 return 0, err 697 } 698 i += n3 699 } 700 if m.ColdWritesEnabled { 701 dAtA[i] = 0x50 702 i++ 703 if m.ColdWritesEnabled { 704 dAtA[i] = 1 705 } else { 706 dAtA[i] = 0 707 } 708 i++ 709 } 710 if m.RuntimeOptions != nil { 711 dAtA[i] = 0x5a 712 i++ 713 i = encodeVarintNamespace(dAtA, i, uint64(m.RuntimeOptions.Size())) 714 n4, err := m.RuntimeOptions.MarshalTo(dAtA[i:]) 715 if err != nil { 716 return 0, err 717 } 718 i += n4 719 } 720 if m.CacheBlocksOnRetrieve != nil { 721 dAtA[i] = 0x62 722 i++ 723 i = encodeVarintNamespace(dAtA, i, uint64(m.CacheBlocksOnRetrieve.Size())) 724 n5, err := m.CacheBlocksOnRetrieve.MarshalTo(dAtA[i:]) 725 if err != nil { 726 return 0, err 727 } 728 i += n5 729 } 730 if m.AggregationOptions != nil { 731 dAtA[i] = 0x6a 732 i++ 733 i = encodeVarintNamespace(dAtA, i, uint64(m.AggregationOptions.Size())) 734 n6, err := m.AggregationOptions.MarshalTo(dAtA[i:]) 735 if err != nil { 736 return 0, err 737 } 738 i += n6 739 } 740 if m.StagingState != nil { 741 dAtA[i] = 0x72 742 i++ 743 i = encodeVarintNamespace(dAtA, i, uint64(m.StagingState.Size())) 744 n7, err := m.StagingState.MarshalTo(dAtA[i:]) 745 if err != nil { 746 return 0, err 747 } 748 i += n7 749 } 750 if m.ExtendedOptions != nil { 751 dAtA[i] = 0xc2 752 i++ 753 dAtA[i] = 0x3e 754 i++ 755 i = encodeVarintNamespace(dAtA, i, uint64(m.ExtendedOptions.Size())) 756 n8, err := m.ExtendedOptions.MarshalTo(dAtA[i:]) 757 if err != nil { 758 return 0, err 759 } 760 i += n8 761 } 762 return i, nil 763 } 764 765 func (m *AggregationOptions) Marshal() (dAtA []byte, err error) { 766 size := m.Size() 767 dAtA = make([]byte, size) 768 n, err := m.MarshalTo(dAtA) 769 if err != nil { 770 return nil, err 771 } 772 return dAtA[:n], nil 773 } 774 775 func (m *AggregationOptions) MarshalTo(dAtA []byte) (int, error) { 776 var i int 777 _ = i 778 var l int 779 _ = l 780 if len(m.Aggregations) > 0 { 781 for _, msg := range m.Aggregations { 782 dAtA[i] = 0xa 783 i++ 784 i = encodeVarintNamespace(dAtA, i, uint64(msg.Size())) 785 n, err := msg.MarshalTo(dAtA[i:]) 786 if err != nil { 787 return 0, err 788 } 789 i += n 790 } 791 } 792 return i, nil 793 } 794 795 func (m *Aggregation) Marshal() (dAtA []byte, err error) { 796 size := m.Size() 797 dAtA = make([]byte, size) 798 n, err := m.MarshalTo(dAtA) 799 if err != nil { 800 return nil, err 801 } 802 return dAtA[:n], nil 803 } 804 805 func (m *Aggregation) MarshalTo(dAtA []byte) (int, error) { 806 var i int 807 _ = i 808 var l int 809 _ = l 810 if m.Aggregated { 811 dAtA[i] = 0x8 812 i++ 813 if m.Aggregated { 814 dAtA[i] = 1 815 } else { 816 dAtA[i] = 0 817 } 818 i++ 819 } 820 if m.Attributes != nil { 821 dAtA[i] = 0x12 822 i++ 823 i = encodeVarintNamespace(dAtA, i, uint64(m.Attributes.Size())) 824 n9, err := m.Attributes.MarshalTo(dAtA[i:]) 825 if err != nil { 826 return 0, err 827 } 828 i += n9 829 } 830 return i, nil 831 } 832 833 func (m *AggregatedAttributes) Marshal() (dAtA []byte, err error) { 834 size := m.Size() 835 dAtA = make([]byte, size) 836 n, err := m.MarshalTo(dAtA) 837 if err != nil { 838 return nil, err 839 } 840 return dAtA[:n], nil 841 } 842 843 func (m *AggregatedAttributes) MarshalTo(dAtA []byte) (int, error) { 844 var i int 845 _ = i 846 var l int 847 _ = l 848 if m.ResolutionNanos != 0 { 849 dAtA[i] = 0x8 850 i++ 851 i = encodeVarintNamespace(dAtA, i, uint64(m.ResolutionNanos)) 852 } 853 if m.DownsampleOptions != nil { 854 dAtA[i] = 0x12 855 i++ 856 i = encodeVarintNamespace(dAtA, i, uint64(m.DownsampleOptions.Size())) 857 n10, err := m.DownsampleOptions.MarshalTo(dAtA[i:]) 858 if err != nil { 859 return 0, err 860 } 861 i += n10 862 } 863 return i, nil 864 } 865 866 func (m *DownsampleOptions) Marshal() (dAtA []byte, err error) { 867 size := m.Size() 868 dAtA = make([]byte, size) 869 n, err := m.MarshalTo(dAtA) 870 if err != nil { 871 return nil, err 872 } 873 return dAtA[:n], nil 874 } 875 876 func (m *DownsampleOptions) MarshalTo(dAtA []byte) (int, error) { 877 var i int 878 _ = i 879 var l int 880 _ = l 881 if m.All { 882 dAtA[i] = 0x8 883 i++ 884 if m.All { 885 dAtA[i] = 1 886 } else { 887 dAtA[i] = 0 888 } 889 i++ 890 } 891 return i, nil 892 } 893 894 func (m *StagingState) Marshal() (dAtA []byte, err error) { 895 size := m.Size() 896 dAtA = make([]byte, size) 897 n, err := m.MarshalTo(dAtA) 898 if err != nil { 899 return nil, err 900 } 901 return dAtA[:n], nil 902 } 903 904 func (m *StagingState) MarshalTo(dAtA []byte) (int, error) { 905 var i int 906 _ = i 907 var l int 908 _ = l 909 if m.Status != 0 { 910 dAtA[i] = 0x8 911 i++ 912 i = encodeVarintNamespace(dAtA, i, uint64(m.Status)) 913 } 914 return i, nil 915 } 916 917 func (m *Registry) Marshal() (dAtA []byte, err error) { 918 size := m.Size() 919 dAtA = make([]byte, size) 920 n, err := m.MarshalTo(dAtA) 921 if err != nil { 922 return nil, err 923 } 924 return dAtA[:n], nil 925 } 926 927 func (m *Registry) MarshalTo(dAtA []byte) (int, error) { 928 var i int 929 _ = i 930 var l int 931 _ = l 932 if len(m.Namespaces) > 0 { 933 for k, _ := range m.Namespaces { 934 dAtA[i] = 0xa 935 i++ 936 v := m.Namespaces[k] 937 msgSize := 0 938 if v != nil { 939 msgSize = v.Size() 940 msgSize += 1 + sovNamespace(uint64(msgSize)) 941 } 942 mapSize := 1 + len(k) + sovNamespace(uint64(len(k))) + msgSize 943 i = encodeVarintNamespace(dAtA, i, uint64(mapSize)) 944 dAtA[i] = 0xa 945 i++ 946 i = encodeVarintNamespace(dAtA, i, uint64(len(k))) 947 i += copy(dAtA[i:], k) 948 if v != nil { 949 dAtA[i] = 0x12 950 i++ 951 i = encodeVarintNamespace(dAtA, i, uint64(v.Size())) 952 n11, err := v.MarshalTo(dAtA[i:]) 953 if err != nil { 954 return 0, err 955 } 956 i += n11 957 } 958 } 959 } 960 return i, nil 961 } 962 963 func (m *NamespaceRuntimeOptions) Marshal() (dAtA []byte, err error) { 964 size := m.Size() 965 dAtA = make([]byte, size) 966 n, err := m.MarshalTo(dAtA) 967 if err != nil { 968 return nil, err 969 } 970 return dAtA[:n], nil 971 } 972 973 func (m *NamespaceRuntimeOptions) MarshalTo(dAtA []byte) (int, error) { 974 var i int 975 _ = i 976 var l int 977 _ = l 978 if m.WriteIndexingPerCPUConcurrency != nil { 979 dAtA[i] = 0xa 980 i++ 981 i = encodeVarintNamespace(dAtA, i, uint64(m.WriteIndexingPerCPUConcurrency.Size())) 982 n12, err := m.WriteIndexingPerCPUConcurrency.MarshalTo(dAtA[i:]) 983 if err != nil { 984 return 0, err 985 } 986 i += n12 987 } 988 if m.FlushIndexingPerCPUConcurrency != nil { 989 dAtA[i] = 0x12 990 i++ 991 i = encodeVarintNamespace(dAtA, i, uint64(m.FlushIndexingPerCPUConcurrency.Size())) 992 n13, err := m.FlushIndexingPerCPUConcurrency.MarshalTo(dAtA[i:]) 993 if err != nil { 994 return 0, err 995 } 996 i += n13 997 } 998 return i, nil 999 } 1000 1001 func (m *ExtendedOptions) Marshal() (dAtA []byte, err error) { 1002 size := m.Size() 1003 dAtA = make([]byte, size) 1004 n, err := m.MarshalTo(dAtA) 1005 if err != nil { 1006 return nil, err 1007 } 1008 return dAtA[:n], nil 1009 } 1010 1011 func (m *ExtendedOptions) MarshalTo(dAtA []byte) (int, error) { 1012 var i int 1013 _ = i 1014 var l int 1015 _ = l 1016 if len(m.Type) > 0 { 1017 dAtA[i] = 0xa 1018 i++ 1019 i = encodeVarintNamespace(dAtA, i, uint64(len(m.Type))) 1020 i += copy(dAtA[i:], m.Type) 1021 } 1022 if m.Options != nil { 1023 dAtA[i] = 0x12 1024 i++ 1025 i = encodeVarintNamespace(dAtA, i, uint64(m.Options.Size())) 1026 n14, err := m.Options.MarshalTo(dAtA[i:]) 1027 if err != nil { 1028 return 0, err 1029 } 1030 i += n14 1031 } 1032 return i, nil 1033 } 1034 1035 func encodeVarintNamespace(dAtA []byte, offset int, v uint64) int { 1036 for v >= 1<<7 { 1037 dAtA[offset] = uint8(v&0x7f | 0x80) 1038 v >>= 7 1039 offset++ 1040 } 1041 dAtA[offset] = uint8(v) 1042 return offset + 1 1043 } 1044 func (m *RetentionOptions) Size() (n int) { 1045 var l int 1046 _ = l 1047 if m.RetentionPeriodNanos != 0 { 1048 n += 1 + sovNamespace(uint64(m.RetentionPeriodNanos)) 1049 } 1050 if m.BlockSizeNanos != 0 { 1051 n += 1 + sovNamespace(uint64(m.BlockSizeNanos)) 1052 } 1053 if m.BufferFutureNanos != 0 { 1054 n += 1 + sovNamespace(uint64(m.BufferFutureNanos)) 1055 } 1056 if m.BufferPastNanos != 0 { 1057 n += 1 + sovNamespace(uint64(m.BufferPastNanos)) 1058 } 1059 if m.BlockDataExpiry { 1060 n += 2 1061 } 1062 if m.BlockDataExpiryAfterNotAccessPeriodNanos != 0 { 1063 n += 1 + sovNamespace(uint64(m.BlockDataExpiryAfterNotAccessPeriodNanos)) 1064 } 1065 if m.FutureRetentionPeriodNanos != 0 { 1066 n += 1 + sovNamespace(uint64(m.FutureRetentionPeriodNanos)) 1067 } 1068 return n 1069 } 1070 1071 func (m *IndexOptions) Size() (n int) { 1072 var l int 1073 _ = l 1074 if m.Enabled { 1075 n += 2 1076 } 1077 if m.BlockSizeNanos != 0 { 1078 n += 1 + sovNamespace(uint64(m.BlockSizeNanos)) 1079 } 1080 return n 1081 } 1082 1083 func (m *NamespaceOptions) Size() (n int) { 1084 var l int 1085 _ = l 1086 if m.BootstrapEnabled { 1087 n += 2 1088 } 1089 if m.FlushEnabled { 1090 n += 2 1091 } 1092 if m.WritesToCommitLog { 1093 n += 2 1094 } 1095 if m.CleanupEnabled { 1096 n += 2 1097 } 1098 if m.RepairEnabled { 1099 n += 2 1100 } 1101 if m.RetentionOptions != nil { 1102 l = m.RetentionOptions.Size() 1103 n += 1 + l + sovNamespace(uint64(l)) 1104 } 1105 if m.SnapshotEnabled { 1106 n += 2 1107 } 1108 if m.IndexOptions != nil { 1109 l = m.IndexOptions.Size() 1110 n += 1 + l + sovNamespace(uint64(l)) 1111 } 1112 if m.SchemaOptions != nil { 1113 l = m.SchemaOptions.Size() 1114 n += 1 + l + sovNamespace(uint64(l)) 1115 } 1116 if m.ColdWritesEnabled { 1117 n += 2 1118 } 1119 if m.RuntimeOptions != nil { 1120 l = m.RuntimeOptions.Size() 1121 n += 1 + l + sovNamespace(uint64(l)) 1122 } 1123 if m.CacheBlocksOnRetrieve != nil { 1124 l = m.CacheBlocksOnRetrieve.Size() 1125 n += 1 + l + sovNamespace(uint64(l)) 1126 } 1127 if m.AggregationOptions != nil { 1128 l = m.AggregationOptions.Size() 1129 n += 1 + l + sovNamespace(uint64(l)) 1130 } 1131 if m.StagingState != nil { 1132 l = m.StagingState.Size() 1133 n += 1 + l + sovNamespace(uint64(l)) 1134 } 1135 if m.ExtendedOptions != nil { 1136 l = m.ExtendedOptions.Size() 1137 n += 2 + l + sovNamespace(uint64(l)) 1138 } 1139 return n 1140 } 1141 1142 func (m *AggregationOptions) Size() (n int) { 1143 var l int 1144 _ = l 1145 if len(m.Aggregations) > 0 { 1146 for _, e := range m.Aggregations { 1147 l = e.Size() 1148 n += 1 + l + sovNamespace(uint64(l)) 1149 } 1150 } 1151 return n 1152 } 1153 1154 func (m *Aggregation) Size() (n int) { 1155 var l int 1156 _ = l 1157 if m.Aggregated { 1158 n += 2 1159 } 1160 if m.Attributes != nil { 1161 l = m.Attributes.Size() 1162 n += 1 + l + sovNamespace(uint64(l)) 1163 } 1164 return n 1165 } 1166 1167 func (m *AggregatedAttributes) Size() (n int) { 1168 var l int 1169 _ = l 1170 if m.ResolutionNanos != 0 { 1171 n += 1 + sovNamespace(uint64(m.ResolutionNanos)) 1172 } 1173 if m.DownsampleOptions != nil { 1174 l = m.DownsampleOptions.Size() 1175 n += 1 + l + sovNamespace(uint64(l)) 1176 } 1177 return n 1178 } 1179 1180 func (m *DownsampleOptions) Size() (n int) { 1181 var l int 1182 _ = l 1183 if m.All { 1184 n += 2 1185 } 1186 return n 1187 } 1188 1189 func (m *StagingState) Size() (n int) { 1190 var l int 1191 _ = l 1192 if m.Status != 0 { 1193 n += 1 + sovNamespace(uint64(m.Status)) 1194 } 1195 return n 1196 } 1197 1198 func (m *Registry) Size() (n int) { 1199 var l int 1200 _ = l 1201 if len(m.Namespaces) > 0 { 1202 for k, v := range m.Namespaces { 1203 _ = k 1204 _ = v 1205 l = 0 1206 if v != nil { 1207 l = v.Size() 1208 l += 1 + sovNamespace(uint64(l)) 1209 } 1210 mapEntrySize := 1 + len(k) + sovNamespace(uint64(len(k))) + l 1211 n += mapEntrySize + 1 + sovNamespace(uint64(mapEntrySize)) 1212 } 1213 } 1214 return n 1215 } 1216 1217 func (m *NamespaceRuntimeOptions) Size() (n int) { 1218 var l int 1219 _ = l 1220 if m.WriteIndexingPerCPUConcurrency != nil { 1221 l = m.WriteIndexingPerCPUConcurrency.Size() 1222 n += 1 + l + sovNamespace(uint64(l)) 1223 } 1224 if m.FlushIndexingPerCPUConcurrency != nil { 1225 l = m.FlushIndexingPerCPUConcurrency.Size() 1226 n += 1 + l + sovNamespace(uint64(l)) 1227 } 1228 return n 1229 } 1230 1231 func (m *ExtendedOptions) Size() (n int) { 1232 var l int 1233 _ = l 1234 l = len(m.Type) 1235 if l > 0 { 1236 n += 1 + l + sovNamespace(uint64(l)) 1237 } 1238 if m.Options != nil { 1239 l = m.Options.Size() 1240 n += 1 + l + sovNamespace(uint64(l)) 1241 } 1242 return n 1243 } 1244 1245 func sovNamespace(x uint64) (n int) { 1246 for { 1247 n++ 1248 x >>= 7 1249 if x == 0 { 1250 break 1251 } 1252 } 1253 return n 1254 } 1255 func sozNamespace(x uint64) (n int) { 1256 return sovNamespace(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1257 } 1258 func (m *RetentionOptions) Unmarshal(dAtA []byte) error { 1259 l := len(dAtA) 1260 iNdEx := 0 1261 for iNdEx < l { 1262 preIndex := iNdEx 1263 var wire uint64 1264 for shift := uint(0); ; shift += 7 { 1265 if shift >= 64 { 1266 return ErrIntOverflowNamespace 1267 } 1268 if iNdEx >= l { 1269 return io.ErrUnexpectedEOF 1270 } 1271 b := dAtA[iNdEx] 1272 iNdEx++ 1273 wire |= (uint64(b) & 0x7F) << shift 1274 if b < 0x80 { 1275 break 1276 } 1277 } 1278 fieldNum := int32(wire >> 3) 1279 wireType := int(wire & 0x7) 1280 if wireType == 4 { 1281 return fmt.Errorf("proto: RetentionOptions: wiretype end group for non-group") 1282 } 1283 if fieldNum <= 0 { 1284 return fmt.Errorf("proto: RetentionOptions: illegal tag %d (wire type %d)", fieldNum, wire) 1285 } 1286 switch fieldNum { 1287 case 1: 1288 if wireType != 0 { 1289 return fmt.Errorf("proto: wrong wireType = %d for field RetentionPeriodNanos", wireType) 1290 } 1291 m.RetentionPeriodNanos = 0 1292 for shift := uint(0); ; shift += 7 { 1293 if shift >= 64 { 1294 return ErrIntOverflowNamespace 1295 } 1296 if iNdEx >= l { 1297 return io.ErrUnexpectedEOF 1298 } 1299 b := dAtA[iNdEx] 1300 iNdEx++ 1301 m.RetentionPeriodNanos |= (int64(b) & 0x7F) << shift 1302 if b < 0x80 { 1303 break 1304 } 1305 } 1306 case 2: 1307 if wireType != 0 { 1308 return fmt.Errorf("proto: wrong wireType = %d for field BlockSizeNanos", wireType) 1309 } 1310 m.BlockSizeNanos = 0 1311 for shift := uint(0); ; shift += 7 { 1312 if shift >= 64 { 1313 return ErrIntOverflowNamespace 1314 } 1315 if iNdEx >= l { 1316 return io.ErrUnexpectedEOF 1317 } 1318 b := dAtA[iNdEx] 1319 iNdEx++ 1320 m.BlockSizeNanos |= (int64(b) & 0x7F) << shift 1321 if b < 0x80 { 1322 break 1323 } 1324 } 1325 case 3: 1326 if wireType != 0 { 1327 return fmt.Errorf("proto: wrong wireType = %d for field BufferFutureNanos", wireType) 1328 } 1329 m.BufferFutureNanos = 0 1330 for shift := uint(0); ; shift += 7 { 1331 if shift >= 64 { 1332 return ErrIntOverflowNamespace 1333 } 1334 if iNdEx >= l { 1335 return io.ErrUnexpectedEOF 1336 } 1337 b := dAtA[iNdEx] 1338 iNdEx++ 1339 m.BufferFutureNanos |= (int64(b) & 0x7F) << shift 1340 if b < 0x80 { 1341 break 1342 } 1343 } 1344 case 4: 1345 if wireType != 0 { 1346 return fmt.Errorf("proto: wrong wireType = %d for field BufferPastNanos", wireType) 1347 } 1348 m.BufferPastNanos = 0 1349 for shift := uint(0); ; shift += 7 { 1350 if shift >= 64 { 1351 return ErrIntOverflowNamespace 1352 } 1353 if iNdEx >= l { 1354 return io.ErrUnexpectedEOF 1355 } 1356 b := dAtA[iNdEx] 1357 iNdEx++ 1358 m.BufferPastNanos |= (int64(b) & 0x7F) << shift 1359 if b < 0x80 { 1360 break 1361 } 1362 } 1363 case 5: 1364 if wireType != 0 { 1365 return fmt.Errorf("proto: wrong wireType = %d for field BlockDataExpiry", wireType) 1366 } 1367 var v int 1368 for shift := uint(0); ; shift += 7 { 1369 if shift >= 64 { 1370 return ErrIntOverflowNamespace 1371 } 1372 if iNdEx >= l { 1373 return io.ErrUnexpectedEOF 1374 } 1375 b := dAtA[iNdEx] 1376 iNdEx++ 1377 v |= (int(b) & 0x7F) << shift 1378 if b < 0x80 { 1379 break 1380 } 1381 } 1382 m.BlockDataExpiry = bool(v != 0) 1383 case 6: 1384 if wireType != 0 { 1385 return fmt.Errorf("proto: wrong wireType = %d for field BlockDataExpiryAfterNotAccessPeriodNanos", wireType) 1386 } 1387 m.BlockDataExpiryAfterNotAccessPeriodNanos = 0 1388 for shift := uint(0); ; shift += 7 { 1389 if shift >= 64 { 1390 return ErrIntOverflowNamespace 1391 } 1392 if iNdEx >= l { 1393 return io.ErrUnexpectedEOF 1394 } 1395 b := dAtA[iNdEx] 1396 iNdEx++ 1397 m.BlockDataExpiryAfterNotAccessPeriodNanos |= (int64(b) & 0x7F) << shift 1398 if b < 0x80 { 1399 break 1400 } 1401 } 1402 case 7: 1403 if wireType != 0 { 1404 return fmt.Errorf("proto: wrong wireType = %d for field FutureRetentionPeriodNanos", wireType) 1405 } 1406 m.FutureRetentionPeriodNanos = 0 1407 for shift := uint(0); ; shift += 7 { 1408 if shift >= 64 { 1409 return ErrIntOverflowNamespace 1410 } 1411 if iNdEx >= l { 1412 return io.ErrUnexpectedEOF 1413 } 1414 b := dAtA[iNdEx] 1415 iNdEx++ 1416 m.FutureRetentionPeriodNanos |= (int64(b) & 0x7F) << shift 1417 if b < 0x80 { 1418 break 1419 } 1420 } 1421 default: 1422 iNdEx = preIndex 1423 skippy, err := skipNamespace(dAtA[iNdEx:]) 1424 if err != nil { 1425 return err 1426 } 1427 if skippy < 0 { 1428 return ErrInvalidLengthNamespace 1429 } 1430 if (iNdEx + skippy) > l { 1431 return io.ErrUnexpectedEOF 1432 } 1433 iNdEx += skippy 1434 } 1435 } 1436 1437 if iNdEx > l { 1438 return io.ErrUnexpectedEOF 1439 } 1440 return nil 1441 } 1442 func (m *IndexOptions) Unmarshal(dAtA []byte) error { 1443 l := len(dAtA) 1444 iNdEx := 0 1445 for iNdEx < l { 1446 preIndex := iNdEx 1447 var wire uint64 1448 for shift := uint(0); ; shift += 7 { 1449 if shift >= 64 { 1450 return ErrIntOverflowNamespace 1451 } 1452 if iNdEx >= l { 1453 return io.ErrUnexpectedEOF 1454 } 1455 b := dAtA[iNdEx] 1456 iNdEx++ 1457 wire |= (uint64(b) & 0x7F) << shift 1458 if b < 0x80 { 1459 break 1460 } 1461 } 1462 fieldNum := int32(wire >> 3) 1463 wireType := int(wire & 0x7) 1464 if wireType == 4 { 1465 return fmt.Errorf("proto: IndexOptions: wiretype end group for non-group") 1466 } 1467 if fieldNum <= 0 { 1468 return fmt.Errorf("proto: IndexOptions: illegal tag %d (wire type %d)", fieldNum, wire) 1469 } 1470 switch fieldNum { 1471 case 1: 1472 if wireType != 0 { 1473 return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) 1474 } 1475 var v int 1476 for shift := uint(0); ; shift += 7 { 1477 if shift >= 64 { 1478 return ErrIntOverflowNamespace 1479 } 1480 if iNdEx >= l { 1481 return io.ErrUnexpectedEOF 1482 } 1483 b := dAtA[iNdEx] 1484 iNdEx++ 1485 v |= (int(b) & 0x7F) << shift 1486 if b < 0x80 { 1487 break 1488 } 1489 } 1490 m.Enabled = bool(v != 0) 1491 case 2: 1492 if wireType != 0 { 1493 return fmt.Errorf("proto: wrong wireType = %d for field BlockSizeNanos", wireType) 1494 } 1495 m.BlockSizeNanos = 0 1496 for shift := uint(0); ; shift += 7 { 1497 if shift >= 64 { 1498 return ErrIntOverflowNamespace 1499 } 1500 if iNdEx >= l { 1501 return io.ErrUnexpectedEOF 1502 } 1503 b := dAtA[iNdEx] 1504 iNdEx++ 1505 m.BlockSizeNanos |= (int64(b) & 0x7F) << shift 1506 if b < 0x80 { 1507 break 1508 } 1509 } 1510 default: 1511 iNdEx = preIndex 1512 skippy, err := skipNamespace(dAtA[iNdEx:]) 1513 if err != nil { 1514 return err 1515 } 1516 if skippy < 0 { 1517 return ErrInvalidLengthNamespace 1518 } 1519 if (iNdEx + skippy) > l { 1520 return io.ErrUnexpectedEOF 1521 } 1522 iNdEx += skippy 1523 } 1524 } 1525 1526 if iNdEx > l { 1527 return io.ErrUnexpectedEOF 1528 } 1529 return nil 1530 } 1531 func (m *NamespaceOptions) Unmarshal(dAtA []byte) error { 1532 l := len(dAtA) 1533 iNdEx := 0 1534 for iNdEx < l { 1535 preIndex := iNdEx 1536 var wire uint64 1537 for shift := uint(0); ; shift += 7 { 1538 if shift >= 64 { 1539 return ErrIntOverflowNamespace 1540 } 1541 if iNdEx >= l { 1542 return io.ErrUnexpectedEOF 1543 } 1544 b := dAtA[iNdEx] 1545 iNdEx++ 1546 wire |= (uint64(b) & 0x7F) << shift 1547 if b < 0x80 { 1548 break 1549 } 1550 } 1551 fieldNum := int32(wire >> 3) 1552 wireType := int(wire & 0x7) 1553 if wireType == 4 { 1554 return fmt.Errorf("proto: NamespaceOptions: wiretype end group for non-group") 1555 } 1556 if fieldNum <= 0 { 1557 return fmt.Errorf("proto: NamespaceOptions: illegal tag %d (wire type %d)", fieldNum, wire) 1558 } 1559 switch fieldNum { 1560 case 1: 1561 if wireType != 0 { 1562 return fmt.Errorf("proto: wrong wireType = %d for field BootstrapEnabled", wireType) 1563 } 1564 var v int 1565 for shift := uint(0); ; shift += 7 { 1566 if shift >= 64 { 1567 return ErrIntOverflowNamespace 1568 } 1569 if iNdEx >= l { 1570 return io.ErrUnexpectedEOF 1571 } 1572 b := dAtA[iNdEx] 1573 iNdEx++ 1574 v |= (int(b) & 0x7F) << shift 1575 if b < 0x80 { 1576 break 1577 } 1578 } 1579 m.BootstrapEnabled = bool(v != 0) 1580 case 2: 1581 if wireType != 0 { 1582 return fmt.Errorf("proto: wrong wireType = %d for field FlushEnabled", wireType) 1583 } 1584 var v int 1585 for shift := uint(0); ; shift += 7 { 1586 if shift >= 64 { 1587 return ErrIntOverflowNamespace 1588 } 1589 if iNdEx >= l { 1590 return io.ErrUnexpectedEOF 1591 } 1592 b := dAtA[iNdEx] 1593 iNdEx++ 1594 v |= (int(b) & 0x7F) << shift 1595 if b < 0x80 { 1596 break 1597 } 1598 } 1599 m.FlushEnabled = bool(v != 0) 1600 case 3: 1601 if wireType != 0 { 1602 return fmt.Errorf("proto: wrong wireType = %d for field WritesToCommitLog", wireType) 1603 } 1604 var v int 1605 for shift := uint(0); ; shift += 7 { 1606 if shift >= 64 { 1607 return ErrIntOverflowNamespace 1608 } 1609 if iNdEx >= l { 1610 return io.ErrUnexpectedEOF 1611 } 1612 b := dAtA[iNdEx] 1613 iNdEx++ 1614 v |= (int(b) & 0x7F) << shift 1615 if b < 0x80 { 1616 break 1617 } 1618 } 1619 m.WritesToCommitLog = bool(v != 0) 1620 case 4: 1621 if wireType != 0 { 1622 return fmt.Errorf("proto: wrong wireType = %d for field CleanupEnabled", wireType) 1623 } 1624 var v int 1625 for shift := uint(0); ; shift += 7 { 1626 if shift >= 64 { 1627 return ErrIntOverflowNamespace 1628 } 1629 if iNdEx >= l { 1630 return io.ErrUnexpectedEOF 1631 } 1632 b := dAtA[iNdEx] 1633 iNdEx++ 1634 v |= (int(b) & 0x7F) << shift 1635 if b < 0x80 { 1636 break 1637 } 1638 } 1639 m.CleanupEnabled = bool(v != 0) 1640 case 5: 1641 if wireType != 0 { 1642 return fmt.Errorf("proto: wrong wireType = %d for field RepairEnabled", wireType) 1643 } 1644 var v int 1645 for shift := uint(0); ; shift += 7 { 1646 if shift >= 64 { 1647 return ErrIntOverflowNamespace 1648 } 1649 if iNdEx >= l { 1650 return io.ErrUnexpectedEOF 1651 } 1652 b := dAtA[iNdEx] 1653 iNdEx++ 1654 v |= (int(b) & 0x7F) << shift 1655 if b < 0x80 { 1656 break 1657 } 1658 } 1659 m.RepairEnabled = bool(v != 0) 1660 case 6: 1661 if wireType != 2 { 1662 return fmt.Errorf("proto: wrong wireType = %d for field RetentionOptions", wireType) 1663 } 1664 var msglen int 1665 for shift := uint(0); ; shift += 7 { 1666 if shift >= 64 { 1667 return ErrIntOverflowNamespace 1668 } 1669 if iNdEx >= l { 1670 return io.ErrUnexpectedEOF 1671 } 1672 b := dAtA[iNdEx] 1673 iNdEx++ 1674 msglen |= (int(b) & 0x7F) << shift 1675 if b < 0x80 { 1676 break 1677 } 1678 } 1679 if msglen < 0 { 1680 return ErrInvalidLengthNamespace 1681 } 1682 postIndex := iNdEx + msglen 1683 if postIndex > l { 1684 return io.ErrUnexpectedEOF 1685 } 1686 if m.RetentionOptions == nil { 1687 m.RetentionOptions = &RetentionOptions{} 1688 } 1689 if err := m.RetentionOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1690 return err 1691 } 1692 iNdEx = postIndex 1693 case 7: 1694 if wireType != 0 { 1695 return fmt.Errorf("proto: wrong wireType = %d for field SnapshotEnabled", wireType) 1696 } 1697 var v int 1698 for shift := uint(0); ; shift += 7 { 1699 if shift >= 64 { 1700 return ErrIntOverflowNamespace 1701 } 1702 if iNdEx >= l { 1703 return io.ErrUnexpectedEOF 1704 } 1705 b := dAtA[iNdEx] 1706 iNdEx++ 1707 v |= (int(b) & 0x7F) << shift 1708 if b < 0x80 { 1709 break 1710 } 1711 } 1712 m.SnapshotEnabled = bool(v != 0) 1713 case 8: 1714 if wireType != 2 { 1715 return fmt.Errorf("proto: wrong wireType = %d for field IndexOptions", wireType) 1716 } 1717 var msglen int 1718 for shift := uint(0); ; shift += 7 { 1719 if shift >= 64 { 1720 return ErrIntOverflowNamespace 1721 } 1722 if iNdEx >= l { 1723 return io.ErrUnexpectedEOF 1724 } 1725 b := dAtA[iNdEx] 1726 iNdEx++ 1727 msglen |= (int(b) & 0x7F) << shift 1728 if b < 0x80 { 1729 break 1730 } 1731 } 1732 if msglen < 0 { 1733 return ErrInvalidLengthNamespace 1734 } 1735 postIndex := iNdEx + msglen 1736 if postIndex > l { 1737 return io.ErrUnexpectedEOF 1738 } 1739 if m.IndexOptions == nil { 1740 m.IndexOptions = &IndexOptions{} 1741 } 1742 if err := m.IndexOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1743 return err 1744 } 1745 iNdEx = postIndex 1746 case 9: 1747 if wireType != 2 { 1748 return fmt.Errorf("proto: wrong wireType = %d for field SchemaOptions", wireType) 1749 } 1750 var msglen int 1751 for shift := uint(0); ; shift += 7 { 1752 if shift >= 64 { 1753 return ErrIntOverflowNamespace 1754 } 1755 if iNdEx >= l { 1756 return io.ErrUnexpectedEOF 1757 } 1758 b := dAtA[iNdEx] 1759 iNdEx++ 1760 msglen |= (int(b) & 0x7F) << shift 1761 if b < 0x80 { 1762 break 1763 } 1764 } 1765 if msglen < 0 { 1766 return ErrInvalidLengthNamespace 1767 } 1768 postIndex := iNdEx + msglen 1769 if postIndex > l { 1770 return io.ErrUnexpectedEOF 1771 } 1772 if m.SchemaOptions == nil { 1773 m.SchemaOptions = &SchemaOptions{} 1774 } 1775 if err := m.SchemaOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1776 return err 1777 } 1778 iNdEx = postIndex 1779 case 10: 1780 if wireType != 0 { 1781 return fmt.Errorf("proto: wrong wireType = %d for field ColdWritesEnabled", wireType) 1782 } 1783 var v int 1784 for shift := uint(0); ; shift += 7 { 1785 if shift >= 64 { 1786 return ErrIntOverflowNamespace 1787 } 1788 if iNdEx >= l { 1789 return io.ErrUnexpectedEOF 1790 } 1791 b := dAtA[iNdEx] 1792 iNdEx++ 1793 v |= (int(b) & 0x7F) << shift 1794 if b < 0x80 { 1795 break 1796 } 1797 } 1798 m.ColdWritesEnabled = bool(v != 0) 1799 case 11: 1800 if wireType != 2 { 1801 return fmt.Errorf("proto: wrong wireType = %d for field RuntimeOptions", wireType) 1802 } 1803 var msglen int 1804 for shift := uint(0); ; shift += 7 { 1805 if shift >= 64 { 1806 return ErrIntOverflowNamespace 1807 } 1808 if iNdEx >= l { 1809 return io.ErrUnexpectedEOF 1810 } 1811 b := dAtA[iNdEx] 1812 iNdEx++ 1813 msglen |= (int(b) & 0x7F) << shift 1814 if b < 0x80 { 1815 break 1816 } 1817 } 1818 if msglen < 0 { 1819 return ErrInvalidLengthNamespace 1820 } 1821 postIndex := iNdEx + msglen 1822 if postIndex > l { 1823 return io.ErrUnexpectedEOF 1824 } 1825 if m.RuntimeOptions == nil { 1826 m.RuntimeOptions = &NamespaceRuntimeOptions{} 1827 } 1828 if err := m.RuntimeOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1829 return err 1830 } 1831 iNdEx = postIndex 1832 case 12: 1833 if wireType != 2 { 1834 return fmt.Errorf("proto: wrong wireType = %d for field CacheBlocksOnRetrieve", wireType) 1835 } 1836 var msglen int 1837 for shift := uint(0); ; shift += 7 { 1838 if shift >= 64 { 1839 return ErrIntOverflowNamespace 1840 } 1841 if iNdEx >= l { 1842 return io.ErrUnexpectedEOF 1843 } 1844 b := dAtA[iNdEx] 1845 iNdEx++ 1846 msglen |= (int(b) & 0x7F) << shift 1847 if b < 0x80 { 1848 break 1849 } 1850 } 1851 if msglen < 0 { 1852 return ErrInvalidLengthNamespace 1853 } 1854 postIndex := iNdEx + msglen 1855 if postIndex > l { 1856 return io.ErrUnexpectedEOF 1857 } 1858 if m.CacheBlocksOnRetrieve == nil { 1859 m.CacheBlocksOnRetrieve = &google_protobuf1.BoolValue{} 1860 } 1861 if err := m.CacheBlocksOnRetrieve.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1862 return err 1863 } 1864 iNdEx = postIndex 1865 case 13: 1866 if wireType != 2 { 1867 return fmt.Errorf("proto: wrong wireType = %d for field AggregationOptions", wireType) 1868 } 1869 var msglen int 1870 for shift := uint(0); ; shift += 7 { 1871 if shift >= 64 { 1872 return ErrIntOverflowNamespace 1873 } 1874 if iNdEx >= l { 1875 return io.ErrUnexpectedEOF 1876 } 1877 b := dAtA[iNdEx] 1878 iNdEx++ 1879 msglen |= (int(b) & 0x7F) << shift 1880 if b < 0x80 { 1881 break 1882 } 1883 } 1884 if msglen < 0 { 1885 return ErrInvalidLengthNamespace 1886 } 1887 postIndex := iNdEx + msglen 1888 if postIndex > l { 1889 return io.ErrUnexpectedEOF 1890 } 1891 if m.AggregationOptions == nil { 1892 m.AggregationOptions = &AggregationOptions{} 1893 } 1894 if err := m.AggregationOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1895 return err 1896 } 1897 iNdEx = postIndex 1898 case 14: 1899 if wireType != 2 { 1900 return fmt.Errorf("proto: wrong wireType = %d for field StagingState", wireType) 1901 } 1902 var msglen int 1903 for shift := uint(0); ; shift += 7 { 1904 if shift >= 64 { 1905 return ErrIntOverflowNamespace 1906 } 1907 if iNdEx >= l { 1908 return io.ErrUnexpectedEOF 1909 } 1910 b := dAtA[iNdEx] 1911 iNdEx++ 1912 msglen |= (int(b) & 0x7F) << shift 1913 if b < 0x80 { 1914 break 1915 } 1916 } 1917 if msglen < 0 { 1918 return ErrInvalidLengthNamespace 1919 } 1920 postIndex := iNdEx + msglen 1921 if postIndex > l { 1922 return io.ErrUnexpectedEOF 1923 } 1924 if m.StagingState == nil { 1925 m.StagingState = &StagingState{} 1926 } 1927 if err := m.StagingState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1928 return err 1929 } 1930 iNdEx = postIndex 1931 case 1000: 1932 if wireType != 2 { 1933 return fmt.Errorf("proto: wrong wireType = %d for field ExtendedOptions", wireType) 1934 } 1935 var msglen int 1936 for shift := uint(0); ; shift += 7 { 1937 if shift >= 64 { 1938 return ErrIntOverflowNamespace 1939 } 1940 if iNdEx >= l { 1941 return io.ErrUnexpectedEOF 1942 } 1943 b := dAtA[iNdEx] 1944 iNdEx++ 1945 msglen |= (int(b) & 0x7F) << shift 1946 if b < 0x80 { 1947 break 1948 } 1949 } 1950 if msglen < 0 { 1951 return ErrInvalidLengthNamespace 1952 } 1953 postIndex := iNdEx + msglen 1954 if postIndex > l { 1955 return io.ErrUnexpectedEOF 1956 } 1957 if m.ExtendedOptions == nil { 1958 m.ExtendedOptions = &ExtendedOptions{} 1959 } 1960 if err := m.ExtendedOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1961 return err 1962 } 1963 iNdEx = postIndex 1964 default: 1965 iNdEx = preIndex 1966 skippy, err := skipNamespace(dAtA[iNdEx:]) 1967 if err != nil { 1968 return err 1969 } 1970 if skippy < 0 { 1971 return ErrInvalidLengthNamespace 1972 } 1973 if (iNdEx + skippy) > l { 1974 return io.ErrUnexpectedEOF 1975 } 1976 iNdEx += skippy 1977 } 1978 } 1979 1980 if iNdEx > l { 1981 return io.ErrUnexpectedEOF 1982 } 1983 return nil 1984 } 1985 func (m *AggregationOptions) Unmarshal(dAtA []byte) error { 1986 l := len(dAtA) 1987 iNdEx := 0 1988 for iNdEx < l { 1989 preIndex := iNdEx 1990 var wire uint64 1991 for shift := uint(0); ; shift += 7 { 1992 if shift >= 64 { 1993 return ErrIntOverflowNamespace 1994 } 1995 if iNdEx >= l { 1996 return io.ErrUnexpectedEOF 1997 } 1998 b := dAtA[iNdEx] 1999 iNdEx++ 2000 wire |= (uint64(b) & 0x7F) << shift 2001 if b < 0x80 { 2002 break 2003 } 2004 } 2005 fieldNum := int32(wire >> 3) 2006 wireType := int(wire & 0x7) 2007 if wireType == 4 { 2008 return fmt.Errorf("proto: AggregationOptions: wiretype end group for non-group") 2009 } 2010 if fieldNum <= 0 { 2011 return fmt.Errorf("proto: AggregationOptions: illegal tag %d (wire type %d)", fieldNum, wire) 2012 } 2013 switch fieldNum { 2014 case 1: 2015 if wireType != 2 { 2016 return fmt.Errorf("proto: wrong wireType = %d for field Aggregations", wireType) 2017 } 2018 var msglen int 2019 for shift := uint(0); ; shift += 7 { 2020 if shift >= 64 { 2021 return ErrIntOverflowNamespace 2022 } 2023 if iNdEx >= l { 2024 return io.ErrUnexpectedEOF 2025 } 2026 b := dAtA[iNdEx] 2027 iNdEx++ 2028 msglen |= (int(b) & 0x7F) << shift 2029 if b < 0x80 { 2030 break 2031 } 2032 } 2033 if msglen < 0 { 2034 return ErrInvalidLengthNamespace 2035 } 2036 postIndex := iNdEx + msglen 2037 if postIndex > l { 2038 return io.ErrUnexpectedEOF 2039 } 2040 m.Aggregations = append(m.Aggregations, &Aggregation{}) 2041 if err := m.Aggregations[len(m.Aggregations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2042 return err 2043 } 2044 iNdEx = postIndex 2045 default: 2046 iNdEx = preIndex 2047 skippy, err := skipNamespace(dAtA[iNdEx:]) 2048 if err != nil { 2049 return err 2050 } 2051 if skippy < 0 { 2052 return ErrInvalidLengthNamespace 2053 } 2054 if (iNdEx + skippy) > l { 2055 return io.ErrUnexpectedEOF 2056 } 2057 iNdEx += skippy 2058 } 2059 } 2060 2061 if iNdEx > l { 2062 return io.ErrUnexpectedEOF 2063 } 2064 return nil 2065 } 2066 func (m *Aggregation) Unmarshal(dAtA []byte) error { 2067 l := len(dAtA) 2068 iNdEx := 0 2069 for iNdEx < l { 2070 preIndex := iNdEx 2071 var wire uint64 2072 for shift := uint(0); ; shift += 7 { 2073 if shift >= 64 { 2074 return ErrIntOverflowNamespace 2075 } 2076 if iNdEx >= l { 2077 return io.ErrUnexpectedEOF 2078 } 2079 b := dAtA[iNdEx] 2080 iNdEx++ 2081 wire |= (uint64(b) & 0x7F) << shift 2082 if b < 0x80 { 2083 break 2084 } 2085 } 2086 fieldNum := int32(wire >> 3) 2087 wireType := int(wire & 0x7) 2088 if wireType == 4 { 2089 return fmt.Errorf("proto: Aggregation: wiretype end group for non-group") 2090 } 2091 if fieldNum <= 0 { 2092 return fmt.Errorf("proto: Aggregation: illegal tag %d (wire type %d)", fieldNum, wire) 2093 } 2094 switch fieldNum { 2095 case 1: 2096 if wireType != 0 { 2097 return fmt.Errorf("proto: wrong wireType = %d for field Aggregated", wireType) 2098 } 2099 var v int 2100 for shift := uint(0); ; shift += 7 { 2101 if shift >= 64 { 2102 return ErrIntOverflowNamespace 2103 } 2104 if iNdEx >= l { 2105 return io.ErrUnexpectedEOF 2106 } 2107 b := dAtA[iNdEx] 2108 iNdEx++ 2109 v |= (int(b) & 0x7F) << shift 2110 if b < 0x80 { 2111 break 2112 } 2113 } 2114 m.Aggregated = bool(v != 0) 2115 case 2: 2116 if wireType != 2 { 2117 return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) 2118 } 2119 var msglen int 2120 for shift := uint(0); ; shift += 7 { 2121 if shift >= 64 { 2122 return ErrIntOverflowNamespace 2123 } 2124 if iNdEx >= l { 2125 return io.ErrUnexpectedEOF 2126 } 2127 b := dAtA[iNdEx] 2128 iNdEx++ 2129 msglen |= (int(b) & 0x7F) << shift 2130 if b < 0x80 { 2131 break 2132 } 2133 } 2134 if msglen < 0 { 2135 return ErrInvalidLengthNamespace 2136 } 2137 postIndex := iNdEx + msglen 2138 if postIndex > l { 2139 return io.ErrUnexpectedEOF 2140 } 2141 if m.Attributes == nil { 2142 m.Attributes = &AggregatedAttributes{} 2143 } 2144 if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2145 return err 2146 } 2147 iNdEx = postIndex 2148 default: 2149 iNdEx = preIndex 2150 skippy, err := skipNamespace(dAtA[iNdEx:]) 2151 if err != nil { 2152 return err 2153 } 2154 if skippy < 0 { 2155 return ErrInvalidLengthNamespace 2156 } 2157 if (iNdEx + skippy) > l { 2158 return io.ErrUnexpectedEOF 2159 } 2160 iNdEx += skippy 2161 } 2162 } 2163 2164 if iNdEx > l { 2165 return io.ErrUnexpectedEOF 2166 } 2167 return nil 2168 } 2169 func (m *AggregatedAttributes) Unmarshal(dAtA []byte) error { 2170 l := len(dAtA) 2171 iNdEx := 0 2172 for iNdEx < l { 2173 preIndex := iNdEx 2174 var wire uint64 2175 for shift := uint(0); ; shift += 7 { 2176 if shift >= 64 { 2177 return ErrIntOverflowNamespace 2178 } 2179 if iNdEx >= l { 2180 return io.ErrUnexpectedEOF 2181 } 2182 b := dAtA[iNdEx] 2183 iNdEx++ 2184 wire |= (uint64(b) & 0x7F) << shift 2185 if b < 0x80 { 2186 break 2187 } 2188 } 2189 fieldNum := int32(wire >> 3) 2190 wireType := int(wire & 0x7) 2191 if wireType == 4 { 2192 return fmt.Errorf("proto: AggregatedAttributes: wiretype end group for non-group") 2193 } 2194 if fieldNum <= 0 { 2195 return fmt.Errorf("proto: AggregatedAttributes: illegal tag %d (wire type %d)", fieldNum, wire) 2196 } 2197 switch fieldNum { 2198 case 1: 2199 if wireType != 0 { 2200 return fmt.Errorf("proto: wrong wireType = %d for field ResolutionNanos", wireType) 2201 } 2202 m.ResolutionNanos = 0 2203 for shift := uint(0); ; shift += 7 { 2204 if shift >= 64 { 2205 return ErrIntOverflowNamespace 2206 } 2207 if iNdEx >= l { 2208 return io.ErrUnexpectedEOF 2209 } 2210 b := dAtA[iNdEx] 2211 iNdEx++ 2212 m.ResolutionNanos |= (int64(b) & 0x7F) << shift 2213 if b < 0x80 { 2214 break 2215 } 2216 } 2217 case 2: 2218 if wireType != 2 { 2219 return fmt.Errorf("proto: wrong wireType = %d for field DownsampleOptions", wireType) 2220 } 2221 var msglen int 2222 for shift := uint(0); ; shift += 7 { 2223 if shift >= 64 { 2224 return ErrIntOverflowNamespace 2225 } 2226 if iNdEx >= l { 2227 return io.ErrUnexpectedEOF 2228 } 2229 b := dAtA[iNdEx] 2230 iNdEx++ 2231 msglen |= (int(b) & 0x7F) << shift 2232 if b < 0x80 { 2233 break 2234 } 2235 } 2236 if msglen < 0 { 2237 return ErrInvalidLengthNamespace 2238 } 2239 postIndex := iNdEx + msglen 2240 if postIndex > l { 2241 return io.ErrUnexpectedEOF 2242 } 2243 if m.DownsampleOptions == nil { 2244 m.DownsampleOptions = &DownsampleOptions{} 2245 } 2246 if err := m.DownsampleOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2247 return err 2248 } 2249 iNdEx = postIndex 2250 default: 2251 iNdEx = preIndex 2252 skippy, err := skipNamespace(dAtA[iNdEx:]) 2253 if err != nil { 2254 return err 2255 } 2256 if skippy < 0 { 2257 return ErrInvalidLengthNamespace 2258 } 2259 if (iNdEx + skippy) > l { 2260 return io.ErrUnexpectedEOF 2261 } 2262 iNdEx += skippy 2263 } 2264 } 2265 2266 if iNdEx > l { 2267 return io.ErrUnexpectedEOF 2268 } 2269 return nil 2270 } 2271 func (m *DownsampleOptions) Unmarshal(dAtA []byte) error { 2272 l := len(dAtA) 2273 iNdEx := 0 2274 for iNdEx < l { 2275 preIndex := iNdEx 2276 var wire uint64 2277 for shift := uint(0); ; shift += 7 { 2278 if shift >= 64 { 2279 return ErrIntOverflowNamespace 2280 } 2281 if iNdEx >= l { 2282 return io.ErrUnexpectedEOF 2283 } 2284 b := dAtA[iNdEx] 2285 iNdEx++ 2286 wire |= (uint64(b) & 0x7F) << shift 2287 if b < 0x80 { 2288 break 2289 } 2290 } 2291 fieldNum := int32(wire >> 3) 2292 wireType := int(wire & 0x7) 2293 if wireType == 4 { 2294 return fmt.Errorf("proto: DownsampleOptions: wiretype end group for non-group") 2295 } 2296 if fieldNum <= 0 { 2297 return fmt.Errorf("proto: DownsampleOptions: illegal tag %d (wire type %d)", fieldNum, wire) 2298 } 2299 switch fieldNum { 2300 case 1: 2301 if wireType != 0 { 2302 return fmt.Errorf("proto: wrong wireType = %d for field All", wireType) 2303 } 2304 var v int 2305 for shift := uint(0); ; shift += 7 { 2306 if shift >= 64 { 2307 return ErrIntOverflowNamespace 2308 } 2309 if iNdEx >= l { 2310 return io.ErrUnexpectedEOF 2311 } 2312 b := dAtA[iNdEx] 2313 iNdEx++ 2314 v |= (int(b) & 0x7F) << shift 2315 if b < 0x80 { 2316 break 2317 } 2318 } 2319 m.All = bool(v != 0) 2320 default: 2321 iNdEx = preIndex 2322 skippy, err := skipNamespace(dAtA[iNdEx:]) 2323 if err != nil { 2324 return err 2325 } 2326 if skippy < 0 { 2327 return ErrInvalidLengthNamespace 2328 } 2329 if (iNdEx + skippy) > l { 2330 return io.ErrUnexpectedEOF 2331 } 2332 iNdEx += skippy 2333 } 2334 } 2335 2336 if iNdEx > l { 2337 return io.ErrUnexpectedEOF 2338 } 2339 return nil 2340 } 2341 func (m *StagingState) Unmarshal(dAtA []byte) error { 2342 l := len(dAtA) 2343 iNdEx := 0 2344 for iNdEx < l { 2345 preIndex := iNdEx 2346 var wire uint64 2347 for shift := uint(0); ; shift += 7 { 2348 if shift >= 64 { 2349 return ErrIntOverflowNamespace 2350 } 2351 if iNdEx >= l { 2352 return io.ErrUnexpectedEOF 2353 } 2354 b := dAtA[iNdEx] 2355 iNdEx++ 2356 wire |= (uint64(b) & 0x7F) << shift 2357 if b < 0x80 { 2358 break 2359 } 2360 } 2361 fieldNum := int32(wire >> 3) 2362 wireType := int(wire & 0x7) 2363 if wireType == 4 { 2364 return fmt.Errorf("proto: StagingState: wiretype end group for non-group") 2365 } 2366 if fieldNum <= 0 { 2367 return fmt.Errorf("proto: StagingState: illegal tag %d (wire type %d)", fieldNum, wire) 2368 } 2369 switch fieldNum { 2370 case 1: 2371 if wireType != 0 { 2372 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 2373 } 2374 m.Status = 0 2375 for shift := uint(0); ; shift += 7 { 2376 if shift >= 64 { 2377 return ErrIntOverflowNamespace 2378 } 2379 if iNdEx >= l { 2380 return io.ErrUnexpectedEOF 2381 } 2382 b := dAtA[iNdEx] 2383 iNdEx++ 2384 m.Status |= (StagingStatus(b) & 0x7F) << shift 2385 if b < 0x80 { 2386 break 2387 } 2388 } 2389 default: 2390 iNdEx = preIndex 2391 skippy, err := skipNamespace(dAtA[iNdEx:]) 2392 if err != nil { 2393 return err 2394 } 2395 if skippy < 0 { 2396 return ErrInvalidLengthNamespace 2397 } 2398 if (iNdEx + skippy) > l { 2399 return io.ErrUnexpectedEOF 2400 } 2401 iNdEx += skippy 2402 } 2403 } 2404 2405 if iNdEx > l { 2406 return io.ErrUnexpectedEOF 2407 } 2408 return nil 2409 } 2410 func (m *Registry) Unmarshal(dAtA []byte) error { 2411 l := len(dAtA) 2412 iNdEx := 0 2413 for iNdEx < l { 2414 preIndex := iNdEx 2415 var wire uint64 2416 for shift := uint(0); ; shift += 7 { 2417 if shift >= 64 { 2418 return ErrIntOverflowNamespace 2419 } 2420 if iNdEx >= l { 2421 return io.ErrUnexpectedEOF 2422 } 2423 b := dAtA[iNdEx] 2424 iNdEx++ 2425 wire |= (uint64(b) & 0x7F) << shift 2426 if b < 0x80 { 2427 break 2428 } 2429 } 2430 fieldNum := int32(wire >> 3) 2431 wireType := int(wire & 0x7) 2432 if wireType == 4 { 2433 return fmt.Errorf("proto: Registry: wiretype end group for non-group") 2434 } 2435 if fieldNum <= 0 { 2436 return fmt.Errorf("proto: Registry: illegal tag %d (wire type %d)", fieldNum, wire) 2437 } 2438 switch fieldNum { 2439 case 1: 2440 if wireType != 2 { 2441 return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType) 2442 } 2443 var msglen int 2444 for shift := uint(0); ; shift += 7 { 2445 if shift >= 64 { 2446 return ErrIntOverflowNamespace 2447 } 2448 if iNdEx >= l { 2449 return io.ErrUnexpectedEOF 2450 } 2451 b := dAtA[iNdEx] 2452 iNdEx++ 2453 msglen |= (int(b) & 0x7F) << shift 2454 if b < 0x80 { 2455 break 2456 } 2457 } 2458 if msglen < 0 { 2459 return ErrInvalidLengthNamespace 2460 } 2461 postIndex := iNdEx + msglen 2462 if postIndex > l { 2463 return io.ErrUnexpectedEOF 2464 } 2465 if m.Namespaces == nil { 2466 m.Namespaces = make(map[string]*NamespaceOptions) 2467 } 2468 var mapkey string 2469 var mapvalue *NamespaceOptions 2470 for iNdEx < postIndex { 2471 entryPreIndex := iNdEx 2472 var wire uint64 2473 for shift := uint(0); ; shift += 7 { 2474 if shift >= 64 { 2475 return ErrIntOverflowNamespace 2476 } 2477 if iNdEx >= l { 2478 return io.ErrUnexpectedEOF 2479 } 2480 b := dAtA[iNdEx] 2481 iNdEx++ 2482 wire |= (uint64(b) & 0x7F) << shift 2483 if b < 0x80 { 2484 break 2485 } 2486 } 2487 fieldNum := int32(wire >> 3) 2488 if fieldNum == 1 { 2489 var stringLenmapkey uint64 2490 for shift := uint(0); ; shift += 7 { 2491 if shift >= 64 { 2492 return ErrIntOverflowNamespace 2493 } 2494 if iNdEx >= l { 2495 return io.ErrUnexpectedEOF 2496 } 2497 b := dAtA[iNdEx] 2498 iNdEx++ 2499 stringLenmapkey |= (uint64(b) & 0x7F) << shift 2500 if b < 0x80 { 2501 break 2502 } 2503 } 2504 intStringLenmapkey := int(stringLenmapkey) 2505 if intStringLenmapkey < 0 { 2506 return ErrInvalidLengthNamespace 2507 } 2508 postStringIndexmapkey := iNdEx + intStringLenmapkey 2509 if postStringIndexmapkey > l { 2510 return io.ErrUnexpectedEOF 2511 } 2512 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 2513 iNdEx = postStringIndexmapkey 2514 } else if fieldNum == 2 { 2515 var mapmsglen int 2516 for shift := uint(0); ; shift += 7 { 2517 if shift >= 64 { 2518 return ErrIntOverflowNamespace 2519 } 2520 if iNdEx >= l { 2521 return io.ErrUnexpectedEOF 2522 } 2523 b := dAtA[iNdEx] 2524 iNdEx++ 2525 mapmsglen |= (int(b) & 0x7F) << shift 2526 if b < 0x80 { 2527 break 2528 } 2529 } 2530 if mapmsglen < 0 { 2531 return ErrInvalidLengthNamespace 2532 } 2533 postmsgIndex := iNdEx + mapmsglen 2534 if mapmsglen < 0 { 2535 return ErrInvalidLengthNamespace 2536 } 2537 if postmsgIndex > l { 2538 return io.ErrUnexpectedEOF 2539 } 2540 mapvalue = &NamespaceOptions{} 2541 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { 2542 return err 2543 } 2544 iNdEx = postmsgIndex 2545 } else { 2546 iNdEx = entryPreIndex 2547 skippy, err := skipNamespace(dAtA[iNdEx:]) 2548 if err != nil { 2549 return err 2550 } 2551 if skippy < 0 { 2552 return ErrInvalidLengthNamespace 2553 } 2554 if (iNdEx + skippy) > postIndex { 2555 return io.ErrUnexpectedEOF 2556 } 2557 iNdEx += skippy 2558 } 2559 } 2560 m.Namespaces[mapkey] = mapvalue 2561 iNdEx = postIndex 2562 default: 2563 iNdEx = preIndex 2564 skippy, err := skipNamespace(dAtA[iNdEx:]) 2565 if err != nil { 2566 return err 2567 } 2568 if skippy < 0 { 2569 return ErrInvalidLengthNamespace 2570 } 2571 if (iNdEx + skippy) > l { 2572 return io.ErrUnexpectedEOF 2573 } 2574 iNdEx += skippy 2575 } 2576 } 2577 2578 if iNdEx > l { 2579 return io.ErrUnexpectedEOF 2580 } 2581 return nil 2582 } 2583 func (m *NamespaceRuntimeOptions) Unmarshal(dAtA []byte) error { 2584 l := len(dAtA) 2585 iNdEx := 0 2586 for iNdEx < l { 2587 preIndex := iNdEx 2588 var wire uint64 2589 for shift := uint(0); ; shift += 7 { 2590 if shift >= 64 { 2591 return ErrIntOverflowNamespace 2592 } 2593 if iNdEx >= l { 2594 return io.ErrUnexpectedEOF 2595 } 2596 b := dAtA[iNdEx] 2597 iNdEx++ 2598 wire |= (uint64(b) & 0x7F) << shift 2599 if b < 0x80 { 2600 break 2601 } 2602 } 2603 fieldNum := int32(wire >> 3) 2604 wireType := int(wire & 0x7) 2605 if wireType == 4 { 2606 return fmt.Errorf("proto: NamespaceRuntimeOptions: wiretype end group for non-group") 2607 } 2608 if fieldNum <= 0 { 2609 return fmt.Errorf("proto: NamespaceRuntimeOptions: illegal tag %d (wire type %d)", fieldNum, wire) 2610 } 2611 switch fieldNum { 2612 case 1: 2613 if wireType != 2 { 2614 return fmt.Errorf("proto: wrong wireType = %d for field WriteIndexingPerCPUConcurrency", wireType) 2615 } 2616 var msglen int 2617 for shift := uint(0); ; shift += 7 { 2618 if shift >= 64 { 2619 return ErrIntOverflowNamespace 2620 } 2621 if iNdEx >= l { 2622 return io.ErrUnexpectedEOF 2623 } 2624 b := dAtA[iNdEx] 2625 iNdEx++ 2626 msglen |= (int(b) & 0x7F) << shift 2627 if b < 0x80 { 2628 break 2629 } 2630 } 2631 if msglen < 0 { 2632 return ErrInvalidLengthNamespace 2633 } 2634 postIndex := iNdEx + msglen 2635 if postIndex > l { 2636 return io.ErrUnexpectedEOF 2637 } 2638 if m.WriteIndexingPerCPUConcurrency == nil { 2639 m.WriteIndexingPerCPUConcurrency = &google_protobuf1.DoubleValue{} 2640 } 2641 if err := m.WriteIndexingPerCPUConcurrency.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2642 return err 2643 } 2644 iNdEx = postIndex 2645 case 2: 2646 if wireType != 2 { 2647 return fmt.Errorf("proto: wrong wireType = %d for field FlushIndexingPerCPUConcurrency", wireType) 2648 } 2649 var msglen int 2650 for shift := uint(0); ; shift += 7 { 2651 if shift >= 64 { 2652 return ErrIntOverflowNamespace 2653 } 2654 if iNdEx >= l { 2655 return io.ErrUnexpectedEOF 2656 } 2657 b := dAtA[iNdEx] 2658 iNdEx++ 2659 msglen |= (int(b) & 0x7F) << shift 2660 if b < 0x80 { 2661 break 2662 } 2663 } 2664 if msglen < 0 { 2665 return ErrInvalidLengthNamespace 2666 } 2667 postIndex := iNdEx + msglen 2668 if postIndex > l { 2669 return io.ErrUnexpectedEOF 2670 } 2671 if m.FlushIndexingPerCPUConcurrency == nil { 2672 m.FlushIndexingPerCPUConcurrency = &google_protobuf1.DoubleValue{} 2673 } 2674 if err := m.FlushIndexingPerCPUConcurrency.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2675 return err 2676 } 2677 iNdEx = postIndex 2678 default: 2679 iNdEx = preIndex 2680 skippy, err := skipNamespace(dAtA[iNdEx:]) 2681 if err != nil { 2682 return err 2683 } 2684 if skippy < 0 { 2685 return ErrInvalidLengthNamespace 2686 } 2687 if (iNdEx + skippy) > l { 2688 return io.ErrUnexpectedEOF 2689 } 2690 iNdEx += skippy 2691 } 2692 } 2693 2694 if iNdEx > l { 2695 return io.ErrUnexpectedEOF 2696 } 2697 return nil 2698 } 2699 func (m *ExtendedOptions) Unmarshal(dAtA []byte) error { 2700 l := len(dAtA) 2701 iNdEx := 0 2702 for iNdEx < l { 2703 preIndex := iNdEx 2704 var wire uint64 2705 for shift := uint(0); ; shift += 7 { 2706 if shift >= 64 { 2707 return ErrIntOverflowNamespace 2708 } 2709 if iNdEx >= l { 2710 return io.ErrUnexpectedEOF 2711 } 2712 b := dAtA[iNdEx] 2713 iNdEx++ 2714 wire |= (uint64(b) & 0x7F) << shift 2715 if b < 0x80 { 2716 break 2717 } 2718 } 2719 fieldNum := int32(wire >> 3) 2720 wireType := int(wire & 0x7) 2721 if wireType == 4 { 2722 return fmt.Errorf("proto: ExtendedOptions: wiretype end group for non-group") 2723 } 2724 if fieldNum <= 0 { 2725 return fmt.Errorf("proto: ExtendedOptions: illegal tag %d (wire type %d)", fieldNum, wire) 2726 } 2727 switch fieldNum { 2728 case 1: 2729 if wireType != 2 { 2730 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 2731 } 2732 var stringLen uint64 2733 for shift := uint(0); ; shift += 7 { 2734 if shift >= 64 { 2735 return ErrIntOverflowNamespace 2736 } 2737 if iNdEx >= l { 2738 return io.ErrUnexpectedEOF 2739 } 2740 b := dAtA[iNdEx] 2741 iNdEx++ 2742 stringLen |= (uint64(b) & 0x7F) << shift 2743 if b < 0x80 { 2744 break 2745 } 2746 } 2747 intStringLen := int(stringLen) 2748 if intStringLen < 0 { 2749 return ErrInvalidLengthNamespace 2750 } 2751 postIndex := iNdEx + intStringLen 2752 if postIndex > l { 2753 return io.ErrUnexpectedEOF 2754 } 2755 m.Type = string(dAtA[iNdEx:postIndex]) 2756 iNdEx = postIndex 2757 case 2: 2758 if wireType != 2 { 2759 return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) 2760 } 2761 var msglen int 2762 for shift := uint(0); ; shift += 7 { 2763 if shift >= 64 { 2764 return ErrIntOverflowNamespace 2765 } 2766 if iNdEx >= l { 2767 return io.ErrUnexpectedEOF 2768 } 2769 b := dAtA[iNdEx] 2770 iNdEx++ 2771 msglen |= (int(b) & 0x7F) << shift 2772 if b < 0x80 { 2773 break 2774 } 2775 } 2776 if msglen < 0 { 2777 return ErrInvalidLengthNamespace 2778 } 2779 postIndex := iNdEx + msglen 2780 if postIndex > l { 2781 return io.ErrUnexpectedEOF 2782 } 2783 if m.Options == nil { 2784 m.Options = &google_protobuf.Struct{} 2785 } 2786 if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2787 return err 2788 } 2789 iNdEx = postIndex 2790 default: 2791 iNdEx = preIndex 2792 skippy, err := skipNamespace(dAtA[iNdEx:]) 2793 if err != nil { 2794 return err 2795 } 2796 if skippy < 0 { 2797 return ErrInvalidLengthNamespace 2798 } 2799 if (iNdEx + skippy) > l { 2800 return io.ErrUnexpectedEOF 2801 } 2802 iNdEx += skippy 2803 } 2804 } 2805 2806 if iNdEx > l { 2807 return io.ErrUnexpectedEOF 2808 } 2809 return nil 2810 } 2811 func skipNamespace(dAtA []byte) (n int, err error) { 2812 l := len(dAtA) 2813 iNdEx := 0 2814 for iNdEx < l { 2815 var wire uint64 2816 for shift := uint(0); ; shift += 7 { 2817 if shift >= 64 { 2818 return 0, ErrIntOverflowNamespace 2819 } 2820 if iNdEx >= l { 2821 return 0, io.ErrUnexpectedEOF 2822 } 2823 b := dAtA[iNdEx] 2824 iNdEx++ 2825 wire |= (uint64(b) & 0x7F) << shift 2826 if b < 0x80 { 2827 break 2828 } 2829 } 2830 wireType := int(wire & 0x7) 2831 switch wireType { 2832 case 0: 2833 for shift := uint(0); ; shift += 7 { 2834 if shift >= 64 { 2835 return 0, ErrIntOverflowNamespace 2836 } 2837 if iNdEx >= l { 2838 return 0, io.ErrUnexpectedEOF 2839 } 2840 iNdEx++ 2841 if dAtA[iNdEx-1] < 0x80 { 2842 break 2843 } 2844 } 2845 return iNdEx, nil 2846 case 1: 2847 iNdEx += 8 2848 return iNdEx, nil 2849 case 2: 2850 var length int 2851 for shift := uint(0); ; shift += 7 { 2852 if shift >= 64 { 2853 return 0, ErrIntOverflowNamespace 2854 } 2855 if iNdEx >= l { 2856 return 0, io.ErrUnexpectedEOF 2857 } 2858 b := dAtA[iNdEx] 2859 iNdEx++ 2860 length |= (int(b) & 0x7F) << shift 2861 if b < 0x80 { 2862 break 2863 } 2864 } 2865 iNdEx += length 2866 if length < 0 { 2867 return 0, ErrInvalidLengthNamespace 2868 } 2869 return iNdEx, nil 2870 case 3: 2871 for { 2872 var innerWire uint64 2873 var start int = iNdEx 2874 for shift := uint(0); ; shift += 7 { 2875 if shift >= 64 { 2876 return 0, ErrIntOverflowNamespace 2877 } 2878 if iNdEx >= l { 2879 return 0, io.ErrUnexpectedEOF 2880 } 2881 b := dAtA[iNdEx] 2882 iNdEx++ 2883 innerWire |= (uint64(b) & 0x7F) << shift 2884 if b < 0x80 { 2885 break 2886 } 2887 } 2888 innerWireType := int(innerWire & 0x7) 2889 if innerWireType == 4 { 2890 break 2891 } 2892 next, err := skipNamespace(dAtA[start:]) 2893 if err != nil { 2894 return 0, err 2895 } 2896 iNdEx = start + next 2897 } 2898 return iNdEx, nil 2899 case 4: 2900 return iNdEx, nil 2901 case 5: 2902 iNdEx += 4 2903 return iNdEx, nil 2904 default: 2905 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 2906 } 2907 } 2908 panic("unreachable") 2909 } 2910 2911 var ( 2912 ErrInvalidLengthNamespace = fmt.Errorf("proto: negative length found during unmarshaling") 2913 ErrIntOverflowNamespace = fmt.Errorf("proto: integer overflow") 2914 ) 2915 2916 func init() { 2917 proto.RegisterFile("github.com/m3db/m3/src/dbnode/generated/proto/namespace/namespace.proto", fileDescriptorNamespace) 2918 } 2919 2920 var fileDescriptorNamespace = []byte{ 2921 // 1001 bytes of a gzipped FileDescriptorProto 2922 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x96, 0xdd, 0x6e, 0x1b, 0x45, 2923 0x14, 0x80, 0xbb, 0xf9, 0x73, 0x72, 0xec, 0x24, 0xce, 0xa8, 0x10, 0x2b, 0x2d, 0xa6, 0x5a, 0x7e, 2924 0x14, 0x55, 0xc8, 0xa6, 0xc9, 0x0d, 0x14, 0xa9, 0xe0, 0x24, 0x26, 0x72, 0x29, 0x8e, 0x35, 0x69, 2925 0x29, 0xe4, 0x6e, 0x76, 0xf7, 0x78, 0xb3, 0xea, 0x7a, 0x66, 0x35, 0x33, 0xdb, 0x24, 0x3c, 0x43, 2926 0x2f, 0x78, 0x0f, 0x5e, 0x84, 0x4b, 0x1e, 0x01, 0x05, 0x21, 0x71, 0xc3, 0x3b, 0xa0, 0x9d, 0xf5, 2927 0x3a, 0xfb, 0xe3, 0x96, 0x88, 0x9b, 0x68, 0x72, 0xce, 0x77, 0x7e, 0xe6, 0xfc, 0xcc, 0x1a, 0x8e, 2928 0xfd, 0x40, 0x9f, 0xc7, 0x4e, 0xc7, 0x15, 0x93, 0xee, 0x64, 0xdf, 0x73, 0xba, 0x93, 0xfd, 0xae, 2929 0x92, 0x6e, 0xd7, 0x73, 0xb8, 0xf0, 0xb0, 0xeb, 0x23, 0x47, 0xc9, 0x34, 0x7a, 0xdd, 0x48, 0x0a, 2930 0x2d, 0xba, 0x9c, 0x4d, 0x50, 0x45, 0xcc, 0xc5, 0x9b, 0x53, 0xc7, 0x68, 0xc8, 0xda, 0x4c, 0xb0, 2931 0x73, 0xdf, 0x17, 0xc2, 0x0f, 0x31, 0x35, 0x71, 0xe2, 0x71, 0x57, 0x69, 0x19, 0xbb, 0x3a, 0x05, 2932 0x77, 0xda, 0x65, 0xed, 0x85, 0x64, 0x51, 0x84, 0x52, 0x4d, 0xf5, 0x47, 0xff, 0x37, 0x23, 0xe5, 2933 0x9e, 0xe3, 0x84, 0xa5, 0x5e, 0xec, 0x37, 0x8b, 0xd0, 0xa4, 0xa8, 0x91, 0xeb, 0x40, 0xf0, 0x93, 2934 0x28, 0xf9, 0xab, 0xc8, 0x1e, 0xdc, 0x95, 0x99, 0x6c, 0x84, 0x32, 0x10, 0xde, 0x90, 0x71, 0xa1, 2935 0x5a, 0xd6, 0x03, 0x6b, 0x77, 0x91, 0xce, 0xd5, 0x91, 0x4f, 0x61, 0xc3, 0x09, 0x85, 0xfb, 0xea, 2936 0x34, 0xf8, 0x19, 0x53, 0x7a, 0xc1, 0xd0, 0x25, 0x29, 0xf9, 0x0c, 0xb6, 0x9c, 0x78, 0x3c, 0x46, 2937 0xf9, 0x6d, 0xac, 0x63, 0x39, 0x45, 0x17, 0x0d, 0x5a, 0x55, 0x90, 0x5d, 0xd8, 0x4c, 0x85, 0x23, 2938 0xa6, 0x74, 0xca, 0x2e, 0x19, 0xb6, 0x2c, 0x36, 0x64, 0x12, 0xe9, 0x88, 0x69, 0xd6, 0xbf, 0x8c, 2939 0x02, 0x79, 0xd5, 0x5a, 0x7e, 0x60, 0xed, 0xae, 0xd2, 0xb2, 0x98, 0x9c, 0xc1, 0x6e, 0x49, 0xd4, 2940 0x1b, 0x6b, 0x94, 0x43, 0xa1, 0x7b, 0xae, 0x8b, 0x4a, 0xe5, 0x6f, 0xbc, 0x62, 0x82, 0xdd, 0x9a, 2941 0x27, 0x4f, 0x60, 0x67, 0x6c, 0xd2, 0xa7, 0xf3, 0xea, 0x57, 0x33, 0xde, 0xde, 0x41, 0xd8, 0x23, 2942 0x68, 0x0c, 0xb8, 0x87, 0x97, 0x59, 0x27, 0x5a, 0x50, 0x43, 0xce, 0x9c, 0x10, 0x3d, 0x53, 0xfc, 2943 0x55, 0x9a, 0xfd, 0x7b, 0xdb, 0x7a, 0xdb, 0xff, 0xac, 0x40, 0x73, 0x98, 0xf5, 0x3e, 0x73, 0xfb, 2944 0x10, 0x9a, 0x8e, 0x10, 0x5a, 0x69, 0xc9, 0xa2, 0x7e, 0xc1, 0x7f, 0x45, 0x4e, 0x6c, 0x68, 0x8c, 2945 0xc3, 0x58, 0x9d, 0x67, 0xdc, 0x82, 0xe1, 0x0a, 0xb2, 0xa4, 0xa9, 0x17, 0x32, 0xd0, 0xa8, 0x9e, 2946 0x8b, 0x43, 0x31, 0x99, 0x04, 0xfa, 0x99, 0xf0, 0x4d, 0x53, 0x57, 0x69, 0x55, 0x91, 0xa4, 0xee, 2947 0x86, 0xc8, 0x78, 0x3c, 0x8b, 0xbd, 0x64, 0xd0, 0x92, 0x94, 0x7c, 0x0c, 0xeb, 0x12, 0x23, 0x16, 2948 0xc8, 0x0c, 0x4b, 0x1b, 0x5a, 0x14, 0x92, 0x63, 0x68, 0xca, 0xd2, 0x00, 0x9b, 0xb6, 0xd5, 0xf7, 2949 0xee, 0x75, 0x6e, 0x96, 0xaf, 0x3c, 0xe3, 0xb4, 0x62, 0x94, 0x4c, 0x90, 0xe2, 0x2c, 0x52, 0xe7, 2950 0x42, 0x67, 0x01, 0x6b, 0xe9, 0x04, 0x95, 0xc4, 0xe4, 0x2b, 0x68, 0x04, 0xb9, 0x2e, 0xb5, 0x56, 2951 0x4d, 0xb8, 0xed, 0x5c, 0xb8, 0x7c, 0x13, 0x69, 0x01, 0x26, 0x4f, 0x60, 0x3d, 0xdd, 0xc0, 0xcc, 2952 0x7a, 0xcd, 0x58, 0xb7, 0x72, 0xd6, 0xa7, 0x79, 0x3d, 0x2d, 0xe2, 0x49, 0xad, 0x5d, 0x11, 0x7a, 2953 0x2f, 0x4d, 0x59, 0xb3, 0x44, 0x21, 0xad, 0x75, 0x45, 0x41, 0x9e, 0xc2, 0x86, 0x8c, 0xb9, 0x0e, 2954 0x26, 0x59, 0xef, 0x5b, 0x75, 0x13, 0xce, 0xce, 0x85, 0x9b, 0x8d, 0x07, 0x2d, 0x90, 0xb4, 0x64, 2955 0x49, 0x46, 0xf0, 0x9e, 0xcb, 0xdc, 0x73, 0x3c, 0x48, 0x26, 0x4c, 0x9d, 0x70, 0x8a, 0x5a, 0x06, 2956 0xf8, 0x1a, 0x5b, 0x0d, 0xe3, 0x72, 0xa7, 0x93, 0xbe, 0x58, 0x9d, 0xec, 0xc5, 0xea, 0x1c, 0x08, 2957 0x11, 0xfe, 0xc0, 0xc2, 0x18, 0xe9, 0x7c, 0x43, 0xf2, 0x3d, 0x10, 0xe6, 0xfb, 0x12, 0x7d, 0x96, 2958 0xef, 0xde, 0xba, 0x71, 0xf7, 0x41, 0x2e, 0xc3, 0x5e, 0x05, 0xa2, 0x73, 0x0c, 0x93, 0xbe, 0x28, 2959 0xcd, 0xfc, 0x80, 0xfb, 0xa7, 0x9a, 0x69, 0x6c, 0x6d, 0x54, 0xfa, 0x72, 0x9a, 0x53, 0xd3, 0x02, 2960 0x4c, 0xfa, 0xb0, 0x89, 0x97, 0x1a, 0xb9, 0x87, 0x5e, 0x96, 0xc8, 0xdf, 0xb5, 0xe9, 0xc5, 0x6e, 2961 0x1c, 0xf4, 0x8b, 0x08, 0x2d, 0xdb, 0xd8, 0x23, 0x20, 0xd5, 0x6c, 0xc9, 0x63, 0x68, 0xe4, 0xf2, 2962 0x4d, 0x5e, 0xd2, 0xc5, 0xdd, 0xfa, 0xde, 0xfb, 0xf3, 0xaf, 0x48, 0x0b, 0xac, 0xcd, 0xa1, 0x9e, 2963 0x53, 0x92, 0x36, 0x40, 0xa6, 0x9e, 0x6d, 0x6d, 0x4e, 0x42, 0xbe, 0x06, 0x60, 0x5a, 0xcb, 0xc0, 2964 0x89, 0x35, 0xa6, 0x8f, 0x42, 0x7d, 0xef, 0xc3, 0x39, 0x81, 0xd0, 0xeb, 0xcd, 0x30, 0x9a, 0x33, 2965 0xb1, 0xdf, 0x58, 0x70, 0x77, 0x1e, 0x94, 0x2c, 0x88, 0x44, 0x25, 0xc2, 0x38, 0xc9, 0x23, 0xff, 2966 0x45, 0x28, 0x8b, 0xc9, 0x53, 0xd8, 0xf2, 0xc4, 0x05, 0x57, 0x6c, 0x12, 0x85, 0xb3, 0xc1, 0x4b, 2967 0x53, 0xb9, 0x9f, 0x4b, 0xe5, 0xa8, 0xcc, 0xd0, 0xaa, 0x99, 0xfd, 0x09, 0x6c, 0x55, 0x38, 0xd2, 2968 0x84, 0x45, 0x16, 0x86, 0xd3, 0xdb, 0x27, 0x47, 0xfb, 0x1b, 0x68, 0xe4, 0x9b, 0x4b, 0x3e, 0x87, 2969 0x15, 0xa5, 0x99, 0x8e, 0xd3, 0x1c, 0x37, 0x8a, 0xfb, 0x75, 0x03, 0xc6, 0x8a, 0x4e, 0x39, 0xfb, 2970 0x57, 0x0b, 0x56, 0x29, 0xfa, 0x81, 0xd2, 0xf2, 0x8a, 0x1c, 0x02, 0xcc, 0xf8, 0xac, 0x5d, 0x1f, 2971 0x15, 0xde, 0x93, 0x14, 0xbc, 0x59, 0x1e, 0xd5, 0xe7, 0x5a, 0x5e, 0xd1, 0x9c, 0xd9, 0xce, 0x19, 2972 0x6c, 0x96, 0xd4, 0x49, 0xe2, 0xaf, 0xf0, 0xca, 0xe4, 0xb4, 0x46, 0x93, 0x23, 0x79, 0x04, 0xcb, 2973 0xaf, 0x93, 0x1d, 0x99, 0xd6, 0xe7, 0xde, 0xbc, 0xc5, 0xcc, 0xca, 0x93, 0x92, 0x8f, 0x17, 0xbe, 2974 0xb0, 0xec, 0xbf, 0x2c, 0xd8, 0x7e, 0xcb, 0xe2, 0x12, 0x0f, 0xda, 0xe6, 0xd5, 0x35, 0xaf, 0x50, 2975 0xc0, 0xfd, 0x11, 0xca, 0xc3, 0xd1, 0x8b, 0x43, 0xc1, 0xdd, 0x58, 0x4a, 0xe4, 0x6e, 0x1a, 0x3f, 2976 0xe9, 0x45, 0x79, 0x63, 0x8f, 0x44, 0xec, 0x84, 0x98, 0xee, 0xec, 0x7f, 0xf8, 0x48, 0xa2, 0x98, 2977 0x8f, 0xc0, 0xdb, 0xa3, 0x2c, 0xdc, 0x26, 0xca, 0xbb, 0x7d, 0xd8, 0x3f, 0xc2, 0x66, 0x69, 0xe7, 2978 0x08, 0x81, 0x25, 0x7d, 0x15, 0xe1, 0xb4, 0x88, 0xe6, 0x4c, 0x1e, 0x41, 0x4d, 0x14, 0xe6, 0x6c, 2979 0xbb, 0x12, 0xf5, 0xd4, 0xfc, 0xba, 0xa2, 0x19, 0xf7, 0xf0, 0x4b, 0x58, 0x2f, 0x0c, 0x02, 0xa9, 2980 0x43, 0xed, 0xc5, 0xf0, 0xbb, 0xe1, 0xc9, 0xcb, 0x61, 0xf3, 0x0e, 0x69, 0x42, 0x63, 0x30, 0x1c, 2981 0x3c, 0x1f, 0xf4, 0x9e, 0x0d, 0xce, 0x06, 0xc3, 0xe3, 0xa6, 0x45, 0xd6, 0x60, 0x99, 0xf6, 0x7b, 2982 0x47, 0x3f, 0x35, 0x17, 0x0e, 0x9a, 0xbf, 0x5d, 0xb7, 0xad, 0xdf, 0xaf, 0xdb, 0xd6, 0x1f, 0xd7, 2983 0x6d, 0xeb, 0x97, 0x3f, 0xdb, 0x77, 0x9c, 0x15, 0x13, 0x66, 0xff, 0xdf, 0x00, 0x00, 0x00, 0xff, 2984 0xff, 0x48, 0x8b, 0xb8, 0x2d, 0x28, 0x0a, 0x00, 0x00, 2985 }