238
excludeTypes []enumspb.ResetReapplyExcludeType,
239
includeType enumspb.ResetReapplyType,
240
>
) map[enumspb.ResetReapplyExcludeType]struct{} {
api.go
241
>
// A client who wishes to have reapplication of all supported event types should omit the deprecated
242
>
// reset_reapply_type field (since its default value is RESET_REAPPLY_TYPE_ALL_ELIGIBLE).
243
>
exclude := map[enumspb.ResetReapplyExcludeType]struct{}{}
244
>
switch includeType {
245
>
case enumspb.RESET_REAPPLY_TYPE_SIGNAL:
246
>
// A client sending this value of the deprecated reset_reapply_type field will not have any events other than
247
>
// signal reapplied.
248
>
exclude[enumspb.RESET_REAPPLY_EXCLUDE_TYPE_UPDATE] = struct{}{}
249
>
case enumspb.RESET_REAPPLY_TYPE_NONE:
250
>
exclude[enumspb.RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL] = struct{}{}
251
>
exclude[enumspb.RESET_REAPPLY_EXCLUDE_TYPE_UPDATE] = struct{}{}
252
>
case enumspb.RESET_REAPPLY_TYPE_UNSPECIFIED, enumspb.RESET_REAPPLY_TYPE_ALL_ELIGIBLE:
253
// Do nothing.
254
}
255
>
for _, e := range excludeTypes {
api.go
256
>
exclude[e] = struct{}{}
257
>
}
258
>
return exclude
259
}
260