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