65
// durationpb.CheckValid cannot be used directly because it will return an error for
66
// very large durations, but we are okay with truncating these.
68
>
if d == nil {
70
>
return nil
71
>
}
72
73
if (d.GetSeconds() > 0 && d.GetNanos() < 0) || (d.GetSeconds() < 0 && d.GetNanos() > 0) {