31 #ifndef GOOGLE_PROTOBUF_UTIL_CONVERTER_DATAPIECE_H__
32 #define GOOGLE_PROTOBUF_UTIL_CONVERTER_DATAPIECE_H__
42 #include <google/protobuf/port_def.inc>
79 : type_(TYPE_INT32), i32_(
value), use_strict_base64_decoding_(
false) {}
81 : type_(TYPE_INT64), i64_(
value), use_strict_base64_decoding_(
false) {}
83 : type_(TYPE_UINT32), u32_(
value), use_strict_base64_decoding_(
false) {}
85 : type_(TYPE_UINT64), u64_(
value), use_strict_base64_decoding_(
false) {}
89 use_strict_base64_decoding_(
false) {}
91 : type_(TYPE_FLOAT), float_(
value), use_strict_base64_decoding_(
false) {}
93 : type_(TYPE_BOOL), bool_(
value), use_strict_base64_decoding_(
false) {}
97 use_strict_base64_decoding_(use_strict_base64_decoding) {}
102 use_strict_base64_decoding_(use_strict_base64_decoding) {}
122 GOOGLE_LOG_IF(DFATAL, type_ != TYPE_STRING) <<
"Not a string type.";
165 : type_(
type), i32_(
val), use_strict_base64_decoding_(
false) {}
170 bool use_lower_camel_for_enums,
171 bool case_insensitive_enum_parsing,
172 bool ignore_unknown_enum_values,
173 bool* is_unknown_enum_value)
const;
177 template <
typename To>
182 template <
typename To>
190 void InternalCopy(
const DataPiece& other);
218 #include <google/protobuf/port_undef.inc>
220 #endif // GOOGLE_PROTOBUF_UTIL_CONVERTER_DATAPIECE_H__