absl::StatusBuilder::GetPayload

Returns the payload associated with type_url, if present.

Synopsis

Declared in <absl/status/status_builder.h>

std::optional<absl::Cord>
GetPayload(std::string_view type_url) const;

Return Value

The payload, or std::nullopt if none is attached.

Parameters

NameDescription
type_urlThe type URL identifying the payload.