github.com/cloudwan/edgelq-sdk@v1.15.4/audit/resources/v1/activity_log/activity_log.pb.object_ext.go (about)

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