Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
google::protobuf::util::converter::ProtoStreamObjectSource Class Reference

#include <protostream_objectsource.h>

Inheritance diagram for google::protobuf::util::converter::ProtoStreamObjectSource:
Inheritance graph
[legend]

Public Member Functions

util::Status NamedWriteTo (StringPiece name, ObjectWriter *ow) const override
 
 ProtoStreamObjectSource (io::CodedInputStream *stream, TypeResolver *type_resolver, const google::protobuf::Type &type)
 
void set_max_recursion_depth (int max_depth)
 
void set_preserve_proto_field_names (bool value)
 
void set_use_ints_for_enums (bool value)
 
void set_use_lower_camel_for_enums (bool value)
 
 ~ProtoStreamObjectSource () override
 
- Public Member Functions inherited from google::protobuf::util::converter::ObjectSource
virtual util::Status WriteTo (ObjectWriter *ow) const
 
virtual ~ObjectSource ()
 

Protected Member Functions

const google::protobuf::FieldFindAndVerifyField (const google::protobuf::Type &type, uint32 tag) const
 
const std::string ReadFieldValueAsString (const google::protobuf::Field &field) const
 
virtual util::Status RenderField (const google::protobuf::Field *field, StringPiece field_name, ObjectWriter *ow) const
 
virtual util::StatusOr< uint32RenderList (const google::protobuf::Field *field, StringPiece name, uint32 list_tag, ObjectWriter *ow) const
 
virtual util::Status WriteMessage (const google::protobuf::Type &descriptor, StringPiece name, const uint32 end_tag, bool include_start_and_end, ObjectWriter *ow) const
 
- Protected Member Functions inherited from google::protobuf::util::converter::ObjectSource
 ObjectSource ()
 

Private Types

typedef util::Status(* TypeRenderer) (const ProtoStreamObjectSource *, const google::protobuf::Type &, StringPiece, ObjectWriter *)
 

Private Member Functions

 GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS (ProtoStreamObjectSource)
 
util::Status IncrementRecursionDepth (StringPiece type_name, StringPiece field_name) const
 
bool IsMap (const google::protobuf::Field &field) const
 
 ProtoStreamObjectSource (io::CodedInputStream *stream, const TypeInfo *typeinfo, const google::protobuf::Type &type)
 
std::pair< int64, int32ReadSecondsAndNanos (const google::protobuf::Type &type) const
 
util::StatusOr< uint32RenderMap (const google::protobuf::Field *field, StringPiece name, uint32 list_tag, ObjectWriter *ow) const
 
util::Status RenderNonMessageField (const google::protobuf::Field *field, StringPiece field_name, ObjectWriter *ow) const
 
util::Status RenderPacked (const google::protobuf::Field *field, ObjectWriter *ow) const
 

Static Private Member Functions

static void DeleteRendererMap ()
 
static TypeRendererFindTypeRenderer (const std::string &type_url)
 
static void InitRendererMap ()
 
