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

Name

Description

type_url

The type URL identifying the payload.

Created with MrDocs