Class BulkResult
aggregate-mode bulk action (RowAction.BulkMode.AGGREGATE) —
one outcome per id submitted in the matching BulkRequest.
Own, independently-versioned contract
CONTRACT_VERSION is this type's own wire contract, never aliased to VIEW, ACTION_RESULT,
or BulkMutateDef.CONTRACT_VERSION — each of those versions what it defines (a view's shape, a
single-row action's outcome, a bulk-mutate action list) and this one versions only this response shape.
Example:
- Since:
- 10.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA mutable builder forBulkResult.static final recordOne failed-outcome entry: the id that was submitted, and why it failed. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis type's own wire contract version.final StringThe frozen contract-version discriminator (always "1").final List<BulkResult.Failure>The ids that failed, with a reason each.The ids that were submitted but no longer exist.The ids that succeeded. -
Method Summary
Modifier and TypeMethodDescriptionThis result's contract version.static BulkResult.Buildercreate()Starts a newBulkResult.Builder.failed()The ids that failed, with a reason each.notFound()The ids that were submitted but no longer exist (e.g. deleted between selection and submit).The ids that succeeded.
-
Field Details
-
CONTRACT_VERSION
This type's own wire contract version.- See Also:
-
contractVersion
The frozen contract-version discriminator (always "1"). -
succeeded
The ids that succeeded. -
notFound
The ids that were submitted but no longer exist. -
failed
The ids that failed, with a reason each.
-
-
Method Details
-
create
Starts a newBulkResult.Builder.- Returns:
- A new, empty builder.
-
contractVersion
This result's contract version.- Returns:
CONTRACT_VERSION.
-
succeeded
The ids that succeeded.- Returns:
- An immutable list. Never
null .
-
notFound
The ids that were submitted but no longer exist (e.g. deleted between selection and submit).- Returns:
- An immutable list. Never
null .
-
failed
The ids that failed, with a reason each.- Returns:
- An immutable list. Never
null .
-