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