github.com/DataDog/datadog-agent/pkg/security/secl@v0.55.0-devel.0.20240517055856-10c4965fea94/model/field_accessors_windows.go (about)

     1  // Unless explicitly stated otherwise all files in this repository are licensed
     2  // under the Apache License Version 2.0.
     3  // This product includes software developed at Datadog (https://www.datadoghq.com/).
     4  // Copyright 2022-present Datadog, Inc.
     5  // Code generated - DO NOT EDIT.
     6  
     7  //go:build windows
     8  
     9  package model
    10  
    11  import (
    12  	"github.com/DataDog/datadog-agent/pkg/security/secl/compiler/eval"
    13  	"time"
    14  )
    15  
    16  // GetContainerCreatedAt returns the value of the field, resolving if necessary
    17  func (ev *Event) GetContainerCreatedAt() int {
    18  	if ev.BaseEvent.ContainerContext == nil {
    19  		return 0
    20  	}
    21  	return ev.FieldHandlers.ResolveContainerCreatedAt(ev, ev.BaseEvent.ContainerContext)
    22  }
    23  
    24  // GetContainerId returns the value of the field, resolving if necessary
    25  func (ev *Event) GetContainerId() string {
    26  	if ev.BaseEvent.ContainerContext == nil {
    27  		return ""
    28  	}
    29  	return ev.FieldHandlers.ResolveContainerID(ev, ev.BaseEvent.ContainerContext)
    30  }
    31  
    32  // GetContainerTags returns the value of the field, resolving if necessary
    33  func (ev *Event) GetContainerTags() []string {
    34  	if ev.BaseEvent.ContainerContext == nil {
    35  		return []string{}
    36  	}
    37  	return ev.FieldHandlers.ResolveContainerTags(ev, ev.BaseEvent.ContainerContext)
    38  }
    39  
    40  // GetCreateFileDevicePath returns the value of the field, resolving if necessary
    41  func (ev *Event) GetCreateFileDevicePath() string {
    42  	if ev.GetEventType().String() != "create" {
    43  		return ""
    44  	}
    45  	return ev.FieldHandlers.ResolveFimFilePath(ev, &ev.CreateNewFile.File)
    46  }
    47  
    48  // GetCreateFileDevicePathLength returns the value of the field, resolving if necessary
    49  func (ev *Event) GetCreateFileDevicePathLength() int {
    50  	if ev.GetEventType().String() != "create" {
    51  		return 0
    52  	}
    53  	return len(ev.FieldHandlers.ResolveFimFilePath(ev, &ev.CreateNewFile.File))
    54  }
    55  
    56  // GetCreateFileName returns the value of the field, resolving if necessary
    57  func (ev *Event) GetCreateFileName() string {
    58  	if ev.GetEventType().String() != "create" {
    59  		return ""
    60  	}
    61  	return ev.FieldHandlers.ResolveFimFileBasename(ev, &ev.CreateNewFile.File)
    62  }
    63  
    64  // GetCreateFileNameLength returns the value of the field, resolving if necessary
    65  func (ev *Event) GetCreateFileNameLength() int {
    66  	if ev.GetEventType().String() != "create" {
    67  		return 0
    68  	}
    69  	return len(ev.FieldHandlers.ResolveFimFileBasename(ev, &ev.CreateNewFile.File))
    70  }
    71  
    72  // GetCreateRegistryKeyName returns the value of the field, resolving if necessary
    73  func (ev *Event) GetCreateRegistryKeyName() string {
    74  	if ev.GetEventType().String() != "create_key" {
    75  		return ""
    76  	}
    77  	return ev.CreateRegistryKey.Registry.KeyName
    78  }
    79  
    80  // GetCreateRegistryKeyNameLength returns the value of the field, resolving if necessary
    81  func (ev *Event) GetCreateRegistryKeyNameLength() int {
    82  	if ev.GetEventType().String() != "create_key" {
    83  		return 0
    84  	}
    85  	return len(ev.CreateRegistryKey.Registry.KeyName)
    86  }
    87  
    88  // GetCreateRegistryKeyPath returns the value of the field, resolving if necessary
    89  func (ev *Event) GetCreateRegistryKeyPath() string {
    90  	if ev.GetEventType().String() != "create_key" {
    91  		return ""
    92  	}
    93  	return ev.CreateRegistryKey.Registry.KeyPath
    94  }
    95  
    96  // GetCreateRegistryKeyPathLength returns the value of the field, resolving if necessary
    97  func (ev *Event) GetCreateRegistryKeyPathLength() int {
    98  	if ev.GetEventType().String() != "create_key" {
    99  		return 0
   100  	}
   101  	return len(ev.CreateRegistryKey.Registry.KeyPath)
   102  }
   103  
   104  // GetCreateKeyRegistryKeyName returns the value of the field, resolving if necessary
   105  func (ev *Event) GetCreateKeyRegistryKeyName() string {
   106  	if ev.GetEventType().String() != "create_key" {
   107  		return ""
   108  	}
   109  	return ev.CreateRegistryKey.Registry.KeyName
   110  }
   111  
   112  // GetCreateKeyRegistryKeyNameLength returns the value of the field, resolving if necessary
   113  func (ev *Event) GetCreateKeyRegistryKeyNameLength() int {
   114  	if ev.GetEventType().String() != "create_key" {
   115  		return 0
   116  	}
   117  	return len(ev.CreateRegistryKey.Registry.KeyName)
   118  }
   119  
   120  // GetCreateKeyRegistryKeyPath returns the value of the field, resolving if necessary
   121  func (ev *Event) GetCreateKeyRegistryKeyPath() string {
   122  	if ev.GetEventType().String() != "create_key" {
   123  		return ""
   124  	}
   125  	return ev.CreateRegistryKey.Registry.KeyPath
   126  }
   127  
   128  // GetCreateKeyRegistryKeyPathLength returns the value of the field, resolving if necessary
   129  func (ev *Event) GetCreateKeyRegistryKeyPathLength() int {
   130  	if ev.GetEventType().String() != "create_key" {
   131  		return 0
   132  	}
   133  	return len(ev.CreateRegistryKey.Registry.KeyPath)
   134  }
   135  
   136  // GetDeleteFileDevicePath returns the value of the field, resolving if necessary
   137  func (ev *Event) GetDeleteFileDevicePath() string {
   138  	if ev.GetEventType().String() != "delete" {
   139  		return ""
   140  	}
   141  	return ev.FieldHandlers.ResolveFimFilePath(ev, &ev.DeleteFile.File)
   142  }
   143  
   144  // GetDeleteFileDevicePathLength returns the value of the field, resolving if necessary
   145  func (ev *Event) GetDeleteFileDevicePathLength() int {
   146  	if ev.GetEventType().String() != "delete" {
   147  		return 0
   148  	}
   149  	return len(ev.FieldHandlers.ResolveFimFilePath(ev, &ev.DeleteFile.File))
   150  }
   151  
   152  // GetDeleteFileName returns the value of the field, resolving if necessary
   153  func (ev *Event) GetDeleteFileName() string {
   154  	if ev.GetEventType().String() != "delete" {
   155  		return ""
   156  	}
   157  	return ev.FieldHandlers.ResolveFimFileBasename(ev, &ev.DeleteFile.File)
   158  }
   159  
   160  // GetDeleteFileNameLength returns the value of the field, resolving if necessary
   161  func (ev *Event) GetDeleteFileNameLength() int {
   162  	if ev.GetEventType().String() != "delete" {
   163  		return 0
   164  	}
   165  	return len(ev.FieldHandlers.ResolveFimFileBasename(ev, &ev.DeleteFile.File))
   166  }
   167  
   168  // GetDeleteRegistryKeyName returns the value of the field, resolving if necessary
   169  func (ev *Event) GetDeleteRegistryKeyName() string {
   170  	if ev.GetEventType().String() != "delete_key" {
   171  		return ""
   172  	}
   173  	return ev.DeleteRegistryKey.Registry.KeyName
   174  }
   175  
   176  // GetDeleteRegistryKeyNameLength returns the value of the field, resolving if necessary
   177  func (ev *Event) GetDeleteRegistryKeyNameLength() int {
   178  	if ev.GetEventType().String() != "delete_key" {
   179  		return 0
   180  	}
   181  	return len(ev.DeleteRegistryKey.Registry.KeyName)
   182  }
   183  
   184  // GetDeleteRegistryKeyPath returns the value of the field, resolving if necessary
   185  func (ev *Event) GetDeleteRegistryKeyPath() string {
   186  	if ev.GetEventType().String() != "delete_key" {
   187  		return ""
   188  	}
   189  	return ev.DeleteRegistryKey.Registry.KeyPath
   190  }
   191  
   192  // GetDeleteRegistryKeyPathLength returns the value of the field, resolving if necessary
   193  func (ev *Event) GetDeleteRegistryKeyPathLength() int {
   194  	if ev.GetEventType().String() != "delete_key" {
   195  		return 0
   196  	}
   197  	return len(ev.DeleteRegistryKey.Registry.KeyPath)
   198  }
   199  
   200  // GetDeleteKeyRegistryKeyName returns the value of the field, resolving if necessary
   201  func (ev *Event) GetDeleteKeyRegistryKeyName() string {
   202  	if ev.GetEventType().String() != "delete_key" {
   203  		return ""
   204  	}
   205  	return ev.DeleteRegistryKey.Registry.KeyName
   206  }
   207  
   208  // GetDeleteKeyRegistryKeyNameLength returns the value of the field, resolving if necessary
   209  func (ev *Event) GetDeleteKeyRegistryKeyNameLength() int {
   210  	if ev.GetEventType().String() != "delete_key" {
   211  		return 0
   212  	}
   213  	return len(ev.DeleteRegistryKey.Registry.KeyName)
   214  }
   215  
   216  // GetDeleteKeyRegistryKeyPath returns the value of the field, resolving if necessary
   217  func (ev *Event) GetDeleteKeyRegistryKeyPath() string {
   218  	if ev.GetEventType().String() != "delete_key" {
   219  		return ""
   220  	}
   221  	return ev.DeleteRegistryKey.Registry.KeyPath
   222  }
   223  
   224  // GetDeleteKeyRegistryKeyPathLength returns the value of the field, resolving if necessary
   225  func (ev *Event) GetDeleteKeyRegistryKeyPathLength() int {
   226  	if ev.GetEventType().String() != "delete_key" {
   227  		return 0
   228  	}
   229  	return len(ev.DeleteRegistryKey.Registry.KeyPath)
   230  }
   231  
   232  // GetEventOrigin returns the value of the field, resolving if necessary
   233  func (ev *Event) GetEventOrigin() string {
   234  	return ev.BaseEvent.Origin
   235  }
   236  
   237  // GetEventOs returns the value of the field, resolving if necessary
   238  func (ev *Event) GetEventOs() string {
   239  	return ev.BaseEvent.Os
   240  }
   241  
   242  // GetEventService returns the value of the field, resolving if necessary
   243  func (ev *Event) GetEventService() string {
   244  	return ev.FieldHandlers.ResolveService(ev, &ev.BaseEvent)
   245  }
   246  
   247  // GetEventTimestamp returns the value of the field, resolving if necessary
   248  func (ev *Event) GetEventTimestamp() int {
   249  	return ev.FieldHandlers.ResolveEventTimestamp(ev, &ev.BaseEvent)
   250  }
   251  
   252  // GetExecCmdline returns the value of the field, resolving if necessary
   253  func (ev *Event) GetExecCmdline() string {
   254  	if ev.GetEventType().String() != "exec" {
   255  		return ""
   256  	}
   257  	if ev.Exec.Process == nil {
   258  		return ""
   259  	}
   260  	return ev.FieldHandlers.ResolveProcessCmdLine(ev, ev.Exec.Process)
   261  }
   262  
   263  // GetExecCmdlineScrubbed returns the value of the field, resolving if necessary
   264  func (ev *Event) GetExecCmdlineScrubbed() string {
   265  	if ev.GetEventType().String() != "exec" {
   266  		return ""
   267  	}
   268  	if ev.Exec.Process == nil {
   269  		return ""
   270  	}
   271  	return ev.FieldHandlers.ResolveProcessCmdLineScrubbed(ev, ev.Exec.Process)
   272  }
   273  
   274  // GetExecContainerId returns the value of the field, resolving if necessary
   275  func (ev *Event) GetExecContainerId() string {
   276  	if ev.GetEventType().String() != "exec" {
   277  		return ""
   278  	}
   279  	if ev.Exec.Process == nil {
   280  		return ""
   281  	}
   282  	return ev.Exec.Process.ContainerID
   283  }
   284  
   285  // GetExecCreatedAt returns the value of the field, resolving if necessary
   286  func (ev *Event) GetExecCreatedAt() int {
   287  	if ev.GetEventType().String() != "exec" {
   288  		return 0
   289  	}
   290  	if ev.Exec.Process == nil {
   291  		return 0
   292  	}
   293  	return ev.FieldHandlers.ResolveProcessCreatedAt(ev, ev.Exec.Process)
   294  }
   295  
   296  // GetExecEnvp returns the value of the field, resolving if necessary
   297  func (ev *Event) GetExecEnvp() []string {
   298  	if ev.GetEventType().String() != "exec" {
   299  		return []string{}
   300  	}
   301  	if ev.Exec.Process == nil {
   302  		return []string{}
   303  	}
   304  	return ev.FieldHandlers.ResolveProcessEnvp(ev, ev.Exec.Process)
   305  }
   306  
   307  // GetExecEnvs returns the value of the field, resolving if necessary
   308  func (ev *Event) GetExecEnvs() []string {
   309  	if ev.GetEventType().String() != "exec" {
   310  		return []string{}
   311  	}
   312  	if ev.Exec.Process == nil {
   313  		return []string{}
   314  	}
   315  	return ev.FieldHandlers.ResolveProcessEnvs(ev, ev.Exec.Process)
   316  }
   317  
   318  // GetExecExecTime returns the value of the field, resolving if necessary
   319  func (ev *Event) GetExecExecTime() time.Time {
   320  	if ev.GetEventType().String() != "exec" {
   321  		return time.Time{}
   322  	}
   323  	if ev.Exec.Process == nil {
   324  		return time.Time{}
   325  	}
   326  	return ev.Exec.Process.ExecTime
   327  }
   328  
   329  // GetExecExitTime returns the value of the field, resolving if necessary
   330  func (ev *Event) GetExecExitTime() time.Time {
   331  	if ev.GetEventType().String() != "exec" {
   332  		return time.Time{}
   333  	}
   334  	if ev.Exec.Process == nil {
   335  		return time.Time{}
   336  	}
   337  	return ev.Exec.Process.ExitTime
   338  }
   339  
   340  // GetExecFileName returns the value of the field, resolving if necessary
   341  func (ev *Event) GetExecFileName() string {
   342  	if ev.GetEventType().String() != "exec" {
   343  		return ""
   344  	}
   345  	if ev.Exec.Process == nil {
   346  		return ""
   347  	}
   348  	return ev.FieldHandlers.ResolveFileBasename(ev, &ev.Exec.Process.FileEvent)
   349  }
   350  
   351  // GetExecFileNameLength returns the value of the field, resolving if necessary
   352  func (ev *Event) GetExecFileNameLength() int {
   353  	if ev.GetEventType().String() != "exec" {
   354  		return 0
   355  	}
   356  	if ev.Exec.Process == nil {
   357  		return 0
   358  	}
   359  	return len(ev.FieldHandlers.ResolveFileBasename(ev, &ev.Exec.Process.FileEvent))
   360  }
   361  
   362  // GetExecFilePath returns the value of the field, resolving if necessary
   363  func (ev *Event) GetExecFilePath() string {
   364  	if ev.GetEventType().String() != "exec" {
   365  		return ""
   366  	}
   367  	if ev.Exec.Process == nil {
   368  		return ""
   369  	}
   370  	return ev.FieldHandlers.ResolveFilePath(ev, &ev.Exec.Process.FileEvent)
   371  }
   372  
   373  // GetExecFilePathLength returns the value of the field, resolving if necessary
   374  func (ev *Event) GetExecFilePathLength() int {
   375  	if ev.GetEventType().String() != "exec" {
   376  		return 0
   377  	}
   378  	if ev.Exec.Process == nil {
   379  		return 0
   380  	}
   381  	return len(ev.FieldHandlers.ResolveFilePath(ev, &ev.Exec.Process.FileEvent))
   382  }
   383  
   384  // GetExecPid returns the value of the field, resolving if necessary
   385  func (ev *Event) GetExecPid() uint32 {
   386  	if ev.GetEventType().String() != "exec" {
   387  		return uint32(0)
   388  	}
   389  	if ev.Exec.Process == nil {
   390  		return uint32(0)
   391  	}
   392  	return ev.Exec.Process.PIDContext.Pid
   393  }
   394  
   395  // GetExecPpid returns the value of the field, resolving if necessary
   396  func (ev *Event) GetExecPpid() uint32 {
   397  	if ev.GetEventType().String() != "exec" {
   398  		return uint32(0)
   399  	}
   400  	if ev.Exec.Process == nil {
   401  		return uint32(0)
   402  	}
   403  	return ev.Exec.Process.PPid
   404  }
   405  
   406  // GetExecUser returns the value of the field, resolving if necessary
   407  func (ev *Event) GetExecUser() string {
   408  	if ev.GetEventType().String() != "exec" {
   409  		return ""
   410  	}
   411  	if ev.Exec.Process == nil {
   412  		return ""
   413  	}
   414  	return ev.FieldHandlers.ResolveUser(ev, ev.Exec.Process)
   415  }
   416  
   417  // GetExecUserSid returns the value of the field, resolving if necessary
   418  func (ev *Event) GetExecUserSid() string {
   419  	if ev.GetEventType().String() != "exec" {
   420  		return ""
   421  	}
   422  	if ev.Exec.Process == nil {
   423  		return ""
   424  	}
   425  	return ev.Exec.Process.OwnerSidString
   426  }
   427  
   428  // GetExitCause returns the value of the field, resolving if necessary
   429  func (ev *Event) GetExitCause() uint32 {
   430  	if ev.GetEventType().String() != "exit" {
   431  		return uint32(0)
   432  	}
   433  	return ev.Exit.Cause
   434  }
   435  
   436  // GetExitCmdline returns the value of the field, resolving if necessary
   437  func (ev *Event) GetExitCmdline() string {
   438  	if ev.GetEventType().String() != "exit" {
   439  		return ""
   440  	}
   441  	if ev.Exit.Process == nil {
   442  		return ""
   443  	}
   444  	return ev.FieldHandlers.ResolveProcessCmdLine(ev, ev.Exit.Process)
   445  }
   446  
   447  // GetExitCmdlineScrubbed returns the value of the field, resolving if necessary
   448  func (ev *Event) GetExitCmdlineScrubbed() string {
   449  	if ev.GetEventType().String() != "exit" {
   450  		return ""
   451  	}
   452  	if ev.Exit.Process == nil {
   453  		return ""
   454  	}
   455  	return ev.FieldHandlers.ResolveProcessCmdLineScrubbed(ev, ev.Exit.Process)
   456  }
   457  
   458  // GetExitCode returns the value of the field, resolving if necessary
   459  func (ev *Event) GetExitCode() uint32 {
   460  	if ev.GetEventType().String() != "exit" {
   461  		return uint32(0)
   462  	}
   463  	return ev.Exit.Code
   464  }
   465  
   466  // GetExitContainerId returns the value of the field, resolving if necessary
   467  func (ev *Event) GetExitContainerId() string {
   468  	if ev.GetEventType().String() != "exit" {
   469  		return ""
   470  	}
   471  	if ev.Exit.Process == nil {
   472  		return ""
   473  	}
   474  	return ev.Exit.Process.ContainerID
   475  }
   476  
   477  // GetExitCreatedAt returns the value of the field, resolving if necessary
   478  func (ev *Event) GetExitCreatedAt() int {
   479  	if ev.GetEventType().String() != "exit" {
   480  		return 0
   481  	}
   482  	if ev.Exit.Process == nil {
   483  		return 0
   484  	}
   485  	return ev.FieldHandlers.ResolveProcessCreatedAt(ev, ev.Exit.Process)
   486  }
   487  
   488  // GetExitEnvp returns the value of the field, resolving if necessary
   489  func (ev *Event) GetExitEnvp() []string {
   490  	if ev.GetEventType().String() != "exit" {
   491  		return []string{}
   492  	}
   493  	if ev.Exit.Process == nil {
   494  		return []string{}
   495  	}
   496  	return ev.FieldHandlers.ResolveProcessEnvp(ev, ev.Exit.Process)
   497  }
   498  
   499  // GetExitEnvs returns the value of the field, resolving if necessary
   500  func (ev *Event) GetExitEnvs() []string {
   501  	if ev.GetEventType().String() != "exit" {
   502  		return []string{}
   503  	}
   504  	if ev.Exit.Process == nil {
   505  		return []string{}
   506  	}
   507  	return ev.FieldHandlers.ResolveProcessEnvs(ev, ev.Exit.Process)
   508  }
   509  
   510  // GetExitExecTime returns the value of the field, resolving if necessary
   511  func (ev *Event) GetExitExecTime() time.Time {
   512  	if ev.GetEventType().String() != "exit" {
   513  		return time.Time{}
   514  	}
   515  	if ev.Exit.Process == nil {
   516  		return time.Time{}
   517  	}
   518  	return ev.Exit.Process.ExecTime
   519  }
   520  
   521  // GetExitExitTime returns the value of the field, resolving if necessary
   522  func (ev *Event) GetExitExitTime() time.Time {
   523  	if ev.GetEventType().String() != "exit" {
   524  		return time.Time{}
   525  	}
   526  	if ev.Exit.Process == nil {
   527  		return time.Time{}
   528  	}
   529  	return ev.Exit.Process.ExitTime
   530  }
   531  
   532  // GetExitFileName returns the value of the field, resolving if necessary
   533  func (ev *Event) GetExitFileName() string {
   534  	if ev.GetEventType().String() != "exit" {
   535  		return ""
   536  	}
   537  	if ev.Exit.Process == nil {
   538  		return ""
   539  	}
   540  	return ev.FieldHandlers.ResolveFileBasename(ev, &ev.Exit.Process.FileEvent)
   541  }
   542  
   543  // GetExitFileNameLength returns the value of the field, resolving if necessary
   544  func (ev *Event) GetExitFileNameLength() int {
   545  	if ev.GetEventType().String() != "exit" {
   546  		return 0
   547  	}
   548  	if ev.Exit.Process == nil {
   549  		return 0
   550  	}
   551  	return len(ev.FieldHandlers.ResolveFileBasename(ev, &ev.Exit.Process.FileEvent))
   552  }
   553  
   554  // GetExitFilePath returns the value of the field, resolving if necessary
   555  func (ev *Event) GetExitFilePath() string {
   556  	if ev.GetEventType().String() != "exit" {
   557  		return ""
   558  	}
   559  	if ev.Exit.Process == nil {
   560  		return ""
   561  	}
   562  	return ev.FieldHandlers.ResolveFilePath(ev, &ev.Exit.Process.FileEvent)
   563  }
   564  
   565  // GetExitFilePathLength returns the value of the field, resolving if necessary
   566  func (ev *Event) GetExitFilePathLength() int {
   567  	if ev.GetEventType().String() != "exit" {
   568  		return 0
   569  	}
   570  	if ev.Exit.Process == nil {
   571  		return 0
   572  	}
   573  	return len(ev.FieldHandlers.ResolveFilePath(ev, &ev.Exit.Process.FileEvent))
   574  }
   575  
   576  // GetExitPid returns the value of the field, resolving if necessary
   577  func (ev *Event) GetExitPid() uint32 {
   578  	if ev.GetEventType().String() != "exit" {
   579  		return uint32(0)
   580  	}
   581  	if ev.Exit.Process == nil {
   582  		return uint32(0)
   583  	}
   584  	return ev.Exit.Process.PIDContext.Pid
   585  }
   586  
   587  // GetExitPpid returns the value of the field, resolving if necessary
   588  func (ev *Event) GetExitPpid() uint32 {
   589  	if ev.GetEventType().String() != "exit" {
   590  		return uint32(0)
   591  	}
   592  	if ev.Exit.Process == nil {
   593  		return uint32(0)
   594  	}
   595  	return ev.Exit.Process.PPid
   596  }
   597  
   598  // GetExitUser returns the value of the field, resolving if necessary
   599  func (ev *Event) GetExitUser() string {
   600  	if ev.GetEventType().String() != "exit" {
   601  		return ""
   602  	}
   603  	if ev.Exit.Process == nil {
   604  		return ""
   605  	}
   606  	return ev.FieldHandlers.ResolveUser(ev, ev.Exit.Process)
   607  }
   608  
   609  // GetExitUserSid returns the value of the field, resolving if necessary
   610  func (ev *Event) GetExitUserSid() string {
   611  	if ev.GetEventType().String() != "exit" {
   612  		return ""
   613  	}
   614  	if ev.Exit.Process == nil {
   615  		return ""
   616  	}
   617  	return ev.Exit.Process.OwnerSidString
   618  }
   619  
   620  // GetOpenRegistryKeyName returns the value of the field, resolving if necessary
   621  func (ev *Event) GetOpenRegistryKeyName() string {
   622  	if ev.GetEventType().String() != "open_key" {
   623  		return ""
   624  	}
   625  	return ev.OpenRegistryKey.Registry.KeyName
   626  }
   627  
   628  // GetOpenRegistryKeyNameLength returns the value of the field, resolving if necessary
   629  func (ev *Event) GetOpenRegistryKeyNameLength() int {
   630  	if ev.GetEventType().String() != "open_key" {
   631  		return 0
   632  	}
   633  	return len(ev.OpenRegistryKey.Registry.KeyName)
   634  }
   635  
   636  // GetOpenRegistryKeyPath returns the value of the field, resolving if necessary
   637  func (ev *Event) GetOpenRegistryKeyPath() string {
   638  	if ev.GetEventType().String() != "open_key" {
   639  		return ""
   640  	}
   641  	return ev.OpenRegistryKey.Registry.KeyPath
   642  }
   643  
   644  // GetOpenRegistryKeyPathLength returns the value of the field, resolving if necessary
   645  func (ev *Event) GetOpenRegistryKeyPathLength() int {
   646  	if ev.GetEventType().String() != "open_key" {
   647  		return 0
   648  	}
   649  	return len(ev.OpenRegistryKey.Registry.KeyPath)
   650  }
   651  
   652  // GetOpenKeyRegistryKeyName returns the value of the field, resolving if necessary
   653  func (ev *Event) GetOpenKeyRegistryKeyName() string {
   654  	if ev.GetEventType().String() != "open_key" {
   655  		return ""
   656  	}
   657  	return ev.OpenRegistryKey.Registry.KeyName
   658  }
   659  
   660  // GetOpenKeyRegistryKeyNameLength returns the value of the field, resolving if necessary
   661  func (ev *Event) GetOpenKeyRegistryKeyNameLength() int {
   662  	if ev.GetEventType().String() != "open_key" {
   663  		return 0
   664  	}
   665  	return len(ev.OpenRegistryKey.Registry.KeyName)
   666  }
   667  
   668  // GetOpenKeyRegistryKeyPath returns the value of the field, resolving if necessary
   669  func (ev *Event) GetOpenKeyRegistryKeyPath() string {
   670  	if ev.GetEventType().String() != "open_key" {
   671  		return ""
   672  	}
   673  	return ev.OpenRegistryKey.Registry.KeyPath
   674  }
   675  
   676  // GetOpenKeyRegistryKeyPathLength returns the value of the field, resolving if necessary
   677  func (ev *Event) GetOpenKeyRegistryKeyPathLength() int {
   678  	if ev.GetEventType().String() != "open_key" {
   679  		return 0
   680  	}
   681  	return len(ev.OpenRegistryKey.Registry.KeyPath)
   682  }
   683  
   684  // GetProcessAncestorsCmdline returns the value of the field, resolving if necessary
   685  func (ev *Event) GetProcessAncestorsCmdline() []string {
   686  	if ev.BaseEvent.ProcessContext == nil {
   687  		return []string{}
   688  	}
   689  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   690  		return []string{}
   691  	}
   692  	var values []string
   693  	ctx := eval.NewContext(ev)
   694  	iterator := &ProcessAncestorsIterator{}
   695  	ptr := iterator.Front(ctx)
   696  	for ptr != nil {
   697  		element := (*ProcessCacheEntry)(ptr)
   698  		result := ev.FieldHandlers.ResolveProcessCmdLine(ev, &element.ProcessContext.Process)
   699  		values = append(values, result)
   700  		ptr = iterator.Next()
   701  	}
   702  	return values
   703  }
   704  
   705  // GetProcessAncestorsCmdlineScrubbed returns the value of the field, resolving if necessary
   706  func (ev *Event) GetProcessAncestorsCmdlineScrubbed() []string {
   707  	if ev.BaseEvent.ProcessContext == nil {
   708  		return []string{}
   709  	}
   710  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   711  		return []string{}
   712  	}
   713  	var values []string
   714  	ctx := eval.NewContext(ev)
   715  	iterator := &ProcessAncestorsIterator{}
   716  	ptr := iterator.Front(ctx)
   717  	for ptr != nil {
   718  		element := (*ProcessCacheEntry)(ptr)
   719  		result := ev.FieldHandlers.ResolveProcessCmdLineScrubbed(ev, &element.ProcessContext.Process)
   720  		values = append(values, result)
   721  		ptr = iterator.Next()
   722  	}
   723  	return values
   724  }
   725  
   726  // GetProcessAncestorsContainerId returns the value of the field, resolving if necessary
   727  func (ev *Event) GetProcessAncestorsContainerId() []string {
   728  	if ev.BaseEvent.ProcessContext == nil {
   729  		return []string{}
   730  	}
   731  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   732  		return []string{}
   733  	}
   734  	var values []string
   735  	ctx := eval.NewContext(ev)
   736  	iterator := &ProcessAncestorsIterator{}
   737  	ptr := iterator.Front(ctx)
   738  	for ptr != nil {
   739  		element := (*ProcessCacheEntry)(ptr)
   740  		result := element.ProcessContext.Process.ContainerID
   741  		values = append(values, result)
   742  		ptr = iterator.Next()
   743  	}
   744  	return values
   745  }
   746  
   747  // GetProcessAncestorsCreatedAt returns the value of the field, resolving if necessary
   748  func (ev *Event) GetProcessAncestorsCreatedAt() []int {
   749  	if ev.BaseEvent.ProcessContext == nil {
   750  		return []int{}
   751  	}
   752  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   753  		return []int{}
   754  	}
   755  	var values []int
   756  	ctx := eval.NewContext(ev)
   757  	iterator := &ProcessAncestorsIterator{}
   758  	ptr := iterator.Front(ctx)
   759  	for ptr != nil {
   760  		element := (*ProcessCacheEntry)(ptr)
   761  		result := int(ev.FieldHandlers.ResolveProcessCreatedAt(ev, &element.ProcessContext.Process))
   762  		values = append(values, result)
   763  		ptr = iterator.Next()
   764  	}
   765  	return values
   766  }
   767  
   768  // GetProcessAncestorsEnvp returns the value of the field, resolving if necessary
   769  func (ev *Event) GetProcessAncestorsEnvp() []string {
   770  	if ev.BaseEvent.ProcessContext == nil {
   771  		return []string{}
   772  	}
   773  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   774  		return []string{}
   775  	}
   776  	var values []string
   777  	ctx := eval.NewContext(ev)
   778  	iterator := &ProcessAncestorsIterator{}
   779  	ptr := iterator.Front(ctx)
   780  	for ptr != nil {
   781  		element := (*ProcessCacheEntry)(ptr)
   782  		result := ev.FieldHandlers.ResolveProcessEnvp(ev, &element.ProcessContext.Process)
   783  		values = append(values, result...)
   784  		ptr = iterator.Next()
   785  	}
   786  	return values
   787  }
   788  
   789  // GetProcessAncestorsEnvs returns the value of the field, resolving if necessary
   790  func (ev *Event) GetProcessAncestorsEnvs() []string {
   791  	if ev.BaseEvent.ProcessContext == nil {
   792  		return []string{}
   793  	}
   794  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   795  		return []string{}
   796  	}
   797  	var values []string
   798  	ctx := eval.NewContext(ev)
   799  	iterator := &ProcessAncestorsIterator{}
   800  	ptr := iterator.Front(ctx)
   801  	for ptr != nil {
   802  		element := (*ProcessCacheEntry)(ptr)
   803  		result := ev.FieldHandlers.ResolveProcessEnvs(ev, &element.ProcessContext.Process)
   804  		values = append(values, result...)
   805  		ptr = iterator.Next()
   806  	}
   807  	return values
   808  }
   809  
   810  // GetProcessAncestorsFileName returns the value of the field, resolving if necessary
   811  func (ev *Event) GetProcessAncestorsFileName() []string {
   812  	if ev.BaseEvent.ProcessContext == nil {
   813  		return []string{}
   814  	}
   815  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   816  		return []string{}
   817  	}
   818  	var values []string
   819  	ctx := eval.NewContext(ev)
   820  	iterator := &ProcessAncestorsIterator{}
   821  	ptr := iterator.Front(ctx)
   822  	for ptr != nil {
   823  		element := (*ProcessCacheEntry)(ptr)
   824  		result := ev.FieldHandlers.ResolveFileBasename(ev, &element.ProcessContext.Process.FileEvent)
   825  		values = append(values, result)
   826  		ptr = iterator.Next()
   827  	}
   828  	return values
   829  }
   830  
   831  // GetProcessAncestorsFileNameLength returns the value of the field, resolving if necessary
   832  func (ev *Event) GetProcessAncestorsFileNameLength() []int {
   833  	if ev.BaseEvent.ProcessContext == nil {
   834  		return []int{}
   835  	}
   836  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   837  		return []int{}
   838  	}
   839  	var values []int
   840  	ctx := eval.NewContext(ev)
   841  	iterator := &ProcessAncestorsIterator{}
   842  	ptr := iterator.Front(ctx)
   843  	for ptr != nil {
   844  		element := (*ProcessCacheEntry)(ptr)
   845  		result := len(ev.FieldHandlers.ResolveFileBasename(ev, &element.ProcessContext.Process.FileEvent))
   846  		values = append(values, result)
   847  		ptr = iterator.Next()
   848  	}
   849  	return values
   850  }
   851  
   852  // GetProcessAncestorsFilePath returns the value of the field, resolving if necessary
   853  func (ev *Event) GetProcessAncestorsFilePath() []string {
   854  	if ev.BaseEvent.ProcessContext == nil {
   855  		return []string{}
   856  	}
   857  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   858  		return []string{}
   859  	}
   860  	var values []string
   861  	ctx := eval.NewContext(ev)
   862  	iterator := &ProcessAncestorsIterator{}
   863  	ptr := iterator.Front(ctx)
   864  	for ptr != nil {
   865  		element := (*ProcessCacheEntry)(ptr)
   866  		result := ev.FieldHandlers.ResolveFilePath(ev, &element.ProcessContext.Process.FileEvent)
   867  		values = append(values, result)
   868  		ptr = iterator.Next()
   869  	}
   870  	return values
   871  }
   872  
   873  // GetProcessAncestorsFilePathLength returns the value of the field, resolving if necessary
   874  func (ev *Event) GetProcessAncestorsFilePathLength() []int {
   875  	if ev.BaseEvent.ProcessContext == nil {
   876  		return []int{}
   877  	}
   878  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   879  		return []int{}
   880  	}
   881  	var values []int
   882  	ctx := eval.NewContext(ev)
   883  	iterator := &ProcessAncestorsIterator{}
   884  	ptr := iterator.Front(ctx)
   885  	for ptr != nil {
   886  		element := (*ProcessCacheEntry)(ptr)
   887  		result := len(ev.FieldHandlers.ResolveFilePath(ev, &element.ProcessContext.Process.FileEvent))
   888  		values = append(values, result)
   889  		ptr = iterator.Next()
   890  	}
   891  	return values
   892  }
   893  
   894  // GetProcessAncestorsPid returns the value of the field, resolving if necessary
   895  func (ev *Event) GetProcessAncestorsPid() []uint32 {
   896  	if ev.BaseEvent.ProcessContext == nil {
   897  		return []uint32{}
   898  	}
   899  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   900  		return []uint32{}
   901  	}
   902  	var values []uint32
   903  	ctx := eval.NewContext(ev)
   904  	iterator := &ProcessAncestorsIterator{}
   905  	ptr := iterator.Front(ctx)
   906  	for ptr != nil {
   907  		element := (*ProcessCacheEntry)(ptr)
   908  		result := element.ProcessContext.Process.PIDContext.Pid
   909  		values = append(values, result)
   910  		ptr = iterator.Next()
   911  	}
   912  	return values
   913  }
   914  
   915  // GetProcessAncestorsPpid returns the value of the field, resolving if necessary
   916  func (ev *Event) GetProcessAncestorsPpid() []uint32 {
   917  	if ev.BaseEvent.ProcessContext == nil {
   918  		return []uint32{}
   919  	}
   920  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   921  		return []uint32{}
   922  	}
   923  	var values []uint32
   924  	ctx := eval.NewContext(ev)
   925  	iterator := &ProcessAncestorsIterator{}
   926  	ptr := iterator.Front(ctx)
   927  	for ptr != nil {
   928  		element := (*ProcessCacheEntry)(ptr)
   929  		result := element.ProcessContext.Process.PPid
   930  		values = append(values, result)
   931  		ptr = iterator.Next()
   932  	}
   933  	return values
   934  }
   935  
   936  // GetProcessAncestorsUser returns the value of the field, resolving if necessary
   937  func (ev *Event) GetProcessAncestorsUser() []string {
   938  	if ev.BaseEvent.ProcessContext == nil {
   939  		return []string{}
   940  	}
   941  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   942  		return []string{}
   943  	}
   944  	var values []string
   945  	ctx := eval.NewContext(ev)
   946  	iterator := &ProcessAncestorsIterator{}
   947  	ptr := iterator.Front(ctx)
   948  	for ptr != nil {
   949  		element := (*ProcessCacheEntry)(ptr)
   950  		result := ev.FieldHandlers.ResolveUser(ev, &element.ProcessContext.Process)
   951  		values = append(values, result)
   952  		ptr = iterator.Next()
   953  	}
   954  	return values
   955  }
   956  
   957  // GetProcessAncestorsUserSid returns the value of the field, resolving if necessary
   958  func (ev *Event) GetProcessAncestorsUserSid() []string {
   959  	if ev.BaseEvent.ProcessContext == nil {
   960  		return []string{}
   961  	}
   962  	if ev.BaseEvent.ProcessContext.Ancestor == nil {
   963  		return []string{}
   964  	}
   965  	var values []string
   966  	ctx := eval.NewContext(ev)
   967  	iterator := &ProcessAncestorsIterator{}
   968  	ptr := iterator.Front(ctx)
   969  	for ptr != nil {
   970  		element := (*ProcessCacheEntry)(ptr)
   971  		result := element.ProcessContext.Process.OwnerSidString
   972  		values = append(values, result)
   973  		ptr = iterator.Next()
   974  	}
   975  	return values
   976  }
   977  
   978  // GetProcessCmdline returns the value of the field, resolving if necessary
   979  func (ev *Event) GetProcessCmdline() string {
   980  	if ev.BaseEvent.ProcessContext == nil {
   981  		return ""
   982  	}
   983  	return ev.FieldHandlers.ResolveProcessCmdLine(ev, &ev.BaseEvent.ProcessContext.Process)
   984  }
   985  
   986  // GetProcessCmdlineScrubbed returns the value of the field, resolving if necessary
   987  func (ev *Event) GetProcessCmdlineScrubbed() string {
   988  	if ev.BaseEvent.ProcessContext == nil {
   989  		return ""
   990  	}
   991  	return ev.FieldHandlers.ResolveProcessCmdLineScrubbed(ev, &ev.BaseEvent.ProcessContext.Process)
   992  }
   993  
   994  // GetProcessContainerId returns the value of the field, resolving if necessary
   995  func (ev *Event) GetProcessContainerId() string {
   996  	if ev.BaseEvent.ProcessContext == nil {
   997  		return ""
   998  	}
   999  	return ev.BaseEvent.ProcessContext.Process.ContainerID
  1000  }
  1001  
  1002  // GetProcessCreatedAt returns the value of the field, resolving if necessary
  1003  func (ev *Event) GetProcessCreatedAt() int {
  1004  	if ev.BaseEvent.ProcessContext == nil {
  1005  		return 0
  1006  	}
  1007  	return ev.FieldHandlers.ResolveProcessCreatedAt(ev, &ev.BaseEvent.ProcessContext.Process)
  1008  }
  1009  
  1010  // GetProcessEnvp returns the value of the field, resolving if necessary
  1011  func (ev *Event) GetProcessEnvp() []string {
  1012  	if ev.BaseEvent.ProcessContext == nil {
  1013  		return []string{}
  1014  	}
  1015  	return ev.FieldHandlers.ResolveProcessEnvp(ev, &ev.BaseEvent.ProcessContext.Process)
  1016  }
  1017  
  1018  // GetProcessEnvs returns the value of the field, resolving if necessary
  1019  func (ev *Event) GetProcessEnvs() []string {
  1020  	if ev.BaseEvent.ProcessContext == nil {
  1021  		return []string{}
  1022  	}
  1023  	return ev.FieldHandlers.ResolveProcessEnvs(ev, &ev.BaseEvent.ProcessContext.Process)
  1024  }
  1025  
  1026  // GetProcessExecTime returns the value of the field, resolving if necessary
  1027  func (ev *Event) GetProcessExecTime() time.Time {
  1028  	if ev.BaseEvent.ProcessContext == nil {
  1029  		return time.Time{}
  1030  	}
  1031  	return ev.BaseEvent.ProcessContext.Process.ExecTime
  1032  }
  1033  
  1034  // GetProcessExitTime returns the value of the field, resolving if necessary
  1035  func (ev *Event) GetProcessExitTime() time.Time {
  1036  	if ev.BaseEvent.ProcessContext == nil {
  1037  		return time.Time{}
  1038  	}
  1039  	return ev.BaseEvent.ProcessContext.Process.ExitTime
  1040  }
  1041  
  1042  // GetProcessFileName returns the value of the field, resolving if necessary
  1043  func (ev *Event) GetProcessFileName() string {
  1044  	if ev.BaseEvent.ProcessContext == nil {
  1045  		return ""
  1046  	}
  1047  	return ev.FieldHandlers.ResolveFileBasename(ev, &ev.BaseEvent.ProcessContext.Process.FileEvent)
  1048  }
  1049  
  1050  // GetProcessFileNameLength returns the value of the field, resolving if necessary
  1051  func (ev *Event) GetProcessFileNameLength() int {
  1052  	if ev.BaseEvent.ProcessContext == nil {
  1053  		return 0
  1054  	}
  1055  	return len(ev.FieldHandlers.ResolveFileBasename(ev, &ev.BaseEvent.ProcessContext.Process.FileEvent))
  1056  }
  1057  
  1058  // GetProcessFilePath returns the value of the field, resolving if necessary
  1059  func (ev *Event) GetProcessFilePath() string {
  1060  	if ev.BaseEvent.ProcessContext == nil {
  1061  		return ""
  1062  	}
  1063  	return ev.FieldHandlers.ResolveFilePath(ev, &ev.BaseEvent.ProcessContext.Process.FileEvent)
  1064  }
  1065  
  1066  // GetProcessFilePathLength returns the value of the field, resolving if necessary
  1067  func (ev *Event) GetProcessFilePathLength() int {
  1068  	if ev.BaseEvent.ProcessContext == nil {
  1069  		return 0
  1070  	}
  1071  	return len(ev.FieldHandlers.ResolveFilePath(ev, &ev.BaseEvent.ProcessContext.Process.FileEvent))
  1072  }
  1073  
  1074  // GetProcessParentCmdline returns the value of the field, resolving if necessary
  1075  func (ev *Event) GetProcessParentCmdline() string {
  1076  	if ev.BaseEvent.ProcessContext == nil {
  1077  		return ""
  1078  	}
  1079  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1080  		return ""
  1081  	}
  1082  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1083  		return ""
  1084  	}
  1085  	return ev.FieldHandlers.ResolveProcessCmdLine(ev, ev.BaseEvent.ProcessContext.Parent)
  1086  }
  1087  
  1088  // GetProcessParentCmdlineScrubbed returns the value of the field, resolving if necessary
  1089  func (ev *Event) GetProcessParentCmdlineScrubbed() string {
  1090  	if ev.BaseEvent.ProcessContext == nil {
  1091  		return ""
  1092  	}
  1093  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1094  		return ""
  1095  	}
  1096  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1097  		return ""
  1098  	}
  1099  	return ev.FieldHandlers.ResolveProcessCmdLineScrubbed(ev, ev.BaseEvent.ProcessContext.Parent)
  1100  }
  1101  
  1102  // GetProcessParentContainerId returns the value of the field, resolving if necessary
  1103  func (ev *Event) GetProcessParentContainerId() string {
  1104  	if ev.BaseEvent.ProcessContext == nil {
  1105  		return ""
  1106  	}
  1107  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1108  		return ""
  1109  	}
  1110  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1111  		return ""
  1112  	}
  1113  	return ev.BaseEvent.ProcessContext.Parent.ContainerID
  1114  }
  1115  
  1116  // GetProcessParentCreatedAt returns the value of the field, resolving if necessary
  1117  func (ev *Event) GetProcessParentCreatedAt() int {
  1118  	if ev.BaseEvent.ProcessContext == nil {
  1119  		return 0
  1120  	}
  1121  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1122  		return 0
  1123  	}
  1124  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1125  		return 0
  1126  	}
  1127  	return ev.FieldHandlers.ResolveProcessCreatedAt(ev, ev.BaseEvent.ProcessContext.Parent)
  1128  }
  1129  
  1130  // GetProcessParentEnvp returns the value of the field, resolving if necessary
  1131  func (ev *Event) GetProcessParentEnvp() []string {
  1132  	if ev.BaseEvent.ProcessContext == nil {
  1133  		return []string{}
  1134  	}
  1135  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1136  		return []string{}
  1137  	}
  1138  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1139  		return []string{}
  1140  	}
  1141  	return ev.FieldHandlers.ResolveProcessEnvp(ev, ev.BaseEvent.ProcessContext.Parent)
  1142  }
  1143  
  1144  // GetProcessParentEnvs returns the value of the field, resolving if necessary
  1145  func (ev *Event) GetProcessParentEnvs() []string {
  1146  	if ev.BaseEvent.ProcessContext == nil {
  1147  		return []string{}
  1148  	}
  1149  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1150  		return []string{}
  1151  	}
  1152  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1153  		return []string{}
  1154  	}
  1155  	return ev.FieldHandlers.ResolveProcessEnvs(ev, ev.BaseEvent.ProcessContext.Parent)
  1156  }
  1157  
  1158  // GetProcessParentFileName returns the value of the field, resolving if necessary
  1159  func (ev *Event) GetProcessParentFileName() string {
  1160  	if ev.BaseEvent.ProcessContext == nil {
  1161  		return ""
  1162  	}
  1163  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1164  		return ""
  1165  	}
  1166  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1167  		return ""
  1168  	}
  1169  	return ev.FieldHandlers.ResolveFileBasename(ev, &ev.BaseEvent.ProcessContext.Parent.FileEvent)
  1170  }
  1171  
  1172  // GetProcessParentFileNameLength returns the value of the field, resolving if necessary
  1173  func (ev *Event) GetProcessParentFileNameLength() int {
  1174  	if ev.BaseEvent.ProcessContext == nil {
  1175  		return 0
  1176  	}
  1177  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1178  		return 0
  1179  	}
  1180  	return len(ev.FieldHandlers.ResolveFileBasename(ev, &ev.BaseEvent.ProcessContext.Parent.FileEvent))
  1181  }
  1182  
  1183  // GetProcessParentFilePath returns the value of the field, resolving if necessary
  1184  func (ev *Event) GetProcessParentFilePath() string {
  1185  	if ev.BaseEvent.ProcessContext == nil {
  1186  		return ""
  1187  	}
  1188  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1189  		return ""
  1190  	}
  1191  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1192  		return ""
  1193  	}
  1194  	return ev.FieldHandlers.ResolveFilePath(ev, &ev.BaseEvent.ProcessContext.Parent.FileEvent)
  1195  }
  1196  
  1197  // GetProcessParentFilePathLength returns the value of the field, resolving if necessary
  1198  func (ev *Event) GetProcessParentFilePathLength() int {
  1199  	if ev.BaseEvent.ProcessContext == nil {
  1200  		return 0
  1201  	}
  1202  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1203  		return 0
  1204  	}
  1205  	return len(ev.FieldHandlers.ResolveFilePath(ev, &ev.BaseEvent.ProcessContext.Parent.FileEvent))
  1206  }
  1207  
  1208  // GetProcessParentPid returns the value of the field, resolving if necessary
  1209  func (ev *Event) GetProcessParentPid() uint32 {
  1210  	if ev.BaseEvent.ProcessContext == nil {
  1211  		return uint32(0)
  1212  	}
  1213  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1214  		return uint32(0)
  1215  	}
  1216  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1217  		return uint32(0)
  1218  	}
  1219  	return ev.BaseEvent.ProcessContext.Parent.PIDContext.Pid
  1220  }
  1221  
  1222  // GetProcessParentPpid returns the value of the field, resolving if necessary
  1223  func (ev *Event) GetProcessParentPpid() uint32 {
  1224  	if ev.BaseEvent.ProcessContext == nil {
  1225  		return uint32(0)
  1226  	}
  1227  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1228  		return uint32(0)
  1229  	}
  1230  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1231  		return uint32(0)
  1232  	}
  1233  	return ev.BaseEvent.ProcessContext.Parent.PPid
  1234  }
  1235  
  1236  // GetProcessParentUser returns the value of the field, resolving if necessary
  1237  func (ev *Event) GetProcessParentUser() string {
  1238  	if ev.BaseEvent.ProcessContext == nil {
  1239  		return ""
  1240  	}
  1241  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1242  		return ""
  1243  	}
  1244  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1245  		return ""
  1246  	}
  1247  	return ev.FieldHandlers.ResolveUser(ev, ev.BaseEvent.ProcessContext.Parent)
  1248  }
  1249  
  1250  // GetProcessParentUserSid returns the value of the field, resolving if necessary
  1251  func (ev *Event) GetProcessParentUserSid() string {
  1252  	if ev.BaseEvent.ProcessContext == nil {
  1253  		return ""
  1254  	}
  1255  	if ev.BaseEvent.ProcessContext.Parent == nil {
  1256  		return ""
  1257  	}
  1258  	if !ev.BaseEvent.ProcessContext.HasParent() {
  1259  		return ""
  1260  	}
  1261  	return ev.BaseEvent.ProcessContext.Parent.OwnerSidString
  1262  }
  1263  
  1264  // GetProcessPid returns the value of the field, resolving if necessary
  1265  func (ev *Event) GetProcessPid() uint32 {
  1266  	if ev.BaseEvent.ProcessContext == nil {
  1267  		return uint32(0)
  1268  	}
  1269  	return ev.BaseEvent.ProcessContext.Process.PIDContext.Pid
  1270  }
  1271  
  1272  // GetProcessPpid returns the value of the field, resolving if necessary
  1273  func (ev *Event) GetProcessPpid() uint32 {
  1274  	if ev.BaseEvent.ProcessContext == nil {
  1275  		return uint32(0)
  1276  	}
  1277  	return ev.BaseEvent.ProcessContext.Process.PPid
  1278  }
  1279  
  1280  // GetProcessUser returns the value of the field, resolving if necessary
  1281  func (ev *Event) GetProcessUser() string {
  1282  	if ev.BaseEvent.ProcessContext == nil {
  1283  		return ""
  1284  	}
  1285  	return ev.FieldHandlers.ResolveUser(ev, &ev.BaseEvent.ProcessContext.Process)
  1286  }
  1287  
  1288  // GetProcessUserSid returns the value of the field, resolving if necessary
  1289  func (ev *Event) GetProcessUserSid() string {
  1290  	if ev.BaseEvent.ProcessContext == nil {
  1291  		return ""
  1292  	}
  1293  	return ev.BaseEvent.ProcessContext.Process.OwnerSidString
  1294  }
  1295  
  1296  // GetRenameFileDestinationDevicePath returns the value of the field, resolving if necessary
  1297  func (ev *Event) GetRenameFileDestinationDevicePath() string {
  1298  	if ev.GetEventType().String() != "rename" {
  1299  		return ""
  1300  	}
  1301  	return ev.FieldHandlers.ResolveFimFilePath(ev, &ev.RenameFile.New)
  1302  }
  1303  
  1304  // GetRenameFileDestinationDevicePathLength returns the value of the field, resolving if necessary
  1305  func (ev *Event) GetRenameFileDestinationDevicePathLength() int {
  1306  	if ev.GetEventType().String() != "rename" {
  1307  		return 0
  1308  	}
  1309  	return len(ev.FieldHandlers.ResolveFimFilePath(ev, &ev.RenameFile.New))
  1310  }
  1311  
  1312  // GetRenameFileDestinationName returns the value of the field, resolving if necessary
  1313  func (ev *Event) GetRenameFileDestinationName() string {
  1314  	if ev.GetEventType().String() != "rename" {
  1315  		return ""
  1316  	}
  1317  	return ev.FieldHandlers.ResolveFimFileBasename(ev, &ev.RenameFile.New)
  1318  }
  1319  
  1320  // GetRenameFileDestinationNameLength returns the value of the field, resolving if necessary
  1321  func (ev *Event) GetRenameFileDestinationNameLength() int {
  1322  	if ev.GetEventType().String() != "rename" {
  1323  		return 0
  1324  	}
  1325  	return len(ev.FieldHandlers.ResolveFimFileBasename(ev, &ev.RenameFile.New))
  1326  }
  1327  
  1328  // GetRenameFileDevicePath returns the value of the field, resolving if necessary
  1329  func (ev *Event) GetRenameFileDevicePath() string {
  1330  	if ev.GetEventType().String() != "rename" {
  1331  		return ""
  1332  	}
  1333  	return ev.FieldHandlers.ResolveFimFilePath(ev, &ev.RenameFile.Old)
  1334  }
  1335  
  1336  // GetRenameFileDevicePathLength returns the value of the field, resolving if necessary
  1337  func (ev *Event) GetRenameFileDevicePathLength() int {
  1338  	if ev.GetEventType().String() != "rename" {
  1339  		return 0
  1340  	}
  1341  	return len(ev.FieldHandlers.ResolveFimFilePath(ev, &ev.RenameFile.Old))
  1342  }
  1343  
  1344  // GetRenameFileName returns the value of the field, resolving if necessary
  1345  func (ev *Event) GetRenameFileName() string {
  1346  	if ev.GetEventType().String() != "rename" {
  1347  		return ""
  1348  	}
  1349  	return ev.FieldHandlers.ResolveFimFileBasename(ev, &ev.RenameFile.Old)
  1350  }
  1351  
  1352  // GetRenameFileNameLength returns the value of the field, resolving if necessary
  1353  func (ev *Event) GetRenameFileNameLength() int {
  1354  	if ev.GetEventType().String() != "rename" {
  1355  		return 0
  1356  	}
  1357  	return len(ev.FieldHandlers.ResolveFimFileBasename(ev, &ev.RenameFile.Old))
  1358  }
  1359  
  1360  // GetSetRegistryKeyName returns the value of the field, resolving if necessary
  1361  func (ev *Event) GetSetRegistryKeyName() string {
  1362  	if ev.GetEventType().String() != "set_key_value" {
  1363  		return ""
  1364  	}
  1365  	return ev.SetRegistryKeyValue.Registry.KeyName
  1366  }
  1367  
  1368  // GetSetRegistryKeyNameLength returns the value of the field, resolving if necessary
  1369  func (ev *Event) GetSetRegistryKeyNameLength() int {
  1370  	if ev.GetEventType().String() != "set_key_value" {
  1371  		return 0
  1372  	}
  1373  	return len(ev.SetRegistryKeyValue.Registry.KeyName)
  1374  }
  1375  
  1376  // GetSetRegistryKeyPath returns the value of the field, resolving if necessary
  1377  func (ev *Event) GetSetRegistryKeyPath() string {
  1378  	if ev.GetEventType().String() != "set_key_value" {
  1379  		return ""
  1380  	}
  1381  	return ev.SetRegistryKeyValue.Registry.KeyPath
  1382  }
  1383  
  1384  // GetSetRegistryKeyPathLength returns the value of the field, resolving if necessary
  1385  func (ev *Event) GetSetRegistryKeyPathLength() int {
  1386  	if ev.GetEventType().String() != "set_key_value" {
  1387  		return 0
  1388  	}
  1389  	return len(ev.SetRegistryKeyValue.Registry.KeyPath)
  1390  }
  1391  
  1392  // GetSetRegistryValueName returns the value of the field, resolving if necessary
  1393  func (ev *Event) GetSetRegistryValueName() string {
  1394  	if ev.GetEventType().String() != "set_key_value" {
  1395  		return ""
  1396  	}
  1397  	return ev.SetRegistryKeyValue.ValueName
  1398  }
  1399  
  1400  // GetSetRegistryValueNameLength returns the value of the field, resolving if necessary
  1401  func (ev *Event) GetSetRegistryValueNameLength() int {
  1402  	if ev.GetEventType().String() != "set_key_value" {
  1403  		return 0
  1404  	}
  1405  	return len(ev.SetRegistryKeyValue.ValueName)
  1406  }
  1407  
  1408  // GetSetValueName returns the value of the field, resolving if necessary
  1409  func (ev *Event) GetSetValueName() string {
  1410  	if ev.GetEventType().String() != "set_key_value" {
  1411  		return ""
  1412  	}
  1413  	return ev.SetRegistryKeyValue.ValueName
  1414  }
  1415  
  1416  // GetSetKeyValueRegistryKeyName returns the value of the field, resolving if necessary
  1417  func (ev *Event) GetSetKeyValueRegistryKeyName() string {
  1418  	if ev.GetEventType().String() != "set_key_value" {
  1419  		return ""
  1420  	}
  1421  	return ev.SetRegistryKeyValue.Registry.KeyName
  1422  }
  1423  
  1424  // GetSetKeyValueRegistryKeyNameLength returns the value of the field, resolving if necessary
  1425  func (ev *Event) GetSetKeyValueRegistryKeyNameLength() int {
  1426  	if ev.GetEventType().String() != "set_key_value" {
  1427  		return 0
  1428  	}
  1429  	return len(ev.SetRegistryKeyValue.Registry.KeyName)
  1430  }
  1431  
  1432  // GetSetKeyValueRegistryKeyPath returns the value of the field, resolving if necessary
  1433  func (ev *Event) GetSetKeyValueRegistryKeyPath() string {
  1434  	if ev.GetEventType().String() != "set_key_value" {
  1435  		return ""
  1436  	}
  1437  	return ev.SetRegistryKeyValue.Registry.KeyPath
  1438  }
  1439  
  1440  // GetSetKeyValueRegistryKeyPathLength returns the value of the field, resolving if necessary
  1441  func (ev *Event) GetSetKeyValueRegistryKeyPathLength() int {
  1442  	if ev.GetEventType().String() != "set_key_value" {
  1443  		return 0
  1444  	}
  1445  	return len(ev.SetRegistryKeyValue.Registry.KeyPath)
  1446  }
  1447  
  1448  // GetSetKeyValueRegistryValueName returns the value of the field, resolving if necessary
  1449  func (ev *Event) GetSetKeyValueRegistryValueName() string {
  1450  	if ev.GetEventType().String() != "set_key_value" {
  1451  		return ""
  1452  	}
  1453  	return ev.SetRegistryKeyValue.ValueName
  1454  }
  1455  
  1456  // GetSetKeyValueRegistryValueNameLength returns the value of the field, resolving if necessary
  1457  func (ev *Event) GetSetKeyValueRegistryValueNameLength() int {
  1458  	if ev.GetEventType().String() != "set_key_value" {
  1459  		return 0
  1460  	}
  1461  	return len(ev.SetRegistryKeyValue.ValueName)
  1462  }
  1463  
  1464  // GetSetKeyValueValueName returns the value of the field, resolving if necessary
  1465  func (ev *Event) GetSetKeyValueValueName() string {
  1466  	if ev.GetEventType().String() != "set_key_value" {
  1467  		return ""
  1468  	}
  1469  	return ev.SetRegistryKeyValue.ValueName
  1470  }
  1471  
  1472  // GetTimestamp returns the value of the field, resolving if necessary
  1473  func (ev *Event) GetTimestamp() time.Time {
  1474  	return ev.FieldHandlers.ResolveEventTime(ev, &ev.BaseEvent)
  1475  }
  1476  
  1477  // GetWriteFileDevicePath returns the value of the field, resolving if necessary
  1478  func (ev *Event) GetWriteFileDevicePath() string {
  1479  	if ev.GetEventType().String() != "write" {
  1480  		return ""
  1481  	}
  1482  	return ev.FieldHandlers.ResolveFimFilePath(ev, &ev.WriteFile.File)
  1483  }
  1484  
  1485  // GetWriteFileDevicePathLength returns the value of the field, resolving if necessary
  1486  func (ev *Event) GetWriteFileDevicePathLength() int {
  1487  	if ev.GetEventType().String() != "write" {
  1488  		return 0
  1489  	}
  1490  	return len(ev.FieldHandlers.ResolveFimFilePath(ev, &ev.WriteFile.File))
  1491  }
  1492  
  1493  // GetWriteFileName returns the value of the field, resolving if necessary
  1494  func (ev *Event) GetWriteFileName() string {
  1495  	if ev.GetEventType().String() != "write" {
  1496  		return ""
  1497  	}
  1498  	return ev.FieldHandlers.ResolveFimFileBasename(ev, &ev.WriteFile.File)
  1499  }
  1500  
  1501  // GetWriteFileNameLength returns the value of the field, resolving if necessary
  1502  func (ev *Event) GetWriteFileNameLength() int {
  1503  	if ev.GetEventType().String() != "write" {
  1504  		return 0
  1505  	}
  1506  	return len(ev.FieldHandlers.ResolveFimFileBasename(ev, &ev.WriteFile.File))
  1507  }