Skip to content

Namespace mediapipe::tool::options_field_util

Namespace List > mediapipe > tool > options_field_util

Namespaces

Type Name
namespace anonymous_namespace{options_field_util.cc}

Classes

Type Name
struct FieldPathEntry
struct ProtoEnum

Public Types

Type Name
typedef std::vector< FieldPathEntry > FieldPath
typedef WireFormatLite::FieldType FieldType

Public Functions

Type Name
FieldData AsFieldData (const proto_ns::MessageLite & message)
absl::StatusOr< FieldData > AsFieldData (Packet packet)
absl::StatusOr< Packet > AsPacket (const FieldData & data)
absl::Status FindExtension (const FieldData & message_data, FieldPathEntry * entry)
FieldPath GetExtensionPath (const std::string & parent_type, const std::string & extension_type, const std::string & field_name, bool is_protobuf_any)
absl::StatusOr< FieldData > GetField (const FieldData & message_data, const FieldPath & field_path)
absl::StatusOr< std::vector< FieldData > > GetFieldValues (const FieldData & message_data, const FieldPath & field_path)
absl::StatusOr< FieldData > GetGraphOptions (const FieldData & message_data, const std::string & extension_type)
absl::StatusOr< FieldData > GetNodeOptions (const FieldData & message_data, const std::string & extension_type)
absl::Status MergeFieldValues (FieldData & message_data, const FieldPath & field_path, const std::vector< FieldData > & values)
absl::StatusOr< FieldData > MergeMessages (const FieldData & base, const FieldData & over)
std::string ParseTypeUrl (absl::string_view type_url)
absl::StatusOr< Packet > ReadMessage (const std::string & value, const std::string & type_name)
absl::Status SetField (FieldData & message_data, const FieldPath & field_path, const FieldData & value)
absl::Status SetField (const FieldPath & field_path, const FieldData & value, FieldData * message_data)
absl::Status SetFieldValues (FieldData & message_data, const FieldPath & field_path, const std::vector< FieldData > & values)
void SetOptionsMessage (const FieldData & node_options, CalculatorGraphConfig::Node * node)
std::string TypeUrl (absl::string_view type_name)

Public Types Documentation

typedef FieldPath

using mediapipe::tool::options_field_util::FieldPath = typedef std::vector<FieldPathEntry>;

typedef FieldType

using mediapipe::tool::options_field_util::FieldType = typedef WireFormatLite::FieldType;

Public Functions Documentation

function AsFieldData

FieldData mediapipe::tool::options_field_util::AsFieldData (
    const proto_ns::MessageLite & message
) 

function AsFieldData

absl::StatusOr< FieldData > mediapipe::tool::options_field_util::AsFieldData (
    Packet packet
) 

function AsPacket

absl::StatusOr< Packet > mediapipe::tool::options_field_util::AsPacket (
    const FieldData & data
) 

function FindExtension

absl::Status mediapipe::tool::options_field_util::FindExtension (
    const FieldData & message_data,
    FieldPathEntry * entry
) 

function GetExtensionPath

FieldPath mediapipe::tool::options_field_util::GetExtensionPath (
    const std::string & parent_type,
    const std::string & extension_type,
    const std::string & field_name,
    bool is_protobuf_any
) 

function GetField

absl::StatusOr< FieldData > mediapipe::tool::options_field_util::GetField (
    const FieldData & message_data,
    const FieldPath & field_path
) 

function GetFieldValues

absl::StatusOr< std::vector< FieldData > > mediapipe::tool::options_field_util::GetFieldValues (
    const FieldData & message_data,
    const FieldPath & field_path
) 

function GetGraphOptions

absl::StatusOr< FieldData > mediapipe::tool::options_field_util::GetGraphOptions (
    const FieldData & message_data,
    const std::string & extension_type
) 

function GetNodeOptions

absl::StatusOr< FieldData > mediapipe::tool::options_field_util::GetNodeOptions (
    const FieldData & message_data,
    const std::string & extension_type
) 

function MergeFieldValues

absl::Status mediapipe::tool::options_field_util::MergeFieldValues (
    FieldData & message_data,
    const FieldPath & field_path,
    const std::vector< FieldData > & values
) 

function MergeMessages

absl::StatusOr< FieldData > mediapipe::tool::options_field_util::MergeMessages (
    const FieldData & base,
    const FieldData & over
) 

function ParseTypeUrl

std::string mediapipe::tool::options_field_util::ParseTypeUrl (
    absl::string_view type_url
) 

function ReadMessage

absl::StatusOr< Packet > mediapipe::tool::options_field_util::ReadMessage (
    const std::string & value,
    const std::string & type_name
) 

function SetField

absl::Status mediapipe::tool::options_field_util::SetField (
    FieldData & message_data,
    const FieldPath & field_path,
    const FieldData & value
) 

function SetField

absl::Status mediapipe::tool::options_field_util::SetField (
    const FieldPath & field_path,
    const FieldData & value,
    FieldData * message_data
) 

function SetFieldValues

absl::Status mediapipe::tool::options_field_util::SetFieldValues (
    FieldData & message_data,
    const FieldPath & field_path,
    const std::vector< FieldData > & values
) 

function SetOptionsMessage

void mediapipe::tool::options_field_util::SetOptionsMessage (
    const FieldData & node_options,
    CalculatorGraphConfig::Node * node
) 

function TypeUrl

std::string mediapipe::tool::options_field_util::TypeUrl (
    absl::string_view type_name
) 


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