Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
Value Class Reference

#include <struct.pb.h>

Inheritance diagram for Value:
Inheritance graph
[legend]

Classes

union  KindUnion
 

Public Types

enum  : int {
  kNullValueFieldNumber = 1, kNumberValueFieldNumber = 2, kStringValueFieldNumber = 3, kBoolValueFieldNumber = 4,
  kStructValueFieldNumber = 5, kListValueFieldNumber = 6
}
 
enum  KindCase {
  kNullValue = 1, kNumberValue = 2, kStringValue = 3, kBoolValue = 4,
  kStructValue = 5, kListValue = 6, KIND_NOT_SET = 0
}
 

Public Member Functions

bool bool_value () const
 
size_t ByteSizeLong () const final
 
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear () final
 
void clear_bool_value ()
 
void clear_kind ()
 
void clear_list_value ()
 
void clear_null_value ()
 
void clear_number_value ()
 
void clear_string_value ()
 
void clear_struct_value ()
 
void CopyFrom (const ::PROTOBUF_NAMESPACE_ID::Message &from) final
 
void CopyFrom (const Value &from)
 
inline ::PROTOBUF_NAMESPACE_ID::Arena * GetArena () const final
 
int GetCachedSize () const final
 
voidGetMaybeArenaPointer () const final
 
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata () const final
 
bool has_list_value () const
 
bool has_struct_value () const
 
::PROTOBUF_NAMESPACE_ID::uint8 * InternalSerializeWithCachedSizesToArray (::PROTOBUF_NAMESPACE_ID::uint8 *target) const final
 
bool IsInitialized () const final
 
KindCase kind_case () const
 
const PROTOBUF_NAMESPACE_ID::ListValuelist_value () const
 
void MergeFrom (const ::PROTOBUF_NAMESPACE_ID::Message &from) final
 
void MergeFrom (const Value &from)
 
bool MergePartialFromCodedStream (::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *input) final
 
PROTOBUF_NAMESPACE_ID::ListValuemutable_list_value ()
 
std::stringmutable_string_value ()
 
PROTOBUF_NAMESPACE_ID::Structmutable_struct_value ()
 
ValueNew () const final
 
