[#absl-StatusBuilder-HasPayload] = xref:absl.adoc[absl]::xref:absl/StatusBuilder.adoc[StatusBuilder]::HasPayload :relfileprefix: ../../ :mrdocs: Indicates whether the result status contains any `MessageSet` payloads. == Synopsis Declared in `<absl/status/status_builder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool HasPayload() const; ---- == 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. [.small]#Created with https://www.mrdocs.com[MrDocs]#