31 #ifndef GOOGLE_PROTOBUF_UTIL_CONVERTER_DATAPIECE_H__
32 #define GOOGLE_PROTOBUF_UTIL_CONVERTER_DATAPIECE_H__
37 #include <google/protobuf/stubs/common.h>
38 #include <google/protobuf/stubs/logging.h>
39 #include <google/protobuf/type.pb.h>
40 #include <google/protobuf/stubs/statusor.h>
41 #include <google/protobuf/stubs/strutil.h>
43 #include <google/protobuf/port_def.inc>
60 class PROTOBUF_EXPORT DataPiece {
84 :
type_(TYPE_UINT32), u32_(
value), use_strict_base64_decoding_(
false) {}
86 :
type_(TYPE_UINT64), u64_(
value), use_strict_base64_decoding_(
false) {}
90 use_strict_base64_decoding_(
false) {}
92 :
type_(TYPE_FLOAT), float_(
value), use_strict_base64_decoding_(
false) {}
98 use_strict_base64_decoding_(use_strict_base64_decoding) {}
103 use_strict_base64_decoding_(use_strict_base64_decoding) {}
171 bool use_lower_camel_for_enums,
172 bool case_insensitive_enum_parsing,
173 bool ignore_unknown_enum_values,
174 bool* is_unknown_enum_value)
const;
178 template <
typename To>
183 template <
typename To>
190 void InternalCopy(
const DataPiece& other);
208 bool use_strict_base64_decoding_;
216 #include <google/protobuf/port_undef.inc>
218 #endif // GOOGLE_PROTOBUF_UTIL_CONVERTER_DATAPIECE_H__