github.com/onosproject/onos-api/go@v0.10.32/onos/provisioner/aspects.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: onos/provisioner/aspects.proto 3 4 // Package provisioner defines the main device provisioner gRPC interface 5 6 package provisioner 7 8 import ( 9 fmt "fmt" 10 _ "github.com/gogo/protobuf/gogoproto" 11 proto "github.com/gogo/protobuf/proto" 12 _ "github.com/gogo/protobuf/types" 13 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 14 io "io" 15 math "math" 16 math_bits "math/bits" 17 time "time" 18 ) 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var _ = proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 var _ = time.Kitchen 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 ConfigStatus_State int32 33 34 const ( 35 ConfigStatus_PENDING ConfigStatus_State = 0 36 ConfigStatus_APPLIED ConfigStatus_State = 3 37 ConfigStatus_FAILED ConfigStatus_State = 4 38 ) 39 40 var ConfigStatus_State_name = map[int32]string{ 41 0: "PENDING", 42 3: "APPLIED", 43 4: "FAILED", 44 } 45 46 var ConfigStatus_State_value = map[string]int32{ 47 "PENDING": 0, 48 "APPLIED": 3, 49 "FAILED": 4, 50 } 51 52 func (x ConfigStatus_State) String() string { 53 return proto.EnumName(ConfigStatus_State_name, int32(x)) 54 } 55 56 func (ConfigStatus_State) EnumDescriptor() ([]byte, []int) { 57 return fileDescriptor_fa6a5635bb96ef51, []int{3, 0} 58 } 59 60 type Failure_Type int32 61 62 const ( 63 // UNKNOWN unknown failure 64 Failure_UNKNOWN Failure_Type = 0 65 // CANCELED 66 Failure_CANCELED Failure_Type = 1 67 // NOT_FOUND 68 Failure_NOT_FOUND Failure_Type = 2 69 // ALREADY_EXISTS 70 Failure_ALREADY_EXISTS Failure_Type = 3 71 // UNAUTHORIZED 72 Failure_UNAUTHORIZED Failure_Type = 4 73 // FORBIDDEN 74 Failure_FORBIDDEN Failure_Type = 5 75 // CONFLICT 76 Failure_CONFLICT Failure_Type = 6 77 // INVALID 78 Failure_INVALID Failure_Type = 7 79 // UNAVAILABLE 80 Failure_UNAVAILABLE Failure_Type = 8 81 // NOT_SUPPORTED 82 Failure_NOT_SUPPORTED Failure_Type = 9 83 // TIMEOUT 84 Failure_TIMEOUT Failure_Type = 10 85 // INTERNAL 86 Failure_INTERNAL Failure_Type = 11 87 ) 88 89 var Failure_Type_name = map[int32]string{ 90 0: "UNKNOWN", 91 1: "CANCELED", 92 2: "NOT_FOUND", 93 3: "ALREADY_EXISTS", 94 4: "UNAUTHORIZED", 95 5: "FORBIDDEN", 96 6: "CONFLICT", 97 7: "INVALID", 98 8: "UNAVAILABLE", 99 9: "NOT_SUPPORTED", 100 10: "TIMEOUT", 101 11: "INTERNAL", 102 } 103 104 var Failure_Type_value = map[string]int32{ 105 "UNKNOWN": 0, 106 "CANCELED": 1, 107 "NOT_FOUND": 2, 108 "ALREADY_EXISTS": 3, 109 "UNAUTHORIZED": 4, 110 "FORBIDDEN": 5, 111 "CONFLICT": 6, 112 "INVALID": 7, 113 "UNAVAILABLE": 8, 114 "NOT_SUPPORTED": 9, 115 "TIMEOUT": 10, 116 "INTERNAL": 11, 117 } 118 119 func (x Failure_Type) String() string { 120 return proto.EnumName(Failure_Type_name, int32(x)) 121 } 122 123 func (Failure_Type) EnumDescriptor() ([]byte, []int) { 124 return fileDescriptor_fa6a5635bb96ef51, []int{4, 0} 125 } 126 127 // DeviceConfig is a topology entity aspect used to specify what pipeline and chassis config a device should have applied to it 128 type DeviceConfig struct { 129 PipelineConfigID ConfigID `protobuf:"bytes,1,opt,name=pipeline_config_id,json=pipelineConfigId,proto3,casttype=ConfigID" json:"pipeline_config_id,omitempty"` 130 ChassisConfigID ConfigID `protobuf:"bytes,2,opt,name=chassis_config_id,json=chassisConfigId,proto3,casttype=ConfigID" json:"chassis_config_id,omitempty"` 131 } 132 133 func (m *DeviceConfig) Reset() { *m = DeviceConfig{} } 134 func (m *DeviceConfig) String() string { return proto.CompactTextString(m) } 135 func (*DeviceConfig) ProtoMessage() {} 136 func (*DeviceConfig) Descriptor() ([]byte, []int) { 137 return fileDescriptor_fa6a5635bb96ef51, []int{0} 138 } 139 func (m *DeviceConfig) XXX_Unmarshal(b []byte) error { 140 return m.Unmarshal(b) 141 } 142 func (m *DeviceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 143 if deterministic { 144 return xxx_messageInfo_DeviceConfig.Marshal(b, m, deterministic) 145 } else { 146 b = b[:cap(b)] 147 n, err := m.MarshalToSizedBuffer(b) 148 if err != nil { 149 return nil, err 150 } 151 return b[:n], nil 152 } 153 } 154 func (m *DeviceConfig) XXX_Merge(src proto.Message) { 155 xxx_messageInfo_DeviceConfig.Merge(m, src) 156 } 157 func (m *DeviceConfig) XXX_Size() int { 158 return m.Size() 159 } 160 func (m *DeviceConfig) XXX_DiscardUnknown() { 161 xxx_messageInfo_DeviceConfig.DiscardUnknown(m) 162 } 163 164 var xxx_messageInfo_DeviceConfig proto.InternalMessageInfo 165 166 func (m *DeviceConfig) GetPipelineConfigID() ConfigID { 167 if m != nil { 168 return m.PipelineConfigID 169 } 170 return "" 171 } 172 173 func (m *DeviceConfig) GetChassisConfigID() ConfigID { 174 if m != nil { 175 return m.ChassisConfigID 176 } 177 return "" 178 } 179 180 // PipelineConfigState is a topology entity aspect used to indicate what pipeline config a device has presently applied to it 181 type PipelineConfigState struct { 182 ConfigID ConfigID `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3,casttype=ConfigID" json:"config_id,omitempty"` 183 Cookie uint64 `protobuf:"varint,2,opt,name=cookie,proto3" json:"cookie,omitempty"` 184 Updated time.Time `protobuf:"bytes,3,opt,name=updated,proto3,stdtime" json:"updated"` 185 Status ConfigStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status"` 186 } 187 188 func (m *PipelineConfigState) Reset() { *m = PipelineConfigState{} } 189 func (m *PipelineConfigState) String() string { return proto.CompactTextString(m) } 190 func (*PipelineConfigState) ProtoMessage() {} 191 func (*PipelineConfigState) Descriptor() ([]byte, []int) { 192 return fileDescriptor_fa6a5635bb96ef51, []int{1} 193 } 194 func (m *PipelineConfigState) XXX_Unmarshal(b []byte) error { 195 return m.Unmarshal(b) 196 } 197 func (m *PipelineConfigState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 198 if deterministic { 199 return xxx_messageInfo_PipelineConfigState.Marshal(b, m, deterministic) 200 } else { 201 b = b[:cap(b)] 202 n, err := m.MarshalToSizedBuffer(b) 203 if err != nil { 204 return nil, err 205 } 206 return b[:n], nil 207 } 208 } 209 func (m *PipelineConfigState) XXX_Merge(src proto.Message) { 210 xxx_messageInfo_PipelineConfigState.Merge(m, src) 211 } 212 func (m *PipelineConfigState) XXX_Size() int { 213 return m.Size() 214 } 215 func (m *PipelineConfigState) XXX_DiscardUnknown() { 216 xxx_messageInfo_PipelineConfigState.DiscardUnknown(m) 217 } 218 219 var xxx_messageInfo_PipelineConfigState proto.InternalMessageInfo 220 221 func (m *PipelineConfigState) GetConfigID() ConfigID { 222 if m != nil { 223 return m.ConfigID 224 } 225 return "" 226 } 227 228 func (m *PipelineConfigState) GetCookie() uint64 { 229 if m != nil { 230 return m.Cookie 231 } 232 return 0 233 } 234 235 func (m *PipelineConfigState) GetUpdated() time.Time { 236 if m != nil { 237 return m.Updated 238 } 239 return time.Time{} 240 } 241 242 func (m *PipelineConfigState) GetStatus() ConfigStatus { 243 if m != nil { 244 return m.Status 245 } 246 return ConfigStatus{} 247 } 248 249 // ChassisConfigState is a topology entity aspect used to indicate what chassis config a device has presently applied to it 250 type ChassisConfigState struct { 251 ConfigID ConfigID `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3,casttype=ConfigID" json:"config_id,omitempty"` 252 Updated time.Time `protobuf:"bytes,2,opt,name=updated,proto3,stdtime" json:"updated"` 253 Status ConfigStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status"` 254 } 255 256 func (m *ChassisConfigState) Reset() { *m = ChassisConfigState{} } 257 func (m *ChassisConfigState) String() string { return proto.CompactTextString(m) } 258 func (*ChassisConfigState) ProtoMessage() {} 259 func (*ChassisConfigState) Descriptor() ([]byte, []int) { 260 return fileDescriptor_fa6a5635bb96ef51, []int{2} 261 } 262 func (m *ChassisConfigState) XXX_Unmarshal(b []byte) error { 263 return m.Unmarshal(b) 264 } 265 func (m *ChassisConfigState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 266 if deterministic { 267 return xxx_messageInfo_ChassisConfigState.Marshal(b, m, deterministic) 268 } else { 269 b = b[:cap(b)] 270 n, err := m.MarshalToSizedBuffer(b) 271 if err != nil { 272 return nil, err 273 } 274 return b[:n], nil 275 } 276 } 277 func (m *ChassisConfigState) XXX_Merge(src proto.Message) { 278 xxx_messageInfo_ChassisConfigState.Merge(m, src) 279 } 280 func (m *ChassisConfigState) XXX_Size() int { 281 return m.Size() 282 } 283 func (m *ChassisConfigState) XXX_DiscardUnknown() { 284 xxx_messageInfo_ChassisConfigState.DiscardUnknown(m) 285 } 286 287 var xxx_messageInfo_ChassisConfigState proto.InternalMessageInfo 288 289 func (m *ChassisConfigState) GetConfigID() ConfigID { 290 if m != nil { 291 return m.ConfigID 292 } 293 return "" 294 } 295 296 func (m *ChassisConfigState) GetUpdated() time.Time { 297 if m != nil { 298 return m.Updated 299 } 300 return time.Time{} 301 } 302 303 func (m *ChassisConfigState) GetStatus() ConfigStatus { 304 if m != nil { 305 return m.Status 306 } 307 return ConfigStatus{} 308 } 309 310 type ConfigStatus struct { 311 // 'state' config state 312 State ConfigStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=onos.provisioner.ConfigStatus_State" json:"state,omitempty"` 313 // 'failure' is the transaction failure (if any) 314 Failure *Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"` 315 } 316 317 func (m *ConfigStatus) Reset() { *m = ConfigStatus{} } 318 func (m *ConfigStatus) String() string { return proto.CompactTextString(m) } 319 func (*ConfigStatus) ProtoMessage() {} 320 func (*ConfigStatus) Descriptor() ([]byte, []int) { 321 return fileDescriptor_fa6a5635bb96ef51, []int{3} 322 } 323 func (m *ConfigStatus) XXX_Unmarshal(b []byte) error { 324 return m.Unmarshal(b) 325 } 326 func (m *ConfigStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 327 if deterministic { 328 return xxx_messageInfo_ConfigStatus.Marshal(b, m, deterministic) 329 } else { 330 b = b[:cap(b)] 331 n, err := m.MarshalToSizedBuffer(b) 332 if err != nil { 333 return nil, err 334 } 335 return b[:n], nil 336 } 337 } 338 func (m *ConfigStatus) XXX_Merge(src proto.Message) { 339 xxx_messageInfo_ConfigStatus.Merge(m, src) 340 } 341 func (m *ConfigStatus) XXX_Size() int { 342 return m.Size() 343 } 344 func (m *ConfigStatus) XXX_DiscardUnknown() { 345 xxx_messageInfo_ConfigStatus.DiscardUnknown(m) 346 } 347 348 var xxx_messageInfo_ConfigStatus proto.InternalMessageInfo 349 350 func (m *ConfigStatus) GetState() ConfigStatus_State { 351 if m != nil { 352 return m.State 353 } 354 return ConfigStatus_PENDING 355 } 356 357 func (m *ConfigStatus) GetFailure() *Failure { 358 if m != nil { 359 return m.Failure 360 } 361 return nil 362 } 363 364 // Failure config update failure type and description 365 type Failure struct { 366 Type Failure_Type `protobuf:"varint,1,opt,name=type,proto3,enum=onos.provisioner.Failure_Type" json:"type,omitempty"` 367 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 368 } 369 370 func (m *Failure) Reset() { *m = Failure{} } 371 func (m *Failure) String() string { return proto.CompactTextString(m) } 372 func (*Failure) ProtoMessage() {} 373 func (*Failure) Descriptor() ([]byte, []int) { 374 return fileDescriptor_fa6a5635bb96ef51, []int{4} 375 } 376 func (m *Failure) XXX_Unmarshal(b []byte) error { 377 return m.Unmarshal(b) 378 } 379 func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 380 if deterministic { 381 return xxx_messageInfo_Failure.Marshal(b, m, deterministic) 382 } else { 383 b = b[:cap(b)] 384 n, err := m.MarshalToSizedBuffer(b) 385 if err != nil { 386 return nil, err 387 } 388 return b[:n], nil 389 } 390 } 391 func (m *Failure) XXX_Merge(src proto.Message) { 392 xxx_messageInfo_Failure.Merge(m, src) 393 } 394 func (m *Failure) XXX_Size() int { 395 return m.Size() 396 } 397 func (m *Failure) XXX_DiscardUnknown() { 398 xxx_messageInfo_Failure.DiscardUnknown(m) 399 } 400 401 var xxx_messageInfo_Failure proto.InternalMessageInfo 402 403 func (m *Failure) GetType() Failure_Type { 404 if m != nil { 405 return m.Type 406 } 407 return Failure_UNKNOWN 408 } 409 410 func (m *Failure) GetDescription() string { 411 if m != nil { 412 return m.Description 413 } 414 return "" 415 } 416 417 func init() { 418 proto.RegisterEnum("onos.provisioner.ConfigStatus_State", ConfigStatus_State_name, ConfigStatus_State_value) 419 proto.RegisterEnum("onos.provisioner.Failure_Type", Failure_Type_name, Failure_Type_value) 420 proto.RegisterType((*DeviceConfig)(nil), "onos.provisioner.DeviceConfig") 421 proto.RegisterType((*PipelineConfigState)(nil), "onos.provisioner.PipelineConfigState") 422 proto.RegisterType((*ChassisConfigState)(nil), "onos.provisioner.ChassisConfigState") 423 proto.RegisterType((*ConfigStatus)(nil), "onos.provisioner.ConfigStatus") 424 proto.RegisterType((*Failure)(nil), "onos.provisioner.Failure") 425 } 426 427 func init() { proto.RegisterFile("onos/provisioner/aspects.proto", fileDescriptor_fa6a5635bb96ef51) } 428 429 var fileDescriptor_fa6a5635bb96ef51 = []byte{ 430 // 638 bytes of a gzipped FileDescriptorProto 431 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x52, 0xcb, 0x6e, 0xd3, 0x4c, 432 0x14, 0x8e, 0x93, 0x34, 0x97, 0x93, 0xb4, 0x9d, 0xce, 0xff, 0x0b, 0x85, 0x2e, 0x9c, 0x28, 0x62, 433 0xd1, 0x0d, 0x8e, 0xd4, 0x8a, 0x0d, 0x42, 0x48, 0x4e, 0xec, 0x80, 0x55, 0x33, 0x8e, 0x1c, 0xbb, 434 0x5c, 0x36, 0x91, 0xeb, 0x4c, 0xc3, 0x88, 0x36, 0x63, 0xc5, 0x4e, 0xa5, 0xbe, 0x45, 0x5f, 0x81, 435 0x35, 0x12, 0xaf, 0xc0, 0xb6, 0xec, 0xba, 0x64, 0x15, 0x90, 0xfb, 0x16, 0xac, 0xd0, 0xd8, 0xb1, 436 0x48, 0xca, 0x65, 0x41, 0x77, 0x9e, 0xf9, 0x2e, 0xe7, 0xfb, 0x8e, 0x07, 0x64, 0x3e, 0xe5, 0x61, 437 0x27, 0x98, 0xf1, 0x73, 0x16, 0x32, 0x3e, 0xa5, 0xb3, 0x8e, 0x17, 0x06, 0xd4, 0x8f, 0x42, 0x25, 438 0x98, 0xf1, 0x88, 0x63, 0x24, 0x70, 0x65, 0x05, 0xdf, 0xfd, 0x7f, 0xc2, 0x27, 0x3c, 0x01, 0x3b, 439 0xe2, 0x2b, 0xe5, 0xed, 0x36, 0x27, 0x9c, 0x4f, 0x4e, 0x69, 0x27, 0x39, 0x1d, 0xcf, 0x4f, 0x3a, 440 0x11, 0x3b, 0xa3, 0x61, 0xe4, 0x9d, 0x05, 0x29, 0xa1, 0xfd, 0x41, 0x82, 0xba, 0x46, 0xcf, 0x99, 441 0x4f, 0x7b, 0x7c, 0x7a, 0xc2, 0x26, 0x98, 0x00, 0x0e, 0x58, 0x40, 0x4f, 0xd9, 0x94, 0x8e, 0xfc, 442 0xe4, 0x6a, 0xc4, 0xc6, 0x0d, 0xa9, 0x25, 0xed, 0x55, 0xbb, 0xad, 0x78, 0xd1, 0x44, 0x83, 0x25, 443 0x9a, 0xf2, 0x0d, 0xed, 0xfb, 0xa2, 0x59, 0xc9, 0xbe, 0x6d, 0x14, 0xac, 0xa3, 0x63, 0x7c, 0x08, 444 0x3b, 0xfe, 0x5b, 0x2f, 0x0c, 0x59, 0xb8, 0x62, 0x97, 0x4f, 0xec, 0x9a, 0xf1, 0xa2, 0xb9, 0xdd, 445 0x4b, 0xc1, 0xdf, 0xba, 0x6d, 0xfb, 0x6b, 0xe0, 0xb8, 0x1d, 0x4b, 0xf0, 0xdf, 0xfa, 0xfc, 0x61, 446 0xe4, 0x45, 0x14, 0x3f, 0x82, 0xea, 0xed, 0xac, 0x8d, 0x78, 0xc5, 0x69, 0xcd, 0xb5, 0xe2, 0x67, 447 0xd9, 0xee, 0x41, 0xc9, 0xe7, 0xfc, 0x1d, 0xa3, 0x49, 0xa0, 0xa2, 0xbd, 0x3c, 0xe1, 0xa7, 0x50, 448 0x9e, 0x07, 0x63, 0x2f, 0xa2, 0xe3, 0x46, 0xa1, 0x25, 0xed, 0xd5, 0xf6, 0x77, 0x95, 0x74, 0x8f, 449 0x4a, 0xb6, 0x47, 0xc5, 0xc9, 0xf6, 0xd8, 0xad, 0x5c, 0x2d, 0x9a, 0xb9, 0xcb, 0xaf, 0x4d, 0xc9, 450 0xce, 0x44, 0xf8, 0x09, 0x94, 0xc2, 0xc8, 0x8b, 0xe6, 0x61, 0xa3, 0x98, 0xc8, 0x65, 0xe5, 0xf6, 451 0xef, 0x52, 0x7e, 0xa6, 0x9f, 0x87, 0xdd, 0xa2, 0xb0, 0xb0, 0x97, 0x9a, 0xf6, 0x67, 0x09, 0xf0, 452 0xda, 0x56, 0xee, 0xd4, 0x71, 0xa5, 0x4b, 0xfe, 0x6e, 0x5d, 0x0a, 0xff, 0xd0, 0xe5, 0xa3, 0x04, 453 0xf5, 0x55, 0x18, 0x3f, 0x86, 0x0d, 0x01, 0xd1, 0xa4, 0xc1, 0xd6, 0xfe, 0x83, 0xbf, 0xbb, 0x29, 454 0x49, 0x75, 0x3b, 0x95, 0xe0, 0x03, 0x28, 0x9f, 0x78, 0xec, 0x74, 0x3e, 0xa3, 0xcb, 0x2a, 0xf7, 455 0x7f, 0x55, 0xf7, 0x53, 0x82, 0x9d, 0x31, 0xdb, 0x0f, 0x61, 0x23, 0xdd, 0x5f, 0x0d, 0xca, 0x03, 456 0x9d, 0x68, 0x06, 0x79, 0x86, 0x72, 0xe2, 0xa0, 0x0e, 0x06, 0xa6, 0xa1, 0x6b, 0xa8, 0x80, 0x01, 457 0x4a, 0x7d, 0xd5, 0x30, 0x75, 0x0d, 0x15, 0xdb, 0xef, 0xf3, 0x50, 0x5e, 0x7a, 0xe0, 0x7d, 0x28, 458 0x46, 0x17, 0x41, 0x16, 0x55, 0xfe, 0xe3, 0x30, 0xc5, 0xb9, 0x08, 0xa8, 0x9d, 0x70, 0x71, 0x0b, 459 0x6a, 0x63, 0x1a, 0xfa, 0x33, 0x16, 0x44, 0x8c, 0x4f, 0xd3, 0x87, 0x6e, 0xaf, 0x5e, 0xb5, 0x3f, 460 0x49, 0x50, 0x14, 0x02, 0x91, 0xc1, 0x25, 0x87, 0xc4, 0x7a, 0x49, 0x50, 0x0e, 0xd7, 0xa1, 0xd2, 461 0x53, 0x49, 0x4f, 0x17, 0x29, 0x24, 0xbc, 0x09, 0x55, 0x62, 0x39, 0xa3, 0xbe, 0xe5, 0x12, 0x0d, 462 0xe5, 0x31, 0x86, 0x2d, 0xd5, 0xb4, 0x75, 0x55, 0x7b, 0x3d, 0xd2, 0x5f, 0x19, 0x43, 0x67, 0x88, 463 0x0a, 0x18, 0x41, 0xdd, 0x25, 0xaa, 0xeb, 0x3c, 0xb7, 0x6c, 0xe3, 0x8d, 0x88, 0x2e, 0x44, 0x7d, 464 0xcb, 0xee, 0x1a, 0x9a, 0xa6, 0x13, 0xb4, 0x91, 0x38, 0x5a, 0xa4, 0x6f, 0x1a, 0x3d, 0x07, 0x95, 465 0xc4, 0x30, 0x83, 0x1c, 0xa9, 0xa6, 0xa1, 0xa1, 0x32, 0xde, 0x86, 0x9a, 0x4b, 0xd4, 0x23, 0xd5, 466 0x30, 0xd5, 0xae, 0xa9, 0xa3, 0x0a, 0xde, 0x81, 0x4d, 0x31, 0x6f, 0xe8, 0x0e, 0x06, 0x96, 0xed, 467 0xe8, 0x1a, 0xaa, 0x0a, 0x81, 0x63, 0xbc, 0xd0, 0x2d, 0xd7, 0x41, 0x20, 0xbc, 0x0c, 0xe2, 0xe8, 468 0x36, 0x51, 0x4d, 0x54, 0xeb, 0x36, 0xae, 0x62, 0x59, 0xba, 0x8e, 0x65, 0xe9, 0x5b, 0x2c, 0x4b, 469 0x97, 0x37, 0x72, 0xee, 0xfa, 0x46, 0xce, 0x7d, 0xb9, 0x91, 0x73, 0xc7, 0xa5, 0xe4, 0x4d, 0x1d, 470 0xfc, 0x08, 0x00, 0x00, 0xff, 0xff, 0x35, 0xd4, 0xd7, 0x05, 0xbf, 0x04, 0x00, 0x00, 471 } 472 473 func (m *DeviceConfig) Marshal() (dAtA []byte, err error) { 474 size := m.Size() 475 dAtA = make([]byte, size) 476 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 477 if err != nil { 478 return nil, err 479 } 480 return dAtA[:n], nil 481 } 482 483 func (m *DeviceConfig) MarshalTo(dAtA []byte) (int, error) { 484 size := m.Size() 485 return m.MarshalToSizedBuffer(dAtA[:size]) 486 } 487 488 func (m *DeviceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { 489 i := len(dAtA) 490 _ = i 491 var l int 492 _ = l 493 if len(m.ChassisConfigID) > 0 { 494 i -= len(m.ChassisConfigID) 495 copy(dAtA[i:], m.ChassisConfigID) 496 i = encodeVarintAspects(dAtA, i, uint64(len(m.ChassisConfigID))) 497 i-- 498 dAtA[i] = 0x12 499 } 500 if len(m.PipelineConfigID) > 0 { 501 i -= len(m.PipelineConfigID) 502 copy(dAtA[i:], m.PipelineConfigID) 503 i = encodeVarintAspects(dAtA, i, uint64(len(m.PipelineConfigID))) 504 i-- 505 dAtA[i] = 0xa 506 } 507 return len(dAtA) - i, nil 508 } 509 510 func (m *PipelineConfigState) Marshal() (dAtA []byte, err error) { 511 size := m.Size() 512 dAtA = make([]byte, size) 513 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 514 if err != nil { 515 return nil, err 516 } 517 return dAtA[:n], nil 518 } 519 520 func (m *PipelineConfigState) MarshalTo(dAtA []byte) (int, error) { 521 size := m.Size() 522 return m.MarshalToSizedBuffer(dAtA[:size]) 523 } 524 525 func (m *PipelineConfigState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 526 i := len(dAtA) 527 _ = i 528 var l int 529 _ = l 530 { 531 size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) 532 if err != nil { 533 return 0, err 534 } 535 i -= size 536 i = encodeVarintAspects(dAtA, i, uint64(size)) 537 } 538 i-- 539 dAtA[i] = 0x22 540 n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Updated, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Updated):]) 541 if err2 != nil { 542 return 0, err2 543 } 544 i -= n2 545 i = encodeVarintAspects(dAtA, i, uint64(n2)) 546 i-- 547 dAtA[i] = 0x1a 548 if m.Cookie != 0 { 549 i = encodeVarintAspects(dAtA, i, uint64(m.Cookie)) 550 i-- 551 dAtA[i] = 0x10 552 } 553 if len(m.ConfigID) > 0 { 554 i -= len(m.ConfigID) 555 copy(dAtA[i:], m.ConfigID) 556 i = encodeVarintAspects(dAtA, i, uint64(len(m.ConfigID))) 557 i-- 558 dAtA[i] = 0xa 559 } 560 return len(dAtA) - i, nil 561 } 562 563 func (m *ChassisConfigState) Marshal() (dAtA []byte, err error) { 564 size := m.Size() 565 dAtA = make([]byte, size) 566 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 567 if err != nil { 568 return nil, err 569 } 570 return dAtA[:n], nil 571 } 572 573 func (m *ChassisConfigState) MarshalTo(dAtA []byte) (int, error) { 574 size := m.Size() 575 return m.MarshalToSizedBuffer(dAtA[:size]) 576 } 577 578 func (m *ChassisConfigState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 579 i := len(dAtA) 580 _ = i 581 var l int 582 _ = l 583 { 584 size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) 585 if err != nil { 586 return 0, err 587 } 588 i -= size 589 i = encodeVarintAspects(dAtA, i, uint64(size)) 590 } 591 i-- 592 dAtA[i] = 0x1a 593 n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Updated, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Updated):]) 594 if err4 != nil { 595 return 0, err4 596 } 597 i -= n4 598 i = encodeVarintAspects(dAtA, i, uint64(n4)) 599 i-- 600 dAtA[i] = 0x12 601 if len(m.ConfigID) > 0 { 602 i -= len(m.ConfigID) 603 copy(dAtA[i:], m.ConfigID) 604 i = encodeVarintAspects(dAtA, i, uint64(len(m.ConfigID))) 605 i-- 606 dAtA[i] = 0xa 607 } 608 return len(dAtA) - i, nil 609 } 610 611 func (m *ConfigStatus) Marshal() (dAtA []byte, err error) { 612 size := m.Size() 613 dAtA = make([]byte, size) 614 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 615 if err != nil { 616 return nil, err 617 } 618 return dAtA[:n], nil 619 } 620 621 func (m *ConfigStatus) MarshalTo(dAtA []byte) (int, error) { 622 size := m.Size() 623 return m.MarshalToSizedBuffer(dAtA[:size]) 624 } 625 626 func (m *ConfigStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 627 i := len(dAtA) 628 _ = i 629 var l int 630 _ = l 631 if m.Failure != nil { 632 { 633 size, err := m.Failure.MarshalToSizedBuffer(dAtA[:i]) 634 if err != nil { 635 return 0, err 636 } 637 i -= size 638 i = encodeVarintAspects(dAtA, i, uint64(size)) 639 } 640 i-- 641 dAtA[i] = 0x12 642 } 643 if m.State != 0 { 644 i = encodeVarintAspects(dAtA, i, uint64(m.State)) 645 i-- 646 dAtA[i] = 0x8 647 } 648 return len(dAtA) - i, nil 649 } 650 651 func (m *Failure) Marshal() (dAtA []byte, err error) { 652 size := m.Size() 653 dAtA = make([]byte, size) 654 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 655 if err != nil { 656 return nil, err 657 } 658 return dAtA[:n], nil 659 } 660 661 func (m *Failure) MarshalTo(dAtA []byte) (int, error) { 662 size := m.Size() 663 return m.MarshalToSizedBuffer(dAtA[:size]) 664 } 665 666 func (m *Failure) MarshalToSizedBuffer(dAtA []byte) (int, error) { 667 i := len(dAtA) 668 _ = i 669 var l int 670 _ = l 671 if len(m.Description) > 0 { 672 i -= len(m.Description) 673 copy(dAtA[i:], m.Description) 674 i = encodeVarintAspects(dAtA, i, uint64(len(m.Description))) 675 i-- 676 dAtA[i] = 0x12 677 } 678 if m.Type != 0 { 679 i = encodeVarintAspects(dAtA, i, uint64(m.Type)) 680 i-- 681 dAtA[i] = 0x8 682 } 683 return len(dAtA) - i, nil 684 } 685 686 func encodeVarintAspects(dAtA []byte, offset int, v uint64) int { 687 offset -= sovAspects(v) 688 base := offset 689 for v >= 1<<7 { 690 dAtA[offset] = uint8(v&0x7f | 0x80) 691 v >>= 7 692 offset++ 693 } 694 dAtA[offset] = uint8(v) 695 return base 696 } 697 func (m *DeviceConfig) Size() (n int) { 698 if m == nil { 699 return 0 700 } 701 var l int 702 _ = l 703 l = len(m.PipelineConfigID) 704 if l > 0 { 705 n += 1 + l + sovAspects(uint64(l)) 706 } 707 l = len(m.ChassisConfigID) 708 if l > 0 { 709 n += 1 + l + sovAspects(uint64(l)) 710 } 711 return n 712 } 713 714 func (m *PipelineConfigState) Size() (n int) { 715 if m == nil { 716 return 0 717 } 718 var l int 719 _ = l 720 l = len(m.ConfigID) 721 if l > 0 { 722 n += 1 + l + sovAspects(uint64(l)) 723 } 724 if m.Cookie != 0 { 725 n += 1 + sovAspects(uint64(m.Cookie)) 726 } 727 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Updated) 728 n += 1 + l + sovAspects(uint64(l)) 729 l = m.Status.Size() 730 n += 1 + l + sovAspects(uint64(l)) 731 return n 732 } 733 734 func (m *ChassisConfigState) Size() (n int) { 735 if m == nil { 736 return 0 737 } 738 var l int 739 _ = l 740 l = len(m.ConfigID) 741 if l > 0 { 742 n += 1 + l + sovAspects(uint64(l)) 743 } 744 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Updated) 745 n += 1 + l + sovAspects(uint64(l)) 746 l = m.Status.Size() 747 n += 1 + l + sovAspects(uint64(l)) 748 return n 749 } 750 751 func (m *ConfigStatus) Size() (n int) { 752 if m == nil { 753 return 0 754 } 755 var l int 756 _ = l 757 if m.State != 0 { 758 n += 1 + sovAspects(uint64(m.State)) 759 } 760 if m.Failure != nil { 761 l = m.Failure.Size() 762 n += 1 + l + sovAspects(uint64(l)) 763 } 764 return n 765 } 766 767 func (m *Failure) Size() (n int) { 768 if m == nil { 769 return 0 770 } 771 var l int 772 _ = l 773 if m.Type != 0 { 774 n += 1 + sovAspects(uint64(m.Type)) 775 } 776 l = len(m.Description) 777 if l > 0 { 778 n += 1 + l + sovAspects(uint64(l)) 779 } 780 return n 781 } 782 783 func sovAspects(x uint64) (n int) { 784 return (math_bits.Len64(x|1) + 6) / 7 785 } 786 func sozAspects(x uint64) (n int) { 787 return sovAspects(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 788 } 789 func (m *DeviceConfig) Unmarshal(dAtA []byte) error { 790 l := len(dAtA) 791 iNdEx := 0 792 for iNdEx < l { 793 preIndex := iNdEx 794 var wire uint64 795 for shift := uint(0); ; shift += 7 { 796 if shift >= 64 { 797 return ErrIntOverflowAspects 798 } 799 if iNdEx >= l { 800 return io.ErrUnexpectedEOF 801 } 802 b := dAtA[iNdEx] 803 iNdEx++ 804 wire |= uint64(b&0x7F) << shift 805 if b < 0x80 { 806 break 807 } 808 } 809 fieldNum := int32(wire >> 3) 810 wireType := int(wire & 0x7) 811 if wireType == 4 { 812 return fmt.Errorf("proto: DeviceConfig: wiretype end group for non-group") 813 } 814 if fieldNum <= 0 { 815 return fmt.Errorf("proto: DeviceConfig: illegal tag %d (wire type %d)", fieldNum, wire) 816 } 817 switch fieldNum { 818 case 1: 819 if wireType != 2 { 820 return fmt.Errorf("proto: wrong wireType = %d for field PipelineConfigID", wireType) 821 } 822 var stringLen uint64 823 for shift := uint(0); ; shift += 7 { 824 if shift >= 64 { 825 return ErrIntOverflowAspects 826 } 827 if iNdEx >= l { 828 return io.ErrUnexpectedEOF 829 } 830 b := dAtA[iNdEx] 831 iNdEx++ 832 stringLen |= uint64(b&0x7F) << shift 833 if b < 0x80 { 834 break 835 } 836 } 837 intStringLen := int(stringLen) 838 if intStringLen < 0 { 839 return ErrInvalidLengthAspects 840 } 841 postIndex := iNdEx + intStringLen 842 if postIndex < 0 { 843 return ErrInvalidLengthAspects 844 } 845 if postIndex > l { 846 return io.ErrUnexpectedEOF 847 } 848 m.PipelineConfigID = ConfigID(dAtA[iNdEx:postIndex]) 849 iNdEx = postIndex 850 case 2: 851 if wireType != 2 { 852 return fmt.Errorf("proto: wrong wireType = %d for field ChassisConfigID", wireType) 853 } 854 var stringLen uint64 855 for shift := uint(0); ; shift += 7 { 856 if shift >= 64 { 857 return ErrIntOverflowAspects 858 } 859 if iNdEx >= l { 860 return io.ErrUnexpectedEOF 861 } 862 b := dAtA[iNdEx] 863 iNdEx++ 864 stringLen |= uint64(b&0x7F) << shift 865 if b < 0x80 { 866 break 867 } 868 } 869 intStringLen := int(stringLen) 870 if intStringLen < 0 { 871 return ErrInvalidLengthAspects 872 } 873 postIndex := iNdEx + intStringLen 874 if postIndex < 0 { 875 return ErrInvalidLengthAspects 876 } 877 if postIndex > l { 878 return io.ErrUnexpectedEOF 879 } 880 m.ChassisConfigID = ConfigID(dAtA[iNdEx:postIndex]) 881 iNdEx = postIndex 882 default: 883 iNdEx = preIndex 884 skippy, err := skipAspects(dAtA[iNdEx:]) 885 if err != nil { 886 return err 887 } 888 if (skippy < 0) || (iNdEx+skippy) < 0 { 889 return ErrInvalidLengthAspects 890 } 891 if (iNdEx + skippy) > l { 892 return io.ErrUnexpectedEOF 893 } 894 iNdEx += skippy 895 } 896 } 897 898 if iNdEx > l { 899 return io.ErrUnexpectedEOF 900 } 901 return nil 902 } 903 func (m *PipelineConfigState) Unmarshal(dAtA []byte) error { 904 l := len(dAtA) 905 iNdEx := 0 906 for iNdEx < l { 907 preIndex := iNdEx 908 var wire uint64 909 for shift := uint(0); ; shift += 7 { 910 if shift >= 64 { 911 return ErrIntOverflowAspects 912 } 913 if iNdEx >= l { 914 return io.ErrUnexpectedEOF 915 } 916 b := dAtA[iNdEx] 917 iNdEx++ 918 wire |= uint64(b&0x7F) << shift 919 if b < 0x80 { 920 break 921 } 922 } 923 fieldNum := int32(wire >> 3) 924 wireType := int(wire & 0x7) 925 if wireType == 4 { 926 return fmt.Errorf("proto: PipelineConfigState: wiretype end group for non-group") 927 } 928 if fieldNum <= 0 { 929 return fmt.Errorf("proto: PipelineConfigState: illegal tag %d (wire type %d)", fieldNum, wire) 930 } 931 switch fieldNum { 932 case 1: 933 if wireType != 2 { 934 return fmt.Errorf("proto: wrong wireType = %d for field ConfigID", wireType) 935 } 936 var stringLen uint64 937 for shift := uint(0); ; shift += 7 { 938 if shift >= 64 { 939 return ErrIntOverflowAspects 940 } 941 if iNdEx >= l { 942 return io.ErrUnexpectedEOF 943 } 944 b := dAtA[iNdEx] 945 iNdEx++ 946 stringLen |= uint64(b&0x7F) << shift 947 if b < 0x80 { 948 break 949 } 950 } 951 intStringLen := int(stringLen) 952 if intStringLen < 0 { 953 return ErrInvalidLengthAspects 954 } 955 postIndex := iNdEx + intStringLen 956 if postIndex < 0 { 957 return ErrInvalidLengthAspects 958 } 959 if postIndex > l { 960 return io.ErrUnexpectedEOF 961 } 962 m.ConfigID = ConfigID(dAtA[iNdEx:postIndex]) 963 iNdEx = postIndex 964 case 2: 965 if wireType != 0 { 966 return fmt.Errorf("proto: wrong wireType = %d for field Cookie", wireType) 967 } 968 m.Cookie = 0 969 for shift := uint(0); ; shift += 7 { 970 if shift >= 64 { 971 return ErrIntOverflowAspects 972 } 973 if iNdEx >= l { 974 return io.ErrUnexpectedEOF 975 } 976 b := dAtA[iNdEx] 977 iNdEx++ 978 m.Cookie |= uint64(b&0x7F) << shift 979 if b < 0x80 { 980 break 981 } 982 } 983 case 3: 984 if wireType != 2 { 985 return fmt.Errorf("proto: wrong wireType = %d for field Updated", wireType) 986 } 987 var msglen int 988 for shift := uint(0); ; shift += 7 { 989 if shift >= 64 { 990 return ErrIntOverflowAspects 991 } 992 if iNdEx >= l { 993 return io.ErrUnexpectedEOF 994 } 995 b := dAtA[iNdEx] 996 iNdEx++ 997 msglen |= int(b&0x7F) << shift 998 if b < 0x80 { 999 break 1000 } 1001 } 1002 if msglen < 0 { 1003 return ErrInvalidLengthAspects 1004 } 1005 postIndex := iNdEx + msglen 1006 if postIndex < 0 { 1007 return ErrInvalidLengthAspects 1008 } 1009 if postIndex > l { 1010 return io.ErrUnexpectedEOF 1011 } 1012 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Updated, dAtA[iNdEx:postIndex]); err != nil { 1013 return err 1014 } 1015 iNdEx = postIndex 1016 case 4: 1017 if wireType != 2 { 1018 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 1019 } 1020 var msglen int 1021 for shift := uint(0); ; shift += 7 { 1022 if shift >= 64 { 1023 return ErrIntOverflowAspects 1024 } 1025 if iNdEx >= l { 1026 return io.ErrUnexpectedEOF 1027 } 1028 b := dAtA[iNdEx] 1029 iNdEx++ 1030 msglen |= int(b&0x7F) << shift 1031 if b < 0x80 { 1032 break 1033 } 1034 } 1035 if msglen < 0 { 1036 return ErrInvalidLengthAspects 1037 } 1038 postIndex := iNdEx + msglen 1039 if postIndex < 0 { 1040 return ErrInvalidLengthAspects 1041 } 1042 if postIndex > l { 1043 return io.ErrUnexpectedEOF 1044 } 1045 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1046 return err 1047 } 1048 iNdEx = postIndex 1049 default: 1050 iNdEx = preIndex 1051 skippy, err := skipAspects(dAtA[iNdEx:]) 1052 if err != nil { 1053 return err 1054 } 1055 if (skippy < 0) || (iNdEx+skippy) < 0 { 1056 return ErrInvalidLengthAspects 1057 } 1058 if (iNdEx + skippy) > l { 1059 return io.ErrUnexpectedEOF 1060 } 1061 iNdEx += skippy 1062 } 1063 } 1064 1065 if iNdEx > l { 1066 return io.ErrUnexpectedEOF 1067 } 1068 return nil 1069 } 1070 func (m *ChassisConfigState) Unmarshal(dAtA []byte) error { 1071 l := len(dAtA) 1072 iNdEx := 0 1073 for iNdEx < l { 1074 preIndex := iNdEx 1075 var wire uint64 1076 for shift := uint(0); ; shift += 7 { 1077 if shift >= 64 { 1078 return ErrIntOverflowAspects 1079 } 1080 if iNdEx >= l { 1081 return io.ErrUnexpectedEOF 1082 } 1083 b := dAtA[iNdEx] 1084 iNdEx++ 1085 wire |= uint64(b&0x7F) << shift 1086 if b < 0x80 { 1087 break 1088 } 1089 } 1090 fieldNum := int32(wire >> 3) 1091 wireType := int(wire & 0x7) 1092 if wireType == 4 { 1093 return fmt.Errorf("proto: ChassisConfigState: wiretype end group for non-group") 1094 } 1095 if fieldNum <= 0 { 1096 return fmt.Errorf("proto: ChassisConfigState: illegal tag %d (wire type %d)", fieldNum, wire) 1097 } 1098 switch fieldNum { 1099 case 1: 1100 if wireType != 2 { 1101 return fmt.Errorf("proto: wrong wireType = %d for field ConfigID", wireType) 1102 } 1103 var stringLen uint64 1104 for shift := uint(0); ; shift += 7 { 1105 if shift >= 64 { 1106 return ErrIntOverflowAspects 1107 } 1108 if iNdEx >= l { 1109 return io.ErrUnexpectedEOF 1110 } 1111 b := dAtA[iNdEx] 1112 iNdEx++ 1113 stringLen |= uint64(b&0x7F) << shift 1114 if b < 0x80 { 1115 break 1116 } 1117 } 1118 intStringLen := int(stringLen) 1119 if intStringLen < 0 { 1120 return ErrInvalidLengthAspects 1121 } 1122 postIndex := iNdEx + intStringLen 1123 if postIndex < 0 { 1124 return ErrInvalidLengthAspects 1125 } 1126 if postIndex > l { 1127 return io.ErrUnexpectedEOF 1128 } 1129 m.ConfigID = ConfigID(dAtA[iNdEx:postIndex]) 1130 iNdEx = postIndex 1131 case 2: 1132 if wireType != 2 { 1133 return fmt.Errorf("proto: wrong wireType = %d for field Updated", wireType) 1134 } 1135 var msglen int 1136 for shift := uint(0); ; shift += 7 { 1137 if shift >= 64 { 1138 return ErrIntOverflowAspects 1139 } 1140 if iNdEx >= l { 1141 return io.ErrUnexpectedEOF 1142 } 1143 b := dAtA[iNdEx] 1144 iNdEx++ 1145 msglen |= int(b&0x7F) << shift 1146 if b < 0x80 { 1147 break 1148 } 1149 } 1150 if msglen < 0 { 1151 return ErrInvalidLengthAspects 1152 } 1153 postIndex := iNdEx + msglen 1154 if postIndex < 0 { 1155 return ErrInvalidLengthAspects 1156 } 1157 if postIndex > l { 1158 return io.ErrUnexpectedEOF 1159 } 1160 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Updated, dAtA[iNdEx:postIndex]); err != nil { 1161 return err 1162 } 1163 iNdEx = postIndex 1164 case 3: 1165 if wireType != 2 { 1166 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 1167 } 1168 var msglen int 1169 for shift := uint(0); ; shift += 7 { 1170 if shift >= 64 { 1171 return ErrIntOverflowAspects 1172 } 1173 if iNdEx >= l { 1174 return io.ErrUnexpectedEOF 1175 } 1176 b := dAtA[iNdEx] 1177 iNdEx++ 1178 msglen |= int(b&0x7F) << shift 1179 if b < 0x80 { 1180 break 1181 } 1182 } 1183 if msglen < 0 { 1184 return ErrInvalidLengthAspects 1185 } 1186 postIndex := iNdEx + msglen 1187 if postIndex < 0 { 1188 return ErrInvalidLengthAspects 1189 } 1190 if postIndex > l { 1191 return io.ErrUnexpectedEOF 1192 } 1193 if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1194 return err 1195 } 1196 iNdEx = postIndex 1197 default: 1198 iNdEx = preIndex 1199 skippy, err := skipAspects(dAtA[iNdEx:]) 1200 if err != nil { 1201 return err 1202 } 1203 if (skippy < 0) || (iNdEx+skippy) < 0 { 1204 return ErrInvalidLengthAspects 1205 } 1206 if (iNdEx + skippy) > l { 1207 return io.ErrUnexpectedEOF 1208 } 1209 iNdEx += skippy 1210 } 1211 } 1212 1213 if iNdEx > l { 1214 return io.ErrUnexpectedEOF 1215 } 1216 return nil 1217 } 1218 func (m *ConfigStatus) Unmarshal(dAtA []byte) error { 1219 l := len(dAtA) 1220 iNdEx := 0 1221 for iNdEx < l { 1222 preIndex := iNdEx 1223 var wire uint64 1224 for shift := uint(0); ; shift += 7 { 1225 if shift >= 64 { 1226 return ErrIntOverflowAspects 1227 } 1228 if iNdEx >= l { 1229 return io.ErrUnexpectedEOF 1230 } 1231 b := dAtA[iNdEx] 1232 iNdEx++ 1233 wire |= uint64(b&0x7F) << shift 1234 if b < 0x80 { 1235 break 1236 } 1237 } 1238 fieldNum := int32(wire >> 3) 1239 wireType := int(wire & 0x7) 1240 if wireType == 4 { 1241 return fmt.Errorf("proto: ConfigStatus: wiretype end group for non-group") 1242 } 1243 if fieldNum <= 0 { 1244 return fmt.Errorf("proto: ConfigStatus: illegal tag %d (wire type %d)", fieldNum, wire) 1245 } 1246 switch fieldNum { 1247 case 1: 1248 if wireType != 0 { 1249 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 1250 } 1251 m.State = 0 1252 for shift := uint(0); ; shift += 7 { 1253 if shift >= 64 { 1254 return ErrIntOverflowAspects 1255 } 1256 if iNdEx >= l { 1257 return io.ErrUnexpectedEOF 1258 } 1259 b := dAtA[iNdEx] 1260 iNdEx++ 1261 m.State |= ConfigStatus_State(b&0x7F) << shift 1262 if b < 0x80 { 1263 break 1264 } 1265 } 1266 case 2: 1267 if wireType != 2 { 1268 return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) 1269 } 1270 var msglen int 1271 for shift := uint(0); ; shift += 7 { 1272 if shift >= 64 { 1273 return ErrIntOverflowAspects 1274 } 1275 if iNdEx >= l { 1276 return io.ErrUnexpectedEOF 1277 } 1278 b := dAtA[iNdEx] 1279 iNdEx++ 1280 msglen |= int(b&0x7F) << shift 1281 if b < 0x80 { 1282 break 1283 } 1284 } 1285 if msglen < 0 { 1286 return ErrInvalidLengthAspects 1287 } 1288 postIndex := iNdEx + msglen 1289 if postIndex < 0 { 1290 return ErrInvalidLengthAspects 1291 } 1292 if postIndex > l { 1293 return io.ErrUnexpectedEOF 1294 } 1295 if m.Failure == nil { 1296 m.Failure = &Failure{} 1297 } 1298 if err := m.Failure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1299 return err 1300 } 1301 iNdEx = postIndex 1302 default: 1303 iNdEx = preIndex 1304 skippy, err := skipAspects(dAtA[iNdEx:]) 1305 if err != nil { 1306 return err 1307 } 1308 if (skippy < 0) || (iNdEx+skippy) < 0 { 1309 return ErrInvalidLengthAspects 1310 } 1311 if (iNdEx + skippy) > l { 1312 return io.ErrUnexpectedEOF 1313 } 1314 iNdEx += skippy 1315 } 1316 } 1317 1318 if iNdEx > l { 1319 return io.ErrUnexpectedEOF 1320 } 1321 return nil 1322 } 1323 func (m *Failure) Unmarshal(dAtA []byte) error { 1324 l := len(dAtA) 1325 iNdEx := 0 1326 for iNdEx < l { 1327 preIndex := iNdEx 1328 var wire uint64 1329 for shift := uint(0); ; shift += 7 { 1330 if shift >= 64 { 1331 return ErrIntOverflowAspects 1332 } 1333 if iNdEx >= l { 1334 return io.ErrUnexpectedEOF 1335 } 1336 b := dAtA[iNdEx] 1337 iNdEx++ 1338 wire |= uint64(b&0x7F) << shift 1339 if b < 0x80 { 1340 break 1341 } 1342 } 1343 fieldNum := int32(wire >> 3) 1344 wireType := int(wire & 0x7) 1345 if wireType == 4 { 1346 return fmt.Errorf("proto: Failure: wiretype end group for non-group") 1347 } 1348 if fieldNum <= 0 { 1349 return fmt.Errorf("proto: Failure: illegal tag %d (wire type %d)", fieldNum, wire) 1350 } 1351 switch fieldNum { 1352 case 1: 1353 if wireType != 0 { 1354 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 1355 } 1356 m.Type = 0 1357 for shift := uint(0); ; shift += 7 { 1358 if shift >= 64 { 1359 return ErrIntOverflowAspects 1360 } 1361 if iNdEx >= l { 1362 return io.ErrUnexpectedEOF 1363 } 1364 b := dAtA[iNdEx] 1365 iNdEx++ 1366 m.Type |= Failure_Type(b&0x7F) << shift 1367 if b < 0x80 { 1368 break 1369 } 1370 } 1371 case 2: 1372 if wireType != 2 { 1373 return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) 1374 } 1375 var stringLen uint64 1376 for shift := uint(0); ; shift += 7 { 1377 if shift >= 64 { 1378 return ErrIntOverflowAspects 1379 } 1380 if iNdEx >= l { 1381 return io.ErrUnexpectedEOF 1382 } 1383 b := dAtA[iNdEx] 1384 iNdEx++ 1385 stringLen |= uint64(b&0x7F) << shift 1386 if b < 0x80 { 1387 break 1388 } 1389 } 1390 intStringLen := int(stringLen) 1391 if intStringLen < 0 { 1392 return ErrInvalidLengthAspects 1393 } 1394 postIndex := iNdEx + intStringLen 1395 if postIndex < 0 { 1396 return ErrInvalidLengthAspects 1397 } 1398 if postIndex > l { 1399 return io.ErrUnexpectedEOF 1400 } 1401 m.Description = string(dAtA[iNdEx:postIndex]) 1402 iNdEx = postIndex 1403 default: 1404 iNdEx = preIndex 1405 skippy, err := skipAspects(dAtA[iNdEx:]) 1406 if err != nil { 1407 return err 1408 } 1409 if (skippy < 0) || (iNdEx+skippy) < 0 { 1410 return ErrInvalidLengthAspects 1411 } 1412 if (iNdEx + skippy) > l { 1413 return io.ErrUnexpectedEOF 1414 } 1415 iNdEx += skippy 1416 } 1417 } 1418 1419 if iNdEx > l { 1420 return io.ErrUnexpectedEOF 1421 } 1422 return nil 1423 } 1424 func skipAspects(dAtA []byte) (n int, err error) { 1425 l := len(dAtA) 1426 iNdEx := 0 1427 depth := 0 1428 for iNdEx < l { 1429 var wire uint64 1430 for shift := uint(0); ; shift += 7 { 1431 if shift >= 64 { 1432 return 0, ErrIntOverflowAspects 1433 } 1434 if iNdEx >= l { 1435 return 0, io.ErrUnexpectedEOF 1436 } 1437 b := dAtA[iNdEx] 1438 iNdEx++ 1439 wire |= (uint64(b) & 0x7F) << shift 1440 if b < 0x80 { 1441 break 1442 } 1443 } 1444 wireType := int(wire & 0x7) 1445 switch wireType { 1446 case 0: 1447 for shift := uint(0); ; shift += 7 { 1448 if shift >= 64 { 1449 return 0, ErrIntOverflowAspects 1450 } 1451 if iNdEx >= l { 1452 return 0, io.ErrUnexpectedEOF 1453 } 1454 iNdEx++ 1455 if dAtA[iNdEx-1] < 0x80 { 1456 break 1457 } 1458 } 1459 case 1: 1460 iNdEx += 8 1461 case 2: 1462 var length int 1463 for shift := uint(0); ; shift += 7 { 1464 if shift >= 64 { 1465 return 0, ErrIntOverflowAspects 1466 } 1467 if iNdEx >= l { 1468 return 0, io.ErrUnexpectedEOF 1469 } 1470 b := dAtA[iNdEx] 1471 iNdEx++ 1472 length |= (int(b) & 0x7F) << shift 1473 if b < 0x80 { 1474 break 1475 } 1476 } 1477 if length < 0 { 1478 return 0, ErrInvalidLengthAspects 1479 } 1480 iNdEx += length 1481 case 3: 1482 depth++ 1483 case 4: 1484 if depth == 0 { 1485 return 0, ErrUnexpectedEndOfGroupAspects 1486 } 1487 depth-- 1488 case 5: 1489 iNdEx += 4 1490 default: 1491 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1492 } 1493 if iNdEx < 0 { 1494 return 0, ErrInvalidLengthAspects 1495 } 1496 if depth == 0 { 1497 return iNdEx, nil 1498 } 1499 } 1500 return 0, io.ErrUnexpectedEOF 1501 } 1502 1503 var ( 1504 ErrInvalidLengthAspects = fmt.Errorf("proto: negative length found during unmarshaling") 1505 ErrIntOverflowAspects = fmt.Errorf("proto: integer overflow") 1506 ErrUnexpectedEndOfGroupAspects = fmt.Errorf("proto: unexpected end of group") 1507 )