31 #ifndef GOOGLE_PROTOBUF_UTIL_CONVERTER_PROTO_WRITER_H__ 32 #define GOOGLE_PROTOBUF_UTIL_CONVERTER_PROTO_WRITER_H__ 52 class CodedOutputStream;
67 class ObjectLocationTracker;
88 return RenderDataPiece(name,
DataPiece(value));
91 return RenderDataPiece(name,
DataPiece(value));
94 return RenderDataPiece(name,
DataPiece(value));
97 return RenderDataPiece(name,
DataPiece(value));
100 return RenderDataPiece(name,
DataPiece(value));
103 return RenderDataPiece(name,
DataPiece(value));
106 return RenderDataPiece(name,
DataPiece(value));
109 return RenderDataPiece(name,
110 DataPiece(value, use_strict_base64_decoding()));
113 return RenderDataPiece(
114 name,
DataPiece(value,
false, use_strict_base64_decoding()));
117 return RenderDataPiece(name, DataPiece::NullData());
127 return element_ !=
NULL ? *element_ : *tracker_;
168 return parent_field_;
179 return static_cast<ProtoElement*
>(BaseElement::parent());
187 void TakeOneofIndex(
int32 index);
208 std::set<const google::protobuf::Field*> required_fields_;
209 const int size_index_;
254 void WriteRootMessage();
302 std::deque<SizeInfo> size_insert_;
309 strings::ByteSink* output_;
330 #endif // GOOGLE_PROTOBUF_UTIL_CONVERTER_PROTO_WRITER_H__ virtual ProtoWriter * RenderBytes(StringPiece name, StringPiece value)
Definition: proto_writer.h:112
ErrorListener * listener()
Definition: proto_writer.h:141
virtual ProtoWriter * RenderInt64(StringPiece name, int64 value)
Definition: proto_writer.h:96
Definition: zero_copy_stream_impl_lite.h:133
const FieldDescriptor * field
Definition: parser_unittest.cc:2279
void IncrementInvalidDepth()
Definition: proto_writer.h:137
NSMutableData * buffer_
Definition: GPBCodedOutputStream.m:49
virtual ProtoWriter * RenderDouble(StringPiece name, double value)
Definition: proto_writer.h:102
int size
Definition: proto_writer.h:224
void DecrementInvalidDepth()
Definition: proto_writer.h:138
Definition: structured_objectwriter.h:69
const TypeInfo * typeinfo()
Definition: proto_writer.h:143
cricket::VideoAdapter adapter_
Definition: vie_encoder_unittest.cc:169
virtual ProtoWriter * RenderUint64(StringPiece name, uint64 value)
Definition: proto_writer.h:99
virtual ProtoWriter * RenderBool(StringPiece name, bool value)
Definition: proto_writer.h:87
Definition: type_info.h:47
Definition: type_resolver.h:54
int32_t int32
Definition: port.h:130
Definition: error_listener.h:54
virtual ProtoWriter * RenderUint32(StringPiece name, uint32 value)
Definition: proto_writer.h:93
Definition: stringpiece.h:178
#define GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName)
Definition: macros.h:45
virtual ProtoElement * parent() const
Definition: proto_writer.h:178
int invalid_depth()
Definition: proto_writer.h:139
GLuint index
Definition: gl2.h:383
EGLAttrib * value
Definition: eglext.h:120
virtual ProtoWriter * RenderString(StringPiece name, StringPiece value)
Definition: proto_writer.h:108
virtual ProtoWriter * RenderInt32(StringPiece name, int32 value)
Definition: proto_writer.h:90
const LocationTrackerInterface & location()
Definition: proto_writer.h:126
google::protobuf::io::CodedOutputStream * stream()
Definition: proto_writer.h:134
const google::protobuf::Type & type() const
Definition: proto_writer.h:170
const int pos
Definition: proto_writer.h:223
uint32_t uint32
Definition: port.h:135
Definition: location_tracker.h:45
bool done()
Definition: proto_writer.h:131
EGLImageKHR EGLint * name
Definition: eglext.h:851
Definition: __init__.py:1
uint64_t uint64
Definition: port.h:136
std::string ToString(const T &value)
Definition: angleutils.h:163
Definition: type.pb.h:276
Definition: datapiece.h:60
Definition: type.pb.h:133
Definition: structured_objectwriter.h:59
EGLenum type
Definition: eglext.h:63
Definition: scoped_ptr.h:48
const google::protobuf::Field * parent_field() const
Definition: proto_writer.h:167
virtual ProtoElement * element()
Definition: proto_writer.h:230
int64_t int64
Definition: port.h:131
Definition: proto_writer.h:222
#define NULL
Definition: common_types.h:41
Definition: proto_writer.h:75
#define LIBPROTOBUF_EXPORT
Definition: port.h:97
Definition: gflags_completions.h:115
Definition: coded_stream.h:665
Type
Type of JSON value.
Definition: rapidjson.h:616
Definition: proto_writer.h:146
virtual ProtoWriter * RenderNull(StringPiece name)
Definition: proto_writer.h:116
GLuint GLsizei const GLchar * message
Definition: gl2ext.h:137
virtual ProtoWriter * RenderFloat(StringPiece name, float value)
Definition: proto_writer.h:105
virtual ~ProtoElement()
Definition: proto_writer.h:156