github.com/cloudwan/edgelq-sdk@v1.15.4/audit/client/v1/resource_change_log/resource_change_log_custom.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/audit/proto/v1/resource_change_log_custom.proto 3 // DO NOT EDIT!!! 4 5 package resource_change_log_client 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 resource_change_log "github.com/cloudwan/edgelq-sdk/audit/resources/v1/resource_change_log" 22 rpc "github.com/cloudwan/edgelq-sdk/common/rpc" 23 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 24 ) 25 26 // Reference imports to suppress errors if they are not otherwise used. 27 var ( 28 _ = fmt.Errorf 29 _ = reflect.Method{} 30 _ = sync.Once{} 31 32 _ = protojson.MarshalOptions{} 33 _ = proto.MarshalOptions{} 34 _ = preflect.Value{} 35 _ = protoimpl.DescBuilder{} 36 ) 37 38 // make sure we're using proto imports 39 var ( 40 _ = &common.Authentication{} 41 _ = &resource_change_log.ResourceChangeLog{} 42 _ = &rpc.Status{} 43 _ = ×tamppb.Timestamp{} 44 ) 45 46 const ( 47 // Verify that this generated code is sufficiently up-to-date. 48 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 49 // Verify that runtime/protoimpl is sufficiently up-to-date. 50 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 51 ) 52 53 // A request message of the 54 // [ListResourceChangeLogs](#listresourcechangelogs-method) method. 55 // 56 // It returns resource changes for specified time range, region, scope and 57 // filter. Note that resource change logs are Resource oriented, primary 58 // object is resource here. Audit monitors resources that have non-custom 59 // store. 60 // 61 // Note that filter field is mandatory and minimal filters are: 62 // 63 // * --filter 'service.name=[SERVICE_NAME] and resource.type=[RESOURCE_NAME]' 64 // (what is happening for this resource type) 65 // * --filter 'request_id=[REQUEST_ID]' (which resources were changed by this 66 // request_id?) 67 // 68 // Be aware that server will append scope filter condition (and scope IN ...) 69 // to an any of the above filters. All scopes are extracted from parents field 70 // in ListResourceChangeLogsRequest body. This ensures that users can view only 71 // scopes he/she is allowed to. 72 // 73 // For all of the above filters you can replace filter condition compare (=) 74 // with IN operator. You can therefore query for multiple services, methods or 75 // users at once. Above filters are also preferred as we have optimization for 76 // them. 77 // 78 // Resource change logs can also be filtered by custom labels (field labels in 79 // ResourceChangeLog - pre and post versions). Labels are custom per each API 80 // resource - so you must specify service.name and resource.type conditions to 81 // enable them. For example, suppose you have a VM resource which contains 82 // "group" field, which is a reference to some other resource. If you create 83 // label "group" in VM resource spec (in proto model) you can make a following 84 // query: 85 // 86 // ``` 87 // --filter 'service.name=vms.domain.com and \ 88 // resource.type=VM and \ 89 // resource.post.labels.group=projects/P/vmgroups/myGroup' 90 // ``` 91 // 92 // Examples of usage (with cuttle, we are interested only in one region and 93 // scope): 94 // 95 // * Checks activities within one hour for role binding resources 96 // 97 // ```bash 98 // cuttle audit query activity-log --parents 'projects/demo' \ 99 // --filter 'service.name="iam.edgelq.com" and \ 100 // resource.type="RoleBinding"' \ 101 // --interval '{"startTime":"2020-09-08T12:00:00Z", 102 // "endTime":"2020-09-08T13:00:00Z"}' \ -o json 103 // ``` 104 // 105 // * Checks modification of specific RoleBinding 106 // 107 // ```bash 108 // cuttle audit query activity-log --parents 'projects/demo' \ 109 // --filter 'service.name="iam.edgelq.com" and \ 110 // resource.type="RoleBinding" and \ 111 // resource.name="projects/x/roleBindings/myRB"' \ 112 // --interval '{"startTime":"2020-09-08T12:00:00Z"}' \ 113 // -o json 114 // ``` 115 // 116 // * Checks changes on resource RoleBinding made by specific user 117 // (we need their email) 118 // 119 // ```bash 120 // cuttle audit query resource-change-log --parents 'projects/demo' \ 121 // --filter 'service.name="iam.edgelq.com" and \ 122 // resource.type="RoleBinding" and \ 123 // authentication.principal="user:we.know.who@domain.com"' \ 124 // --interval '{"startTime":"2020-09-08T12:00:00Z"}' \ 125 // -o json 126 // ``` 127 type ListResourceChangeLogsRequest struct { 128 state protoimpl.MessageState 129 sizeCache protoimpl.SizeCache 130 unknownFields protoimpl.UnknownFields 131 // Parent names of ntt.audit.v1.ResourceChangeLog 132 Parents []*resource_change_log.ParentName `protobuf:"bytes,1,rep,customtype=ParentName,name=parents,proto3" json:"parents,omitempty"` 133 // A audit filter that specifies which resource change logs should be returned 134 Filter *resource_change_log.Filter `protobuf:"bytes,2,opt,customtype=Filter,name=filter,proto3" json:"filter,omitempty"` 135 // The time interval for which results should be returned. Only logs 136 // that contain data points in the specified interval are included 137 // in the response. 138 Interval *common.TimeInterval `protobuf:"bytes,4,opt,name=interval,proto3" json:"interval,omitempty"` 139 // Cap on a number of resource change logs to be included in a response. 140 // Number of logs in an actual response can be higher, since logs are 141 // read in bulk with second precision - exceed logs above the limit will share 142 // same timestamp as the logs below the limit. 143 // 144 // Results will be adjusted to the "end time" taken from interval field 145 // (adjusted also by page_token if provided). 146 PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 147 // Token which identifies next page with further results. Token should be 148 // taken from ListResourceChangeLogsResponse 149 // [ListResourceChangeLogsResponse.next_page_token][ntt.audit.v1.ListResourceChangeLogsResponse.next_page_token]. 150 PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 151 } 152 153 func (m *ListResourceChangeLogsRequest) Reset() { 154 *m = ListResourceChangeLogsRequest{} 155 if protoimpl.UnsafeEnabled { 156 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[0] 157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 158 ms.StoreMessageInfo(mi) 159 } 160 } 161 162 func (m *ListResourceChangeLogsRequest) String() string { 163 return protoimpl.X.MessageStringOf(m) 164 } 165 166 func (*ListResourceChangeLogsRequest) ProtoMessage() {} 167 168 func (m *ListResourceChangeLogsRequest) ProtoReflect() preflect.Message { 169 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[0] 170 if protoimpl.UnsafeEnabled && m != nil { 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 172 if ms.LoadMessageInfo() == nil { 173 ms.StoreMessageInfo(mi) 174 } 175 return ms 176 } 177 return mi.MessageOf(m) 178 } 179 180 func (*ListResourceChangeLogsRequest) GotenMessage() {} 181 182 // Deprecated, Use ListResourceChangeLogsRequest.ProtoReflect.Descriptor instead. 183 func (*ListResourceChangeLogsRequest) Descriptor() ([]byte, []int) { 184 return edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescGZIP(), []int{0} 185 } 186 187 func (m *ListResourceChangeLogsRequest) Unmarshal(b []byte) error { 188 return proto.Unmarshal(b, m) 189 } 190 191 func (m *ListResourceChangeLogsRequest) Marshal() ([]byte, error) { 192 return proto.Marshal(m) 193 } 194 195 func (m *ListResourceChangeLogsRequest) MarshalJSON() ([]byte, error) { 196 return protojson.MarshalOptions{}.Marshal(m) 197 } 198 199 func (m *ListResourceChangeLogsRequest) UnmarshalJSON(data []byte) error { 200 return protojson.Unmarshal(data, m) 201 } 202 203 func (m *ListResourceChangeLogsRequest) GetParents() []*resource_change_log.ParentName { 204 if m != nil { 205 return m.Parents 206 } 207 return nil 208 } 209 210 func (m *ListResourceChangeLogsRequest) GetFilter() *resource_change_log.Filter { 211 if m != nil { 212 return m.Filter 213 } 214 return nil 215 } 216 217 func (m *ListResourceChangeLogsRequest) GetInterval() *common.TimeInterval { 218 if m != nil { 219 return m.Interval 220 } 221 return nil 222 } 223 224 func (m *ListResourceChangeLogsRequest) GetPageSize() int32 { 225 if m != nil { 226 return m.PageSize 227 } 228 return int32(0) 229 } 230 231 func (m *ListResourceChangeLogsRequest) GetPageToken() string { 232 if m != nil { 233 return m.PageToken 234 } 235 return "" 236 } 237 238 func (m *ListResourceChangeLogsRequest) SetParents(fv []*resource_change_log.ParentName) { 239 if m == nil { 240 panic(fmt.Errorf("can't set %s on nil %s", "Parents", "ListResourceChangeLogsRequest")) 241 } 242 m.Parents = fv 243 } 244 245 func (m *ListResourceChangeLogsRequest) SetFilter(fv *resource_change_log.Filter) { 246 if m == nil { 247 panic(fmt.Errorf("can't set %s on nil %s", "Filter", "ListResourceChangeLogsRequest")) 248 } 249 m.Filter = fv 250 } 251 252 func (m *ListResourceChangeLogsRequest) SetInterval(fv *common.TimeInterval) { 253 if m == nil { 254 panic(fmt.Errorf("can't set %s on nil %s", "Interval", "ListResourceChangeLogsRequest")) 255 } 256 m.Interval = fv 257 } 258 259 func (m *ListResourceChangeLogsRequest) SetPageSize(fv int32) { 260 if m == nil { 261 panic(fmt.Errorf("can't set %s on nil %s", "PageSize", "ListResourceChangeLogsRequest")) 262 } 263 m.PageSize = fv 264 } 265 266 func (m *ListResourceChangeLogsRequest) SetPageToken(fv string) { 267 if m == nil { 268 panic(fmt.Errorf("can't set %s on nil %s", "PageToken", "ListResourceChangeLogsRequest")) 269 } 270 m.PageToken = fv 271 } 272 273 // A response message of the 274 // [ListResourceChangeLogs](#listresourcechangelogs-method) method. 275 // 276 // Creates resource change log. 277 // 278 // This request should not be used by regular users - only API services should 279 // be able to submit resource change logs. Developers of services should use 280 // logs exporter package offered along other Audit service packages instead of 281 // developing own components. 282 type ListResourceChangeLogsResponse struct { 283 state protoimpl.MessageState 284 sizeCache protoimpl.SizeCache 285 unknownFields protoimpl.UnknownFields 286 // One or more resource change logs that match the filter included in the 287 // request. Contains results from all queried regions. Its possible however 288 // that some logs may be missing, for this see execution_errors. 289 ResourceChangeLogs []*resource_change_log.ResourceChangeLog `protobuf:"bytes,1,rep,name=resource_change_logs,json=resourceChangeLogs,proto3" json:"resource_change_logs,omitempty"` 290 // If there are more results than have been returned, then this field is set 291 // to a non-empty value. To see the additional results, 292 // use that value as `pageToken` in the next call to this method. 293 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 294 // Query execution errors that may have caused the response data returned to 295 // be incomplete. Because logs are stored only locally (for each region), all 296 // resource change log queries are split and merged by a receiving request 297 // server according to the queried regions. Its possible that some regions 298 // will fail when request is redirected to them, but others not. For each 299 // failed region, one execution error will be appended. In each ntt.rpc.Status 300 // message, fields code and message will contain error obtained from failed 301 // regional server, while field details will contain always one item and this 302 // item will be of type ErrorDetails. 303 ExecutionErrors []*rpc.Status `protobuf:"bytes,3,rep,name=execution_errors,json=executionErrors,proto3" json:"execution_errors,omitempty"` 304 } 305 306 func (m *ListResourceChangeLogsResponse) Reset() { 307 *m = ListResourceChangeLogsResponse{} 308 if protoimpl.UnsafeEnabled { 309 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[1] 310 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 311 ms.StoreMessageInfo(mi) 312 } 313 } 314 315 func (m *ListResourceChangeLogsResponse) String() string { 316 return protoimpl.X.MessageStringOf(m) 317 } 318 319 func (*ListResourceChangeLogsResponse) ProtoMessage() {} 320 321 func (m *ListResourceChangeLogsResponse) ProtoReflect() preflect.Message { 322 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[1] 323 if protoimpl.UnsafeEnabled && m != nil { 324 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 325 if ms.LoadMessageInfo() == nil { 326 ms.StoreMessageInfo(mi) 327 } 328 return ms 329 } 330 return mi.MessageOf(m) 331 } 332 333 func (*ListResourceChangeLogsResponse) GotenMessage() {} 334 335 // Deprecated, Use ListResourceChangeLogsResponse.ProtoReflect.Descriptor instead. 336 func (*ListResourceChangeLogsResponse) Descriptor() ([]byte, []int) { 337 return edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescGZIP(), []int{1} 338 } 339 340 func (m *ListResourceChangeLogsResponse) Unmarshal(b []byte) error { 341 return proto.Unmarshal(b, m) 342 } 343 344 func (m *ListResourceChangeLogsResponse) Marshal() ([]byte, error) { 345 return proto.Marshal(m) 346 } 347 348 func (m *ListResourceChangeLogsResponse) MarshalJSON() ([]byte, error) { 349 return protojson.MarshalOptions{}.Marshal(m) 350 } 351 352 func (m *ListResourceChangeLogsResponse) UnmarshalJSON(data []byte) error { 353 return protojson.Unmarshal(data, m) 354 } 355 356 func (m *ListResourceChangeLogsResponse) GetResourceChangeLogs() []*resource_change_log.ResourceChangeLog { 357 if m != nil { 358 return m.ResourceChangeLogs 359 } 360 return nil 361 } 362 363 func (m *ListResourceChangeLogsResponse) GetNextPageToken() string { 364 if m != nil { 365 return m.NextPageToken 366 } 367 return "" 368 } 369 370 func (m *ListResourceChangeLogsResponse) GetExecutionErrors() []*rpc.Status { 371 if m != nil { 372 return m.ExecutionErrors 373 } 374 return nil 375 } 376 377 func (m *ListResourceChangeLogsResponse) SetResourceChangeLogs(fv []*resource_change_log.ResourceChangeLog) { 378 if m == nil { 379 panic(fmt.Errorf("can't set %s on nil %s", "ResourceChangeLogs", "ListResourceChangeLogsResponse")) 380 } 381 m.ResourceChangeLogs = fv 382 } 383 384 func (m *ListResourceChangeLogsResponse) SetNextPageToken(fv string) { 385 if m == nil { 386 panic(fmt.Errorf("can't set %s on nil %s", "NextPageToken", "ListResourceChangeLogsResponse")) 387 } 388 m.NextPageToken = fv 389 } 390 391 func (m *ListResourceChangeLogsResponse) SetExecutionErrors(fv []*rpc.Status) { 392 if m == nil { 393 panic(fmt.Errorf("can't set %s on nil %s", "ExecutionErrors", "ListResourceChangeLogsResponse")) 394 } 395 m.ExecutionErrors = fv 396 } 397 398 // A request message of the 399 // [CreatePreCommittedResourceChangeLogs](#createprecommittedresourcechangelogs-method) 400 // method. 401 type CreatePreCommittedResourceChangeLogsRequest struct { 402 state protoimpl.MessageState 403 sizeCache protoimpl.SizeCache 404 unknownFields protoimpl.UnknownFields 405 // ID of the request - must be same as the one used in activity logs 406 RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` 407 // Time of the request 408 Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 409 // Authentication data - informs who made a change 410 Authentication *common.Authentication `protobuf:"bytes,3,opt,name=authentication,proto3" json:"authentication,omitempty"` 411 // Information about the service 412 Service *common.ServiceData `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` 413 // Information about transaction 414 Transaction *resource_change_log.ResourceChangeLog_TransactionInfo `protobuf:"bytes,5,opt,name=transaction,proto3" json:"transaction,omitempty"` 415 // List of changes 416 Changes []*resource_change_log.ResourceChangeLog_ResourceChange `protobuf:"bytes,6,rep,name=changes,proto3" json:"changes,omitempty"` 417 } 418 419 func (m *CreatePreCommittedResourceChangeLogsRequest) Reset() { 420 *m = CreatePreCommittedResourceChangeLogsRequest{} 421 if protoimpl.UnsafeEnabled { 422 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[2] 423 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 424 ms.StoreMessageInfo(mi) 425 } 426 } 427 428 func (m *CreatePreCommittedResourceChangeLogsRequest) String() string { 429 return protoimpl.X.MessageStringOf(m) 430 } 431 432 func (*CreatePreCommittedResourceChangeLogsRequest) ProtoMessage() {} 433 434 func (m *CreatePreCommittedResourceChangeLogsRequest) ProtoReflect() preflect.Message { 435 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[2] 436 if protoimpl.UnsafeEnabled && m != nil { 437 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 438 if ms.LoadMessageInfo() == nil { 439 ms.StoreMessageInfo(mi) 440 } 441 return ms 442 } 443 return mi.MessageOf(m) 444 } 445 446 func (*CreatePreCommittedResourceChangeLogsRequest) GotenMessage() {} 447 448 // Deprecated, Use CreatePreCommittedResourceChangeLogsRequest.ProtoReflect.Descriptor instead. 449 func (*CreatePreCommittedResourceChangeLogsRequest) Descriptor() ([]byte, []int) { 450 return edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescGZIP(), []int{2} 451 } 452 453 func (m *CreatePreCommittedResourceChangeLogsRequest) Unmarshal(b []byte) error { 454 return proto.Unmarshal(b, m) 455 } 456 457 func (m *CreatePreCommittedResourceChangeLogsRequest) Marshal() ([]byte, error) { 458 return proto.Marshal(m) 459 } 460 461 func (m *CreatePreCommittedResourceChangeLogsRequest) MarshalJSON() ([]byte, error) { 462 return protojson.MarshalOptions{}.Marshal(m) 463 } 464 465 func (m *CreatePreCommittedResourceChangeLogsRequest) UnmarshalJSON(data []byte) error { 466 return protojson.Unmarshal(data, m) 467 } 468 469 func (m *CreatePreCommittedResourceChangeLogsRequest) GetRequestId() uint64 { 470 if m != nil { 471 return m.RequestId 472 } 473 return uint64(0) 474 } 475 476 func (m *CreatePreCommittedResourceChangeLogsRequest) GetTimestamp() *timestamppb.Timestamp { 477 if m != nil { 478 return m.Timestamp 479 } 480 return nil 481 } 482 483 func (m *CreatePreCommittedResourceChangeLogsRequest) GetAuthentication() *common.Authentication { 484 if m != nil { 485 return m.Authentication 486 } 487 return nil 488 } 489 490 func (m *CreatePreCommittedResourceChangeLogsRequest) GetService() *common.ServiceData { 491 if m != nil { 492 return m.Service 493 } 494 return nil 495 } 496 497 func (m *CreatePreCommittedResourceChangeLogsRequest) GetTransaction() *resource_change_log.ResourceChangeLog_TransactionInfo { 498 if m != nil { 499 return m.Transaction 500 } 501 return nil 502 } 503 504 func (m *CreatePreCommittedResourceChangeLogsRequest) GetChanges() []*resource_change_log.ResourceChangeLog_ResourceChange { 505 if m != nil { 506 return m.Changes 507 } 508 return nil 509 } 510 511 func (m *CreatePreCommittedResourceChangeLogsRequest) SetRequestId(fv uint64) { 512 if m == nil { 513 panic(fmt.Errorf("can't set %s on nil %s", "RequestId", "CreatePreCommittedResourceChangeLogsRequest")) 514 } 515 m.RequestId = fv 516 } 517 518 func (m *CreatePreCommittedResourceChangeLogsRequest) SetTimestamp(fv *timestamppb.Timestamp) { 519 if m == nil { 520 panic(fmt.Errorf("can't set %s on nil %s", "Timestamp", "CreatePreCommittedResourceChangeLogsRequest")) 521 } 522 m.Timestamp = fv 523 } 524 525 func (m *CreatePreCommittedResourceChangeLogsRequest) SetAuthentication(fv *common.Authentication) { 526 if m == nil { 527 panic(fmt.Errorf("can't set %s on nil %s", "Authentication", "CreatePreCommittedResourceChangeLogsRequest")) 528 } 529 m.Authentication = fv 530 } 531 532 func (m *CreatePreCommittedResourceChangeLogsRequest) SetService(fv *common.ServiceData) { 533 if m == nil { 534 panic(fmt.Errorf("can't set %s on nil %s", "Service", "CreatePreCommittedResourceChangeLogsRequest")) 535 } 536 m.Service = fv 537 } 538 539 func (m *CreatePreCommittedResourceChangeLogsRequest) SetTransaction(fv *resource_change_log.ResourceChangeLog_TransactionInfo) { 540 if m == nil { 541 panic(fmt.Errorf("can't set %s on nil %s", "Transaction", "CreatePreCommittedResourceChangeLogsRequest")) 542 } 543 m.Transaction = fv 544 } 545 546 func (m *CreatePreCommittedResourceChangeLogsRequest) SetChanges(fv []*resource_change_log.ResourceChangeLog_ResourceChange) { 547 if m == nil { 548 panic(fmt.Errorf("can't set %s on nil %s", "Changes", "CreatePreCommittedResourceChangeLogsRequest")) 549 } 550 m.Changes = fv 551 } 552 553 // A response message of the 554 // [CreatePreCommittedResourceChangeLogs](#createprecommittedresourcechangelogs-method) 555 // method. 556 type CreatePreCommittedResourceChangeLogsResponse struct { 557 state protoimpl.MessageState 558 sizeCache protoimpl.SizeCache 559 unknownFields protoimpl.UnknownFields 560 // Resource change log keys - one key per each resource change, in same order 561 LogKeys [][]byte `protobuf:"bytes,1,rep,name=log_keys,json=logKeys,proto3" json:"log_keys,omitempty"` 562 } 563 564 func (m *CreatePreCommittedResourceChangeLogsResponse) Reset() { 565 *m = CreatePreCommittedResourceChangeLogsResponse{} 566 if protoimpl.UnsafeEnabled { 567 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[3] 568 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 569 ms.StoreMessageInfo(mi) 570 } 571 } 572 573 func (m *CreatePreCommittedResourceChangeLogsResponse) String() string { 574 return protoimpl.X.MessageStringOf(m) 575 } 576 577 func (*CreatePreCommittedResourceChangeLogsResponse) ProtoMessage() {} 578 579 func (m *CreatePreCommittedResourceChangeLogsResponse) ProtoReflect() preflect.Message { 580 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[3] 581 if protoimpl.UnsafeEnabled && m != nil { 582 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 583 if ms.LoadMessageInfo() == nil { 584 ms.StoreMessageInfo(mi) 585 } 586 return ms 587 } 588 return mi.MessageOf(m) 589 } 590 591 func (*CreatePreCommittedResourceChangeLogsResponse) GotenMessage() {} 592 593 // Deprecated, Use CreatePreCommittedResourceChangeLogsResponse.ProtoReflect.Descriptor instead. 594 func (*CreatePreCommittedResourceChangeLogsResponse) Descriptor() ([]byte, []int) { 595 return edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescGZIP(), []int{3} 596 } 597 598 func (m *CreatePreCommittedResourceChangeLogsResponse) Unmarshal(b []byte) error { 599 return proto.Unmarshal(b, m) 600 } 601 602 func (m *CreatePreCommittedResourceChangeLogsResponse) Marshal() ([]byte, error) { 603 return proto.Marshal(m) 604 } 605 606 func (m *CreatePreCommittedResourceChangeLogsResponse) MarshalJSON() ([]byte, error) { 607 return protojson.MarshalOptions{}.Marshal(m) 608 } 609 610 func (m *CreatePreCommittedResourceChangeLogsResponse) UnmarshalJSON(data []byte) error { 611 return protojson.Unmarshal(data, m) 612 } 613 614 func (m *CreatePreCommittedResourceChangeLogsResponse) GetLogKeys() [][]byte { 615 if m != nil { 616 return m.LogKeys 617 } 618 return nil 619 } 620 621 func (m *CreatePreCommittedResourceChangeLogsResponse) SetLogKeys(fv [][]byte) { 622 if m == nil { 623 panic(fmt.Errorf("can't set %s on nil %s", "LogKeys", "CreatePreCommittedResourceChangeLogsResponse")) 624 } 625 m.LogKeys = fv 626 } 627 628 // A request message of the 629 // [SetResourceChangeLogsCommitState](#setresourcechangelogscommitstate-method) 630 // method. 631 type SetResourceChangeLogsCommitStateRequest struct { 632 state protoimpl.MessageState 633 sizeCache protoimpl.SizeCache 634 unknownFields protoimpl.UnknownFields 635 // list of resource change log keys. 636 LogKeys [][]byte `protobuf:"bytes,1,rep,name=log_keys,json=logKeys,proto3" json:"log_keys,omitempty"` 637 // Information about the service - must be same as before, used for 638 // authorization purpose 639 Service *common.ServiceData `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` 640 // Time of the request - must be same as in 641 // CreatePreCommittedResourceChangeLogsRequest 642 Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 643 // final state of the transaction - must be COMMITTED or ROLLED_BACK 644 TxResult resource_change_log.ResourceChangeLog_TransactionInfo_State `protobuf:"varint,3,opt,name=tx_result,json=txResult,proto3,enum=ntt.audit.v1.ResourceChangeLog_TransactionInfo_State" json:"tx_result,omitempty"` 645 } 646 647 func (m *SetResourceChangeLogsCommitStateRequest) Reset() { 648 *m = SetResourceChangeLogsCommitStateRequest{} 649 if protoimpl.UnsafeEnabled { 650 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[4] 651 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 652 ms.StoreMessageInfo(mi) 653 } 654 } 655 656 func (m *SetResourceChangeLogsCommitStateRequest) String() string { 657 return protoimpl.X.MessageStringOf(m) 658 } 659 660 func (*SetResourceChangeLogsCommitStateRequest) ProtoMessage() {} 661 662 func (m *SetResourceChangeLogsCommitStateRequest) ProtoReflect() preflect.Message { 663 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[4] 664 if protoimpl.UnsafeEnabled && m != nil { 665 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 666 if ms.LoadMessageInfo() == nil { 667 ms.StoreMessageInfo(mi) 668 } 669 return ms 670 } 671 return mi.MessageOf(m) 672 } 673 674 func (*SetResourceChangeLogsCommitStateRequest) GotenMessage() {} 675 676 // Deprecated, Use SetResourceChangeLogsCommitStateRequest.ProtoReflect.Descriptor instead. 677 func (*SetResourceChangeLogsCommitStateRequest) Descriptor() ([]byte, []int) { 678 return edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescGZIP(), []int{4} 679 } 680 681 func (m *SetResourceChangeLogsCommitStateRequest) Unmarshal(b []byte) error { 682 return proto.Unmarshal(b, m) 683 } 684 685 func (m *SetResourceChangeLogsCommitStateRequest) Marshal() ([]byte, error) { 686 return proto.Marshal(m) 687 } 688 689 func (m *SetResourceChangeLogsCommitStateRequest) MarshalJSON() ([]byte, error) { 690 return protojson.MarshalOptions{}.Marshal(m) 691 } 692 693 func (m *SetResourceChangeLogsCommitStateRequest) UnmarshalJSON(data []byte) error { 694 return protojson.Unmarshal(data, m) 695 } 696 697 func (m *SetResourceChangeLogsCommitStateRequest) GetLogKeys() [][]byte { 698 if m != nil { 699 return m.LogKeys 700 } 701 return nil 702 } 703 704 func (m *SetResourceChangeLogsCommitStateRequest) GetService() *common.ServiceData { 705 if m != nil { 706 return m.Service 707 } 708 return nil 709 } 710 711 func (m *SetResourceChangeLogsCommitStateRequest) GetTimestamp() *timestamppb.Timestamp { 712 if m != nil { 713 return m.Timestamp 714 } 715 return nil 716 } 717 718 func (m *SetResourceChangeLogsCommitStateRequest) GetTxResult() resource_change_log.ResourceChangeLog_TransactionInfo_State { 719 if m != nil { 720 return m.TxResult 721 } 722 return resource_change_log.ResourceChangeLog_TransactionInfo_UNDEFINED 723 } 724 725 func (m *SetResourceChangeLogsCommitStateRequest) SetLogKeys(fv [][]byte) { 726 if m == nil { 727 panic(fmt.Errorf("can't set %s on nil %s", "LogKeys", "SetResourceChangeLogsCommitStateRequest")) 728 } 729 m.LogKeys = fv 730 } 731 732 func (m *SetResourceChangeLogsCommitStateRequest) SetService(fv *common.ServiceData) { 733 if m == nil { 734 panic(fmt.Errorf("can't set %s on nil %s", "Service", "SetResourceChangeLogsCommitStateRequest")) 735 } 736 m.Service = fv 737 } 738 739 func (m *SetResourceChangeLogsCommitStateRequest) SetTimestamp(fv *timestamppb.Timestamp) { 740 if m == nil { 741 panic(fmt.Errorf("can't set %s on nil %s", "Timestamp", "SetResourceChangeLogsCommitStateRequest")) 742 } 743 m.Timestamp = fv 744 } 745 746 func (m *SetResourceChangeLogsCommitStateRequest) SetTxResult(fv resource_change_log.ResourceChangeLog_TransactionInfo_State) { 747 if m == nil { 748 panic(fmt.Errorf("can't set %s on nil %s", "TxResult", "SetResourceChangeLogsCommitStateRequest")) 749 } 750 m.TxResult = fv 751 } 752 753 // A response message of the 754 // [SetResourceChangeLogsCommitState](#setresourcechangelogscommitstate-method) 755 // method. 756 type SetResourceChangeLogsCommitStateResponse struct { 757 state protoimpl.MessageState 758 sizeCache protoimpl.SizeCache 759 unknownFields protoimpl.UnknownFields 760 } 761 762 func (m *SetResourceChangeLogsCommitStateResponse) Reset() { 763 *m = SetResourceChangeLogsCommitStateResponse{} 764 if protoimpl.UnsafeEnabled { 765 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[5] 766 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 767 ms.StoreMessageInfo(mi) 768 } 769 } 770 771 func (m *SetResourceChangeLogsCommitStateResponse) String() string { 772 return protoimpl.X.MessageStringOf(m) 773 } 774 775 func (*SetResourceChangeLogsCommitStateResponse) ProtoMessage() {} 776 777 func (m *SetResourceChangeLogsCommitStateResponse) ProtoReflect() preflect.Message { 778 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[5] 779 if protoimpl.UnsafeEnabled && m != nil { 780 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 781 if ms.LoadMessageInfo() == nil { 782 ms.StoreMessageInfo(mi) 783 } 784 return ms 785 } 786 return mi.MessageOf(m) 787 } 788 789 func (*SetResourceChangeLogsCommitStateResponse) GotenMessage() {} 790 791 // Deprecated, Use SetResourceChangeLogsCommitStateResponse.ProtoReflect.Descriptor instead. 792 func (*SetResourceChangeLogsCommitStateResponse) Descriptor() ([]byte, []int) { 793 return edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescGZIP(), []int{5} 794 } 795 796 func (m *SetResourceChangeLogsCommitStateResponse) Unmarshal(b []byte) error { 797 return proto.Unmarshal(b, m) 798 } 799 800 func (m *SetResourceChangeLogsCommitStateResponse) Marshal() ([]byte, error) { 801 return proto.Marshal(m) 802 } 803 804 func (m *SetResourceChangeLogsCommitStateResponse) MarshalJSON() ([]byte, error) { 805 return protojson.MarshalOptions{}.Marshal(m) 806 } 807 808 func (m *SetResourceChangeLogsCommitStateResponse) UnmarshalJSON(data []byte) error { 809 return protojson.Unmarshal(data, m) 810 } 811 812 // ErrorDetails is used when one of the queried regions fails to produce 813 // results. It is used in execution_errors field (see subfield 814 // ntt.rpc.Status.details). 815 type ListResourceChangeLogsResponse_ErrorDetails struct { 816 state protoimpl.MessageState 817 sizeCache protoimpl.SizeCache 818 unknownFields protoimpl.UnknownFields 819 // region id which failed to give results. 820 RegionId string `protobuf:"bytes,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` 821 } 822 823 func (m *ListResourceChangeLogsResponse_ErrorDetails) Reset() { 824 *m = ListResourceChangeLogsResponse_ErrorDetails{} 825 if protoimpl.UnsafeEnabled { 826 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[6] 827 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 828 ms.StoreMessageInfo(mi) 829 } 830 } 831 832 func (m *ListResourceChangeLogsResponse_ErrorDetails) String() string { 833 return protoimpl.X.MessageStringOf(m) 834 } 835 836 func (*ListResourceChangeLogsResponse_ErrorDetails) ProtoMessage() {} 837 838 func (m *ListResourceChangeLogsResponse_ErrorDetails) ProtoReflect() preflect.Message { 839 mi := &edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[6] 840 if protoimpl.UnsafeEnabled && m != nil { 841 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 842 if ms.LoadMessageInfo() == nil { 843 ms.StoreMessageInfo(mi) 844 } 845 return ms 846 } 847 return mi.MessageOf(m) 848 } 849 850 func (*ListResourceChangeLogsResponse_ErrorDetails) GotenMessage() {} 851 852 // Deprecated, Use ListResourceChangeLogsResponse_ErrorDetails.ProtoReflect.Descriptor instead. 853 func (*ListResourceChangeLogsResponse_ErrorDetails) Descriptor() ([]byte, []int) { 854 return edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescGZIP(), []int{1, 0} 855 } 856 857 func (m *ListResourceChangeLogsResponse_ErrorDetails) Unmarshal(b []byte) error { 858 return proto.Unmarshal(b, m) 859 } 860 861 func (m *ListResourceChangeLogsResponse_ErrorDetails) Marshal() ([]byte, error) { 862 return proto.Marshal(m) 863 } 864 865 func (m *ListResourceChangeLogsResponse_ErrorDetails) MarshalJSON() ([]byte, error) { 866 return protojson.MarshalOptions{}.Marshal(m) 867 } 868 869 func (m *ListResourceChangeLogsResponse_ErrorDetails) UnmarshalJSON(data []byte) error { 870 return protojson.Unmarshal(data, m) 871 } 872 873 func (m *ListResourceChangeLogsResponse_ErrorDetails) GetRegionId() string { 874 if m != nil { 875 return m.RegionId 876 } 877 return "" 878 } 879 880 func (m *ListResourceChangeLogsResponse_ErrorDetails) SetRegionId(fv string) { 881 if m == nil { 882 panic(fmt.Errorf("can't set %s on nil %s", "RegionId", "ListResourceChangeLogsResponse_ErrorDetails")) 883 } 884 m.RegionId = fv 885 } 886 887 var edgelq_audit_proto_v1_resource_change_log_custom_proto preflect.FileDescriptor 888 889 var edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDesc = []byte{ 890 0x0a, 0x36, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x70, 891 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 892 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x63, 0x75, 0x73, 0x74, 893 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 894 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 895 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 896 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 897 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 898 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 899 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 900 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 901 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 902 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 903 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 904 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 905 0x1e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x72, 906 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 907 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x70, 0x72, 908 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 909 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 910 0x1a, 0x22, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x70, 911 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 912 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x02, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 913 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x52, 914 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 915 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x19, 0xb2, 0xda, 0x21, 0x15, 0x3a, 0x13, 0x0a, 916 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 917 0x6f, 0x67, 0x52, 0x07, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x66, 918 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x19, 0xb2, 0xda, 0x21, 919 0x15, 0x1a, 0x13, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 920 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x40, 921 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 922 0x32, 0x1a, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 923 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x42, 0x08, 0xca, 0xc6, 924 0x27, 0x04, 0x62, 0x02, 0x08, 0x01, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 925 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 926 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 927 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 928 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x84, 0x02, 0x0a, 929 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 930 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 931 0x51, 0x0a, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 932 0x67, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 933 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 934 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x52, 0x12, 935 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 936 0x67, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 937 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 938 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x3a, 0x0a, 0x10, 0x65, 0x78, 939 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x03, 940 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 941 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 942 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x1a, 0x2b, 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 943 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 944 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 945 0x6e, 0x49, 0x64, 0x22, 0x9e, 0x03, 0x0a, 0x2b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 946 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 947 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 948 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 949 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 950 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 951 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 952 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 953 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x44, 0x0a, 0x0e, 954 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 955 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 956 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 957 0x6f, 0x6e, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 958 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 959 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 960 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x07, 961 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, 962 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6e, 963 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 964 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x72, 965 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x74, 966 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x07, 0x63, 0x68, 967 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6e, 0x74, 968 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 969 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x73, 970 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x07, 0x63, 0x68, 0x61, 971 0x6e, 0x67, 0x65, 0x73, 0x22, 0x49, 0x0a, 0x2c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 972 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 973 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 974 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x73, 975 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x4b, 0x65, 0x79, 0x73, 0x22, 976 0x87, 0x02, 0x0a, 0x27, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 977 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 978 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6c, 979 0x6f, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x07, 0x6c, 980 0x6f, 0x67, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 981 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 982 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x61, 983 0x74, 0x61, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 984 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 985 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 986 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 987 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x52, 0x0a, 0x09, 0x74, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x75, 988 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 989 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 990 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 0x67, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 991 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 992 0x08, 0x74, 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x2a, 0x0a, 0x28, 0x53, 0x65, 0x74, 993 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4c, 0x6f, 994 0x67, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 995 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x94, 0x01, 0xe8, 0xde, 0x21, 0x00, 0x0a, 0x13, 0x63, 0x6f, 996 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 0x62, 0x2e, 0x76, 997 0x31, 0x42, 0x1c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 998 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 999 0x00, 0x5a, 0x59, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 1000 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 1001 0x64, 0x69, 0x74, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 1002 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6c, 0x6f, 1003 0x67, 0x3b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 1004 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 1005 0x6f, 0x74, 0x6f, 0x33, 1006 } 1007 1008 var ( 1009 edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescOnce sync.Once 1010 edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescData = edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDesc 1011 ) 1012 1013 func edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescGZIP() []byte { 1014 edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescOnce.Do(func() { 1015 edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescData) 1016 }) 1017 return edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDescData 1018 } 1019 1020 var edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 1021 var edgelq_audit_proto_v1_resource_change_log_custom_proto_goTypes = []interface{}{ 1022 (*ListResourceChangeLogsRequest)(nil), // 0: ntt.audit.v1.ListResourceChangeLogsRequest 1023 (*ListResourceChangeLogsResponse)(nil), // 1: ntt.audit.v1.ListResourceChangeLogsResponse 1024 (*CreatePreCommittedResourceChangeLogsRequest)(nil), // 2: ntt.audit.v1.CreatePreCommittedResourceChangeLogsRequest 1025 (*CreatePreCommittedResourceChangeLogsResponse)(nil), // 3: ntt.audit.v1.CreatePreCommittedResourceChangeLogsResponse 1026 (*SetResourceChangeLogsCommitStateRequest)(nil), // 4: ntt.audit.v1.SetResourceChangeLogsCommitStateRequest 1027 (*SetResourceChangeLogsCommitStateResponse)(nil), // 5: ntt.audit.v1.SetResourceChangeLogsCommitStateResponse 1028 (*ListResourceChangeLogsResponse_ErrorDetails)(nil), // 6: ntt.audit.v1.ListResourceChangeLogsResponse.ErrorDetails 1029 (*common.TimeInterval)(nil), // 7: ntt.audit.v1.TimeInterval 1030 (*resource_change_log.ResourceChangeLog)(nil), // 8: ntt.audit.v1.ResourceChangeLog 1031 (*rpc.Status)(nil), // 9: ntt.rpc.Status 1032 (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp 1033 (*common.Authentication)(nil), // 11: ntt.audit.v1.Authentication 1034 (*common.ServiceData)(nil), // 12: ntt.audit.v1.ServiceData 1035 (*resource_change_log.ResourceChangeLog_TransactionInfo)(nil), // 13: ntt.audit.v1.ResourceChangeLog.TransactionInfo 1036 (*resource_change_log.ResourceChangeLog_ResourceChange)(nil), // 14: ntt.audit.v1.ResourceChangeLog.ResourceChange 1037 (resource_change_log.ResourceChangeLog_TransactionInfo_State)(0), // 15: ntt.audit.v1.ResourceChangeLog_TransactionInfo_State 1038 } 1039 var edgelq_audit_proto_v1_resource_change_log_custom_proto_depIdxs = []int32{ 1040 7, // 0: ntt.audit.v1.ListResourceChangeLogsRequest.interval:type_name -> ntt.audit.v1.TimeInterval 1041 8, // 1: ntt.audit.v1.ListResourceChangeLogsResponse.resource_change_logs:type_name -> ntt.audit.v1.ResourceChangeLog 1042 9, // 2: ntt.audit.v1.ListResourceChangeLogsResponse.execution_errors:type_name -> ntt.rpc.Status 1043 10, // 3: ntt.audit.v1.CreatePreCommittedResourceChangeLogsRequest.timestamp:type_name -> google.protobuf.Timestamp 1044 11, // 4: ntt.audit.v1.CreatePreCommittedResourceChangeLogsRequest.authentication:type_name -> ntt.audit.v1.Authentication 1045 12, // 5: ntt.audit.v1.CreatePreCommittedResourceChangeLogsRequest.service:type_name -> ntt.audit.v1.ServiceData 1046 13, // 6: ntt.audit.v1.CreatePreCommittedResourceChangeLogsRequest.transaction:type_name -> ntt.audit.v1.ResourceChangeLog.TransactionInfo 1047 14, // 7: ntt.audit.v1.CreatePreCommittedResourceChangeLogsRequest.changes:type_name -> ntt.audit.v1.ResourceChangeLog.ResourceChange 1048 12, // 8: ntt.audit.v1.SetResourceChangeLogsCommitStateRequest.service:type_name -> ntt.audit.v1.ServiceData 1049 10, // 9: ntt.audit.v1.SetResourceChangeLogsCommitStateRequest.timestamp:type_name -> google.protobuf.Timestamp 1050 15, // 10: ntt.audit.v1.SetResourceChangeLogsCommitStateRequest.tx_result:type_name -> ntt.audit.v1.ResourceChangeLog_TransactionInfo_State 1051 11, // [11:11] is the sub-list for method output_type 1052 11, // [11:11] is the sub-list for method input_type 1053 11, // [11:11] is the sub-list for extension type_name 1054 11, // [11:11] is the sub-list for extension extendee 1055 0, // [0:11] is the sub-list for field type_name 1056 } 1057 1058 func init() { edgelq_audit_proto_v1_resource_change_log_custom_proto_init() } 1059 func edgelq_audit_proto_v1_resource_change_log_custom_proto_init() { 1060 if edgelq_audit_proto_v1_resource_change_log_custom_proto != nil { 1061 return 1062 } 1063 if !protoimpl.UnsafeEnabled { 1064 1065 edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1066 switch v := v.(*ListResourceChangeLogsRequest); i { 1067 case 0: 1068 return &v.state 1069 case 1: 1070 return &v.sizeCache 1071 case 2: 1072 return &v.unknownFields 1073 default: 1074 return nil 1075 } 1076 } 1077 edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1078 switch v := v.(*ListResourceChangeLogsResponse); i { 1079 case 0: 1080 return &v.state 1081 case 1: 1082 return &v.sizeCache 1083 case 2: 1084 return &v.unknownFields 1085 default: 1086 return nil 1087 } 1088 } 1089 edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1090 switch v := v.(*CreatePreCommittedResourceChangeLogsRequest); i { 1091 case 0: 1092 return &v.state 1093 case 1: 1094 return &v.sizeCache 1095 case 2: 1096 return &v.unknownFields 1097 default: 1098 return nil 1099 } 1100 } 1101 edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1102 switch v := v.(*CreatePreCommittedResourceChangeLogsResponse); i { 1103 case 0: 1104 return &v.state 1105 case 1: 1106 return &v.sizeCache 1107 case 2: 1108 return &v.unknownFields 1109 default: 1110 return nil 1111 } 1112 } 1113 edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1114 switch v := v.(*SetResourceChangeLogsCommitStateRequest); i { 1115 case 0: 1116 return &v.state 1117 case 1: 1118 return &v.sizeCache 1119 case 2: 1120 return &v.unknownFields 1121 default: 1122 return nil 1123 } 1124 } 1125 edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1126 switch v := v.(*SetResourceChangeLogsCommitStateResponse); i { 1127 case 0: 1128 return &v.state 1129 case 1: 1130 return &v.sizeCache 1131 case 2: 1132 return &v.unknownFields 1133 default: 1134 return nil 1135 } 1136 } 1137 edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1138 switch v := v.(*ListResourceChangeLogsResponse_ErrorDetails); i { 1139 case 0: 1140 return &v.state 1141 case 1: 1142 return &v.sizeCache 1143 case 2: 1144 return &v.unknownFields 1145 default: 1146 return nil 1147 } 1148 } 1149 } 1150 1151 type x struct{} 1152 out := protoimpl.TypeBuilder{ 1153 File: protoimpl.DescBuilder{ 1154 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1155 RawDescriptor: edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDesc, 1156 NumEnums: 0, 1157 NumMessages: 7, 1158 NumExtensions: 0, 1159 NumServices: 0, 1160 }, 1161 GoTypes: edgelq_audit_proto_v1_resource_change_log_custom_proto_goTypes, 1162 DependencyIndexes: edgelq_audit_proto_v1_resource_change_log_custom_proto_depIdxs, 1163 MessageInfos: edgelq_audit_proto_v1_resource_change_log_custom_proto_msgTypes, 1164 }.Build() 1165 edgelq_audit_proto_v1_resource_change_log_custom_proto = out.File 1166 edgelq_audit_proto_v1_resource_change_log_custom_proto_rawDesc = nil 1167 edgelq_audit_proto_v1_resource_change_log_custom_proto_goTypes = nil 1168 edgelq_audit_proto_v1_resource_change_log_custom_proto_depIdxs = nil 1169 }