github.com/cloudwan/edgelq-sdk@v1.15.4/audit/resources/v1alpha2/resource_change_log/resource_change_log.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/audit/proto/v1alpha2/resource_change_log.proto 3 // DO NOT EDIT!!! 4 5 package resource_change_log 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 common "github.com/cloudwan/edgelq-sdk/audit/resources/v1alpha2/common" 21 iam_organization "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/organization" 22 iam_project "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/project" 23 anypb "google.golang.org/protobuf/types/known/anypb" 24 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 25 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 26 ) 27 28 // Reference imports to suppress errors if they are not otherwise used. 29 var ( 30 _ = fmt.Errorf 31 _ = reflect.Method{} 32 _ = sync.Once{} 33 34 _ = protojson.MarshalOptions{} 35 _ = proto.MarshalOptions{} 36 _ = preflect.Value{} 37 _ = protoimpl.DescBuilder{} 38 ) 39 40 // make sure we're using proto imports 41 var ( 42 _ = &common.Authentication{} 43 _ = &iam_organization.Organization{} 44 _ = &iam_project.Project{} 45 _ = &anypb.Any{} 46 _ = &fieldmaskpb.FieldMask{} 47 _ = ×tamppb.Timestamp{} 48 ) 49 50 const ( 51 // Verify that this generated code is sufficiently up-to-date. 52 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 53 // Verify that runtime/protoimpl is sufficiently up-to-date. 54 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 55 ) 56 57 // Type of change 58 type ResourceChangeLog_ResourceChange_Action int32 59 60 const ( 61 // to avoid blank item when printing logs 62 ResourceChangeLog_ResourceChange_UNDEFINED ResourceChangeLog_ResourceChange_Action = 0 63 // Resource has been created 64 ResourceChangeLog_ResourceChange_CREATE ResourceChangeLog_ResourceChange_Action = 1 65 // Resource has been deleted 66 ResourceChangeLog_ResourceChange_DELETE ResourceChangeLog_ResourceChange_Action = 3 67 // Update contains spec fields 68 ResourceChangeLog_ResourceChange_SPEC_UPDATE ResourceChangeLog_ResourceChange_Action = 4 69 // Update contains state fields, but not spec 70 ResourceChangeLog_ResourceChange_STATE_UPDATE ResourceChangeLog_ResourceChange_Action = 5 71 // Update contains neither spec or state fields. 72 ResourceChangeLog_ResourceChange_META_UPDATE ResourceChangeLog_ResourceChange_Action = 6 73 // UPDATE is deprecated in favor of specific update types. 74 ResourceChangeLog_ResourceChange_UPDATE ResourceChangeLog_ResourceChange_Action = 2 75 ) 76 77 var ( 78 ResourceChangeLog_ResourceChange_Action_name = map[int32]string{ 79 0: "UNDEFINED", 80 1: "CREATE", 81 3: "DELETE", 82 4: "SPEC_UPDATE", 83 5: "STATE_UPDATE", 84 6: "META_UPDATE", 85 2: "UPDATE", 86 } 87 88 ResourceChangeLog_ResourceChange_Action_value = map[string]int32{ 89 "UNDEFINED": 0, 90 "CREATE": 1, 91 "DELETE": 3, 92 "SPEC_UPDATE": 4, 93 "STATE_UPDATE": 5, 94 "META_UPDATE": 6, 95 "UPDATE": 2, 96 } 97 ) 98 99 func (x ResourceChangeLog_ResourceChange_Action) Enum() *ResourceChangeLog_ResourceChange_Action { 100 p := new(ResourceChangeLog_ResourceChange_Action) 101 *p = x 102 return p 103 } 104 105 func (x ResourceChangeLog_ResourceChange_Action) String() string { 106 return protoimpl.X.EnumStringOf(x.Descriptor(), preflect.EnumNumber(x)) 107 } 108 109 func (ResourceChangeLog_ResourceChange_Action) Descriptor() preflect.EnumDescriptor { 110 return edgelq_audit_proto_v1alpha2_resource_change_log_proto_enumTypes[0].Descriptor() 111 } 112 113 func (ResourceChangeLog_ResourceChange_Action) Type() preflect.EnumType { 114 return &edgelq_audit_proto_v1alpha2_resource_change_log_proto_enumTypes[0] 115 } 116 117 func (x ResourceChangeLog_ResourceChange_Action) Number() preflect.EnumNumber { 118 return preflect.EnumNumber(x) 119 } 120 121 // Deprecated, Use ResourceChangeLog_ResourceChange_Action.ProtoReflect.Descriptor instead. 122 func (ResourceChangeLog_ResourceChange_Action) EnumDescriptor() ([]byte, []int) { 123 return edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescGZIP(), []int{0, 0, 0} 124 } 125 126 // State of the transaction. 127 type ResourceChangeLog_TransactionInfo_State int32 128 129 const ( 130 ResourceChangeLog_TransactionInfo_UNDEFINED ResourceChangeLog_TransactionInfo_State = 0 131 // Indicates that this change did not happen - 132 // it is just proposal of the change. 133 // Such a log should be followed by another 134 // ResourceChangeLog with value COMMITTED 135 // or ROLLED_BACK. 136 // If one transaction has been retried 137 // multiple times, then there may be multiple 138 // records with PRE_COMMITTED, last record 139 // should indicate final transaction state. 140 ResourceChangeLog_TransactionInfo_PRE_COMMITTED ResourceChangeLog_TransactionInfo_State = 1 141 // Indicates change has been committed 142 // successfully. 143 ResourceChangeLog_TransactionInfo_COMMITTED ResourceChangeLog_TransactionInfo_State = 2 144 // Indicates that change did not happen. 145 // Log of this type should be treated as 146 // attempt of change. 147 ResourceChangeLog_TransactionInfo_ROLLED_BACK ResourceChangeLog_TransactionInfo_State = 3 148 ) 149 150 var ( 151 ResourceChangeLog_TransactionInfo_State_name = map[int32]string{ 152 0: "UNDEFINED", 153 1: "PRE_COMMITTED", 154 2: "COMMITTED", 155 3: "ROLLED_BACK", 156 } 157 158 ResourceChangeLog_TransactionInfo_State_value = map[string]int32{ 159 "UNDEFINED": 0, 160 "PRE_COMMITTED": 1, 161 "COMMITTED": 2, 162 "ROLLED_BACK": 3, 163 } 164 ) 165 166 func (x ResourceChangeLog_TransactionInfo_State) Enum() *ResourceChangeLog_TransactionInfo_State { 167 p := new(ResourceChangeLog_TransactionInfo_State) 168 *p = x 169 return p 170 } 171 172 func (x ResourceChangeLog_TransactionInfo_State) String() string { 173 return protoimpl.X.EnumStringOf(x.Descriptor(), preflect.EnumNumber(x)) 174 } 175 176 func (ResourceChangeLog_TransactionInfo_State) Descriptor() preflect.EnumDescriptor { 177 return edgelq_audit_proto_v1alpha2_resource_change_log_proto_enumTypes[1].Descriptor() 178 } 179 180 func (ResourceChangeLog_TransactionInfo_State) Type() preflect.EnumType { 181 return &edgelq_audit_proto_v1alpha2_resource_change_log_proto_enumTypes[1] 182 } 183 184 func (x ResourceChangeLog_TransactionInfo_State) Number() preflect.EnumNumber { 185 return preflect.EnumNumber(x) 186 } 187 188 // Deprecated, Use ResourceChangeLog_TransactionInfo_State.ProtoReflect.Descriptor instead. 189 func (ResourceChangeLog_TransactionInfo_State) EnumDescriptor() ([]byte, []int) { 190 return edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescGZIP(), []int{0, 1, 0} 191 } 192 193 // ResourceChangeLog Resource - describes notification 194 // of resource change. This log is resource oriented - 195 // it strictly is associated with single resource, 196 // where service name, resource type and resource name 197 // are the strongest attributes. 198 // 199 // All resource changes are happening via API calls made 200 // to API services. Therefore, each ResourceChangeLog 201 // has associated ActivityLog. Relation is 1-N between 202 // activity and resource change logs, as one API call 203 // can modify multiple resources. 204 type ResourceChangeLog struct { 205 state protoimpl.MessageState 206 sizeCache protoimpl.SizeCache 207 unknownFields protoimpl.UnknownFields 208 // Name of ResourceChangeLog. It contains scope + ID of the log. 209 // ID is a base64 encoded unique key that identifies tuple: 210 // scope 211 // request_id 212 // authentication.principal 213 // service.name 214 // service.region_id 215 // resource.name 216 // resource.type 217 // resource.pre.labels 218 // resource.post.labels 219 // 220 // ID part should not be decoded, but treated as opaque string 221 Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 222 // Contains scope from name field without resource ID. 223 // Used for internal purpose for filtering (logs are using custom store). 224 // Supported formats are: 225 // - organization/umbrella 226 // - projects/mars_exploration 227 // - <system> 228 Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` 229 // Unique identifier of request - it must match the one 230 // in the associated activity log. 231 RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` 232 // Time of the change - equal to request timestamp (activity log) 233 Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 234 // Authentication data - informs who made a change 235 Authentication *common.Authentication `protobuf:"bytes,5,opt,name=authentication,proto3" json:"authentication,omitempty"` 236 // Information about the service 237 Service *common.ServiceData `protobuf:"bytes,6,opt,name=service,proto3" json:"service,omitempty"` 238 // Describes change on the resource 239 Resource *ResourceChangeLog_ResourceChange `protobuf:"bytes,7,opt,name=resource,proto3" json:"resource,omitempty"` 240 // Describes state of the transaction 241 Transaction *ResourceChangeLog_TransactionInfo `protobuf:"bytes,8,opt,name=transaction,proto3" json:"transaction,omitempty"` 242 } 243 244 func (m *ResourceChangeLog) Reset() { 245 *m = ResourceChangeLog{} 246 if protoimpl.UnsafeEnabled { 247 mi := &edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes[0] 248 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 249 ms.StoreMessageInfo(mi) 250 } 251 } 252 253 func (m *ResourceChangeLog) String() string { 254 return protoimpl.X.MessageStringOf(m) 255 } 256 257 func (*ResourceChangeLog) ProtoMessage() {} 258 259 func (m *ResourceChangeLog) ProtoReflect() preflect.Message { 260 mi := &edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes[0] 261 if protoimpl.UnsafeEnabled && m != nil { 262 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 263 if ms.LoadMessageInfo() == nil { 264 ms.StoreMessageInfo(mi) 265 } 266 return ms 267 } 268 return mi.MessageOf(m) 269 } 270 271 func (*ResourceChangeLog) GotenMessage() {} 272 273 // Deprecated, Use ResourceChangeLog.ProtoReflect.Descriptor instead. 274 func (*ResourceChangeLog) Descriptor() ([]byte, []int) { 275 return edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescGZIP(), []int{0} 276 } 277 278 func (m *ResourceChangeLog) Unmarshal(b []byte) error { 279 return proto.Unmarshal(b, m) 280 } 281 282 func (m *ResourceChangeLog) Marshal() ([]byte, error) { 283 return proto.Marshal(m) 284 } 285 286 func (m *ResourceChangeLog) MarshalJSON() ([]byte, error) { 287 return protojson.MarshalOptions{}.Marshal(m) 288 } 289 290 func (m *ResourceChangeLog) UnmarshalJSON(data []byte) error { 291 return protojson.Unmarshal(data, m) 292 } 293 294 func (m *ResourceChangeLog) GetName() *Name { 295 if m != nil { 296 return m.Name 297 } 298 return nil 299 } 300 301 func (m *ResourceChangeLog) GetScope() string { 302 if m != nil { 303 return m.Scope 304 } 305 return "" 306 } 307 308 func (m *ResourceChangeLog) GetRequestId() uint64 { 309 if m != nil { 310 return m.RequestId 311 } 312 return uint64(0) 313 } 314 315 func (m *ResourceChangeLog) GetTimestamp() *timestamppb.Timestamp { 316 if m != nil { 317 return m.Timestamp 318 } 319 return nil 320 } 321 322 func (m *ResourceChangeLog) GetAuthentication() *common.Authentication { 323 if m != nil { 324 return m.Authentication 325 } 326 return nil 327 } 328 329 func (m *ResourceChangeLog) GetService() *common.ServiceData { 330 if m != nil { 331 return m.Service 332 } 333 return nil 334 } 335 336 func (m *ResourceChangeLog) GetResource() *ResourceChangeLog_ResourceChange { 337 if m != nil { 338 return m.Resource 339 } 340 return nil 341 } 342 343 func (m *ResourceChangeLog) GetTransaction() *ResourceChangeLog_TransactionInfo { 344 if m != nil { 345 return m.Transaction 346 } 347 return nil 348 } 349 350 func (m *ResourceChangeLog) SetName(fv *Name) { 351 if m == nil { 352 panic(fmt.Errorf("can't set %s on nil %s", "Name", "ResourceChangeLog")) 353 } 354 m.Name = fv 355 } 356 357 func (m *ResourceChangeLog) SetScope(fv string) { 358 if m == nil { 359 panic(fmt.Errorf("can't set %s on nil %s", "Scope", "ResourceChangeLog")) 360 } 361 m.Scope = fv 362 } 363 364 func (m *ResourceChangeLog) SetRequestId(fv uint64) { 365 if m == nil { 366 panic(fmt.Errorf("can't set %s on nil %s", "RequestId", "ResourceChangeLog")) 367 } 368 m.RequestId = fv 369 } 370 371 func (m *ResourceChangeLog) SetTimestamp(fv *timestamppb.Timestamp) { 372 if m == nil { 373 panic(fmt.Errorf("can't set %s on nil %s", "Timestamp", "ResourceChangeLog")) 374 } 375 m.Timestamp = fv 376 } 377 378 func (m *ResourceChangeLog) SetAuthentication(fv *common.Authentication) { 379 if m == nil { 380 panic(fmt.Errorf("can't set %s on nil %s", "Authentication", "ResourceChangeLog")) 381 } 382 m.Authentication = fv 383 } 384 385 func (m *ResourceChangeLog) SetService(fv *common.ServiceData) { 386 if m == nil { 387 panic(fmt.Errorf("can't set %s on nil %s", "Service", "ResourceChangeLog")) 388 } 389 m.Service = fv 390 } 391 392 func (m *ResourceChangeLog) SetResource(fv *ResourceChangeLog_ResourceChange) { 393 if m == nil { 394 panic(fmt.Errorf("can't set %s on nil %s", "Resource", "ResourceChangeLog")) 395 } 396 m.Resource = fv 397 } 398 399 func (m *ResourceChangeLog) SetTransaction(fv *ResourceChangeLog_TransactionInfo) { 400 if m == nil { 401 panic(fmt.Errorf("can't set %s on nil %s", "Transaction", "ResourceChangeLog")) 402 } 403 m.Transaction = fv 404 } 405 406 // Description of change on the resource 407 type ResourceChangeLog_ResourceChange struct { 408 state protoimpl.MessageState 409 sizeCache protoimpl.SizeCache 410 unknownFields protoimpl.UnknownFields 411 // Fully qualified name of the resource (eg. "RoleBinding/Public") 412 // that has changed from this request (if successful) 413 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 414 // Name of the resource type for example "RoleBinding". 415 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 416 // Action on the resource 417 Action ResourceChangeLog_ResourceChange_Action `protobuf:"varint,3,opt,name=action,proto3,enum=ntt.audit.v1alpha2.ResourceChangeLog_ResourceChange_Action" json:"action,omitempty"` 418 // Field mask with different fields, populated only for 419 // update action types. 420 UpdatedFields *fieldmaskpb.FieldMask `protobuf:"bytes,6,opt,name=updated_fields,json=updatedFields,proto3" json:"updated_fields,omitempty"` 421 // Previous values of updated fields. Its populated only 422 // if update_fields is provided and for those fields only. 423 // It is skipped for deletes. 424 Previous *anypb.Any `protobuf:"bytes,7,opt,name=previous,proto3" json:"previous,omitempty"` 425 // Current values of updated fields in case of update. Whole 426 // resource in case of creation, empty in case of deletion. 427 Current *anypb.Any `protobuf:"bytes,8,opt,name=current,proto3" json:"current,omitempty"` 428 // List of query-able labels. They are taken from 429 // both before and after resource, but after has higher priority 430 Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 431 // State of the resource before change. 432 // It is empty if action is CREATE 433 // DEPRECATED and not populated for new resources 434 Pre *common.ObjectState `protobuf:"bytes,4,opt,name=pre,proto3" json:"pre,omitempty"` 435 // State of the resource after change. 436 // It is empty if action is DELETE 437 // DEPRECATED and not populated for new resources 438 Post *common.ObjectState `protobuf:"bytes,5,opt,name=post,proto3" json:"post,omitempty"` 439 } 440 441 func (m *ResourceChangeLog_ResourceChange) Reset() { 442 *m = ResourceChangeLog_ResourceChange{} 443 if protoimpl.UnsafeEnabled { 444 mi := &edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes[1] 445 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 446 ms.StoreMessageInfo(mi) 447 } 448 } 449 450 func (m *ResourceChangeLog_ResourceChange) String() string { 451 return protoimpl.X.MessageStringOf(m) 452 } 453 454 func (*ResourceChangeLog_ResourceChange) ProtoMessage() {} 455 456 func (m *ResourceChangeLog_ResourceChange) ProtoReflect() preflect.Message { 457 mi := &edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes[1] 458 if protoimpl.UnsafeEnabled && m != nil { 459 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 460 if ms.LoadMessageInfo() == nil { 461 ms.StoreMessageInfo(mi) 462 } 463 return ms 464 } 465 return mi.MessageOf(m) 466 } 467 468 func (*ResourceChangeLog_ResourceChange) GotenMessage() {} 469 470 // Deprecated, Use ResourceChangeLog_ResourceChange.ProtoReflect.Descriptor instead. 471 func (*ResourceChangeLog_ResourceChange) Descriptor() ([]byte, []int) { 472 return edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescGZIP(), []int{0, 0} 473 } 474 475 func (m *ResourceChangeLog_ResourceChange) Unmarshal(b []byte) error { 476 return proto.Unmarshal(b, m) 477 } 478 479 func (m *ResourceChangeLog_ResourceChange) Marshal() ([]byte, error) { 480 return proto.Marshal(m) 481 } 482 483 func (m *ResourceChangeLog_ResourceChange) MarshalJSON() ([]byte, error) { 484 return protojson.MarshalOptions{}.Marshal(m) 485 } 486 487 func (m *ResourceChangeLog_ResourceChange) UnmarshalJSON(data []byte) error { 488 return protojson.Unmarshal(data, m) 489 } 490 491 func (m *ResourceChangeLog_ResourceChange) GetName() string { 492 if m != nil { 493 return m.Name 494 } 495 return "" 496 } 497 498 func (m *ResourceChangeLog_ResourceChange) GetType() string { 499 if m != nil { 500 return m.Type 501 } 502 return "" 503 } 504 505 func (m *ResourceChangeLog_ResourceChange) GetAction() ResourceChangeLog_ResourceChange_Action { 506 if m != nil { 507 return m.Action 508 } 509 return ResourceChangeLog_ResourceChange_UNDEFINED 510 } 511 512 func (m *ResourceChangeLog_ResourceChange) GetUpdatedFields() *fieldmaskpb.FieldMask { 513 if m != nil { 514 return m.UpdatedFields 515 } 516 return nil 517 } 518 519 func (m *ResourceChangeLog_ResourceChange) GetPrevious() *anypb.Any { 520 if m != nil { 521 return m.Previous 522 } 523 return nil 524 } 525 526 func (m *ResourceChangeLog_ResourceChange) GetCurrent() *anypb.Any { 527 if m != nil { 528 return m.Current 529 } 530 return nil 531 } 532 533 func (m *ResourceChangeLog_ResourceChange) GetLabels() map[string]string { 534 if m != nil { 535 return m.Labels 536 } 537 return nil 538 } 539 540 func (m *ResourceChangeLog_ResourceChange) GetPre() *common.ObjectState { 541 if m != nil { 542 return m.Pre 543 } 544 return nil 545 } 546 547 func (m *ResourceChangeLog_ResourceChange) GetPost() *common.ObjectState { 548 if m != nil { 549 return m.Post 550 } 551 return nil 552 } 553 554 func (m *ResourceChangeLog_ResourceChange) SetName(fv string) { 555 if m == nil { 556 panic(fmt.Errorf("can't set %s on nil %s", "Name", "ResourceChangeLog_ResourceChange")) 557 } 558 m.Name = fv 559 } 560 561 func (m *ResourceChangeLog_ResourceChange) SetType(fv string) { 562 if m == nil { 563 panic(fmt.Errorf("can't set %s on nil %s", "Type", "ResourceChangeLog_ResourceChange")) 564 } 565 m.Type = fv 566 } 567 568 func (m *ResourceChangeLog_ResourceChange) SetAction(fv ResourceChangeLog_ResourceChange_Action) { 569 if m == nil { 570 panic(fmt.Errorf("can't set %s on nil %s", "Action", "ResourceChangeLog_ResourceChange")) 571 } 572 m.Action = fv 573 } 574 575 func (m *ResourceChangeLog_ResourceChange) SetUpdatedFields(fv *fieldmaskpb.FieldMask) { 576 if m == nil { 577 panic(fmt.Errorf("can't set %s on nil %s", "UpdatedFields", "ResourceChangeLog_ResourceChange")) 578 } 579 m.UpdatedFields = fv 580 } 581 582 func (m *ResourceChangeLog_ResourceChange) SetPrevious(fv *anypb.Any) { 583 if m == nil { 584 panic(fmt.Errorf("can't set %s on nil %s", "Previous", "ResourceChangeLog_ResourceChange")) 585 } 586 m.Previous = fv 587 } 588 589 func (m *ResourceChangeLog_ResourceChange) SetCurrent(fv *anypb.Any) { 590 if m == nil { 591 panic(fmt.Errorf("can't set %s on nil %s", "Current", "ResourceChangeLog_ResourceChange")) 592 } 593 m.Current = fv 594 } 595 596 func (m *ResourceChangeLog_ResourceChange) SetLabels(fv map[string]string) { 597 if m == nil { 598 panic(fmt.Errorf("can't set %s on nil %s", "Labels", "ResourceChangeLog_ResourceChange")) 599 } 600 m.Labels = fv 601 } 602 603 func (m *ResourceChangeLog_ResourceChange) SetPre(fv *common.ObjectState) { 604 if m == nil { 605 panic(fmt.Errorf("can't set %s on nil %s", "Pre", "ResourceChangeLog_ResourceChange")) 606 } 607 m.Pre = fv 608 } 609 610 func (m *ResourceChangeLog_ResourceChange) SetPost(fv *common.ObjectState) { 611 if m == nil { 612 panic(fmt.Errorf("can't set %s on nil %s", "Post", "ResourceChangeLog_ResourceChange")) 613 } 614 m.Post = fv 615 } 616 617 // Information about transaction where change 618 // has been executed 619 type ResourceChangeLog_TransactionInfo struct { 620 state protoimpl.MessageState 621 sizeCache protoimpl.SizeCache 622 unknownFields protoimpl.UnknownFields 623 // unique identifier of the transaction. 624 Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` 625 // Indicator of try counter. If transaction has been 626 // concluded at first try, try_counter will be 1. If 627 // on the second try, then number will be 2 (etc). 628 TryCounter int32 `protobuf:"varint,2,opt,name=try_counter,json=tryCounter,proto3" json:"try_counter,omitempty"` 629 // State of the transaction. 630 State ResourceChangeLog_TransactionInfo_State `protobuf:"varint,3,opt,name=state,proto3,enum=ntt.audit.v1alpha2.ResourceChangeLog_TransactionInfo_State" json:"state,omitempty"` 631 } 632 633 func (m *ResourceChangeLog_TransactionInfo) Reset() { 634 *m = ResourceChangeLog_TransactionInfo{} 635 if protoimpl.UnsafeEnabled { 636 mi := &edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes[2] 637 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 638 ms.StoreMessageInfo(mi) 639 } 640 } 641 642 func (m *ResourceChangeLog_TransactionInfo) String() string { 643 return protoimpl.X.MessageStringOf(m) 644 } 645 646 func (*ResourceChangeLog_TransactionInfo) ProtoMessage() {} 647 648 func (m *ResourceChangeLog_TransactionInfo) ProtoReflect() preflect.Message { 649 mi := &edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes[2] 650 if protoimpl.UnsafeEnabled && m != nil { 651 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 652 if ms.LoadMessageInfo() == nil { 653 ms.StoreMessageInfo(mi) 654 } 655 return ms 656 } 657 return mi.MessageOf(m) 658 } 659 660 func (*ResourceChangeLog_TransactionInfo) GotenMessage() {} 661 662 // Deprecated, Use ResourceChangeLog_TransactionInfo.ProtoReflect.Descriptor instead. 663 func (*ResourceChangeLog_TransactionInfo) Descriptor() ([]byte, []int) { 664 return edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescGZIP(), []int{0, 1} 665 } 666 667 func (m *ResourceChangeLog_TransactionInfo) Unmarshal(b []byte) error { 668 return proto.Unmarshal(b, m) 669 } 670 671 func (m *ResourceChangeLog_TransactionInfo) Marshal() ([]byte, error) { 672 return proto.Marshal(m) 673 } 674 675 func (m *ResourceChangeLog_TransactionInfo) MarshalJSON() ([]byte, error) { 676 return protojson.MarshalOptions{}.Marshal(m) 677 } 678 679 func (m *ResourceChangeLog_TransactionInfo) UnmarshalJSON(data []byte) error { 680 return protojson.Unmarshal(data, m) 681 } 682 683 func (m *ResourceChangeLog_TransactionInfo) GetIdentifier() string { 684 if m != nil { 685 return m.Identifier 686 } 687 return "" 688 } 689 690 func (m *ResourceChangeLog_TransactionInfo) GetTryCounter() int32 { 691 if m != nil { 692 return m.TryCounter 693 } 694 return int32(0) 695 } 696 697 func (m *ResourceChangeLog_TransactionInfo) GetState() ResourceChangeLog_TransactionInfo_State { 698 if m != nil { 699 return m.State 700 } 701 return ResourceChangeLog_TransactionInfo_UNDEFINED 702 } 703 704 func (m *ResourceChangeLog_TransactionInfo) SetIdentifier(fv string) { 705 if m == nil { 706 panic(fmt.Errorf("can't set %s on nil %s", "Identifier", "ResourceChangeLog_TransactionInfo")) 707 } 708 m.Identifier = fv 709 } 710 711 func (m *ResourceChangeLog_TransactionInfo) SetTryCounter(fv int32) { 712 if m == nil { 713 panic(fmt.Errorf("can't set %s on nil %s", "TryCounter", "ResourceChangeLog_TransactionInfo")) 714 } 715 m.TryCounter = fv 716 } 717 718 func (m *ResourceChangeLog_TransactionInfo) SetState(fv ResourceChangeLog_TransactionInfo_State) { 719 if m == nil { 720 panic(fmt.Errorf("can't set %s on nil %s", "State", "ResourceChangeLog_TransactionInfo")) 721 } 722 m.State = fv 723 } 724 725 var edgelq_audit_proto_v1alpha2_resource_change_log_proto preflect.FileDescriptor 726 727 var edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDesc = []byte{ 728 0x0a, 0x35, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x70, 729 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 730 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 731 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 732 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 733 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 734 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 735 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 736 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 737 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 738 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 739 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 740 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 741 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x6f, 742 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 743 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 744 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 745 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 746 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 747 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 748 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 749 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 750 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 751 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 752 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x65, 753 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 754 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 755 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe2, 0x0d, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 756 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x2d, 0x0a, 757 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x19, 0xb2, 0xda, 0x21, 758 0x15, 0x0a, 0x13, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 759 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 760 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 761 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 762 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 763 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 764 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 765 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 766 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4a, 0x0a, 0x0e, 0x61, 767 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 768 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 769 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 770 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 771 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 772 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 773 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x53, 0x65, 774 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 775 0x63, 0x65, 0x12, 0x50, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x07, 776 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 777 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 778 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x6f, 779 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 780 0x75, 0x72, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 781 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 782 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x52, 783 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 784 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 785 0x52, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xa0, 0x05, 786 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 787 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 788 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 789 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 790 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 791 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x52, 0x65, 792 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x2e, 793 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x41, 794 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 795 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 796 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 797 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 798 0x6b, 0x52, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 799 0x12, 0x30, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 800 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 801 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 802 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 803 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 804 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 805 0x6e, 0x74, 0x12, 0x58, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x03, 806 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 807 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 808 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 809 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 810 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x31, 0x0a, 0x03, 811 0x70, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 812 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x4f, 813 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x03, 0x70, 0x72, 0x65, 0x12, 814 0x33, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 815 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 816 0x61, 0x32, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x04, 817 0x70, 0x6f, 0x73, 0x74, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 818 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 819 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 820 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 821 0x6f, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 822 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x45, 0x41, 823 0x54, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 824 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x50, 0x45, 0x43, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 825 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 826 0x45, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x45, 0x54, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 827 0x54, 0x45, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x02, 828 0x1a, 0xf0, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 829 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 830 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 831 0x66, 0x69, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 832 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x72, 0x79, 0x43, 0x6f, 833 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 834 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 835 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 836 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x72, 0x61, 0x6e, 837 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 838 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x49, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 839 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 840 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x52, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x54, 0x45, 841 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x54, 0x54, 0x45, 0x44, 842 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x4f, 0x4c, 0x4c, 0x45, 0x44, 0x5f, 0x42, 0x41, 0x43, 843 0x4b, 0x10, 0x03, 0x3a, 0xe6, 0x02, 0xea, 0x41, 0xd2, 0x01, 0x0a, 0x22, 0x61, 0x75, 0x64, 0x69, 844 0x74, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x73, 845 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x28, 846 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 847 0x67, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 848 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x7d, 0x12, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 849 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x65, 0x73, 850 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x2f, 851 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 852 0x5f, 0x6c, 0x6f, 0x67, 0x7d, 0x12, 0x45, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 853 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 854 0x6f, 0x6e, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 855 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 856 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x7d, 0x92, 0xd9, 0x21, 0x8b, 857 0x01, 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 858 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 859 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x1a, 0x12, 0x67, 0x6f, 0x74, 0x65, 0x6e, 860 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4e, 0x6f, 0x6e, 0x65, 0x1a, 0x16, 0x69, 861 0x61, 0x6d, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 862 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x1a, 0x1b, 0x69, 0x61, 0x6d, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 863 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 864 0x6f, 0x6e, 0x2a, 0x10, 0x5b, 0x5c, 0x77, 0x2e, 0x2f, 0x2d, 0x3d, 0x2b, 0x5d, 0x7b, 0x31, 0x2c, 865 0x31, 0x32, 0x38, 0x7d, 0x38, 0x05, 0x48, 0x01, 0x52, 0x02, 0x08, 0x01, 0x42, 0xe2, 0x02, 0xe8, 866 0xde, 0x21, 0x01, 0xd2, 0xff, 0xd0, 0x02, 0x60, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 867 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x73, 0x74, 868 0x6f, 0x72, 0x65, 0x12, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 869 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 870 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 871 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 872 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0xa2, 0x80, 0xd1, 0x02, 0x62, 0x0a, 0x1a, 0x72, 873 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 874 0x6f, 0x67, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 875 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 876 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x65, 877 0x73, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 878 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x0a, 879 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 880 0x62, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x16, 0x52, 0x65, 0x73, 0x6f, 881 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x50, 0x72, 0x6f, 882 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 883 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 884 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 885 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 886 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x3b, 0x72, 0x65, 887 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 888 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 889 } 890 891 var ( 892 edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescOnce sync.Once 893 edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescData = edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDesc 894 ) 895 896 func edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescGZIP() []byte { 897 edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescOnce.Do(func() { 898 edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescData) 899 }) 900 return edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDescData 901 } 902 903 var edgelq_audit_proto_v1alpha2_resource_change_log_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 904 var edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 905 var edgelq_audit_proto_v1alpha2_resource_change_log_proto_goTypes = []interface{}{ 906 (ResourceChangeLog_ResourceChange_Action)(0), // 0: ntt.audit.v1alpha2.ResourceChangeLog_ResourceChange_Action 907 (ResourceChangeLog_TransactionInfo_State)(0), // 1: ntt.audit.v1alpha2.ResourceChangeLog_TransactionInfo_State 908 (*ResourceChangeLog)(nil), // 2: ntt.audit.v1alpha2.ResourceChangeLog 909 (*ResourceChangeLog_ResourceChange)(nil), // 3: ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange 910 (*ResourceChangeLog_TransactionInfo)(nil), // 4: ntt.audit.v1alpha2.ResourceChangeLog.TransactionInfo 911 nil, // 5: ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange.LabelsEntry 912 (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp 913 (*common.Authentication)(nil), // 7: ntt.audit.v1alpha2.Authentication 914 (*common.ServiceData)(nil), // 8: ntt.audit.v1alpha2.ServiceData 915 (*fieldmaskpb.FieldMask)(nil), // 9: google.protobuf.FieldMask 916 (*anypb.Any)(nil), // 10: google.protobuf.Any 917 (*common.ObjectState)(nil), // 11: ntt.audit.v1alpha2.ObjectState 918 } 919 var edgelq_audit_proto_v1alpha2_resource_change_log_proto_depIdxs = []int32{ 920 6, // 0: ntt.audit.v1alpha2.ResourceChangeLog.timestamp:type_name -> google.protobuf.Timestamp 921 7, // 1: ntt.audit.v1alpha2.ResourceChangeLog.authentication:type_name -> ntt.audit.v1alpha2.Authentication 922 8, // 2: ntt.audit.v1alpha2.ResourceChangeLog.service:type_name -> ntt.audit.v1alpha2.ServiceData 923 3, // 3: ntt.audit.v1alpha2.ResourceChangeLog.resource:type_name -> ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange 924 4, // 4: ntt.audit.v1alpha2.ResourceChangeLog.transaction:type_name -> ntt.audit.v1alpha2.ResourceChangeLog.TransactionInfo 925 0, // 5: ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange.action:type_name -> ntt.audit.v1alpha2.ResourceChangeLog_ResourceChange_Action 926 9, // 6: ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange.updated_fields:type_name -> google.protobuf.FieldMask 927 10, // 7: ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange.previous:type_name -> google.protobuf.Any 928 10, // 8: ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange.current:type_name -> google.protobuf.Any 929 5, // 9: ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange.labels:type_name -> ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange.LabelsEntry 930 11, // 10: ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange.pre:type_name -> ntt.audit.v1alpha2.ObjectState 931 11, // 11: ntt.audit.v1alpha2.ResourceChangeLog.ResourceChange.post:type_name -> ntt.audit.v1alpha2.ObjectState 932 1, // 12: ntt.audit.v1alpha2.ResourceChangeLog.TransactionInfo.state:type_name -> ntt.audit.v1alpha2.ResourceChangeLog_TransactionInfo_State 933 13, // [13:13] is the sub-list for method output_type 934 13, // [13:13] is the sub-list for method input_type 935 13, // [13:13] is the sub-list for extension type_name 936 13, // [13:13] is the sub-list for extension extendee 937 0, // [0:13] is the sub-list for field type_name 938 } 939 940 func init() { edgelq_audit_proto_v1alpha2_resource_change_log_proto_init() } 941 func edgelq_audit_proto_v1alpha2_resource_change_log_proto_init() { 942 if edgelq_audit_proto_v1alpha2_resource_change_log_proto != nil { 943 return 944 } 945 if !protoimpl.UnsafeEnabled { 946 947 edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 948 switch v := v.(*ResourceChangeLog); i { 949 case 0: 950 return &v.state 951 case 1: 952 return &v.sizeCache 953 case 2: 954 return &v.unknownFields 955 default: 956 return nil 957 } 958 } 959 edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 960 switch v := v.(*ResourceChangeLog_ResourceChange); i { 961 case 0: 962 return &v.state 963 case 1: 964 return &v.sizeCache 965 case 2: 966 return &v.unknownFields 967 default: 968 return nil 969 } 970 } 971 edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 972 switch v := v.(*ResourceChangeLog_TransactionInfo); i { 973 case 0: 974 return &v.state 975 case 1: 976 return &v.sizeCache 977 case 2: 978 return &v.unknownFields 979 default: 980 return nil 981 } 982 } 983 } 984 985 type x struct{} 986 out := protoimpl.TypeBuilder{ 987 File: protoimpl.DescBuilder{ 988 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 989 RawDescriptor: edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDesc, 990 NumEnums: 2, 991 NumMessages: 4, 992 NumExtensions: 0, 993 NumServices: 0, 994 }, 995 GoTypes: edgelq_audit_proto_v1alpha2_resource_change_log_proto_goTypes, 996 DependencyIndexes: edgelq_audit_proto_v1alpha2_resource_change_log_proto_depIdxs, 997 EnumInfos: edgelq_audit_proto_v1alpha2_resource_change_log_proto_enumTypes, 998 MessageInfos: edgelq_audit_proto_v1alpha2_resource_change_log_proto_msgTypes, 999 }.Build() 1000 edgelq_audit_proto_v1alpha2_resource_change_log_proto = out.File 1001 edgelq_audit_proto_v1alpha2_resource_change_log_proto_rawDesc = nil 1002 edgelq_audit_proto_v1alpha2_resource_change_log_proto_goTypes = nil 1003 edgelq_audit_proto_v1alpha2_resource_change_log_proto_depIdxs = nil 1004 }