github.com/cloudwan/edgelq-sdk@v1.15.4/devices/resources/v1/tpm_attestation_cert/tpm_attestation_cert_change.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/devices/proto/v1/tpm_attestation_cert_change.proto 3 // DO NOT EDIT!!! 4 5 package tpm_attestation_cert 6 7 import ( 8 "fmt" 9 "reflect" 10 "sync" 11 12 "google.golang.org/protobuf/encoding/protojson" 13 "google.golang.org/protobuf/proto" 14 preflect "google.golang.org/protobuf/reflect/protoreflect" 15 "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 // proto imports 19 import ( 20 project "github.com/cloudwan/edgelq-sdk/devices/resources/v1/project" 21 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 22 ) 23 24 // Reference imports to suppress errors if they are not otherwise used. 25 var ( 26 _ = fmt.Errorf 27 _ = reflect.Method{} 28 _ = sync.Once{} 29 30 _ = protojson.MarshalOptions{} 31 _ = proto.MarshalOptions{} 32 _ = preflect.Value{} 33 _ = protoimpl.DescBuilder{} 34 ) 35 36 // make sure we're using proto imports 37 var ( 38 _ = &project.Project{} 39 _ = &fieldmaskpb.FieldMask{} 40 ) 41 42 const ( 43 // Verify that this generated code is sufficiently up-to-date. 44 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 45 // Verify that runtime/protoimpl is sufficiently up-to-date. 46 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 47 ) 48 49 // TpmAttestationCertChange is used by Watch notifications Responses to describe 50 // change of single TpmAttestationCert One of Added, Modified, Removed 51 type TpmAttestationCertChange struct { 52 state protoimpl.MessageState 53 sizeCache protoimpl.SizeCache 54 unknownFields protoimpl.UnknownFields 55 // TpmAttestationCert change 56 // 57 // Types that are valid to be assigned to ChangeType: 58 // *TpmAttestationCertChange_Added_ 59 // *TpmAttestationCertChange_Modified_ 60 // *TpmAttestationCertChange_Current_ 61 // *TpmAttestationCertChange_Removed_ 62 ChangeType isTpmAttestationCertChange_ChangeType `protobuf_oneof:"change_type"` 63 } 64 65 func (m *TpmAttestationCertChange) Reset() { 66 *m = TpmAttestationCertChange{} 67 if protoimpl.UnsafeEnabled { 68 mi := &edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[0] 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 70 ms.StoreMessageInfo(mi) 71 } 72 } 73 74 func (m *TpmAttestationCertChange) String() string { 75 return protoimpl.X.MessageStringOf(m) 76 } 77 78 func (*TpmAttestationCertChange) ProtoMessage() {} 79 80 func (m *TpmAttestationCertChange) ProtoReflect() preflect.Message { 81 mi := &edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[0] 82 if protoimpl.UnsafeEnabled && m != nil { 83 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 84 if ms.LoadMessageInfo() == nil { 85 ms.StoreMessageInfo(mi) 86 } 87 return ms 88 } 89 return mi.MessageOf(m) 90 } 91 92 func (*TpmAttestationCertChange) GotenMessage() {} 93 94 // Deprecated, Use TpmAttestationCertChange.ProtoReflect.Descriptor instead. 95 func (*TpmAttestationCertChange) Descriptor() ([]byte, []int) { 96 return edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescGZIP(), []int{0} 97 } 98 99 func (m *TpmAttestationCertChange) Unmarshal(b []byte) error { 100 return proto.Unmarshal(b, m) 101 } 102 103 func (m *TpmAttestationCertChange) Marshal() ([]byte, error) { 104 return proto.Marshal(m) 105 } 106 107 func (m *TpmAttestationCertChange) MarshalJSON() ([]byte, error) { 108 return protojson.MarshalOptions{}.Marshal(m) 109 } 110 111 func (m *TpmAttestationCertChange) UnmarshalJSON(data []byte) error { 112 return protojson.Unmarshal(data, m) 113 } 114 115 type isTpmAttestationCertChange_ChangeType interface { 116 isTpmAttestationCertChange_ChangeType() 117 } 118 119 type TpmAttestationCertChange_Added_ struct { 120 // Added is returned when watched document is added, either created or 121 // enters Query view 122 Added *TpmAttestationCertChange_Added `protobuf:"bytes,1,opt,name=added,proto3,oneof"` 123 } 124 type TpmAttestationCertChange_Modified_ struct { 125 // Modified is returned when watched document is modified 126 Modified *TpmAttestationCertChange_Modified `protobuf:"bytes,2,opt,name=modified,proto3,oneof"` 127 } 128 type TpmAttestationCertChange_Current_ struct { 129 // Current is returned in stateless watch when document enters query view or 130 // is modified within. 131 Current *TpmAttestationCertChange_Current `protobuf:"bytes,4,opt,name=current,proto3,oneof"` 132 } 133 type TpmAttestationCertChange_Removed_ struct { 134 // Removed is returned when TpmAttestationCert is deleted or leaves Query 135 // view 136 Removed *TpmAttestationCertChange_Removed `protobuf:"bytes,3,opt,name=removed,proto3,oneof"` 137 } 138 139 func (*TpmAttestationCertChange_Added_) isTpmAttestationCertChange_ChangeType() {} 140 func (*TpmAttestationCertChange_Modified_) isTpmAttestationCertChange_ChangeType() {} 141 func (*TpmAttestationCertChange_Current_) isTpmAttestationCertChange_ChangeType() {} 142 func (*TpmAttestationCertChange_Removed_) isTpmAttestationCertChange_ChangeType() {} 143 func (m *TpmAttestationCertChange) GetChangeType() isTpmAttestationCertChange_ChangeType { 144 if m != nil { 145 return m.ChangeType 146 } 147 return nil 148 } 149 func (m *TpmAttestationCertChange) GetAdded() *TpmAttestationCertChange_Added { 150 if x, ok := m.GetChangeType().(*TpmAttestationCertChange_Added_); ok { 151 return x.Added 152 } 153 return nil 154 } 155 func (m *TpmAttestationCertChange) GetModified() *TpmAttestationCertChange_Modified { 156 if x, ok := m.GetChangeType().(*TpmAttestationCertChange_Modified_); ok { 157 return x.Modified 158 } 159 return nil 160 } 161 func (m *TpmAttestationCertChange) GetCurrent() *TpmAttestationCertChange_Current { 162 if x, ok := m.GetChangeType().(*TpmAttestationCertChange_Current_); ok { 163 return x.Current 164 } 165 return nil 166 } 167 func (m *TpmAttestationCertChange) GetRemoved() *TpmAttestationCertChange_Removed { 168 if x, ok := m.GetChangeType().(*TpmAttestationCertChange_Removed_); ok { 169 return x.Removed 170 } 171 return nil 172 } 173 func (m *TpmAttestationCertChange) SetChangeType(ofv isTpmAttestationCertChange_ChangeType) { 174 if m == nil { 175 panic(fmt.Errorf("can't set %s on nil %s", "isTpmAttestationCertChange_ChangeType", "TpmAttestationCertChange")) 176 } 177 m.ChangeType = ofv 178 } 179 func (m *TpmAttestationCertChange) SetAdded(fv *TpmAttestationCertChange_Added) { 180 m.SetChangeType(&TpmAttestationCertChange_Added_{Added: fv}) 181 } 182 func (m *TpmAttestationCertChange) SetModified(fv *TpmAttestationCertChange_Modified) { 183 m.SetChangeType(&TpmAttestationCertChange_Modified_{Modified: fv}) 184 } 185 func (m *TpmAttestationCertChange) SetCurrent(fv *TpmAttestationCertChange_Current) { 186 m.SetChangeType(&TpmAttestationCertChange_Current_{Current: fv}) 187 } 188 func (m *TpmAttestationCertChange) SetRemoved(fv *TpmAttestationCertChange_Removed) { 189 m.SetChangeType(&TpmAttestationCertChange_Removed_{Removed: fv}) 190 } 191 192 // TpmAttestationCert has been added to query view 193 type TpmAttestationCertChange_Added struct { 194 state protoimpl.MessageState 195 sizeCache protoimpl.SizeCache 196 unknownFields protoimpl.UnknownFields 197 TpmAttestationCert *TpmAttestationCert `protobuf:"bytes,1,opt,name=tpm_attestation_cert,json=tpmAttestationCert,proto3" json:"tpm_attestation_cert,omitempty"` 198 // Integer describing index of added TpmAttestationCert in resulting query 199 // view. 200 ViewIndex int32 `protobuf:"varint,2,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty"` 201 } 202 203 func (m *TpmAttestationCertChange_Added) Reset() { 204 *m = TpmAttestationCertChange_Added{} 205 if protoimpl.UnsafeEnabled { 206 mi := &edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[1] 207 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 208 ms.StoreMessageInfo(mi) 209 } 210 } 211 212 func (m *TpmAttestationCertChange_Added) String() string { 213 return protoimpl.X.MessageStringOf(m) 214 } 215 216 func (*TpmAttestationCertChange_Added) ProtoMessage() {} 217 218 func (m *TpmAttestationCertChange_Added) ProtoReflect() preflect.Message { 219 mi := &edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[1] 220 if protoimpl.UnsafeEnabled && m != nil { 221 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 222 if ms.LoadMessageInfo() == nil { 223 ms.StoreMessageInfo(mi) 224 } 225 return ms 226 } 227 return mi.MessageOf(m) 228 } 229 230 func (*TpmAttestationCertChange_Added) GotenMessage() {} 231 232 // Deprecated, Use TpmAttestationCertChange_Added.ProtoReflect.Descriptor instead. 233 func (*TpmAttestationCertChange_Added) Descriptor() ([]byte, []int) { 234 return edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescGZIP(), []int{0, 0} 235 } 236 237 func (m *TpmAttestationCertChange_Added) Unmarshal(b []byte) error { 238 return proto.Unmarshal(b, m) 239 } 240 241 func (m *TpmAttestationCertChange_Added) Marshal() ([]byte, error) { 242 return proto.Marshal(m) 243 } 244 245 func (m *TpmAttestationCertChange_Added) MarshalJSON() ([]byte, error) { 246 return protojson.MarshalOptions{}.Marshal(m) 247 } 248 249 func (m *TpmAttestationCertChange_Added) UnmarshalJSON(data []byte) error { 250 return protojson.Unmarshal(data, m) 251 } 252 253 func (m *TpmAttestationCertChange_Added) GetTpmAttestationCert() *TpmAttestationCert { 254 if m != nil { 255 return m.TpmAttestationCert 256 } 257 return nil 258 } 259 260 func (m *TpmAttestationCertChange_Added) GetViewIndex() int32 { 261 if m != nil { 262 return m.ViewIndex 263 } 264 return int32(0) 265 } 266 267 func (m *TpmAttestationCertChange_Added) SetTpmAttestationCert(fv *TpmAttestationCert) { 268 if m == nil { 269 panic(fmt.Errorf("can't set %s on nil %s", "TpmAttestationCert", "TpmAttestationCertChange_Added")) 270 } 271 m.TpmAttestationCert = fv 272 } 273 274 func (m *TpmAttestationCertChange_Added) SetViewIndex(fv int32) { 275 if m == nil { 276 panic(fmt.Errorf("can't set %s on nil %s", "ViewIndex", "TpmAttestationCertChange_Added")) 277 } 278 m.ViewIndex = fv 279 } 280 281 // TpmAttestationCert changed some of it's fields - contains either full 282 // document or masked change 283 type TpmAttestationCertChange_Modified struct { 284 state protoimpl.MessageState 285 sizeCache protoimpl.SizeCache 286 unknownFields protoimpl.UnknownFields 287 // Name of modified TpmAttestationCert 288 Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 289 // New version of TpmAttestationCert or masked difference, depending on 290 // mask_changes instrumentation of issued [WatchTpmAttestationCertRequest] 291 // or [WatchTpmAttestationCertsRequest] 292 TpmAttestationCert *TpmAttestationCert `protobuf:"bytes,2,opt,name=tpm_attestation_cert,json=tpmAttestationCert,proto3" json:"tpm_attestation_cert,omitempty"` 293 // Used when mask_changes is set, contains field paths of modified 294 // properties. 295 FieldMask *TpmAttestationCert_FieldMask `protobuf:"bytes,3,opt,customtype=TpmAttestationCert_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` 296 // Previous view index specifies previous position of modified 297 // TpmAttestationCert. When modification doesn't affect sorted order, value 298 // will remain identical to [view_index]. 299 PreviousViewIndex int32 `protobuf:"varint,4,opt,name=previous_view_index,json=previousViewIndex,proto3" json:"previous_view_index,omitempty"` 300 // Integer specifying TpmAttestationCert new index in resulting query view. 301 ViewIndex int32 `protobuf:"varint,5,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty"` 302 } 303 304 func (m *TpmAttestationCertChange_Modified) Reset() { 305 *m = TpmAttestationCertChange_Modified{} 306 if protoimpl.UnsafeEnabled { 307 mi := &edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[2] 308 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 309 ms.StoreMessageInfo(mi) 310 } 311 } 312 313 func (m *TpmAttestationCertChange_Modified) String() string { 314 return protoimpl.X.MessageStringOf(m) 315 } 316 317 func (*TpmAttestationCertChange_Modified) ProtoMessage() {} 318 319 func (m *TpmAttestationCertChange_Modified) ProtoReflect() preflect.Message { 320 mi := &edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[2] 321 if protoimpl.UnsafeEnabled && m != nil { 322 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 323 if ms.LoadMessageInfo() == nil { 324 ms.StoreMessageInfo(mi) 325 } 326 return ms 327 } 328 return mi.MessageOf(m) 329 } 330 331 func (*TpmAttestationCertChange_Modified) GotenMessage() {} 332 333 // Deprecated, Use TpmAttestationCertChange_Modified.ProtoReflect.Descriptor instead. 334 func (*TpmAttestationCertChange_Modified) Descriptor() ([]byte, []int) { 335 return edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescGZIP(), []int{0, 1} 336 } 337 338 func (m *TpmAttestationCertChange_Modified) Unmarshal(b []byte) error { 339 return proto.Unmarshal(b, m) 340 } 341 342 func (m *TpmAttestationCertChange_Modified) Marshal() ([]byte, error) { 343 return proto.Marshal(m) 344 } 345 346 func (m *TpmAttestationCertChange_Modified) MarshalJSON() ([]byte, error) { 347 return protojson.MarshalOptions{}.Marshal(m) 348 } 349 350 func (m *TpmAttestationCertChange_Modified) UnmarshalJSON(data []byte) error { 351 return protojson.Unmarshal(data, m) 352 } 353 354 func (m *TpmAttestationCertChange_Modified) GetName() *Name { 355 if m != nil { 356 return m.Name 357 } 358 return nil 359 } 360 361 func (m *TpmAttestationCertChange_Modified) GetTpmAttestationCert() *TpmAttestationCert { 362 if m != nil { 363 return m.TpmAttestationCert 364 } 365 return nil 366 } 367 368 func (m *TpmAttestationCertChange_Modified) GetFieldMask() *TpmAttestationCert_FieldMask { 369 if m != nil { 370 return m.FieldMask 371 } 372 return nil 373 } 374 375 func (m *TpmAttestationCertChange_Modified) GetPreviousViewIndex() int32 { 376 if m != nil { 377 return m.PreviousViewIndex 378 } 379 return int32(0) 380 } 381 382 func (m *TpmAttestationCertChange_Modified) GetViewIndex() int32 { 383 if m != nil { 384 return m.ViewIndex 385 } 386 return int32(0) 387 } 388 389 func (m *TpmAttestationCertChange_Modified) SetName(fv *Name) { 390 if m == nil { 391 panic(fmt.Errorf("can't set %s on nil %s", "Name", "TpmAttestationCertChange_Modified")) 392 } 393 m.Name = fv 394 } 395 396 func (m *TpmAttestationCertChange_Modified) SetTpmAttestationCert(fv *TpmAttestationCert) { 397 if m == nil { 398 panic(fmt.Errorf("can't set %s on nil %s", "TpmAttestationCert", "TpmAttestationCertChange_Modified")) 399 } 400 m.TpmAttestationCert = fv 401 } 402 403 func (m *TpmAttestationCertChange_Modified) SetFieldMask(fv *TpmAttestationCert_FieldMask) { 404 if m == nil { 405 panic(fmt.Errorf("can't set %s on nil %s", "FieldMask", "TpmAttestationCertChange_Modified")) 406 } 407 m.FieldMask = fv 408 } 409 410 func (m *TpmAttestationCertChange_Modified) SetPreviousViewIndex(fv int32) { 411 if m == nil { 412 panic(fmt.Errorf("can't set %s on nil %s", "PreviousViewIndex", "TpmAttestationCertChange_Modified")) 413 } 414 m.PreviousViewIndex = fv 415 } 416 417 func (m *TpmAttestationCertChange_Modified) SetViewIndex(fv int32) { 418 if m == nil { 419 panic(fmt.Errorf("can't set %s on nil %s", "ViewIndex", "TpmAttestationCertChange_Modified")) 420 } 421 m.ViewIndex = fv 422 } 423 424 // TpmAttestationCert has been added or modified in a query view. Version used 425 // for stateless watching 426 type TpmAttestationCertChange_Current struct { 427 state protoimpl.MessageState 428 sizeCache protoimpl.SizeCache 429 unknownFields protoimpl.UnknownFields 430 TpmAttestationCert *TpmAttestationCert `protobuf:"bytes,1,opt,name=tpm_attestation_cert,json=tpmAttestationCert,proto3" json:"tpm_attestation_cert,omitempty"` 431 } 432 433 func (m *TpmAttestationCertChange_Current) Reset() { 434 *m = TpmAttestationCertChange_Current{} 435 if protoimpl.UnsafeEnabled { 436 mi := &edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[3] 437 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 438 ms.StoreMessageInfo(mi) 439 } 440 } 441 442 func (m *TpmAttestationCertChange_Current) String() string { 443 return protoimpl.X.MessageStringOf(m) 444 } 445 446 func (*TpmAttestationCertChange_Current) ProtoMessage() {} 447 448 func (m *TpmAttestationCertChange_Current) ProtoReflect() preflect.Message { 449 mi := &edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[3] 450 if protoimpl.UnsafeEnabled && m != nil { 451 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 452 if ms.LoadMessageInfo() == nil { 453 ms.StoreMessageInfo(mi) 454 } 455 return ms 456 } 457 return mi.MessageOf(m) 458 } 459 460 func (*TpmAttestationCertChange_Current) GotenMessage() {} 461 462 // Deprecated, Use TpmAttestationCertChange_Current.ProtoReflect.Descriptor instead. 463 func (*TpmAttestationCertChange_Current) Descriptor() ([]byte, []int) { 464 return edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescGZIP(), []int{0, 2} 465 } 466 467 func (m *TpmAttestationCertChange_Current) Unmarshal(b []byte) error { 468 return proto.Unmarshal(b, m) 469 } 470 471 func (m *TpmAttestationCertChange_Current) Marshal() ([]byte, error) { 472 return proto.Marshal(m) 473 } 474 475 func (m *TpmAttestationCertChange_Current) MarshalJSON() ([]byte, error) { 476 return protojson.MarshalOptions{}.Marshal(m) 477 } 478 479 func (m *TpmAttestationCertChange_Current) UnmarshalJSON(data []byte) error { 480 return protojson.Unmarshal(data, m) 481 } 482 483 func (m *TpmAttestationCertChange_Current) GetTpmAttestationCert() *TpmAttestationCert { 484 if m != nil { 485 return m.TpmAttestationCert 486 } 487 return nil 488 } 489 490 func (m *TpmAttestationCertChange_Current) SetTpmAttestationCert(fv *TpmAttestationCert) { 491 if m == nil { 492 panic(fmt.Errorf("can't set %s on nil %s", "TpmAttestationCert", "TpmAttestationCertChange_Current")) 493 } 494 m.TpmAttestationCert = fv 495 } 496 497 // Removed is returned when TpmAttestationCert is deleted or leaves Query view 498 type TpmAttestationCertChange_Removed struct { 499 state protoimpl.MessageState 500 sizeCache protoimpl.SizeCache 501 unknownFields protoimpl.UnknownFields 502 Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 503 // Integer specifying removed TpmAttestationCert index. Not populated in 504 // stateless watch type. 505 ViewIndex int32 `protobuf:"varint,2,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty"` 506 } 507 508 func (m *TpmAttestationCertChange_Removed) Reset() { 509 *m = TpmAttestationCertChange_Removed{} 510 if protoimpl.UnsafeEnabled { 511 mi := &edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[4] 512 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 513 ms.StoreMessageInfo(mi) 514 } 515 } 516 517 func (m *TpmAttestationCertChange_Removed) String() string { 518 return protoimpl.X.MessageStringOf(m) 519 } 520 521 func (*TpmAttestationCertChange_Removed) ProtoMessage() {} 522 523 func (m *TpmAttestationCertChange_Removed) ProtoReflect() preflect.Message { 524 mi := &edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[4] 525 if protoimpl.UnsafeEnabled && m != nil { 526 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 527 if ms.LoadMessageInfo() == nil { 528 ms.StoreMessageInfo(mi) 529 } 530 return ms 531 } 532 return mi.MessageOf(m) 533 } 534 535 func (*TpmAttestationCertChange_Removed) GotenMessage() {} 536 537 // Deprecated, Use TpmAttestationCertChange_Removed.ProtoReflect.Descriptor instead. 538 func (*TpmAttestationCertChange_Removed) Descriptor() ([]byte, []int) { 539 return edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescGZIP(), []int{0, 3} 540 } 541 542 func (m *TpmAttestationCertChange_Removed) Unmarshal(b []byte) error { 543 return proto.Unmarshal(b, m) 544 } 545 546 func (m *TpmAttestationCertChange_Removed) Marshal() ([]byte, error) { 547 return proto.Marshal(m) 548 } 549 550 func (m *TpmAttestationCertChange_Removed) MarshalJSON() ([]byte, error) { 551 return protojson.MarshalOptions{}.Marshal(m) 552 } 553 554 func (m *TpmAttestationCertChange_Removed) UnmarshalJSON(data []byte) error { 555 return protojson.Unmarshal(data, m) 556 } 557 558 func (m *TpmAttestationCertChange_Removed) GetName() *Name { 559 if m != nil { 560 return m.Name 561 } 562 return nil 563 } 564 565 func (m *TpmAttestationCertChange_Removed) GetViewIndex() int32 { 566 if m != nil { 567 return m.ViewIndex 568 } 569 return int32(0) 570 } 571 572 func (m *TpmAttestationCertChange_Removed) SetName(fv *Name) { 573 if m == nil { 574 panic(fmt.Errorf("can't set %s on nil %s", "Name", "TpmAttestationCertChange_Removed")) 575 } 576 m.Name = fv 577 } 578 579 func (m *TpmAttestationCertChange_Removed) SetViewIndex(fv int32) { 580 if m == nil { 581 panic(fmt.Errorf("can't set %s on nil %s", "ViewIndex", "TpmAttestationCertChange_Removed")) 582 } 583 m.ViewIndex = fv 584 } 585 586 var edgelq_devices_proto_v1_tpm_attestation_cert_change_proto preflect.FileDescriptor 587 588 var edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDesc = []byte{ 589 0x0a, 0x39, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 590 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x70, 0x6d, 0x5f, 0x61, 0x74, 591 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x63, 592 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6e, 0x74, 0x74, 593 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 594 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 595 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 596 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 597 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 598 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 599 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 600 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 601 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x65, 0x64, 0x67, 0x65, 0x6c, 602 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 603 0x76, 0x31, 0x2f, 0x74, 0x70, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 604 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xea, 0x07, 605 0x0a, 0x18, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 606 0x43, 0x65, 0x72, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x46, 0x0a, 0x05, 0x61, 0x64, 607 0x64, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 608 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x70, 0x6d, 0x41, 0x74, 609 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x43, 0x68, 0x61, 610 0x6e, 0x67, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x65, 0x64, 0x48, 0x00, 0x52, 0x05, 0x61, 0x64, 0x64, 611 0x65, 0x64, 0x12, 0x4f, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x02, 612 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 613 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 614 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4d, 615 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 616 0x69, 0x65, 0x64, 0x12, 0x4c, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 617 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 618 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 619 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x43, 620 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 621 0x74, 0x12, 0x4c, 0x0a, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 622 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 623 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 624 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x6d, 625 0x6f, 0x76, 0x65, 0x64, 0x48, 0x00, 0x52, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x1a, 626 0x7c, 0x0a, 0x05, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x54, 0x0a, 0x14, 0x74, 0x70, 0x6d, 0x5f, 627 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x72, 0x74, 628 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 629 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 630 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x52, 0x12, 0x74, 0x70, 0x6d, 0x41, 631 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x12, 0x1d, 632 0x0a, 0x0a, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 633 0x28, 0x05, 0x52, 0x09, 0x76, 0x69, 0x65, 0x77, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x1a, 0xb6, 0x02, 634 0x0a, 0x08, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x61, 635 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xb2, 0xda, 0x21, 0x16, 0x0a, 0x14, 636 0x0a, 0x12, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 637 0x43, 0x65, 0x72, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x14, 0x74, 0x70, 638 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 639 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 640 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 641 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x52, 0x12, 0x74, 0x70, 642 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 643 0x12, 0x55, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x03, 644 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 645 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 646 0x42, 0x1a, 0xb2, 0xda, 0x21, 0x16, 0x32, 0x14, 0x0a, 0x12, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 647 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x52, 0x09, 0x66, 0x69, 648 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x65, 0x76, 0x69, 649 0x6f, 0x75, 0x73, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 650 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x56, 0x69, 651 0x65, 0x77, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x65, 0x77, 0x5f, 652 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x76, 0x69, 0x65, 653 0x77, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x1a, 0x5f, 0x0a, 0x07, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 654 0x74, 0x12, 0x54, 0x0a, 0x14, 0x74, 0x70, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 655 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 656 0x22, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 657 0x2e, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 658 0x65, 0x72, 0x74, 0x52, 0x12, 0x74, 0x70, 0x6d, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 659 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x1a, 0x58, 0x0a, 0x07, 0x52, 0x65, 0x6d, 0x6f, 0x76, 660 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 661 0x42, 0x1a, 0xb2, 0xda, 0x21, 0x16, 0x0a, 0x14, 0x0a, 0x12, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 662 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x52, 0x04, 0x6e, 0x61, 663 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 664 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x76, 0x69, 0x65, 0x77, 0x49, 0x6e, 0x64, 0x65, 665 0x78, 0x3a, 0x18, 0x9a, 0xd9, 0x21, 0x14, 0x0a, 0x12, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 0x65, 666 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x63, 667 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x97, 0x01, 0xe8, 0xde, 0x21, 668 0x00, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 669 0x65, 0x73, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x1d, 0x54, 0x70, 0x6d, 0x41, 0x74, 0x74, 670 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x43, 0x68, 0x61, 0x6e, 671 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x00, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 672 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 673 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x72, 0x65, 674 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x70, 0x6d, 0x5f, 0x61, 675 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x3b, 676 0x74, 0x70, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 677 0x63, 0x65, 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 678 } 679 680 var ( 681 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescOnce sync.Once 682 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescData = edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDesc 683 ) 684 685 func edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescGZIP() []byte { 686 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescOnce.Do(func() { 687 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescData) 688 }) 689 return edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDescData 690 } 691 692 var edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 693 var edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_goTypes = []interface{}{ 694 (*TpmAttestationCertChange)(nil), // 0: ntt.devices.v1.TpmAttestationCertChange 695 (*TpmAttestationCertChange_Added)(nil), // 1: ntt.devices.v1.TpmAttestationCertChange.Added 696 (*TpmAttestationCertChange_Modified)(nil), // 2: ntt.devices.v1.TpmAttestationCertChange.Modified 697 (*TpmAttestationCertChange_Current)(nil), // 3: ntt.devices.v1.TpmAttestationCertChange.Current 698 (*TpmAttestationCertChange_Removed)(nil), // 4: ntt.devices.v1.TpmAttestationCertChange.Removed 699 (*TpmAttestationCert)(nil), // 5: ntt.devices.v1.TpmAttestationCert 700 (*TpmAttestationCert_FieldMask)(nil), // 6: ntt.devices.v1.TpmAttestationCert_FieldMask 701 } 702 var edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_depIdxs = []int32{ 703 1, // 0: ntt.devices.v1.TpmAttestationCertChange.added:type_name -> ntt.devices.v1.TpmAttestationCertChange.Added 704 2, // 1: ntt.devices.v1.TpmAttestationCertChange.modified:type_name -> ntt.devices.v1.TpmAttestationCertChange.Modified 705 3, // 2: ntt.devices.v1.TpmAttestationCertChange.current:type_name -> ntt.devices.v1.TpmAttestationCertChange.Current 706 4, // 3: ntt.devices.v1.TpmAttestationCertChange.removed:type_name -> ntt.devices.v1.TpmAttestationCertChange.Removed 707 5, // 4: ntt.devices.v1.TpmAttestationCertChange.Added.tpm_attestation_cert:type_name -> ntt.devices.v1.TpmAttestationCert 708 5, // 5: ntt.devices.v1.TpmAttestationCertChange.Modified.tpm_attestation_cert:type_name -> ntt.devices.v1.TpmAttestationCert 709 6, // 6: ntt.devices.v1.TpmAttestationCertChange.Modified.field_mask:type_name -> ntt.devices.v1.TpmAttestationCert_FieldMask 710 5, // 7: ntt.devices.v1.TpmAttestationCertChange.Current.tpm_attestation_cert:type_name -> ntt.devices.v1.TpmAttestationCert 711 8, // [8:8] is the sub-list for method output_type 712 8, // [8:8] is the sub-list for method input_type 713 8, // [8:8] is the sub-list for extension type_name 714 8, // [8:8] is the sub-list for extension extendee 715 0, // [0:8] is the sub-list for field type_name 716 } 717 718 func init() { edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_init() } 719 func edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_init() { 720 if edgelq_devices_proto_v1_tpm_attestation_cert_change_proto != nil { 721 return 722 } 723 if !protoimpl.UnsafeEnabled { 724 725 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 726 switch v := v.(*TpmAttestationCertChange); i { 727 case 0: 728 return &v.state 729 case 1: 730 return &v.sizeCache 731 case 2: 732 return &v.unknownFields 733 default: 734 return nil 735 } 736 } 737 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 738 switch v := v.(*TpmAttestationCertChange_Added); i { 739 case 0: 740 return &v.state 741 case 1: 742 return &v.sizeCache 743 case 2: 744 return &v.unknownFields 745 default: 746 return nil 747 } 748 } 749 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 750 switch v := v.(*TpmAttestationCertChange_Modified); i { 751 case 0: 752 return &v.state 753 case 1: 754 return &v.sizeCache 755 case 2: 756 return &v.unknownFields 757 default: 758 return nil 759 } 760 } 761 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 762 switch v := v.(*TpmAttestationCertChange_Current); i { 763 case 0: 764 return &v.state 765 case 1: 766 return &v.sizeCache 767 case 2: 768 return &v.unknownFields 769 default: 770 return nil 771 } 772 } 773 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 774 switch v := v.(*TpmAttestationCertChange_Removed); i { 775 case 0: 776 return &v.state 777 case 1: 778 return &v.sizeCache 779 case 2: 780 return &v.unknownFields 781 default: 782 return nil 783 } 784 } 785 } 786 787 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes[0].OneofWrappers = []interface{}{ 788 (*TpmAttestationCertChange_Added_)(nil), 789 (*TpmAttestationCertChange_Modified_)(nil), 790 (*TpmAttestationCertChange_Current_)(nil), 791 (*TpmAttestationCertChange_Removed_)(nil), 792 } 793 type x struct{} 794 out := protoimpl.TypeBuilder{ 795 File: protoimpl.DescBuilder{ 796 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 797 RawDescriptor: edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDesc, 798 NumEnums: 0, 799 NumMessages: 5, 800 NumExtensions: 0, 801 NumServices: 0, 802 }, 803 GoTypes: edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_goTypes, 804 DependencyIndexes: edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_depIdxs, 805 MessageInfos: edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_msgTypes, 806 }.Build() 807 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto = out.File 808 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_rawDesc = nil 809 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_goTypes = nil 810 edgelq_devices_proto_v1_tpm_attestation_cert_change_proto_depIdxs = nil 811 }