[#absl-HasPayload]
= xref:absl.adoc[absl]::HasPayload
:relfileprefix: ../
:mrdocs:

Indicates whether the status that `builder` will return has a `MessageSet` payload&period;

== Synopsis

Declared in `&lt;absl&sol;status&sol;status&lowbar;builder&period;h&gt;`

[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&apos;s `MessageSet`, returning `true` if so&period; Having a payload does not guarantee the presence of a payload with a specific type&period; Note that returning `false` does not necessarily indicate the absence of a payload, but only the absence of one which extends `MessageSet`&period;

== Return Value

`true` if a `MessageSet` payload is present&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *builder*
| The builder whose result status is inspected&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
