Skip to content

Class mediapipe::tool::ProtoUtilLite

ClassList > mediapipe > tool > ProtoUtilLite

Classes

Type Name
class FieldAccess
struct ProtoPathEntry

Public Types

Type Name
typedef WireFormatLite::FieldType FieldType
typedef std::string FieldValue
typedef std::vector< ProtoPathEntry > ProtoPath
typedef proto_ns::internal::WireFormatLite WireFormatLite

Public Static Functions

Type Name
absl::Status Deserialize (const std::vector< FieldValue > & field_values, FieldType field_type, std::vector< std::string > * result)
absl::Status GetFieldCount (const FieldValue & message, ProtoPath proto_path, FieldType field_type, int * field_count)
absl::Status GetFieldRange (const FieldValue & message, ProtoPath proto_path, int length, FieldType field_type, std::vector< FieldValue > * field_values)
std::string ParseTypeUrl (absl::string_view type_url)
absl::Status ReadValue (absl::string_view field_bytes, FieldType field_type, absl::string_view message_type, mediapipe::FieldData * result)
absl::Status ReplaceFieldRange (FieldValue * message, ProtoPath proto_path, int length, FieldType field_type, const std::vector< FieldValue > & field_values)
absl::Status Serialize (const std::vector< std::string > & text_values, FieldType field_type, std::vector< FieldValue > * result)
std::string TypeUrl (absl::string_view type_name)
absl::Status WriteValue (const mediapipe::FieldData & value, FieldType field_type, std::string * field_bytes)

Public Types Documentation

typedef FieldType

using mediapipe::tool::ProtoUtilLite::FieldType =  WireFormatLite::FieldType;

typedef FieldValue

using mediapipe::tool::ProtoUtilLite::FieldValue =  std::string;

typedef ProtoPath

using mediapipe::tool::ProtoUtilLite::ProtoPath =  std::vector<ProtoPathEntry>;

typedef WireFormatLite

using mediapipe::tool::ProtoUtilLite::WireFormatLite =  proto_ns::internal::WireFormatLite;

Public Static Functions Documentation

function Deserialize

static absl::Status mediapipe::tool::ProtoUtilLite::Deserialize (
    const std::vector< FieldValue > & field_values,
    FieldType field_type,
    std::vector< std::string > * result
) 

function GetFieldCount

static absl::Status mediapipe::tool::ProtoUtilLite::GetFieldCount (
    const FieldValue & message,
    ProtoPath proto_path,
    FieldType field_type,
    int * field_count
) 

function GetFieldRange

static absl::Status mediapipe::tool::ProtoUtilLite::GetFieldRange (
    const FieldValue & message,
    ProtoPath proto_path,
    int length,
    FieldType field_type,
    std::vector< FieldValue > * field_values
) 

function ParseTypeUrl

static std::string mediapipe::tool::ProtoUtilLite::ParseTypeUrl (
    absl::string_view type_url
) 

function ReadValue

static absl::Status mediapipe::tool::ProtoUtilLite::ReadValue (
    absl::string_view field_bytes,
    FieldType field_type,
    absl::string_view message_type,
    mediapipe::FieldData * result
) 

function ReplaceFieldRange

static absl::Status mediapipe::tool::ProtoUtilLite::ReplaceFieldRange (
    FieldValue * message,
    ProtoPath proto_path,
    int length,
    FieldType field_type,
    const std::vector< FieldValue > & field_values
) 

function Serialize

static absl::Status mediapipe::tool::ProtoUtilLite::Serialize (
    const std::vector< std::string > & text_values,
    FieldType field_type,
    std::vector< FieldValue > * result
) 

function TypeUrl

static std::string mediapipe::tool::ProtoUtilLite::TypeUrl (
    absl::string_view type_name
) 

function WriteValue

static absl::Status mediapipe::tool::ProtoUtilLite::WriteValue (
    const mediapipe::FieldData & value,
    FieldType field_type,
    std::string * field_bytes
) 


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/framework/tool/proto_util_lite.h