ValueNew (::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
 
PROTOBUF_NAMESPACE_ID::NullValue null_value () const
 
double number_value () const
 
Valueoperator= (const Value &from)
 
Valueoperator= (Value &&from) noexcept
 
PROTOBUF_NAMESPACE_ID::ListValuerelease_list_value ()
 
std::stringrelease_string_value ()
 
PROTOBUF_NAMESPACE_ID::Structrelease_struct_value ()
 
void SerializeWithCachedSizes (::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *output) const final
 
void set_allocated_list_value (PROTOBUF_NAMESPACE_ID::ListValue *list_value)
 
void set_allocated_string_value (std::string *string_value)
 
void set_allocated_struct_value (PROTOBUF_NAMESPACE_ID::Struct *struct_value)
 
void set_bool_value (bool value)
 
void set_null_value (PROTOBUF_NAMESPACE_ID::NullValue value)
 
void set_number_value (double value)
 
void set_string_value (const char *value)
 
void set_string_value (const char *value, size_t size)
 
void set_string_value (const std::string &value)
 
void set_string_value (std::string &&value)
 
const std::stringstring_value () const
 
const PROTOBUF_NAMESPACE_ID::Structstruct_value () const
 
void Swap (Value *other)
 
PROTOBUF_NAMESPACE_ID::ListValueunsafe_arena_release_list_value ()
 
PROTOBUF_NAMESPACE_ID::Structunsafe_arena_release_struct_value ()
 
void unsafe_arena_set_allocated_list_value (PROTOBUF_NAMESPACE_ID::ListValue *list_value)
 
void unsafe_arena_set_allocated_struct_value (PROTOBUF_NAMESPACE_ID::Struct *struct_value)
 
void UnsafeArenaSwap (Value *other)
 
 Value ()
 
 Value (const Value &from)
 
 Value (Value &&from) noexcept
 
virtual ~Value ()
 

Static Public Member Functions

static const Valuedefault_instance ()
 
static const ::PROTOBUF_NAMESPACE_ID::Descriptordescriptor ()
 
static const ::PROTOBUF_NAMESPACE_ID::DescriptorGetDescriptor ()
 
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection ()
 
static void InitAsDefaultInstance ()
 
static const Valueinternal_default_instance ()
 

Static Public Attributes

static constexpr int kIndexInFileMessages
 

Protected Member Functions

 Value (::PROTOBUF_NAMESPACE_ID::Arena *arena)
 

Private Types

typedef void DestructorSkippable_
 
typedef void InternalArenaConstructable_
 

Private Member Functions

void clear_has_kind ()
 
inline ::PROTOBUF_NAMESPACE_ID::Arena * GetArenaNoVirtual () const
 
bool has_bool_value () const
 
bool has_kind () const
 
bool has_null_value () const
 
bool has_number_value () const
 
bool has_string_value () const
 
void InternalSwap (Value *other)
 
voidMaybeArenaPtr () const
 
void RegisterArenaDtor (::PROTOBUF_NAMESPACE_ID::Arena *arena)
 
void set_has_bool_value ()
 
void set_has_list_value ()
 
void set_has_null_value ()
 
void set_has_number_value ()
 
void set_has_string_value ()
 
void set_has_struct_value ()
 
void SetCachedSize (int size) const final
 
void SharedCtor ()
 
void SharedDtor ()
 

Static Private Member Functions

static void ArenaDtor (void *object)
 
::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName ()
 
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic ()
 

Private Attributes

mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
 
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
 
::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_ [1]
 
union Value::KindUnion kind_
 

Friends

template<typename T >
class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper
 
class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata
 
struct ::TableStruct_google_2fprotobuf_2fstruct_2eproto
 
void swap (Value &a, Value &b)
 

Detailed Description

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

Member Typedef Documentation

◆ DestructorSkippable_

Definition at line 541 of file struct.pb.h.

◆ InternalArenaConstructable_

Definition at line 540 of file struct.pb.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kNullValueFieldNumber 
kNumberValueFieldNumber 
kStringValueFieldNumber 
kBoolValueFieldNumber 
kStructValueFieldNumber 
kListValueFieldNumber 

Definition at line 446 of file struct.pb.h.

◆ KindCase

Enumerator
kNullValue 
kNumberValue 
kStringValue 
kBoolValue 
kStructValue 
kListValue 
KIND_NOT_SET 

Definition at line 346 of file struct.pb.h.

Constructor & Destructor Documentation

◆ Value() [1/4]

Value::Value ( )

Definition at line 602 of file struct.pb.cc.

◆ ~Value()

Value::~Value ( )
virtual

Definition at line 656 of file struct.pb.cc.

◆ Value() [2/4]

Value::Value ( const Value from)

Definition at line 614 of file struct.pb.cc.

◆ Value() [3/4]

Value::Value ( Value &&  from)
inlinenoexcept

Definition at line 311 of file struct.pb.h.

◆ Value() [4/4]

Value::Value ( ::PROTOBUF_NAMESPACE_ID::Arena *  arena)
explicitprotected

Definition at line 607 of file struct.pb.cc.

Member Function Documentation

◆ ArenaDtor()

void Value::ArenaDtor ( void object)
staticprivate

Definition at line 668 of file struct.pb.cc.

◆ bool_value()

bool Value::bool_value ( ) const
inline

Definition at line 942 of file struct.pb.h.

◆ ByteSizeLong()

size_t Value::ByteSizeLong ( ) const
final

Definition at line 1021 of file struct.pb.cc.

◆ Clear()

void Value::Clear ( )
final

Definition at line 723 of file struct.pb.cc.

◆ clear_bool_value()

void Value::clear_bool_value ( )
inline

Definition at line 936 of file struct.pb.h.

◆ clear_has_kind()

void Value::clear_has_kind ( )
inlineprivate

Definition at line 1091 of file struct.pb.h.

◆ clear_kind()

void Value::clear_kind ( )

Definition at line 683 of file struct.pb.cc.

◆ clear_list_value()

void Value::clear_list_value ( )
inline

Definition at line 1030 of file struct.pb.h.

◆ clear_null_value()

void Value::clear_null_value ( )
inline

Definition at line 758 of file struct.pb.h.

◆ clear_number_value()

void Value::clear_number_value ( )
inline

Definition at line 787 of file struct.pb.h.

◆ clear_string_value()

void Value::clear_string_value ( )
inline

Definition at line 816 of file struct.pb.h.

◆ clear_struct_value()

void Value::clear_struct_value ( )
inline

Definition at line 965 of file struct.pb.h.

◆ CopyFrom() [1/2]

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

Definition at line 1134 of file struct.pb.cc.

◆ CopyFrom() [2/2]

void Value::CopyFrom ( const Value from)

Definition at line 1141 of file struct.pb.cc.

◆ default_instance()

const Value & Value::default_instance ( )
static

Definition at line 677 of file struct.pb.cc.

◆ descriptor()

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

Definition at line 335 of file struct.pb.h.

◆ FullMessageName()

::PROTOBUF_NAMESPACE_ID::StringPiece Value::FullMessageName ( )
inlinestaticprivate

Definition at line 416 of file struct.pb.h.

◆ GetArena()

inline ::PROTOBUF_NAMESPACE_ID::Arena* Value::GetArena ( ) const
inlinefinal

Definition at line 329 of file struct.pb.h.

◆ GetArenaNoVirtual()

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

Definition at line 425 of file struct.pb.h.

◆ GetCachedSize()

int Value::GetCachedSize ( ) const
inlinefinal

Definition at line 408 of file struct.pb.h.

◆ GetDescriptor()

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

Definition at line 338 of file struct.pb.h.

◆ GetMaybeArenaPointer()

void* Value::GetMaybeArenaPointer ( ) const
inlinefinal

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

◆ GetMetadata()

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

Definition at line 1159 of file struct.pb.cc.

◆ GetMetadataStatic()

::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadataStatic ( )
inlinestaticprivate

Definition at line 435 of file struct.pb.h.

◆ GetReflection()

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

Definition at line 341 of file struct.pb.h.

◆ has_bool_value()

bool Value::has_bool_value ( ) const
inlineprivate

Definition at line 930 of file struct.pb.h.

◆ has_kind()

bool Value::has_kind ( ) const
inlineprivate

Definition at line 1088 of file struct.pb.h.

◆ has_list_value()

bool Value::has_list_value ( ) const
inline

Definition at line 1024 of file struct.pb.h.

◆ has_null_value()

bool Value::has_null_value ( ) const
inlineprivate

Definition at line 752 of file struct.pb.h.

◆ has_number_value()

bool Value::has_number_value ( ) const
inlineprivate

Definition at line 781 of file struct.pb.h.

◆ has_string_value()

bool Value::has_string_value ( ) const
inlineprivate

Definition at line 810 of file struct.pb.h.

◆ has_struct_value()

bool Value::has_struct_value ( ) const
inline

Definition at line 959 of file struct.pb.h.

◆ InitAsDefaultInstance()

void Value::InitAsDefaultInstance ( )
static

Definition at line 547 of file struct.pb.cc.

◆ internal_default_instance()

static const Value* Value::internal_default_instance ( )
inlinestatic

Definition at line 357 of file struct.pb.h.

◆ InternalSerializeWithCachedSizesToArray()

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

Definition at line 966 of file struct.pb.cc.

◆ InternalSwap()

void Value::InternalSwap ( Value other)
private

Definition at line 1152 of file struct.pb.cc.

◆ IsInitialized()

bool Value::IsInitialized ( ) const
final

Definition at line 1148 of file struct.pb.cc.

◆ kind_case()

Value::KindCase Value::kind_case ( ) const
inline

Definition at line 1094 of file struct.pb.h.

◆ list_value()

const PROTOBUF_NAMESPACE_ID::ListValue & Value::list_value ( ) const
inline

Definition at line 1052 of file struct.pb.h.

◆ MaybeArenaPtr()

void* Value::MaybeArenaPtr ( ) const
inlineprivate

Definition at line 428 of file struct.pb.h.

◆ MergeFrom() [1/2]

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

Definition at line 1081 of file struct.pb.cc.

◆ MergeFrom() [2/2]

void Value::MergeFrom ( const Value from)

Definition at line 1096 of file struct.pb.cc.

◆ MergePartialFromCodedStream()

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

Definition at line 805 of file struct.pb.cc.

◆ mutable_list_value()

PROTOBUF_NAMESPACE_ID::ListValue * Value::mutable_list_value ( )
inline

Definition at line 1077 of file struct.pb.h.

◆ mutable_string_value()

std::string * Value::mutable_string_value ( )
inline

Definition at line 875 of file struct.pb.h.

◆ mutable_struct_value()

PROTOBUF_NAMESPACE_ID::Struct * Value::mutable_struct_value ( )
inline

Definition at line 1012 of file struct.pb.h.

◆ New() [1/2]

Value* Value::New ( ) const
inlinefinal

Definition at line 383 of file struct.pb.h.

◆ New() [2/2]

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

Definition at line 387 of file struct.pb.h.

◆ null_value()

PROTOBUF_NAMESPACE_ID::NullValue Value::null_value ( ) const
inline

Definition at line 764 of file struct.pb.h.

◆ number_value()

double Value::number_value ( ) const
inline

Definition at line 793 of file struct.pb.h.

◆ operator=() [1/2]

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

Definition at line 316 of file struct.pb.h.

◆ operator=() [2/2]

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

Definition at line 320 of file struct.pb.h.

◆ RegisterArenaDtor()

void Value::RegisterArenaDtor ( ::PROTOBUF_NAMESPACE_ID::Arena *  arena)
inlineprivate

Definition at line 672 of file struct.pb.cc.

◆ release_list_value()

PROTOBUF_NAMESPACE_ID::ListValue * Value::release_list_value ( )
inline

Definition at line 1038 of file struct.pb.h.

◆ release_string_value()

std::string * Value::release_string_value ( )
inline

Definition at line 885 of file struct.pb.h.

◆ release_struct_value()

PROTOBUF_NAMESPACE_ID::Struct * Value::release_struct_value ( )
inline

Definition at line 973 of file struct.pb.h.

◆ SerializeWithCachedSizes()

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

Definition at line 915 of file struct.pb.cc.

◆ set_allocated_list_value()

void Value::set_allocated_list_value ( PROTOBUF_NAMESPACE_ID::ListValue list_value)

Definition at line 587 of file struct.pb.cc.

◆ set_allocated_string_value()

void Value::set_allocated_string_value ( std::string string_value)
inline

Definition at line 895 of file struct.pb.h.

◆ set_allocated_struct_value()

void Value::set_allocated_struct_value ( PROTOBUF_NAMESPACE_ID::Struct struct_value)

Definition at line 572 of file struct.pb.cc.

◆ set_bool_value()

void Value::set_bool_value ( bool  value)
inline

Definition at line 949 of file struct.pb.h.

◆ set_has_bool_value()

void Value::set_has_bool_value ( )
inlineprivate

Definition at line 933 of file struct.pb.h.

◆ set_has_list_value()

void Value::set_has_list_value ( )
inlineprivate

Definition at line 1027 of file struct.pb.h.

◆ set_has_null_value()

void Value::set_has_null_value ( )
inlineprivate

Definition at line 755 of file struct.pb.h.

◆ set_has_number_value()

void Value::set_has_number_value ( )
inlineprivate

Definition at line 784 of file struct.pb.h.

◆ set_has_string_value()

void Value::set_has_string_value ( )
inlineprivate

Definition at line 813 of file struct.pb.h.

◆ set_has_struct_value()

void Value::set_has_struct_value ( )
inlineprivate

Definition at line 962 of file struct.pb.h.

◆ set_null_value()

void Value::set_null_value ( PROTOBUF_NAMESPACE_ID::NullValue  value)
inline

Definition at line 771 of file struct.pb.h.

◆ set_number_value()

void Value::set_number_value ( double  value)
inline

Definition at line 800 of file struct.pb.h.

◆ set_string_value() [1/4]

void Value::set_string_value ( const char *  value)
inline

Definition at line 851 of file struct.pb.h.

◆ set_string_value() [2/4]

void Value::set_string_value ( const char *  value,
size_t  size 
)
inline

Definition at line 862 of file struct.pb.h.

◆ set_string_value() [3/4]

void Value::set_string_value ( const std::string value)
inline

Definition at line 830 of file struct.pb.h.

◆ set_string_value() [4/4]

void Value::set_string_value ( std::string &&  value)
inline

Definition at line 840 of file struct.pb.h.

◆ SetCachedSize()

void Value::SetCachedSize ( int  size) const
finalprivate

Definition at line 674 of file struct.pb.cc.

◆ SharedCtor()

void Value::SharedCtor ( )
inlineprivate

Definition at line 651 of file struct.pb.cc.

◆ SharedDtor()

void Value::SharedDtor ( )
inlineprivate

Definition at line 661 of file struct.pb.cc.

◆ string_value()

const std::string & Value::string_value ( ) const
inline

Definition at line 823 of file struct.pb.h.

◆ struct_value()

const PROTOBUF_NAMESPACE_ID::Struct & Value::struct_value ( ) const
inline

Definition at line 987 of file struct.pb.h.

◆ Swap()

void Value::Swap ( Value other)
inline

Definition at line 367 of file struct.pb.h.

◆ unsafe_arena_release_list_value()

PROTOBUF_NAMESPACE_ID::ListValue * Value::unsafe_arena_release_list_value ( )
inline

Definition at line 1058 of file struct.pb.h.

◆ unsafe_arena_release_struct_value()

PROTOBUF_NAMESPACE_ID::Struct * Value::unsafe_arena_release_struct_value ( )
inline

Definition at line 993 of file struct.pb.h.

◆ unsafe_arena_set_allocated_list_value()

void Value::unsafe_arena_set_allocated_list_value ( PROTOBUF_NAMESPACE_ID::ListValue list_value)
inline

Definition at line 1069 of file struct.pb.h.

◆ unsafe_arena_set_allocated_struct_value()

void Value::unsafe_arena_set_allocated_struct_value ( PROTOBUF_NAMESPACE_ID::Struct struct_value)
inline

Definition at line 1004 of file struct.pb.h.

◆ UnsafeArenaSwap()

void Value::UnsafeArenaSwap ( Value other)
inline

Definition at line 375 of file struct.pb.h.

Friends And Related Function Documentation

◆ ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper

template<typename T >
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper
friend

Definition at line 539 of file struct.pb.h.

◆ ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata

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

Definition at line 415 of file struct.pb.h.

◆ ::TableStruct_google_2fprotobuf_2fstruct_2eproto

Definition at line 554 of file struct.pb.h.

◆ swap

void swap ( Value a,
Value b 
)
friend

Definition at line 364 of file struct.pb.h.

Member Data Documentation

◆ _cached_size_

mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize Value::_cached_size_
private

Definition at line 551 of file struct.pb.h.

◆ _internal_metadata_

::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena Value::_internal_metadata_
private

Definition at line 538 of file struct.pb.h.

◆ _oneof_case_

::PROTOBUF_NAMESPACE_ID::uint32 Value::_oneof_case_[1]
private

Definition at line 552 of file struct.pb.h.

◆ kind_

union Value::KindUnion Value::kind_
private

◆ kIndexInFileMessages

constexpr int Value::kIndexInFileMessages
staticconstexpr
Initial value:
=
2

Definition at line 361 of file struct.pb.h.


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


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