static util::Status RenderAny (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderBool (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderBytes (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderDouble (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderDuration (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderFieldMask (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderFloat (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderInt32 (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderInt64 (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderString (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderStruct (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderStructListValue (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderStructValue (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderTimestamp (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderUInt32 (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 
static util::Status RenderUInt64 (const ProtoStreamObjectSource *os, const google::protobuf::Type &type, StringPiece name, ObjectWriter *ow)
 

Private Attributes

bool add_trailing_zeros_for_timestamp_and_duration_
 
int max_recursion_depth_
 
bool own_typeinfo_
 
bool preserve_proto_field_names_
 
int recursion_depth_
 
bool render_unknown_enum_values_
 
bool render_unknown_fields_
 
io::CodedInputStreamstream_
 
bool suppress_empty_object_
 
const google::protobuf::Typetype_
 
const TypeInfotypeinfo_
 
bool use_ints_for_enums_
 
bool use_lower_camel_for_enums_
 

Static Private Attributes

static std::unordered_map< std::string, TypeRenderer > * renderers_ = NULL
 

Detailed Description

Definition at line 72 of file protostream_objectsource.h.

Member Typedef Documentation

◆ TypeRenderer

typedef util::Status(* google::protobuf::util::converter::ProtoStreamObjectSource::TypeRenderer) (const ProtoStreamObjectSource *, const google::protobuf::Type &, StringPiece, ObjectWriter *)
private

Definition at line 168 of file protostream_objectsource.h.

Constructor & Destructor Documentation

◆ ProtoStreamObjectSource() [1/2]

google::protobuf::util::converter::ProtoStreamObjectSource::ProtoStreamObjectSource ( io::CodedInputStream stream,
TypeResolver type_resolver,
const google::protobuf::Type type 
)

Definition at line 118 of file protostream_objectsource.cc.

◆ ~ProtoStreamObjectSource()

google::protobuf::util::converter::ProtoStreamObjectSource::~ProtoStreamObjectSource ( )
override

Definition at line 156 of file protostream_objectsource.cc.

◆ ProtoStreamObjectSource() [2/2]

google::protobuf::util::converter::ProtoStreamObjectSource::ProtoStreamObjectSource ( io::CodedInputStream stream,
const TypeInfo typeinfo,
const google::protobuf::Type type 
)
private

Definition at line 137 of file protostream_objectsource.cc.

Member Function Documentation

◆ DeleteRendererMap()

void google::protobuf::util::converter::ProtoStreamObjectSource::DeleteRendererMap ( )
staticprivate

Definition at line 751 of file protostream_objectsource.cc.

◆ FindAndVerifyField()

const google::protobuf::Field * google::protobuf::util::converter::ProtoStreamObjectSource::FindAndVerifyField ( const google::protobuf::Type type,
uint32  tag 
) const
protected

Definition at line 167 of file protostream_objectsource.cc.

◆ FindTypeRenderer()

ProtoStreamObjectSource::TypeRenderer * google::protobuf::util::converter::ProtoStreamObjectSource::FindTypeRenderer ( const std::string type_url)
staticprivate

Definition at line 758 of file protostream_objectsource.cc.

◆ GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS()

google::protobuf::util::converter::ProtoStreamObjectSource::GOOGLE_DISALLOW_IMPLICIT_CONSTRUCTORS ( ProtoStreamObjectSource  )
private

◆ IncrementRecursionDepth()

Status google::protobuf::util::converter::ProtoStreamObjectSource::IncrementRecursionDepth ( StringPiece  type_name,
StringPiece  field_name 
) const
private

Definition at line 1093 of file protostream_objectsource.cc.

◆ InitRendererMap()

void google::protobuf::util::converter::ProtoStreamObjectSource::InitRendererMap ( )
staticprivate

Definition at line 713 of file protostream_objectsource.cc.

◆ IsMap()

bool google::protobuf::util::converter::ProtoStreamObjectSource::IsMap ( const google::protobuf::Field field) const
private

Definition at line 1056 of file protostream_objectsource.cc.

◆ NamedWriteTo()

Status google::protobuf::util::converter::ProtoStreamObjectSource::NamedWriteTo ( StringPiece  name,
ObjectWriter ow 
) const
overridevirtual

◆ ReadFieldValueAsString()

const std::string google::protobuf::util::converter::ProtoStreamObjectSource::ReadFieldValueAsString ( const google::protobuf::Field field) const
protected

Definition at line 936 of file protostream_objectsource.cc.

◆ ReadSecondsAndNanos()

std::pair< int64, int32 > google::protobuf::util::converter::ProtoStreamObjectSource::ReadSecondsAndNanos ( const google::protobuf::Type type) const
private

Definition at line 1064 of file protostream_objectsource.cc.

◆ RenderAny()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderAny ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 593 of file protostream_objectsource.cc.

◆ RenderBool()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderBool ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 486 of file protostream_objectsource.cc.

◆ RenderBytes()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderBytes ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 517 of file protostream_objectsource.cc.

◆ RenderDouble()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderDouble ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 402 of file protostream_objectsource.cc.

◆ RenderDuration()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderDuration ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 360 of file protostream_objectsource.cc.

◆ RenderField()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderField ( const google::protobuf::Field field,
StringPiece  field_name,
ObjectWriter ow 
) const
protectedvirtual

Definition at line 764 of file protostream_objectsource.cc.

◆ RenderFieldMask()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderFieldMask ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 676 of file protostream_objectsource.cc.

◆ RenderFloat()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderFloat ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 416 of file protostream_objectsource.cc.

◆ RenderInt32()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderInt32 ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 458 of file protostream_objectsource.cc.

◆ RenderInt64()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderInt64 ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 430 of file protostream_objectsource.cc.

◆ RenderList()

StatusOr< uint32 > google::protobuf::util::converter::ProtoStreamObjectSource::RenderList ( const google::protobuf::Field field,
StringPiece  name,
uint32  list_tag,
ObjectWriter ow 
) const
protectedvirtual

Definition at line 255 of file protostream_objectsource.cc.

◆ RenderMap()

StatusOr< uint32 > google::protobuf::util::converter::ProtoStreamObjectSource::RenderMap ( const google::protobuf::Field field,
StringPiece  name,
uint32  list_tag,
ObjectWriter ow 
) const
private

Definition at line 277 of file protostream_objectsource.cc.

◆ RenderNonMessageField()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderNonMessageField ( const google::protobuf::Field field,
StringPiece  field_name,
ObjectWriter ow 
) const
private

Definition at line 808 of file protostream_objectsource.cc.

◆ RenderPacked()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderPacked ( const google::protobuf::Field field,
ObjectWriter ow 
) const
private

Definition at line 323 of file protostream_objectsource.cc.

◆ RenderString()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderString ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 501 of file protostream_objectsource.cc.

◆ RenderStruct()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderStruct ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 533 of file protostream_objectsource.cc.

◆ RenderStructListValue()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderStructListValue ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 569 of file protostream_objectsource.cc.

◆ RenderStructValue()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderStructValue ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 552 of file protostream_objectsource.cc.

◆ RenderTimestamp()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderTimestamp ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 336 of file protostream_objectsource.cc.

◆ RenderUInt32()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderUInt32 ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 472 of file protostream_objectsource.cc.

◆ RenderUInt64()

Status google::protobuf::util::converter::ProtoStreamObjectSource::RenderUInt64 ( const ProtoStreamObjectSource os,
const google::protobuf::Type type,
StringPiece  name,
ObjectWriter ow 
)
staticprivate

Definition at line 444 of file protostream_objectsource.cc.

◆ set_max_recursion_depth()

void google::protobuf::util::converter::ProtoStreamObjectSource::set_max_recursion_depth ( int  max_depth)
inline

Definition at line 123 of file protostream_objectsource.h.

◆ set_preserve_proto_field_names()

void google::protobuf::util::converter::ProtoStreamObjectSource::set_preserve_proto_field_names ( bool  value)
inline

Definition at line 116 of file protostream_objectsource.h.

◆ set_use_ints_for_enums()

void google::protobuf::util::converter::ProtoStreamObjectSource::set_use_ints_for_enums ( bool  value)
inline

Definition at line 113 of file protostream_objectsource.h.

◆ set_use_lower_camel_for_enums()

void google::protobuf::util::converter::ProtoStreamObjectSource::set_use_lower_camel_for_enums ( bool  value)
inline

Definition at line 107 of file protostream_objectsource.h.

◆ WriteMessage()

Status google::protobuf::util::converter::ProtoStreamObjectSource::WriteMessage ( const google::protobuf::Type descriptor,
StringPiece  name,
const uint32  end_tag,
bool  include_start_and_end,
ObjectWriter ow 
) const
protectedvirtual

Definition at line 187 of file protostream_objectsource.cc.

Member Data Documentation

◆ add_trailing_zeros_for_timestamp_and_duration_

bool google::protobuf::util::converter::ProtoStreamObjectSource::add_trailing_zeros_for_timestamp_and_duration_
private

Definition at line 321 of file protostream_objectsource.h.

◆ max_recursion_depth_

int google::protobuf::util::converter::ProtoStreamObjectSource::max_recursion_depth_
private

Definition at line 312 of file protostream_objectsource.h.

◆ own_typeinfo_

bool google::protobuf::util::converter::ProtoStreamObjectSource::own_typeinfo_
private

Definition at line 293 of file protostream_objectsource.h.

◆ preserve_proto_field_names_

bool google::protobuf::util::converter::ProtoStreamObjectSource::preserve_proto_field_names_
private

Definition at line 306 of file protostream_objectsource.h.

◆ recursion_depth_

int google::protobuf::util::converter::ProtoStreamObjectSource::recursion_depth_
mutableprivate

Definition at line 309 of file protostream_objectsource.h.

◆ render_unknown_enum_values_

bool google::protobuf::util::converter::ProtoStreamObjectSource::render_unknown_enum_values_
private

Definition at line 318 of file protostream_objectsource.h.

◆ render_unknown_fields_

bool google::protobuf::util::converter::ProtoStreamObjectSource::render_unknown_fields_
private

Definition at line 315 of file protostream_objectsource.h.

◆ renderers_

std::unordered_map< std::string, ProtoStreamObjectSource::TypeRenderer > * google::protobuf::util::converter::ProtoStreamObjectSource::renderers_ = NULL
staticprivate

Definition at line 258 of file protostream_objectsource.h.

◆ stream_

io::CodedInputStream* google::protobuf::util::converter::ProtoStreamObjectSource::stream_
private

Definition at line 285 of file protostream_objectsource.h.

◆ suppress_empty_object_

bool google::protobuf::util::converter::ProtoStreamObjectSource::suppress_empty_object_
private

Definition at line 326 of file protostream_objectsource.h.

◆ type_

const google::protobuf::Type& google::protobuf::util::converter::ProtoStreamObjectSource::type_
private

Definition at line 296 of file protostream_objectsource.h.

◆ typeinfo_

const TypeInfo* google::protobuf::util::converter::ProtoStreamObjectSource::typeinfo_
private

Definition at line 289 of file protostream_objectsource.h.

◆ use_ints_for_enums_

bool google::protobuf::util::converter::ProtoStreamObjectSource::use_ints_for_enums_
private

Definition at line 303 of file protostream_objectsource.h.

◆ use_lower_camel_for_enums_

bool google::protobuf::util::converter::ProtoStreamObjectSource::use_lower_camel_for_enums_
private

Definition at line 300 of file protostream_objectsource.h.


The documentation for this class was generated from the following files:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:10