webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Namespaces | Macros | Functions | Variables
message.cc File Reference
#include <google/protobuf/pyext/message.h>
#include <map>
#include <memory>
#include <google/protobuf/stubs/shared_ptr.h>
#include <string>
#include <vector>
#include <structmember.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/util/message_differencer.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/message.h>
#include <google/protobuf/text_format.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/pyext/descriptor.h>
#include <google/protobuf/pyext/descriptor_pool.h>
#include <google/protobuf/pyext/extension_dict.h>
#include <google/protobuf/pyext/repeated_composite_container.h>
#include <google/protobuf/pyext/repeated_scalar_container.h>
#include <google/protobuf/pyext/map_container.h>
#include <google/protobuf/pyext/scoped_pyobject_ptr.h>
#include <google/protobuf/stubs/strutil.h>

Classes

struct  google::protobuf::python::ChildVisitor
 
struct  google::protobuf::python::cmessage::FixupMessageReference
 
struct  google::protobuf::python::cmessage::ClearWeakReferences
 
struct  google::protobuf::python::cmessage::SetOwnerVisitor
 
struct  google::protobuf::python::cmessage::ReleaseChild
 
class  google::protobuf::python::cmessage::PythonFieldValuePrinter
 

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::python
 
 google::protobuf::python::message_meta
 
 google::protobuf::python::cmessage
 

Macros

#define PyVarObject_HEAD_INIT(type, size)   PyObject_HEAD_INIT(type) size,
 
#define Py_TYPE(ob)   (((PyObject*)(ob))->ob_type)
 
#define INITFUNC   init_message
 
#define INITFUNC_ERRORVAL
 

Functions

int google::protobuf::python::cmessage::InternalReleaseFieldByDescriptor (CMessage *self, const FieldDescriptor *field_descriptor, PyObject *composite_field)
 
template<class Visitor >
int google::protobuf::python::ForEachCompositeField (CMessage *self, Visitor visitor)
 
void google::protobuf::python::FormatTypeError (PyObject *arg, char *expected_types)
 
template<class T >
bool google::protobuf::python::CheckAndGetInteger (PyObject *arg, T *value, PyObject *min, PyObject *max)
 
template bool google::protobuf::python::CheckAndGetInteger< int32 > (PyObject *, int32 *, PyObject *, PyObject *)
 
template bool google::protobuf::python::CheckAndGetInteger< int64 > (PyObject *, int64 *, PyObject *, PyObject *)
 
template bool google::protobuf::python::CheckAndGetInteger< uint32 > (PyObject *, uint32 *, PyObject *, PyObject *)
 
template bool google::protobuf::python::CheckAndGetInteger< uint64 > (PyObject *, uint64 *, PyObject *, PyObject *)
 
bool google::protobuf::python::CheckAndGetDouble (PyObject *arg, double *value)
 
bool google::protobuf::python::CheckAndGetFloat (PyObject *arg, float *value)
 
bool google::protobuf::python::CheckAndGetBool (PyObject *arg, bool *value)
 
bool google::protobuf::python::IsValidUTF8 (PyObject *obj)
 
bool google::protobuf::python::AllowInvalidUTF8 (const FieldDescriptor *field)
 
PyObject * google::protobuf::python::CheckString (PyObject *arg, const FieldDescriptor *descriptor)
 
bool google::protobuf::python::CheckAndSetString (PyObject *arg, Message *message, const FieldDescriptor *descriptor, const Reflection *reflection, bool append, int index)
 
PyObject * google::protobuf::python::ToStringObject (const FieldDescriptor *descriptor, string value)
 
bool google::protobuf::python::CheckFieldBelongsToMessage (const FieldDescriptor *field_descriptor, const Message *message)
 
PyDescriptorPool * google::protobuf::python::cmessage::GetDescriptorPoolForMessage (CMessage *message)
 
MessageFactory * google::protobuf::python::cmessage::GetFactoryForMessage (CMessage *message)
 
int google::protobuf::python::cmessage::AssureWritable (CMessage *self)
 
const FieldDescriptorgoogle::protobuf::python::cmessage::GetExtensionDescriptor (PyObject *extension)
 
int google::protobuf::python::cmessage::InternalDeleteRepeatedField (CMessage *self, const FieldDescriptor *field_descriptor, PyObject *slice, PyObject *cmessage_list)
 
int google::protobuf::python::cmessage::InitAttributes (CMessage *self, PyObject *kwargs)
 
CMessage * google::protobuf::python::cmessage::NewEmptyMessage (CMessageClass *type)
 
PyObject * google::protobuf::python::cmessage::IsInitialized (CMessage *self, PyObject *args)
 
PyObject * google::protobuf::python::cmessage::HasFieldByDescriptor (CMessage *self, const FieldDescriptor *field_descriptor)
 
