[#absl-HasPayload] = xref:absl.adoc[absl]::HasPayload :relfileprefix: ../ :mrdocs: Indicates whether the status that `builder` will return has a `MessageSet` payload. == Synopsis Declared in `<absl/status/status_builder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool HasPayload(xref:absl/StatusBuilder.adoc[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 [cols="1,4"] |=== | Name| Description | *builder* | The builder whose result status is inspected. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#