Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
Any Class Reference

#include <any.pb.h>

Inheritance diagram for Any:
Inheritance graph
[legend]

Public Types

enum  : int { kTypeUrlFieldNumber = 1, kValueFieldNumber = 2 }
 

Public Member Functions

 Any ()
 
 Any (Any &&from) noexcept
 
 Any (const Any &from)
 
size_t ByteSizeLong () const final
 
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear () final
 
void clear_type_url ()
 
void clear_value ()
 
void CopyFrom (const ::PROTOBUF_NAMESPACE_ID::Message &from) final
 
void CopyFrom (const Any &from)
 
int GetCachedSize () const final
 
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata () const final
 
::PROTOBUF_NAMESPACE_ID::uint8 * InternalSerializeWithCachedSizesToArray (::PROTOBUF_NAMESPACE_ID::uint8 *target) const final
 
template<typename T >
bool Is () const
 
bool IsInitialized () const final
 
void MergeFrom (const ::PROTOBUF_NAMESPACE_ID::Message &from) final
 
void MergeFrom (const Any &from)
 
bool MergePartialFromCodedStream (::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *input) final
 
std::stringmutable_type_url ()
 
std::stringmutable_value ()
 
AnyNew () const final
 
AnyNew (::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
 
Anyoperator= (Any &&from) noexcept
 
Anyoperator= (const Any &from)
 
void PackFrom (const ::PROTOBUF_NAMESPACE_ID::Message &message)
 
void PackFrom (const ::PROTOBUF_NAMESPACE_ID::Message &message, const std::string &type_url_prefix)
 
std::stringrelease_type_url ()
 
std::stringrelease_value ()
 
void SerializeWithCachedSizes (::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *output) const final
 
void set_allocated_type_url (std::string *type_url)
 
void set_allocated_value (std::string *value)
 
void set_type_url (const char *value)
 
void set_type_url (const char *value, size_t size)
 
void set_type_url (const std::string &value)
 
void set_type_url (std::string &&value)
 
void set_value (const char *value)
 
void set_value (const std::string &value)
 
void set_value (const void *value, size_t size)
 
void set_value (std::string &&value)
 
void Swap (Any *other)
 
const std::stringtype_url () const
 
bool UnpackTo (::PROTOBUF_NAMESPACE_ID::Message *message) const
 
const std::stringvalue () const
 
virtual ~Any ()
 

Static Public Member Functions

static const Anydefault_instance ()
 
static const ::PROTOBUF_NAMESPACE_ID::Descriptordescriptor ()
 
static bool GetAnyFieldDescriptors (const ::PROTOBUF_NAMESPACE_ID::Message &message, const ::PROTOBUF_NAMESPACE_ID::FieldDescriptor **type_url_field, const ::PROTOBUF_NAMESPACE_ID::FieldDescriptor **value_field)
 
static const ::PROTOBUF_NAMESPACE_ID::DescriptorGetDescriptor ()
 
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection ()
 
static void InitAsDefaultInstance ()
 
static const Anyinternal_default_instance ()
 
static bool ParseAnyTypeUrl (const string &type_url, std::string *full_type_name)
 

Static Public Attributes

static constexpr int kIndexInFileMessages
 

Private Member Functions

inline ::PROTOBUF_NAMESPACE_ID::Arena * GetArenaNoVirtual () const
 
void InternalSwap (Any *other)
 
voidMaybeArenaPtr () const
 
void SetCachedSize (int size) const final
 
void SharedCtor ()
 
void SharedDtor ()
 

Static Private Member Functions

::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName ()
 
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic ()
 

Private Attributes

::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata _any_metadata_
 
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
 
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
 
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_url_
 
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_
 

Friends

class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata
 
struct ::TableStruct_google_2fprotobuf_2fany_2eproto
 
void swap (Any &a, Any &b)
 

Detailed Description

Definition at line 70 of file any.pb.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kTypeUrlFieldNumber 
kValueFieldNumber 

Definition at line 197 of file any.pb.h.

Constructor & Destructor Documentation

◆ Any() [1/3]

Any::Any ( )

Definition at line 118 of file any.pb.cc.

◆ ~Any()

Any::~Any ( )
virtual

Definition at line 145 of file any.pb.cc.

◆ Any() [2/3]

Any::Any ( const Any from)

Definition at line 123 of file any.pb.cc.

◆ Any() [3/3]

Any::Any ( Any &&  from)
inlinenoexcept

Definition at line 77 of file any.pb.h.

Member Function Documentation

◆ ByteSizeLong()

size_t Any::ByteSizeLong ( ) const
final

Definition at line 335 of file any.pb.cc.

◆ Clear()

void Any::Clear ( )
final

Definition at line 164 of file any.pb.cc.

◆ clear_type_url()

void Any::clear_type_url ( )
inline

Definition at line 246 of file any.pb.h.

◆ clear_value()

void Any::clear_value ( )
inline

Definition at line 297 of file any.pb.h.

◆ CopyFrom() [1/2]

void Any::CopyFrom ( const ::PROTOBUF_NAMESPACE_ID::Message &  from)
final

Definition at line 399 of file any.pb.cc.

◆ CopyFrom() [2/2]

void Any::CopyFrom ( const Any from)

Definition at line 406 of file any.pb.cc.

◆ default_instance()

const Any & Any::default_instance ( )
static

Definition at line 158 of file any.pb.cc.

◆ descriptor()

static const ::PROTOBUF_NAMESPACE_ID::Descriptor* Any::descriptor ( )
inlinestatic

Definition at line 95 of file any.pb.h.

◆ FullMessageName()

::PROTOBUF_NAMESPACE_ID::StringPiece Any::FullMessageName ( )
inlinestaticprivate

Definition at line 172 of file any.pb.h.

◆ GetAnyFieldDescriptors()

bool Any::GetAnyFieldDescriptors ( const ::PROTOBUF_NAMESPACE_ID::Message &  message,
const ::PROTOBUF_NAMESPACE_ID::FieldDescriptor **  type_url_field,
const ::PROTOBUF_NAMESPACE_ID::FieldDescriptor **  value_field 
)
static

Definition at line 101 of file any.pb.cc.

◆ GetArenaNoVirtual()

inline ::PROTOBUF_NAMESPACE_ID::Arena* Any::GetArenaNoVirtual ( ) const
inlineprivate

Definition at line 176 of file any.pb.h.

◆ GetCachedSize()

int Any::GetCachedSize ( ) const
inlinefinal

Definition at line 164 of file any.pb.h.

◆ GetDescriptor()

static const ::PROTOBUF_NAMESPACE_ID::Descriptor* Any::GetDescriptor ( )
inlinestatic

Definition at line 98 of file any.pb.h.

◆ GetMetadata()

PROTOBUF_NAMESPACE_ID::Metadata Any::GetMetadata ( ) const
final

Definition at line 426 of file any.pb.cc.

◆ GetMetadataStatic()

::PROTOBUF_NAMESPACE_ID::Metadata Any::GetMetadataStatic ( )
inlinestaticprivate

Definition at line 186 of file any.pb.h.

◆ GetReflection()

static const ::PROTOBUF_NAMESPACE_ID::Reflection* Any::GetReflection ( )
inlinestatic

Definition at line 101 of file any.pb.h.

◆ InitAsDefaultInstance()

PROTOBUF_NAMESPACE_OPEN void Any::InitAsDefaultInstance ( )
static

Definition at line 87 of file any.pb.cc.

◆ internal_default_instance()

static const Any* Any::internal_default_instance ( )
inlinestatic

Definition at line 107 of file any.pb.h.

◆ InternalSerializeWithCachedSizesToArray()

PROTOBUF_NAMESPACE_ID::uint8 * Any::InternalSerializeWithCachedSizesToArray ( ::PROTOBUF_NAMESPACE_ID::uint8 *  target) const
final

Definition at line 303 of file any.pb.cc.

◆ InternalSwap()

void Any::InternalSwap ( Any other)
private

Definition at line 417 of file any.pb.cc.

◆ Is()

template<typename T >
bool Any::Is ( ) const
inline

Definition at line 124 of file any.pb.h.

◆ IsInitialized()

bool Any::IsInitialized ( ) const
final

Definition at line 413 of file any.pb.cc.

◆ MaybeArenaPtr()

void* Any::MaybeArenaPtr ( ) const
inlineprivate

Definition at line 179 of file any.pb.h.

◆ MergeFrom() [1/2]

void Any::MergeFrom ( const ::PROTOBUF_NAMESPACE_ID::Message &  from)
final

Definition at line 367 of file any.pb.cc.

◆ MergeFrom() [2/2]

void Any::MergeFrom ( const Any from)

Definition at line 382 of file any.pb.cc.

◆ MergePartialFromCodedStream()

bool Any::MergePartialFromCodedStream ( ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *  input)
final

Definition at line 217 of file any.pb.cc.

◆ mutable_type_url()

std::string * Any::mutable_type_url ( )
inline

Definition at line 276 of file any.pb.h.

◆ mutable_value()

std::string * Any::mutable_value ( )
inline

Definition at line 327 of file any.pb.h.

◆ New() [1/2]

Any* Any::New ( ) const
inlinefinal

Definition at line 139 of file any.pb.h.

◆ New() [2/2]

Any* Any::New ( ::PROTOBUF_NAMESPACE_ID::Arena *  arena) const
inlinefinal

Definition at line 143 of file any.pb.h.

◆ operator=() [1/2]

Any& Any::operator= ( Any &&  from)
inlinenoexcept

Definition at line 86 of file any.pb.h.

◆ operator=() [2/2]

Any& Any::operator= ( const Any from)
inline

Definition at line 82 of file any.pb.h.

◆ PackFrom() [1/2]

void Any::PackFrom ( const ::PROTOBUF_NAMESPACE_ID::Message &  message)

Definition at line 89 of file any.pb.cc.

◆ PackFrom() [2/2]

void Any::PackFrom ( const ::PROTOBUF_NAMESPACE_ID::Message &  message,
const std::string type_url_prefix 
)

Definition at line 93 of file any.pb.cc.

◆ ParseAnyTypeUrl()

bool Any::ParseAnyTypeUrl ( const string type_url,
std::string full_type_name 
)
static

Definition at line 108 of file any.pb.cc.

◆ release_type_url()

std::string * Any::release_type_url ( )
inline

Definition at line 281 of file any.pb.h.

◆ release_value()

std::string * Any::release_value ( )
inline

Definition at line 332 of file any.pb.h.

◆ SerializeWithCachedSizes()

void Any::SerializeWithCachedSizes ( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *  output) const
final

Definition at line 274 of file any.pb.cc.

◆ set_allocated_type_url()

void Any::set_allocated_type_url ( std::string type_url)
inline

Definition at line 286 of file any.pb.h.

◆ set_allocated_value()

void Any::set_allocated_value ( std::string value)
inline

Definition at line 337 of file any.pb.h.

◆ set_type_url() [1/4]

void Any::set_type_url ( const char *  value)
inline

Definition at line 264 of file any.pb.h.

◆ set_type_url() [2/4]

void Any::set_type_url ( const char *  value,
size_t  size 
)
inline

Definition at line 270 of file any.pb.h.

◆ set_type_url() [3/4]

void Any::set_type_url ( const std::string value)
inline

Definition at line 253 of file any.pb.h.

◆ set_type_url() [4/4]

void Any::set_type_url ( std::string &&  value)
inline

Definition at line 258 of file any.pb.h.

◆ set_value() [1/4]

void Any::set_value ( const char *  value)
inline

Definition at line 315 of file any.pb.h.

◆ set_value() [2/4]

void Any::set_value ( const std::string value)
inline

Definition at line 304 of file any.pb.h.

◆ set_value() [3/4]

void Any::set_value ( const void value,
size_t  size 
)
inline

Definition at line 321 of file any.pb.h.

◆ set_value() [4/4]

void Any::set_value ( std::string &&  value)
inline

Definition at line 309 of file any.pb.h.

◆ SetCachedSize()

void Any::SetCachedSize ( int  size) const
finalprivate

Definition at line 155 of file any.pb.cc.

◆ SharedCtor()

void Any::SharedCtor ( )
inlineprivate

Definition at line 139 of file any.pb.cc.

◆ SharedDtor()

void Any::SharedDtor ( )
inlineprivate

Definition at line 150 of file any.pb.cc.

◆ Swap()

void Any::Swap ( Any other)
inline

Definition at line 132 of file any.pb.h.

◆ type_url()

const std::string & Any::type_url ( ) const
inline

Definition at line 249 of file any.pb.h.

◆ UnpackTo()

bool Any::UnpackTo ( ::PROTOBUF_NAMESPACE_ID::Message *  message) const

Definition at line 98 of file any.pb.cc.

◆ value()

const std::string & Any::value ( ) const
inline

Definition at line 300 of file any.pb.h.

Friends And Related Function Documentation

◆ ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata

friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata
friend

Definition at line 171 of file any.pb.h.

◆ ::TableStruct_google_2fprotobuf_2fany_2eproto

Definition at line 232 of file any.pb.h.

◆ swap

void swap ( Any a,
Any b 
)
friend

Definition at line 129 of file any.pb.h.

Member Data Documentation

◆ _any_metadata_

::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata Any::_any_metadata_
private

Definition at line 231 of file any.pb.h.

◆ _cached_size_

mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize Any::_cached_size_
private

Definition at line 230 of file any.pb.h.

◆ _internal_metadata_

::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena Any::_internal_metadata_
private

Definition at line 225 of file any.pb.h.

◆ kIndexInFileMessages

constexpr int Any::kIndexInFileMessages
staticconstexpr
Initial value:
=
0

Definition at line 111 of file any.pb.h.

◆ type_url_

::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr Any::type_url_
private

Definition at line 228 of file any.pb.h.

◆ value_

::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr Any::value_
private

Definition at line 229 of file any.pb.h.


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


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