absl::StatusBuilder::HasPayload

Indicates whether the result status contains any MessageSet payloads.

Synopsis

Declared in <absl/status/status_builder.h>

bool
HasPayload() const;

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.