499
// insert unknown build ID with zero time so that if merged with any other set, the other
500
// will become the default.
502
>
503
>
newData := shallowCloneVersioningData(data)
504
>
newData.VersionSets = slices.Insert(newData.VersionSets, 0, &persistencespb.CompatibleVersionSet{
505
>
SetIds: []string{guessedSetId},
506
>
BuildIds: []*persistencespb.BuildId{{
507
>
Id: buildId,
508
>
State: persistencespb.STATE_ACTIVE,
509
>
StateUpdateTimestamp: clock,
510
>
BecameDefaultTimestamp: clock,
511
>
}},
512
>
BecameDefaultTimestamp: clock,
513
>
})
514
>
return newData
515
}