Asynchronous gRPC driver.
|
| struct | BadRequest |
| | Describes violations in a client request. This error type focuses on the syntactic aspects of the request. More...
|
| |
| class | BaseVisitor |
| | Base class for FieldsVisitor and MessagesVisitor. Provides the interface and contains common code to use the data collected in the VisitorCompiler. More...
|
| |
| class | DateConversionError |
| | Exception thrown when date conversion functions receive/produce invalid google::type::Date accrording to IsValid or otherwise lead to undefined behavior due to integer overflow. More...
|
| |
| struct | DebugInfo |
| | Provides debugging information such as stack traces. More...
|
| |
| class | DurationConversionError |
| | Exception thrown when duration conversion functions receive/produce invalid google::protobuf::Duration accrording to IsValid or otherwise lead to undefined behavior due to integer overflow. More...
|
| |
| struct | ErrorInfo |
| | Provides structured error information about the cause of an error. More...
|
| |
| class | FieldsVisitor |
| | Collects knowledge of the structure of the protobuf messages allowing for efficient loops over fields to apply a callback to the ones selected by the 'selector' function. More...
|
| |
| struct | FieldViolation |
| | Describes a single field validation error. More...
|
| |
| struct | Help |
| | Provides links to documentation and help resources. More...
|
| |
| struct | HelpLink |
| | Describes a single help link. More...
|
| |
| struct | LocalizedMessage |
| | Provides a localized error message that is safe to return to the user. More...
|
| |
| class | MessagesVisitor |
| | Collects knowledge of the structure of the protobuf messages allowing for efficient loops over nested messages to apply a callback to the ones selected by the 'selector' function. More...
|
| |
| struct | PreconditionFailure |
| | Describes preconditions that failed during request processing. More...
|
| |
| struct | PreconditionViolation |
| | Describes a single precondition violation. More...
|
| |
| struct | QuotaFailure |
| | Describes quota violations that caused the request to fail. More...
|
| |
| struct | QuotaViolation |
| | Describes a single quota violation. More...
|
| |
| struct | RequestInfo |
| | Contains metadata about the request for debugging and logging. More...
|
| |
| struct | ResourceInfo |
| | Provides information about a resource that is related to the error. More...
|
| |
| struct | RetryInfo |
| | Describes when the client can retry a failed request. More...
|
| |
| class | RichStatus |
| | A wrapper around google::rpc::Status that provides a convenient API for creating and managing gRPC status responses with rich error details. More...
|
| |
| class | TimestampConversionError |
| | Exception thrown when timestamp conversion functions receive/produce invalid google::protobuf::Timestamp accrording to IsValid or otherwise lead to undefined behavior due to integer overflow. More...
|
| |
| class | VisitorCompiler |
| | Base class for BaseVisitor. Constructs and manages the descriptor graph to collect the data about the messages and enable the visitors to find all selected structures. More...
|
| |
|
|
grpc::Status | ToGrpcStatus (const google::rpc::Status &gstatus) |
| | Converts google::rpc::Status from googleapis to grpc::Status . google::rpc::Status is used to initialize grpc::Status code and message and also added to status details.
|
| |
|
std::optional< google::rpc::Status > | ToGoogleRpcStatus (const grpc::Status &status) |
| | Creates google::rpc::Status parsing it from grpc::Status details.
|
| |
|
std::string | GetGStatusLimitedMessage (const google::rpc::Status &status) |
| | Outputs status to string using protobuf's text format.
|
| |
|
gpr_timespec | DurationToTimespec (const engine::Deadline::Duration &duration) noexcept |
| | Converts engine::Deadline::Duration to gpr_timespec (with GPR_TIMESPAN clock_type).
|
| |
| template<typename Rep, typename Period> |
| gpr_timespec | DurationToTimespec (const std::chrono::duration< Rep, Period > &duration) noexcept |
| |
|
engine::Deadline::Duration | TimespecToDuration (gpr_timespec t) noexcept |
| | Converts gpr_timespec to engine::Deadline::Duration
|
| |
|
gpr_timespec | DeadlineToTimespec (const engine::Deadline &deadline) noexcept |
| | Converts engine::Deadline to gpr_timespec (with GPR_CLOCK_MONOTONIC clock_type).
|
| |
|
engine::Deadline | TimespecToDeadline (gpr_timespec t) noexcept |
| | Converts gpr_timespec to engine::Deadline
|
| |
| grpc::ByteBuffer | SerializeToByteBuffer (const ::google::protobuf::Message &message, std::size_t block_size=kDefaultSerializeBlockSize) |
| | Serialize a Protobuf message to the wire format.
|
| |
| bool | ParseFromByteBuffer (grpc::ByteBuffer &&buffer, ::google::protobuf::Message &message) |
| | Parse a Protobuf message from the wire format.
|
| |
| bool | IsValid (const google::protobuf::Timestamp &grpc_ts) |
| | Checks if google::protobuf::Timestamp contains a valid value according to protobuf documentation.
|
| |
| template<class Duration> |
| google::protobuf::Timestamp | ToProtoTimestamp (const std::chrono::time_point< std::chrono::system_clock, Duration > &system_tp) |
| | Creates google::protobuf::Timestamp from std::chrono::time_point.
|
| |
| template<class Duration = std::chrono::system_clock::duration> |
| std::chrono::time_point< std::chrono::system_clock, Duration > | ToTimePoint (const google::protobuf::Timestamp &grpc_ts) |
| | Creates std::chrono::system_clock::time_point from google::protobuf::Timestamp.
|
| |
|
google::protobuf::Timestamp | NowTimestamp () |
| | Returns current (possibly, mocked) timestamp as a google::protobuf::Timestamp.
|
| |
| bool | IsValid (const google::type::Date &grpc_date) |
| | Checks if google::type::Date contains a valid value according to protobuf documentation.
|
| |
| google::type::Date | ToProtoDate (const utils::datetime::Date &utils_date) |
| | Creates google::type::Date from utils::datetime::Date.
|
| |
| utils::datetime::Date | ToUtilsDate (const google::type::Date &grpc_date) |
| | Creates utils::datetime::Date from google::type::Date.
|
| |
| template<class Duration> |
| google::type::Date | ToProtoDate (const std::chrono::time_point< std::chrono::system_clock, Duration > &system_tp) |
| | Creates google::type::Date from std::chrono::time_point.
|
| |
| std::chrono::time_point< std::chrono::system_clock, utils::datetime::Days > | ToTimePoint (const google::type::Date &grpc_date) |
| | Creates std::chrono::system_clock::time_point from google::type::Date.
|
| |
|
google::type::Date | NowDate () |
| | Returns current (possibly, mocked) timestamp as a google::type::Date.
|
| |
| bool | IsValid (const google::protobuf::Duration &grpc_duration) |
| | Checks if google::protobuf::Duration contains a valid value according to protobuf documentation.
|
| |
| template<class Duration = std::chrono::microseconds> |
| Duration | ToDuration (const google::protobuf::Duration &grpc_duration) |
| | Creates std::chrono::duration from google::protobuf::Duration.
|
| |
| template<class Rep, class Period> |
| google::protobuf::Duration | ToProtoDuration (const std::chrono::duration< Rep, Period > &duration) |
| | Creates google::protobuf::Duration from std::chrono::duration.
|
| |
| formats::json::Value | MessageToJson (const google::protobuf::Message &message) |
| | Returns formats::json::Value representation of protobuf message.
|
| |
| formats::json::Value | MessageToJson (const google::protobuf::Message &message, const google::protobuf::util::JsonPrintOptions &options) |
| | Returns formats::json::Value representation of protobuf message.
|
| |
| std::string | ToJsonString (const google::protobuf::Message &message) |
| | Returns Json-string representation of protobuf message.
|
| |
| std::string | ToJsonString (const google::protobuf::Message &message, const google::protobuf::util::JsonPrintOptions &options) |
| | Returns Json-string representation of protobuf message.
|
| |
| template<typename Message> |
| Message | JsonToMessage (const formats::json::Value &json) |
| | Parses Json to a protobuf message. Throws on unknown enum values and unknown fields by default.
|
| |
| template<typename Message> |
| Message | JsonToMessage (const formats::json::Value &json, const google::protobuf::util::JsonParseOptions &options) |
| | Parses Json to a protobuf message. Throws on unknown enum values.
|
| |
| template<typename Message> |
| Message | FromJsonString (std::string_view json_string) |
| | Parses Json to a protobuf message. Throws on unknown enum values and unknown fields by default.
|
| |
| template<typename Message> |
| Message | FromJsonString (std::string_view json_string, const google::protobuf::util::JsonParseOptions &options) |
| | Parses Json to a protobuf message. Throws on unknown enum values.
|
| |
| std::string | ToLimitedDebugString (const google::protobuf::Message &message, std::size_t limit) |
| | Convert protobuf message to limited debug string for logging.
|
| |
| std::string | ToUnlimitedDebugString (const google::protobuf::Message &message) |
| | Convert protobuf message to unlimited debug string for logging.
|
| |
| std::string | ToLimitedDebugString (const grpc::Status &status, std::size_t max_size=kDefaultDebugStringLimit) |
| | Get error details from grpc::Status for logging with size limit.
|
| |
| std::string | ToUnlimitedDebugString (const grpc::Status &status) |
| | Get error details from grpc::Status for logging without size limit.
|
| |
|
void | VisitFields (google::protobuf::Message &message, FieldVisitCallback callback) |
| | Execute a callback for all non-empty fields of the message.
|
| |
|
void | VisitMessagesRecursive (google::protobuf::Message &message, MessageVisitCallback callback) |
| | Execute a callback for the message and its non-empty submessages.
|
| |
|
void | VisitFieldsRecursive (google::protobuf::Message &message, FieldVisitCallback callback) |
| | Execute a callback for all fields of the message and its non-empty submessages.
|
| |
|
void | VisitNestedMessage (google::protobuf::Message &message, const google::protobuf::FieldDescriptor &field, MessageVisitCallback callback) |
| | Execute a callback for the submessage contained in the given field.
|
| |
|
FieldDescriptorList | GetFieldDescriptors (const google::protobuf::Descriptor &descriptor) |
| | Get the descriptors of fields in the message.
|
| |
|
DescriptorList | GetNestedMessageDescriptors (const google::protobuf::Descriptor &descriptor) |
| | Get the descriptors of current and nested messages.
|
| |
|
const google::protobuf::Descriptor * | FindGeneratedMessage (std::string_view name) |
| | Find a generated type by name.
|
| |
|
const google::protobuf::FieldDescriptor * | FindField (const google::protobuf::Descriptor *descriptor, std::string_view field) |
| | Find the field of a generated type by name.
|
| |
| grpc::StatusCode | StatusCodeFromString (std::string_view str) |
| | Convert string to grpc::StatusCode.
|
| |
|
std::string | ToString (grpc::StatusCode code) noexcept |
| | Convert grpc::StatusCode to string.
|
| |
| bool | IsServerError (grpc::StatusCode code) noexcept |
| | Whether a given status code is definitely a server-side error.
|
| |