Indicates whether the status that builder will return has a MessageSet payload.
Synopsis
Declared in <absl/status/status_builder.h>
bool
HasPayload(StatusBuilder const& builder);
Description
Indicates whether the Status object that will be returned by the StatusBuilder contains any payloads with a type extending proto2's MessageSet, returning true if so. Having a payload does not guarantee the presence of a payload with a specific type. Note that returning false does not necessarily indicate the absence of a payload, but only the absence of one which extends MessageSet.
Return Value
true if a MessageSet payload is present.
Parameters
Name |
Description |
builder |
The builder whose result status is inspected. |
Created with MrDocs