Go to the documentation of this file.
31 #ifndef GOOGLE_PROTOBUF_UTIL_CONVERTER_UTILITY_H__
32 #define GOOGLE_PROTOBUF_UTIL_CONVERTER_UTILITY_H__
39 #include <google/protobuf/stubs/common.h>
40 #include <google/protobuf/stubs/logging.h>
41 #include <google/protobuf/any.pb.h>
42 #include <google/protobuf/type.pb.h>
43 #include <google/protobuf/repeated_field.h>
44 #include <google/protobuf/stubs/strutil.h>
45 #include <google/protobuf/stubs/statusor.h>
46 #include <google/protobuf/stubs/status.h>
49 #include <google/protobuf/port_def.inc>
178 template <
typename T>
202 #include <google/protobuf/port_undef.inc>
204 #endif // GOOGLE_PROTOBUF_UTIL_CONVERTER_UTILITY_H__
const Descriptor::ReservedRange value
const google::protobuf::Field * FindJsonFieldInTypeOrNull(const google::protobuf::Type *type, StringPiece json_name)
std::string ToCamelCase(const StringPiece input)
bool IsWellKnownType(const std::string &type_name)
const StringPiece GetTypeWithoutUrl(StringPiece type_url)
bool SafeStrToFloat(StringPiece str, float *value)
std::string ToSnakeCase(StringPiece input)
int64 GetInt64FromAny(const google::protobuf::Any &any)
#define T(upbtypeconst, upbtype, ctype, default_value)
string StrCat(const AlphaNum &a, const AlphaNum &b)
bool IsMessageSetWireFormat(const google::protobuf::Type &type)
const std::string GetFullTypeWithUrl(StringPiece simple_type)
int64 GetInt64OptionOrDefault(const RepeatedPtrField< google::protobuf::Option > &options, const std::string &option_name, int64 default_value)
static const int64 kTypeUrlSize
double GetDoubleFromAny(const google::protobuf::Any &any)
bool IsMap(const google::protobuf::Field &field, const google::protobuf::Type &type)
const google::protobuf::Option * FindOptionOrNull(const RepeatedPtrField< google::protobuf::Option > &options, const std::string &option_name)
const google::protobuf::EnumValue * FindEnumValueByNumberOrNull(const google::protobuf::Enum *enum_type, int32 value)
double GetDoubleOptionOrDefault(const RepeatedPtrField< google::protobuf::Option > &options, const std::string &option_name, double default_value)
std::string EnumValueNameToLowerCamelCase(const StringPiece input)
std::string GetStringFromAny(const google::protobuf::Any &any)
std::string DoubleAsString(double value)
const google::protobuf::EnumValue * FindEnumValueByNameWithoutUnderscoreOrNull(const google::protobuf::Enum *enum_type, StringPiece enum_name)
const google::protobuf::Field * FindFieldInTypeByNumberOrNull(const google::protobuf::Type *type, int32 number)
const FieldDescriptor * field
std::string GetStringOptionOrDefault(const RepeatedPtrField< google::protobuf::Option > &options, const std::string &option_name, const std::string &default_value)
const google::protobuf::EnumValue * FindEnumValueByNameOrNull(const google::protobuf::Enum *enum_type, StringPiece enum_name)
bool GetBoolOptionOrDefault(const RepeatedPtrField< google::protobuf::Option > &options, const std::string &option_name, bool default_value)
const google::protobuf::Field * FindFieldInTypeOrNull(const google::protobuf::Type *type, StringPiece field_name)
bool GetBoolFromAny(const google::protobuf::Any &any)
std::string ValueAsString(T value)
std::string FloatAsString(float value)
bool IsValidBoolString(const std::string &bool_string)
static const char * type_name(int type)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:49