[#absl-StatusBuilder-AttachPayload-08]
= xref:absl.adoc[absl]::xref:absl/StatusBuilder.adoc[StatusBuilder]::AttachPayload
:relfileprefix: ../../
:mrdocs:

Attaches a `MessageSet` extension payload to the result status&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename MessageSetExtension,
    typename ExtensionIdentifier&gt;
xref:absl/StatusBuilder.adoc[StatusBuilder]&
AttachPayload(
    MessageSetExtension const& obj,
    ExtensionIdentifier const& id) &amp;
requires std&colon;&colon;is&lowbar;void&lowbar;v&lt;decltype(AbslInternalAttachPayload(&ast;this, obj, id))&gt;;
----

== Description

INTERNAL API&period; NOT FOR PUBLIC USE&period;

== Return Value

`&ast;this` to allow method chaining&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *obj*
| The extension message to attach&period;
| *id*
| The extension identifier for `obj`&period;
|===


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