const FieldDescriptorgoogle::protobuf::python::cmessage::FindFieldWithOneofs (const Message *message, const string &field_name, bool *in_oneof)
 
bool google::protobuf::python::cmessage::CheckHasPresence (const FieldDescriptor *field_descriptor, bool in_oneof)
 
PyObject * google::protobuf::python::cmessage::HasField (CMessage *self, PyObject *arg)
 
PyObject * google::protobuf::python::cmessage::ClearExtension (CMessage *self, PyObject *extension)
 
PyObject * google::protobuf::python::cmessage::HasExtension (CMessage *self, PyObject *extension)
 
int google::protobuf::python::cmessage::SetOwner (CMessage *self, const shared_ptr< Message > &new_owner)
 
Messagegoogle::protobuf::python::cmessage::ReleaseMessage (CMessage *self, const Descriptor *descriptor, const FieldDescriptor *field_descriptor)
 
int google::protobuf::python::cmessage::ReleaseSubMessage (CMessage *self, const FieldDescriptor *field_descriptor, CMessage *child_cmessage)
 
PyObject * google::protobuf::python::cmessage::ClearFieldByDescriptor (CMessage *self, const FieldDescriptor *descriptor)
 
PyObject * google::protobuf::python::cmessage::ClearField (CMessage *self, PyObject *arg)
 
PyObject * google::protobuf::python::cmessage::Clear (CMessage *self)
 
PyObject * google::protobuf::python::cmessage::MergeFrom (CMessage *self, PyObject *arg)
 
PyObject * google::protobuf::python::cmessage::FindInitializationErrors (CMessage *self)
 
PyObject * google::protobuf::python::cmessage::InternalGetScalar (const Message *message, const FieldDescriptor *field_descriptor)
 
PyObject * google::protobuf::python::cmessage::InternalGetSubMessage (CMessage *self, const FieldDescriptor *field_descriptor)
 
int google::protobuf::python::cmessage::InternalSetNonOneofScalar (Message *message, const FieldDescriptor *field_descriptor, PyObject *arg)
 
int google::protobuf::python::cmessage::InternalSetScalar (CMessage *self, const FieldDescriptor *field_descriptor, PyObject *arg)
 
PyObject * google::protobuf::python::cmessage::FromString (PyTypeObject *cls, PyObject *serialized)
 
PyObject * google::protobuf::python::cmessage::DeepCopy (CMessage *self, PyObject *arg)
 
PyObject * google::protobuf::python::cmessage::ToUnicode (CMessage *self)
 
PyObject * google::protobuf::python::cmessage::Reduce (CMessage *self)
 
PyObject * google::protobuf::python::cmessage::SetState (CMessage *self, PyObject *state)
 
PyObject * google::protobuf::python::cmessage::_CheckCalledFromGeneratedFile (PyObject *unused, PyObject *unused_arg)
 
PyObject * google::protobuf::python::cmessage::GetAttr (CMessage *self, PyObject *name)
 
int google::protobuf::python::cmessage::SetAttr (CMessage *self, PyObject *name, PyObject *value)
 
void google::protobuf::python::InitGlobals ()
 
bool google::protobuf::python::InitProto2MessageModule (PyObject *m)
 
PyMODINIT_FUNC google::INITFUNC (void)
 

Variables

PyObject * google::protobuf::python::EnumTypeWrapper_class
 
PyTypeObject google::protobuf::python::CMessageClass_Type
 
PyObject * google::protobuf::python::kPythonZero
 
PyObject * google::protobuf::python::kint32min_py
 
PyObject * google::protobuf::python::kint32max_py
 
PyObject * google::protobuf::python::kuint32max_py
 
PyObject * google::protobuf::python::kint64min_py
 
PyObject * google::protobuf::python::kint64max_py
 
PyObject * google::protobuf::python::kuint64max_py
 
PyObject * google::protobuf::python::EncodeError_class
 
PyObject * google::protobuf::python::DecodeError_class
 
PyObject * google::protobuf::python::PickleError_class
 
PyTypeObject google::protobuf::python::CMessage_Type
 
const Message *(* google::protobuf::python::GetCProtoInsidePyProtoPtr )(PyObject *msg)
 
Message *(* google::protobuf::python::MutableCProtoInsidePyProtoPtr )(PyObject *msg)
 

Macro Definition Documentation

◆ INITFUNC

#define INITFUNC   init_message

◆ INITFUNC_ERRORVAL

#define INITFUNC_ERRORVAL

◆ Py_TYPE

#define Py_TYPE (   ob)    (((PyObject*)(ob))->ob_type)

◆ PyVarObject_HEAD_INIT

#define PyVarObject_HEAD_INIT (   type,
  size 
)    PyObject_HEAD_INIT(type) size,