github.com/cloudwan/edgelq-sdk@v1.15.4/audit/resources/v1alpha2/activity_log/activity_log.pb.object_ext.go (about) 1 // Code generated by protoc-gen-goten-object 2 // File: edgelq/audit/proto/v1alpha2/activity_log.proto 3 // DO NOT EDIT!!! 4 5 package activity_log 6 7 import ( 8 "fmt" 9 "sort" 10 11 "google.golang.org/protobuf/proto" 12 googlefieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 13 14 gotenobject "github.com/cloudwan/goten-sdk/runtime/object" 15 ) 16 17 // proto imports 18 import ( 19 common "github.com/cloudwan/edgelq-sdk/audit/resources/v1alpha2/common" 20 rpc "github.com/cloudwan/edgelq-sdk/common/rpc" 21 iam_organization "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/organization" 22 iam_project "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/project" 23 anypb "google.golang.org/protobuf/types/known/anypb" 24 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" 25 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 26 ) 27 28 // ensure the imports are used 29 var ( 30 _ = new(fmt.Stringer) 31 _ = new(sort.Interface) 32 33 _ = new(proto.Message) 34 _ = googlefieldmaskpb.FieldMask{} 35 36 _ = new(gotenobject.FieldPath) 37 ) 38 39 // make sure we're using proto imports 40 var ( 41 _ = &common.Authentication{} 42 _ = &rpc.Status{} 43 _ = &iam_organization.Organization{} 44 _ = &iam_project.Project{} 45 _ = &anypb.Any{} 46 _ = &fieldmaskpb.FieldMask{} 47 _ = ×tamppb.Timestamp{} 48 ) 49 50 func (o *ActivityLog) GotenObjectExt() {} 51 52 func (o *ActivityLog) MakeFullFieldMask() *ActivityLog_FieldMask { 53 return FullActivityLog_FieldMask() 54 } 55 56 func (o *ActivityLog) MakeRawFullFieldMask() gotenobject.FieldMask { 57 return FullActivityLog_FieldMask() 58 } 59 60 func (o *ActivityLog) MakeDiffFieldMask(other *ActivityLog) *ActivityLog_FieldMask { 61 if o == nil && other == nil { 62 return &ActivityLog_FieldMask{} 63 } 64 if o == nil || other == nil { 65 return FullActivityLog_FieldMask() 66 } 67 68 res := &ActivityLog_FieldMask{} 69 if o.GetName().String() != other.GetName().String() { 70 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorName}) 71 } 72 if o.GetScope() != other.GetScope() { 73 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorScope}) 74 } 75 if o.GetRequestId() != other.GetRequestId() { 76 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorRequestId}) 77 } 78 { 79 subMask := o.GetAuthentication().MakeDiffFieldMask(other.GetAuthentication()) 80 if subMask.IsFull() { 81 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorAuthentication}) 82 } else { 83 for _, subpath := range subMask.Paths { 84 res.Paths = append(res.Paths, &ActivityLog_FieldSubPath{selector: ActivityLog_FieldPathSelectorAuthentication, subPath: subpath}) 85 } 86 } 87 } 88 { 89 subMask := o.GetAuthorization().MakeDiffFieldMask(other.GetAuthorization()) 90 if subMask.IsFull() { 91 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorAuthorization}) 92 } else { 93 for _, subpath := range subMask.Paths { 94 res.Paths = append(res.Paths, &ActivityLog_FieldSubPath{selector: ActivityLog_FieldPathSelectorAuthorization, subPath: subpath}) 95 } 96 } 97 } 98 { 99 subMask := o.GetService().MakeDiffFieldMask(other.GetService()) 100 if subMask.IsFull() { 101 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorService}) 102 } else { 103 for _, subpath := range subMask.Paths { 104 res.Paths = append(res.Paths, &ActivityLog_FieldSubPath{selector: ActivityLog_FieldPathSelectorService, subPath: subpath}) 105 } 106 } 107 } 108 { 109 subMask := o.GetMethod().MakeDiffFieldMask(other.GetMethod()) 110 if subMask.IsFull() { 111 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorMethod}) 112 } else { 113 for _, subpath := range subMask.Paths { 114 res.Paths = append(res.Paths, &ActivityLog_FieldSubPath{selector: ActivityLog_FieldPathSelectorMethod, subPath: subpath}) 115 } 116 } 117 } 118 { 119 subMask := o.GetRequestMetadata().MakeDiffFieldMask(other.GetRequestMetadata()) 120 if subMask.IsFull() { 121 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorRequestMetadata}) 122 } else { 123 for _, subpath := range subMask.Paths { 124 res.Paths = append(res.Paths, &ActivityLog_FieldSubPath{selector: ActivityLog_FieldPathSelectorRequestMetadata, subPath: subpath}) 125 } 126 } 127 } 128 { 129 subMask := o.GetRequestRouting().MakeDiffFieldMask(other.GetRequestRouting()) 130 if subMask.IsFull() { 131 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorRequestRouting}) 132 } else { 133 for _, subpath := range subMask.Paths { 134 res.Paths = append(res.Paths, &ActivityLog_FieldSubPath{selector: ActivityLog_FieldPathSelectorRequestRouting, subPath: subpath}) 135 } 136 } 137 } 138 { 139 subMask := o.GetResource().MakeDiffFieldMask(other.GetResource()) 140 if subMask.IsFull() { 141 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorResource}) 142 } else { 143 for _, subpath := range subMask.Paths { 144 res.Paths = append(res.Paths, &ActivityLog_FieldSubPath{selector: ActivityLog_FieldPathSelectorResource, subPath: subpath}) 145 } 146 } 147 } 148 if o.GetCategory() != other.GetCategory() { 149 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorCategory}) 150 } 151 152 if len(o.GetLabels()) == len(other.GetLabels()) { 153 for i, lValue := range o.GetLabels() { 154 rValue := other.GetLabels()[i] 155 if lValue != rValue { 156 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorLabels}) 157 break 158 } 159 } 160 } else { 161 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorLabels}) 162 } 163 164 if len(o.GetEvents()) == len(other.GetEvents()) { 165 for i, lValue := range o.GetEvents() { 166 rValue := other.GetEvents()[i] 167 if len(lValue.MakeDiffFieldMask(rValue).Paths) > 0 { 168 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorEvents}) 169 break 170 } 171 } 172 } else { 173 res.Paths = append(res.Paths, &ActivityLog_FieldTerminalPath{selector: ActivityLog_FieldPathSelectorEvents}) 174 } 175 return res 176 } 177 178 func (o *ActivityLog) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 179 return o.MakeDiffFieldMask(other.(*ActivityLog)) 180 } 181 182 func (o *ActivityLog) Clone() *ActivityLog { 183 if o == nil { 184 return nil 185 } 186 result := &ActivityLog{} 187 if o.Name == nil { 188 result.Name = nil 189 } else if data, err := o.Name.ProtoString(); err != nil { 190 panic(err) 191 } else { 192 result.Name = &Name{} 193 if err := result.Name.ParseProtoString(data); err != nil { 194 panic(err) 195 } 196 } 197 result.Scope = o.Scope 198 result.RequestId = o.RequestId 199 result.Authentication = o.Authentication.Clone() 200 result.Authorization = o.Authorization.Clone() 201 result.Service = o.Service.Clone() 202 result.Method = o.Method.Clone() 203 result.RequestMetadata = o.RequestMetadata.Clone() 204 result.RequestRouting = o.RequestRouting.Clone() 205 result.Resource = o.Resource.Clone() 206 result.Category = o.Category 207 result.Labels = map[string]string{} 208 for key, sourceValue := range o.Labels { 209 result.Labels[key] = sourceValue 210 } 211 result.Events = make([]*ActivityLog_Event, len(o.Events)) 212 for i, sourceValue := range o.Events { 213 result.Events[i] = sourceValue.Clone() 214 } 215 return result 216 } 217 218 func (o *ActivityLog) CloneRaw() gotenobject.GotenObjectExt { 219 return o.Clone() 220 } 221 222 func (o *ActivityLog) Merge(source *ActivityLog) { 223 if source.GetName() != nil { 224 if data, err := source.GetName().ProtoString(); err != nil { 225 panic(err) 226 } else { 227 o.Name = &Name{} 228 if err := o.Name.ParseProtoString(data); err != nil { 229 panic(err) 230 } 231 } 232 } else { 233 o.Name = nil 234 } 235 o.Scope = source.GetScope() 236 o.RequestId = source.GetRequestId() 237 if source.GetAuthentication() != nil { 238 if o.Authentication == nil { 239 o.Authentication = new(common.Authentication) 240 } 241 o.Authentication.Merge(source.GetAuthentication()) 242 } 243 if source.GetAuthorization() != nil { 244 if o.Authorization == nil { 245 o.Authorization = new(common.Authorization) 246 } 247 o.Authorization.Merge(source.GetAuthorization()) 248 } 249 if source.GetService() != nil { 250 if o.Service == nil { 251 o.Service = new(common.ServiceData) 252 } 253 o.Service.Merge(source.GetService()) 254 } 255 if source.GetMethod() != nil { 256 if o.Method == nil { 257 o.Method = new(ActivityLog_Method) 258 } 259 o.Method.Merge(source.GetMethod()) 260 } 261 if source.GetRequestMetadata() != nil { 262 if o.RequestMetadata == nil { 263 o.RequestMetadata = new(ActivityLog_RequestMetadata) 264 } 265 o.RequestMetadata.Merge(source.GetRequestMetadata()) 266 } 267 if source.GetRequestRouting() != nil { 268 if o.RequestRouting == nil { 269 o.RequestRouting = new(ActivityLog_RequestRouting) 270 } 271 o.RequestRouting.Merge(source.GetRequestRouting()) 272 } 273 if source.GetResource() != nil { 274 if o.Resource == nil { 275 o.Resource = new(ActivityLog_Resource) 276 } 277 o.Resource.Merge(source.GetResource()) 278 } 279 o.Category = source.GetCategory() 280 if source.GetLabels() != nil { 281 if o.Labels == nil { 282 o.Labels = make(map[string]string, len(source.GetLabels())) 283 } 284 for key, sourceValue := range source.GetLabels() { 285 o.Labels[key] = sourceValue 286 } 287 } 288 for _, sourceValue := range source.GetEvents() { 289 exists := false 290 for _, currentValue := range o.Events { 291 if proto.Equal(sourceValue, currentValue) { 292 exists = true 293 break 294 } 295 } 296 if !exists { 297 var newDstElement *ActivityLog_Event 298 if sourceValue != nil { 299 newDstElement = new(ActivityLog_Event) 300 newDstElement.Merge(sourceValue) 301 } 302 o.Events = append(o.Events, newDstElement) 303 } 304 } 305 306 } 307 308 func (o *ActivityLog) MergeRaw(source gotenobject.GotenObjectExt) { 309 o.Merge(source.(*ActivityLog)) 310 } 311 312 func (o *ActivityLog_Event) GotenObjectExt() {} 313 314 func (o *ActivityLog_Event) MakeFullFieldMask() *ActivityLog_Event_FieldMask { 315 return FullActivityLog_Event_FieldMask() 316 } 317 318 func (o *ActivityLog_Event) MakeRawFullFieldMask() gotenobject.FieldMask { 319 return FullActivityLog_Event_FieldMask() 320 } 321 322 func (o *ActivityLog_Event) MakeDiffFieldMask(other *ActivityLog_Event) *ActivityLog_Event_FieldMask { 323 if o == nil && other == nil { 324 return &ActivityLog_Event_FieldMask{} 325 } 326 if o == nil || other == nil { 327 return FullActivityLog_Event_FieldMask() 328 } 329 330 res := &ActivityLog_Event_FieldMask{} 331 { 332 _, leftSelected := o.Evt.(*ActivityLog_Event_ClientMessage) 333 _, rightSelected := other.Evt.(*ActivityLog_Event_ClientMessage) 334 if leftSelected == rightSelected { 335 subMask := o.GetClientMessage().MakeDiffFieldMask(other.GetClientMessage()) 336 if subMask.IsFull() { 337 res.Paths = append(res.Paths, &ActivityLogEvent_FieldTerminalPath{selector: ActivityLogEvent_FieldPathSelectorClientMessage}) 338 } else { 339 for _, subpath := range subMask.Paths { 340 res.Paths = append(res.Paths, &ActivityLogEvent_FieldSubPath{selector: ActivityLogEvent_FieldPathSelectorClientMessage, subPath: subpath}) 341 } 342 } 343 } else { 344 res.Paths = append(res.Paths, &ActivityLogEvent_FieldTerminalPath{selector: ActivityLogEvent_FieldPathSelectorClientMessage}) 345 } 346 } 347 { 348 _, leftSelected := o.Evt.(*ActivityLog_Event_ServerMessage) 349 _, rightSelected := other.Evt.(*ActivityLog_Event_ServerMessage) 350 if leftSelected == rightSelected { 351 subMask := o.GetServerMessage().MakeDiffFieldMask(other.GetServerMessage()) 352 if subMask.IsFull() { 353 res.Paths = append(res.Paths, &ActivityLogEvent_FieldTerminalPath{selector: ActivityLogEvent_FieldPathSelectorServerMessage}) 354 } else { 355 for _, subpath := range subMask.Paths { 356 res.Paths = append(res.Paths, &ActivityLogEvent_FieldSubPath{selector: ActivityLogEvent_FieldPathSelectorServerMessage, subPath: subpath}) 357 } 358 } 359 } else { 360 res.Paths = append(res.Paths, &ActivityLogEvent_FieldTerminalPath{selector: ActivityLogEvent_FieldPathSelectorServerMessage}) 361 } 362 } 363 { 364 _, leftSelected := o.Evt.(*ActivityLog_Event_Exit) 365 _, rightSelected := other.Evt.(*ActivityLog_Event_Exit) 366 if leftSelected == rightSelected { 367 subMask := o.GetExit().MakeDiffFieldMask(other.GetExit()) 368 if subMask.IsFull() { 369 res.Paths = append(res.Paths, &ActivityLogEvent_FieldTerminalPath{selector: ActivityLogEvent_FieldPathSelectorExit}) 370 } else { 371 for _, subpath := range subMask.Paths { 372 res.Paths = append(res.Paths, &ActivityLogEvent_FieldSubPath{selector: ActivityLogEvent_FieldPathSelectorExit, subPath: subpath}) 373 } 374 } 375 } else { 376 res.Paths = append(res.Paths, &ActivityLogEvent_FieldTerminalPath{selector: ActivityLogEvent_FieldPathSelectorExit}) 377 } 378 } 379 { 380 _, leftSelected := o.Evt.(*ActivityLog_Event_RegionalServerMessage) 381 _, rightSelected := other.Evt.(*ActivityLog_Event_RegionalServerMessage) 382 if leftSelected == rightSelected { 383 subMask := o.GetRegionalServerMessage().MakeDiffFieldMask(other.GetRegionalServerMessage()) 384 if subMask.IsFull() { 385 res.Paths = append(res.Paths, &ActivityLogEvent_FieldTerminalPath{selector: ActivityLogEvent_FieldPathSelectorRegionalServerMessage}) 386 } else { 387 for _, subpath := range subMask.Paths { 388 res.Paths = append(res.Paths, &ActivityLogEvent_FieldSubPath{selector: ActivityLogEvent_FieldPathSelectorRegionalServerMessage, subPath: subpath}) 389 } 390 } 391 } else { 392 res.Paths = append(res.Paths, &ActivityLogEvent_FieldTerminalPath{selector: ActivityLogEvent_FieldPathSelectorRegionalServerMessage}) 393 } 394 } 395 { 396 _, leftSelected := o.Evt.(*ActivityLog_Event_RegionalExit) 397 _, rightSelected := other.Evt.(*ActivityLog_Event_RegionalExit) 398 if leftSelected == rightSelected { 399 subMask := o.GetRegionalExit().MakeDiffFieldMask(other.GetRegionalExit()) 400 if subMask.IsFull() { 401 res.Paths = append(res.Paths, &ActivityLogEvent_FieldTerminalPath{selector: ActivityLogEvent_FieldPathSelectorRegionalExit}) 402 } else { 403 for _, subpath := range subMask.Paths { 404 res.Paths = append(res.Paths, &ActivityLogEvent_FieldSubPath{selector: ActivityLogEvent_FieldPathSelectorRegionalExit, subPath: subpath}) 405 } 406 } 407 } else { 408 res.Paths = append(res.Paths, &ActivityLogEvent_FieldTerminalPath{selector: ActivityLogEvent_FieldPathSelectorRegionalExit}) 409 } 410 } 411 return res 412 } 413 414 func (o *ActivityLog_Event) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 415 return o.MakeDiffFieldMask(other.(*ActivityLog_Event)) 416 } 417 418 func (o *ActivityLog_Event) Clone() *ActivityLog_Event { 419 if o == nil { 420 return nil 421 } 422 result := &ActivityLog_Event{} 423 if o, ok := o.Evt.(*ActivityLog_Event_ClientMessage); ok { 424 result.Evt = (*ActivityLog_Event_ClientMessage)(nil) 425 if o != nil { 426 result.Evt = &ActivityLog_Event_ClientMessage{} 427 result := result.Evt.(*ActivityLog_Event_ClientMessage) 428 result.ClientMessage = o.ClientMessage.Clone() 429 } 430 } 431 if o, ok := o.Evt.(*ActivityLog_Event_ServerMessage); ok { 432 result.Evt = (*ActivityLog_Event_ServerMessage)(nil) 433 if o != nil { 434 result.Evt = &ActivityLog_Event_ServerMessage{} 435 result := result.Evt.(*ActivityLog_Event_ServerMessage) 436 result.ServerMessage = o.ServerMessage.Clone() 437 } 438 } 439 if o, ok := o.Evt.(*ActivityLog_Event_Exit); ok { 440 result.Evt = (*ActivityLog_Event_Exit)(nil) 441 if o != nil { 442 result.Evt = &ActivityLog_Event_Exit{} 443 result := result.Evt.(*ActivityLog_Event_Exit) 444 result.Exit = o.Exit.Clone() 445 } 446 } 447 if o, ok := o.Evt.(*ActivityLog_Event_RegionalServerMessage); ok { 448 result.Evt = (*ActivityLog_Event_RegionalServerMessage)(nil) 449 if o != nil { 450 result.Evt = &ActivityLog_Event_RegionalServerMessage{} 451 result := result.Evt.(*ActivityLog_Event_RegionalServerMessage) 452 result.RegionalServerMessage = o.RegionalServerMessage.Clone() 453 } 454 } 455 if o, ok := o.Evt.(*ActivityLog_Event_RegionalExit); ok { 456 result.Evt = (*ActivityLog_Event_RegionalExit)(nil) 457 if o != nil { 458 result.Evt = &ActivityLog_Event_RegionalExit{} 459 result := result.Evt.(*ActivityLog_Event_RegionalExit) 460 result.RegionalExit = o.RegionalExit.Clone() 461 } 462 } 463 return result 464 } 465 466 func (o *ActivityLog_Event) CloneRaw() gotenobject.GotenObjectExt { 467 return o.Clone() 468 } 469 470 func (o *ActivityLog_Event) Merge(source *ActivityLog_Event) { 471 if source, ok := source.GetEvt().(*ActivityLog_Event_ClientMessage); ok { 472 if dstOneOf, ok := o.Evt.(*ActivityLog_Event_ClientMessage); !ok || dstOneOf == nil { 473 o.Evt = &ActivityLog_Event_ClientMessage{} 474 } 475 if source != nil { 476 o := o.Evt.(*ActivityLog_Event_ClientMessage) 477 if source.ClientMessage != nil { 478 if o.ClientMessage == nil { 479 o.ClientMessage = new(ActivityLog_Event_ClientMsgEvent) 480 } 481 o.ClientMessage.Merge(source.ClientMessage) 482 } 483 } 484 } 485 if source, ok := source.GetEvt().(*ActivityLog_Event_ServerMessage); ok { 486 if dstOneOf, ok := o.Evt.(*ActivityLog_Event_ServerMessage); !ok || dstOneOf == nil { 487 o.Evt = &ActivityLog_Event_ServerMessage{} 488 } 489 if source != nil { 490 o := o.Evt.(*ActivityLog_Event_ServerMessage) 491 if source.ServerMessage != nil { 492 if o.ServerMessage == nil { 493 o.ServerMessage = new(ActivityLog_Event_ServerMsgEvent) 494 } 495 o.ServerMessage.Merge(source.ServerMessage) 496 } 497 } 498 } 499 if source, ok := source.GetEvt().(*ActivityLog_Event_Exit); ok { 500 if dstOneOf, ok := o.Evt.(*ActivityLog_Event_Exit); !ok || dstOneOf == nil { 501 o.Evt = &ActivityLog_Event_Exit{} 502 } 503 if source != nil { 504 o := o.Evt.(*ActivityLog_Event_Exit) 505 if source.Exit != nil { 506 if o.Exit == nil { 507 o.Exit = new(ActivityLog_Event_ExitEvent) 508 } 509 o.Exit.Merge(source.Exit) 510 } 511 } 512 } 513 if source, ok := source.GetEvt().(*ActivityLog_Event_RegionalServerMessage); ok { 514 if dstOneOf, ok := o.Evt.(*ActivityLog_Event_RegionalServerMessage); !ok || dstOneOf == nil { 515 o.Evt = &ActivityLog_Event_RegionalServerMessage{} 516 } 517 if source != nil { 518 o := o.Evt.(*ActivityLog_Event_RegionalServerMessage) 519 if source.RegionalServerMessage != nil { 520 if o.RegionalServerMessage == nil { 521 o.RegionalServerMessage = new(ActivityLog_Event_RegionalServerMsgEvent) 522 } 523 o.RegionalServerMessage.Merge(source.RegionalServerMessage) 524 } 525 } 526 } 527 if source, ok := source.GetEvt().(*ActivityLog_Event_RegionalExit); ok { 528 if dstOneOf, ok := o.Evt.(*ActivityLog_Event_RegionalExit); !ok || dstOneOf == nil { 529 o.Evt = &ActivityLog_Event_RegionalExit{} 530 } 531 if source != nil { 532 o := o.Evt.(*ActivityLog_Event_RegionalExit) 533 if source.RegionalExit != nil { 534 if o.RegionalExit == nil { 535 o.RegionalExit = new(ActivityLog_Event_RegionalServerMsgEvent) 536 } 537 o.RegionalExit.Merge(source.RegionalExit) 538 } 539 } 540 } 541 } 542 543 func (o *ActivityLog_Event) MergeRaw(source gotenobject.GotenObjectExt) { 544 o.Merge(source.(*ActivityLog_Event)) 545 } 546 547 func (o *ActivityLog_Method) GotenObjectExt() {} 548 549 func (o *ActivityLog_Method) MakeFullFieldMask() *ActivityLog_Method_FieldMask { 550 return FullActivityLog_Method_FieldMask() 551 } 552 553 func (o *ActivityLog_Method) MakeRawFullFieldMask() gotenobject.FieldMask { 554 return FullActivityLog_Method_FieldMask() 555 } 556 557 func (o *ActivityLog_Method) MakeDiffFieldMask(other *ActivityLog_Method) *ActivityLog_Method_FieldMask { 558 if o == nil && other == nil { 559 return &ActivityLog_Method_FieldMask{} 560 } 561 if o == nil || other == nil { 562 return FullActivityLog_Method_FieldMask() 563 } 564 565 res := &ActivityLog_Method_FieldMask{} 566 if o.GetType() != other.GetType() { 567 res.Paths = append(res.Paths, &ActivityLogMethod_FieldTerminalPath{selector: ActivityLogMethod_FieldPathSelectorType}) 568 } 569 if o.GetVersion() != other.GetVersion() { 570 res.Paths = append(res.Paths, &ActivityLogMethod_FieldTerminalPath{selector: ActivityLogMethod_FieldPathSelectorVersion}) 571 } 572 return res 573 } 574 575 func (o *ActivityLog_Method) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 576 return o.MakeDiffFieldMask(other.(*ActivityLog_Method)) 577 } 578 579 func (o *ActivityLog_Method) Clone() *ActivityLog_Method { 580 if o == nil { 581 return nil 582 } 583 result := &ActivityLog_Method{} 584 result.Type = o.Type 585 result.Version = o.Version 586 return result 587 } 588 589 func (o *ActivityLog_Method) CloneRaw() gotenobject.GotenObjectExt { 590 return o.Clone() 591 } 592 593 func (o *ActivityLog_Method) Merge(source *ActivityLog_Method) { 594 o.Type = source.GetType() 595 o.Version = source.GetVersion() 596 } 597 598 func (o *ActivityLog_Method) MergeRaw(source gotenobject.GotenObjectExt) { 599 o.Merge(source.(*ActivityLog_Method)) 600 } 601 602 func (o *ActivityLog_RequestMetadata) GotenObjectExt() {} 603 604 func (o *ActivityLog_RequestMetadata) MakeFullFieldMask() *ActivityLog_RequestMetadata_FieldMask { 605 return FullActivityLog_RequestMetadata_FieldMask() 606 } 607 608 func (o *ActivityLog_RequestMetadata) MakeRawFullFieldMask() gotenobject.FieldMask { 609 return FullActivityLog_RequestMetadata_FieldMask() 610 } 611 612 func (o *ActivityLog_RequestMetadata) MakeDiffFieldMask(other *ActivityLog_RequestMetadata) *ActivityLog_RequestMetadata_FieldMask { 613 if o == nil && other == nil { 614 return &ActivityLog_RequestMetadata_FieldMask{} 615 } 616 if o == nil || other == nil { 617 return FullActivityLog_RequestMetadata_FieldMask() 618 } 619 620 res := &ActivityLog_RequestMetadata_FieldMask{} 621 if o.GetIpAddress() != other.GetIpAddress() { 622 res.Paths = append(res.Paths, &ActivityLogRequestMetadata_FieldTerminalPath{selector: ActivityLogRequestMetadata_FieldPathSelectorIpAddress}) 623 } 624 if o.GetUserAgent() != other.GetUserAgent() { 625 res.Paths = append(res.Paths, &ActivityLogRequestMetadata_FieldTerminalPath{selector: ActivityLogRequestMetadata_FieldPathSelectorUserAgent}) 626 } 627 return res 628 } 629 630 func (o *ActivityLog_RequestMetadata) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 631 return o.MakeDiffFieldMask(other.(*ActivityLog_RequestMetadata)) 632 } 633 634 func (o *ActivityLog_RequestMetadata) Clone() *ActivityLog_RequestMetadata { 635 if o == nil { 636 return nil 637 } 638 result := &ActivityLog_RequestMetadata{} 639 result.IpAddress = o.IpAddress 640 result.UserAgent = o.UserAgent 641 return result 642 } 643 644 func (o *ActivityLog_RequestMetadata) CloneRaw() gotenobject.GotenObjectExt { 645 return o.Clone() 646 } 647 648 func (o *ActivityLog_RequestMetadata) Merge(source *ActivityLog_RequestMetadata) { 649 o.IpAddress = source.GetIpAddress() 650 o.UserAgent = source.GetUserAgent() 651 } 652 653 func (o *ActivityLog_RequestMetadata) MergeRaw(source gotenobject.GotenObjectExt) { 654 o.Merge(source.(*ActivityLog_RequestMetadata)) 655 } 656 657 func (o *ActivityLog_RequestRouting) GotenObjectExt() {} 658 659 func (o *ActivityLog_RequestRouting) MakeFullFieldMask() *ActivityLog_RequestRouting_FieldMask { 660 return FullActivityLog_RequestRouting_FieldMask() 661 } 662 663 func (o *ActivityLog_RequestRouting) MakeRawFullFieldMask() gotenobject.FieldMask { 664 return FullActivityLog_RequestRouting_FieldMask() 665 } 666 667 func (o *ActivityLog_RequestRouting) MakeDiffFieldMask(other *ActivityLog_RequestRouting) *ActivityLog_RequestRouting_FieldMask { 668 if o == nil && other == nil { 669 return &ActivityLog_RequestRouting_FieldMask{} 670 } 671 if o == nil || other == nil { 672 return FullActivityLog_RequestRouting_FieldMask() 673 } 674 675 res := &ActivityLog_RequestRouting_FieldMask{} 676 if o.GetViaRegion() != other.GetViaRegion() { 677 res.Paths = append(res.Paths, &ActivityLogRequestRouting_FieldTerminalPath{selector: ActivityLogRequestRouting_FieldPathSelectorViaRegion}) 678 } 679 680 if len(o.GetDestRegions()) == len(other.GetDestRegions()) { 681 for i, lValue := range o.GetDestRegions() { 682 rValue := other.GetDestRegions()[i] 683 if lValue != rValue { 684 res.Paths = append(res.Paths, &ActivityLogRequestRouting_FieldTerminalPath{selector: ActivityLogRequestRouting_FieldPathSelectorDestRegions}) 685 break 686 } 687 } 688 } else { 689 res.Paths = append(res.Paths, &ActivityLogRequestRouting_FieldTerminalPath{selector: ActivityLogRequestRouting_FieldPathSelectorDestRegions}) 690 } 691 return res 692 } 693 694 func (o *ActivityLog_RequestRouting) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 695 return o.MakeDiffFieldMask(other.(*ActivityLog_RequestRouting)) 696 } 697 698 func (o *ActivityLog_RequestRouting) Clone() *ActivityLog_RequestRouting { 699 if o == nil { 700 return nil 701 } 702 result := &ActivityLog_RequestRouting{} 703 result.ViaRegion = o.ViaRegion 704 result.DestRegions = make([]string, len(o.DestRegions)) 705 for i, sourceValue := range o.DestRegions { 706 result.DestRegions[i] = sourceValue 707 } 708 return result 709 } 710 711 func (o *ActivityLog_RequestRouting) CloneRaw() gotenobject.GotenObjectExt { 712 return o.Clone() 713 } 714 715 func (o *ActivityLog_RequestRouting) Merge(source *ActivityLog_RequestRouting) { 716 o.ViaRegion = source.GetViaRegion() 717 for _, sourceValue := range source.GetDestRegions() { 718 exists := false 719 for _, currentValue := range o.DestRegions { 720 if currentValue == sourceValue { 721 exists = true 722 break 723 } 724 } 725 if !exists { 726 var newDstElement string 727 newDstElement = sourceValue 728 o.DestRegions = append(o.DestRegions, newDstElement) 729 } 730 } 731 732 } 733 734 func (o *ActivityLog_RequestRouting) MergeRaw(source gotenobject.GotenObjectExt) { 735 o.Merge(source.(*ActivityLog_RequestRouting)) 736 } 737 738 func (o *ActivityLog_Resource) GotenObjectExt() {} 739 740 func (o *ActivityLog_Resource) MakeFullFieldMask() *ActivityLog_Resource_FieldMask { 741 return FullActivityLog_Resource_FieldMask() 742 } 743 744 func (o *ActivityLog_Resource) MakeRawFullFieldMask() gotenobject.FieldMask { 745 return FullActivityLog_Resource_FieldMask() 746 } 747 748 func (o *ActivityLog_Resource) MakeDiffFieldMask(other *ActivityLog_Resource) *ActivityLog_Resource_FieldMask { 749 if o == nil && other == nil { 750 return &ActivityLog_Resource_FieldMask{} 751 } 752 if o == nil || other == nil { 753 return FullActivityLog_Resource_FieldMask() 754 } 755 756 res := &ActivityLog_Resource_FieldMask{} 757 if o.GetName() != other.GetName() { 758 res.Paths = append(res.Paths, &ActivityLogResource_FieldTerminalPath{selector: ActivityLogResource_FieldPathSelectorName}) 759 } 760 { 761 subMask := o.GetDifference().MakeDiffFieldMask(other.GetDifference()) 762 if subMask.IsFull() { 763 res.Paths = append(res.Paths, &ActivityLogResource_FieldTerminalPath{selector: ActivityLogResource_FieldPathSelectorDifference}) 764 } else { 765 for _, subpath := range subMask.Paths { 766 res.Paths = append(res.Paths, &ActivityLogResource_FieldSubPath{selector: ActivityLogResource_FieldPathSelectorDifference, subPath: subpath}) 767 } 768 } 769 } 770 return res 771 } 772 773 func (o *ActivityLog_Resource) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 774 return o.MakeDiffFieldMask(other.(*ActivityLog_Resource)) 775 } 776 777 func (o *ActivityLog_Resource) Clone() *ActivityLog_Resource { 778 if o == nil { 779 return nil 780 } 781 result := &ActivityLog_Resource{} 782 result.Name = o.Name 783 result.Difference = o.Difference.Clone() 784 return result 785 } 786 787 func (o *ActivityLog_Resource) CloneRaw() gotenobject.GotenObjectExt { 788 return o.Clone() 789 } 790 791 func (o *ActivityLog_Resource) Merge(source *ActivityLog_Resource) { 792 o.Name = source.GetName() 793 if source.GetDifference() != nil { 794 if o.Difference == nil { 795 o.Difference = new(ActivityLog_Resource_Difference) 796 } 797 o.Difference.Merge(source.GetDifference()) 798 } 799 } 800 801 func (o *ActivityLog_Resource) MergeRaw(source gotenobject.GotenObjectExt) { 802 o.Merge(source.(*ActivityLog_Resource)) 803 } 804 805 func (o *ActivityLog_Event_ClientMsgEvent) GotenObjectExt() {} 806 807 func (o *ActivityLog_Event_ClientMsgEvent) MakeFullFieldMask() *ActivityLog_Event_ClientMsgEvent_FieldMask { 808 return FullActivityLog_Event_ClientMsgEvent_FieldMask() 809 } 810 811 func (o *ActivityLog_Event_ClientMsgEvent) MakeRawFullFieldMask() gotenobject.FieldMask { 812 return FullActivityLog_Event_ClientMsgEvent_FieldMask() 813 } 814 815 func (o *ActivityLog_Event_ClientMsgEvent) MakeDiffFieldMask(other *ActivityLog_Event_ClientMsgEvent) *ActivityLog_Event_ClientMsgEvent_FieldMask { 816 if o == nil && other == nil { 817 return &ActivityLog_Event_ClientMsgEvent_FieldMask{} 818 } 819 if o == nil || other == nil { 820 return FullActivityLog_Event_ClientMsgEvent_FieldMask() 821 } 822 823 res := &ActivityLog_Event_ClientMsgEvent_FieldMask{} 824 if !proto.Equal(o.GetData(), other.GetData()) { 825 res.Paths = append(res.Paths, &ActivityLogEventClientMsgEvent_FieldTerminalPath{selector: ActivityLogEventClientMsgEvent_FieldPathSelectorData}) 826 } 827 if !proto.Equal(o.GetTime(), other.GetTime()) { 828 res.Paths = append(res.Paths, &ActivityLogEventClientMsgEvent_FieldTerminalPath{selector: ActivityLogEventClientMsgEvent_FieldPathSelectorTime}) 829 } 830 return res 831 } 832 833 func (o *ActivityLog_Event_ClientMsgEvent) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 834 return o.MakeDiffFieldMask(other.(*ActivityLog_Event_ClientMsgEvent)) 835 } 836 837 func (o *ActivityLog_Event_ClientMsgEvent) Clone() *ActivityLog_Event_ClientMsgEvent { 838 if o == nil { 839 return nil 840 } 841 result := &ActivityLog_Event_ClientMsgEvent{} 842 result.Data = proto.Clone(o.Data).(*anypb.Any) 843 result.Time = proto.Clone(o.Time).(*timestamppb.Timestamp) 844 return result 845 } 846 847 func (o *ActivityLog_Event_ClientMsgEvent) CloneRaw() gotenobject.GotenObjectExt { 848 return o.Clone() 849 } 850 851 func (o *ActivityLog_Event_ClientMsgEvent) Merge(source *ActivityLog_Event_ClientMsgEvent) { 852 if source.GetData() != nil { 853 if o.Data == nil { 854 o.Data = new(anypb.Any) 855 } 856 proto.Merge(o.Data, source.GetData()) 857 } 858 if source.GetTime() != nil { 859 if o.Time == nil { 860 o.Time = new(timestamppb.Timestamp) 861 } 862 proto.Merge(o.Time, source.GetTime()) 863 } 864 } 865 866 func (o *ActivityLog_Event_ClientMsgEvent) MergeRaw(source gotenobject.GotenObjectExt) { 867 o.Merge(source.(*ActivityLog_Event_ClientMsgEvent)) 868 } 869 870 func (o *ActivityLog_Event_RegionalServerMsgEvent) GotenObjectExt() {} 871 872 func (o *ActivityLog_Event_RegionalServerMsgEvent) MakeFullFieldMask() *ActivityLog_Event_RegionalServerMsgEvent_FieldMask { 873 return FullActivityLog_Event_RegionalServerMsgEvent_FieldMask() 874 } 875 876 func (o *ActivityLog_Event_RegionalServerMsgEvent) MakeRawFullFieldMask() gotenobject.FieldMask { 877 return FullActivityLog_Event_RegionalServerMsgEvent_FieldMask() 878 } 879 880 func (o *ActivityLog_Event_RegionalServerMsgEvent) MakeDiffFieldMask(other *ActivityLog_Event_RegionalServerMsgEvent) *ActivityLog_Event_RegionalServerMsgEvent_FieldMask { 881 if o == nil && other == nil { 882 return &ActivityLog_Event_RegionalServerMsgEvent_FieldMask{} 883 } 884 if o == nil || other == nil { 885 return FullActivityLog_Event_RegionalServerMsgEvent_FieldMask() 886 } 887 888 res := &ActivityLog_Event_RegionalServerMsgEvent_FieldMask{} 889 if !proto.Equal(o.GetData(), other.GetData()) { 890 res.Paths = append(res.Paths, &ActivityLogEventRegionalServerMsgEvent_FieldTerminalPath{selector: ActivityLogEventRegionalServerMsgEvent_FieldPathSelectorData}) 891 } 892 if !proto.Equal(o.GetTime(), other.GetTime()) { 893 res.Paths = append(res.Paths, &ActivityLogEventRegionalServerMsgEvent_FieldTerminalPath{selector: ActivityLogEventRegionalServerMsgEvent_FieldPathSelectorTime}) 894 } 895 if o.GetRegionId() != other.GetRegionId() { 896 res.Paths = append(res.Paths, &ActivityLogEventRegionalServerMsgEvent_FieldTerminalPath{selector: ActivityLogEventRegionalServerMsgEvent_FieldPathSelectorRegionId}) 897 } 898 return res 899 } 900 901 func (o *ActivityLog_Event_RegionalServerMsgEvent) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 902 return o.MakeDiffFieldMask(other.(*ActivityLog_Event_RegionalServerMsgEvent)) 903 } 904 905 func (o *ActivityLog_Event_RegionalServerMsgEvent) Clone() *ActivityLog_Event_RegionalServerMsgEvent { 906 if o == nil { 907 return nil 908 } 909 result := &ActivityLog_Event_RegionalServerMsgEvent{} 910 result.Data = proto.Clone(o.Data).(*anypb.Any) 911 result.Time = proto.Clone(o.Time).(*timestamppb.Timestamp) 912 result.RegionId = o.RegionId 913 return result 914 } 915 916 func (o *ActivityLog_Event_RegionalServerMsgEvent) CloneRaw() gotenobject.GotenObjectExt { 917 return o.Clone() 918 } 919 920 func (o *ActivityLog_Event_RegionalServerMsgEvent) Merge(source *ActivityLog_Event_RegionalServerMsgEvent) { 921 if source.GetData() != nil { 922 if o.Data == nil { 923 o.Data = new(anypb.Any) 924 } 925 proto.Merge(o.Data, source.GetData()) 926 } 927 if source.GetTime() != nil { 928 if o.Time == nil { 929 o.Time = new(timestamppb.Timestamp) 930 } 931 proto.Merge(o.Time, source.GetTime()) 932 } 933 o.RegionId = source.GetRegionId() 934 } 935 936 func (o *ActivityLog_Event_RegionalServerMsgEvent) MergeRaw(source gotenobject.GotenObjectExt) { 937 o.Merge(source.(*ActivityLog_Event_RegionalServerMsgEvent)) 938 } 939 940 func (o *ActivityLog_Event_ServerMsgEvent) GotenObjectExt() {} 941 942 func (o *ActivityLog_Event_ServerMsgEvent) MakeFullFieldMask() *ActivityLog_Event_ServerMsgEvent_FieldMask { 943 return FullActivityLog_Event_ServerMsgEvent_FieldMask() 944 } 945 946 func (o *ActivityLog_Event_ServerMsgEvent) MakeRawFullFieldMask() gotenobject.FieldMask { 947 return FullActivityLog_Event_ServerMsgEvent_FieldMask() 948 } 949 950 func (o *ActivityLog_Event_ServerMsgEvent) MakeDiffFieldMask(other *ActivityLog_Event_ServerMsgEvent) *ActivityLog_Event_ServerMsgEvent_FieldMask { 951 if o == nil && other == nil { 952 return &ActivityLog_Event_ServerMsgEvent_FieldMask{} 953 } 954 if o == nil || other == nil { 955 return FullActivityLog_Event_ServerMsgEvent_FieldMask() 956 } 957 958 res := &ActivityLog_Event_ServerMsgEvent_FieldMask{} 959 if !proto.Equal(o.GetData(), other.GetData()) { 960 res.Paths = append(res.Paths, &ActivityLogEventServerMsgEvent_FieldTerminalPath{selector: ActivityLogEventServerMsgEvent_FieldPathSelectorData}) 961 } 962 if !proto.Equal(o.GetTime(), other.GetTime()) { 963 res.Paths = append(res.Paths, &ActivityLogEventServerMsgEvent_FieldTerminalPath{selector: ActivityLogEventServerMsgEvent_FieldPathSelectorTime}) 964 } 965 return res 966 } 967 968 func (o *ActivityLog_Event_ServerMsgEvent) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 969 return o.MakeDiffFieldMask(other.(*ActivityLog_Event_ServerMsgEvent)) 970 } 971 972 func (o *ActivityLog_Event_ServerMsgEvent) Clone() *ActivityLog_Event_ServerMsgEvent { 973 if o == nil { 974 return nil 975 } 976 result := &ActivityLog_Event_ServerMsgEvent{} 977 result.Data = proto.Clone(o.Data).(*anypb.Any) 978 result.Time = proto.Clone(o.Time).(*timestamppb.Timestamp) 979 return result 980 } 981 982 func (o *ActivityLog_Event_ServerMsgEvent) CloneRaw() gotenobject.GotenObjectExt { 983 return o.Clone() 984 } 985 986 func (o *ActivityLog_Event_ServerMsgEvent) Merge(source *ActivityLog_Event_ServerMsgEvent) { 987 if source.GetData() != nil { 988 if o.Data == nil { 989 o.Data = new(anypb.Any) 990 } 991 proto.Merge(o.Data, source.GetData()) 992 } 993 if source.GetTime() != nil { 994 if o.Time == nil { 995 o.Time = new(timestamppb.Timestamp) 996 } 997 proto.Merge(o.Time, source.GetTime()) 998 } 999 } 1000 1001 func (o *ActivityLog_Event_ServerMsgEvent) MergeRaw(source gotenobject.GotenObjectExt) { 1002 o.Merge(source.(*ActivityLog_Event_ServerMsgEvent)) 1003 } 1004 1005 func (o *ActivityLog_Event_RegionalExitEvent) GotenObjectExt() {} 1006 1007 func (o *ActivityLog_Event_RegionalExitEvent) MakeFullFieldMask() *ActivityLog_Event_RegionalExitEvent_FieldMask { 1008 return FullActivityLog_Event_RegionalExitEvent_FieldMask() 1009 } 1010 1011 func (o *ActivityLog_Event_RegionalExitEvent) MakeRawFullFieldMask() gotenobject.FieldMask { 1012 return FullActivityLog_Event_RegionalExitEvent_FieldMask() 1013 } 1014 1015 func (o *ActivityLog_Event_RegionalExitEvent) MakeDiffFieldMask(other *ActivityLog_Event_RegionalExitEvent) *ActivityLog_Event_RegionalExitEvent_FieldMask { 1016 if o == nil && other == nil { 1017 return &ActivityLog_Event_RegionalExitEvent_FieldMask{} 1018 } 1019 if o == nil || other == nil { 1020 return FullActivityLog_Event_RegionalExitEvent_FieldMask() 1021 } 1022 1023 res := &ActivityLog_Event_RegionalExitEvent_FieldMask{} 1024 { 1025 subMask := o.GetStatus().MakeDiffFieldMask(other.GetStatus()) 1026 if subMask.IsFull() { 1027 res.Paths = append(res.Paths, &ActivityLogEventRegionalExitEvent_FieldTerminalPath{selector: ActivityLogEventRegionalExitEvent_FieldPathSelectorStatus}) 1028 } else { 1029 for _, subpath := range subMask.Paths { 1030 res.Paths = append(res.Paths, &ActivityLogEventRegionalExitEvent_FieldSubPath{selector: ActivityLogEventRegionalExitEvent_FieldPathSelectorStatus, subPath: subpath}) 1031 } 1032 } 1033 } 1034 if !proto.Equal(o.GetTime(), other.GetTime()) { 1035 res.Paths = append(res.Paths, &ActivityLogEventRegionalExitEvent_FieldTerminalPath{selector: ActivityLogEventRegionalExitEvent_FieldPathSelectorTime}) 1036 } 1037 if o.GetRegionId() != other.GetRegionId() { 1038 res.Paths = append(res.Paths, &ActivityLogEventRegionalExitEvent_FieldTerminalPath{selector: ActivityLogEventRegionalExitEvent_FieldPathSelectorRegionId}) 1039 } 1040 return res 1041 } 1042 1043 func (o *ActivityLog_Event_RegionalExitEvent) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 1044 return o.MakeDiffFieldMask(other.(*ActivityLog_Event_RegionalExitEvent)) 1045 } 1046 1047 func (o *ActivityLog_Event_RegionalExitEvent) Clone() *ActivityLog_Event_RegionalExitEvent { 1048 if o == nil { 1049 return nil 1050 } 1051 result := &ActivityLog_Event_RegionalExitEvent{} 1052 result.Status = o.Status.Clone() 1053 result.Time = proto.Clone(o.Time).(*timestamppb.Timestamp) 1054 result.RegionId = o.RegionId 1055 return result 1056 } 1057 1058 func (o *ActivityLog_Event_RegionalExitEvent) CloneRaw() gotenobject.GotenObjectExt { 1059 return o.Clone() 1060 } 1061 1062 func (o *ActivityLog_Event_RegionalExitEvent) Merge(source *ActivityLog_Event_RegionalExitEvent) { 1063 if source.GetStatus() != nil { 1064 if o.Status == nil { 1065 o.Status = new(rpc.Status) 1066 } 1067 o.Status.Merge(source.GetStatus()) 1068 } 1069 if source.GetTime() != nil { 1070 if o.Time == nil { 1071 o.Time = new(timestamppb.Timestamp) 1072 } 1073 proto.Merge(o.Time, source.GetTime()) 1074 } 1075 o.RegionId = source.GetRegionId() 1076 } 1077 1078 func (o *ActivityLog_Event_RegionalExitEvent) MergeRaw(source gotenobject.GotenObjectExt) { 1079 o.Merge(source.(*ActivityLog_Event_RegionalExitEvent)) 1080 } 1081 1082 func (o *ActivityLog_Event_ExitEvent) GotenObjectExt() {} 1083 1084 func (o *ActivityLog_Event_ExitEvent) MakeFullFieldMask() *ActivityLog_Event_ExitEvent_FieldMask { 1085 return FullActivityLog_Event_ExitEvent_FieldMask() 1086 } 1087 1088 func (o *ActivityLog_Event_ExitEvent) MakeRawFullFieldMask() gotenobject.FieldMask { 1089 return FullActivityLog_Event_ExitEvent_FieldMask() 1090 } 1091 1092 func (o *ActivityLog_Event_ExitEvent) MakeDiffFieldMask(other *ActivityLog_Event_ExitEvent) *ActivityLog_Event_ExitEvent_FieldMask { 1093 if o == nil && other == nil { 1094 return &ActivityLog_Event_ExitEvent_FieldMask{} 1095 } 1096 if o == nil || other == nil { 1097 return FullActivityLog_Event_ExitEvent_FieldMask() 1098 } 1099 1100 res := &ActivityLog_Event_ExitEvent_FieldMask{} 1101 { 1102 subMask := o.GetStatus().MakeDiffFieldMask(other.GetStatus()) 1103 if subMask.IsFull() { 1104 res.Paths = append(res.Paths, &ActivityLogEventExitEvent_FieldTerminalPath{selector: ActivityLogEventExitEvent_FieldPathSelectorStatus}) 1105 } else { 1106 for _, subpath := range subMask.Paths { 1107 res.Paths = append(res.Paths, &ActivityLogEventExitEvent_FieldSubPath{selector: ActivityLogEventExitEvent_FieldPathSelectorStatus, subPath: subpath}) 1108 } 1109 } 1110 } 1111 if !proto.Equal(o.GetTime(), other.GetTime()) { 1112 res.Paths = append(res.Paths, &ActivityLogEventExitEvent_FieldTerminalPath{selector: ActivityLogEventExitEvent_FieldPathSelectorTime}) 1113 } 1114 return res 1115 } 1116 1117 func (o *ActivityLog_Event_ExitEvent) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 1118 return o.MakeDiffFieldMask(other.(*ActivityLog_Event_ExitEvent)) 1119 } 1120 1121 func (o *ActivityLog_Event_ExitEvent) Clone() *ActivityLog_Event_ExitEvent { 1122 if o == nil { 1123 return nil 1124 } 1125 result := &ActivityLog_Event_ExitEvent{} 1126 result.Status = o.Status.Clone() 1127 result.Time = proto.Clone(o.Time).(*timestamppb.Timestamp) 1128 return result 1129 } 1130 1131 func (o *ActivityLog_Event_ExitEvent) CloneRaw() gotenobject.GotenObjectExt { 1132 return o.Clone() 1133 } 1134 1135 func (o *ActivityLog_Event_ExitEvent) Merge(source *ActivityLog_Event_ExitEvent) { 1136 if source.GetStatus() != nil { 1137 if o.Status == nil { 1138 o.Status = new(rpc.Status) 1139 } 1140 o.Status.Merge(source.GetStatus()) 1141 } 1142 if source.GetTime() != nil { 1143 if o.Time == nil { 1144 o.Time = new(timestamppb.Timestamp) 1145 } 1146 proto.Merge(o.Time, source.GetTime()) 1147 } 1148 } 1149 1150 func (o *ActivityLog_Event_ExitEvent) MergeRaw(source gotenobject.GotenObjectExt) { 1151 o.Merge(source.(*ActivityLog_Event_ExitEvent)) 1152 } 1153 1154 func (o *ActivityLog_Resource_Difference) GotenObjectExt() {} 1155 1156 func (o *ActivityLog_Resource_Difference) MakeFullFieldMask() *ActivityLog_Resource_Difference_FieldMask { 1157 return FullActivityLog_Resource_Difference_FieldMask() 1158 } 1159 1160 func (o *ActivityLog_Resource_Difference) MakeRawFullFieldMask() gotenobject.FieldMask { 1161 return FullActivityLog_Resource_Difference_FieldMask() 1162 } 1163 1164 func (o *ActivityLog_Resource_Difference) MakeDiffFieldMask(other *ActivityLog_Resource_Difference) *ActivityLog_Resource_Difference_FieldMask { 1165 if o == nil && other == nil { 1166 return &ActivityLog_Resource_Difference_FieldMask{} 1167 } 1168 if o == nil || other == nil { 1169 return FullActivityLog_Resource_Difference_FieldMask() 1170 } 1171 1172 res := &ActivityLog_Resource_Difference_FieldMask{} 1173 if !proto.Equal(o.GetFields(), other.GetFields()) { 1174 res.Paths = append(res.Paths, &ActivityLogResourceDifference_FieldTerminalPath{selector: ActivityLogResourceDifference_FieldPathSelectorFields}) 1175 } 1176 if !proto.Equal(o.GetBefore(), other.GetBefore()) { 1177 res.Paths = append(res.Paths, &ActivityLogResourceDifference_FieldTerminalPath{selector: ActivityLogResourceDifference_FieldPathSelectorBefore}) 1178 } 1179 if !proto.Equal(o.GetAfter(), other.GetAfter()) { 1180 res.Paths = append(res.Paths, &ActivityLogResourceDifference_FieldTerminalPath{selector: ActivityLogResourceDifference_FieldPathSelectorAfter}) 1181 } 1182 return res 1183 } 1184 1185 func (o *ActivityLog_Resource_Difference) MakeRawDiffFieldMask(other gotenobject.GotenObjectExt) gotenobject.FieldMask { 1186 return o.MakeDiffFieldMask(other.(*ActivityLog_Resource_Difference)) 1187 } 1188 1189 func (o *ActivityLog_Resource_Difference) Clone() *ActivityLog_Resource_Difference { 1190 if o == nil { 1191 return nil 1192 } 1193 result := &ActivityLog_Resource_Difference{} 1194 result.Fields = proto.Clone(o.Fields).(*fieldmaskpb.FieldMask) 1195 result.Before = proto.Clone(o.Before).(*anypb.Any) 1196 result.After = proto.Clone(o.After).(*anypb.Any) 1197 return result 1198 } 1199 1200 func (o *ActivityLog_Resource_Difference) CloneRaw() gotenobject.GotenObjectExt { 1201 return o.Clone() 1202 } 1203 1204 func (o *ActivityLog_Resource_Difference) Merge(source *ActivityLog_Resource_Difference) { 1205 if source.GetFields() != nil { 1206 if o.Fields == nil { 1207 o.Fields = new(fieldmaskpb.FieldMask) 1208 } 1209 proto.Merge(o.Fields, source.GetFields()) 1210 } 1211 if source.GetBefore() != nil { 1212 if o.Before == nil { 1213 o.Before = new(anypb.Any) 1214 } 1215 proto.Merge(o.Before, source.GetBefore()) 1216 } 1217 if source.GetAfter() != nil { 1218 if o.After == nil { 1219 o.After = new(anypb.Any) 1220 } 1221 proto.Merge(o.After, source.GetAfter()) 1222 } 1223 } 1224 1225 func (o *ActivityLog_Resource_Difference) MergeRaw(source gotenobject.GotenObjectExt) { 1226 o.Merge(source.(*ActivityLog_Resource_Difference)) 1227 }