Classes | Functions | Variables
google::protobuf::python::cmessage Namespace Reference

Classes

class  PythonFieldValuePrinter
 

Functions

PyObject * _CheckCalledFromGeneratedFile (PyObject *unused, PyObject *unused_arg)
 
int AssureWritable (CMessage *self)
 
static PyObject * ByteSize (CMessage *self, PyObject *args)
 
bool CheckHasPresence (const FieldDescriptor *field_descriptor, bool in_oneof)
 
PyObject * Clear (CMessage *self)
 
PyObject * ClearExtension (CMessage *self, PyObject *extension)
 
PyObject * ClearField (CMessage *self, PyObject *arg)
 
PyObject * ClearFieldByDescriptor (CMessage *self, const FieldDescriptor *field_descriptor)
 
static PyObject * CopyFrom (CMessage *self, PyObject *arg)
 
static void Dealloc (CMessage *self)
 
PyObject * DeepCopy (CMessage *self, PyObject *arg)
 
int DeleteRepeatedField (CMessage *self, const FieldDescriptor *field_descriptor, PyObject *slice)
 
static PyObject * DiscardUnknownFields (CMessage *self)
 
const FieldDescriptorFindFieldWithOneofs (const Message *message, const string &field_name, bool *in_oneof)
 
PyObject * FindInitializationErrors (CMessage *self)
 
int FixupMessageAfterMerge (CMessage *self)
 
PyObject * FromString (PyTypeObject *cls, PyObject *serialized)
 
PyObject * GetAttr (PyObject *pself, PyObject *name)
 
const FieldDescriptorGetExtensionDescriptor (PyObject *extension)
 
static PyObject * GetExtensionDict (CMessage *self, void *closure)
 
static PyObject * GetExtensionsByName (CMessage *self, void *closure)
 
static PyObject * GetExtensionsByNumber (CMessage *self, void *closure)
 
PyMessageFactoryGetFactoryForMessage (CMessage *message)
 
PyObject * GetFieldValue (CMessage *self, const FieldDescriptor *field_descriptor)
 
static PyObject * GetIntegerEnumValue (const FieldDescriptor &descriptor, PyObject *value)
 
static string GetMessageName (CMessage *self)
 
PyObject * HasExtension (CMessage *self, PyObject *extension)
 
PyObject * HasField (CMessage *self, PyObject *arg)
 
PyObject * HasFieldByDescriptor (CMessage *self, const FieldDescriptor *field_descriptor)
 
static int Init (CMessage *self, PyObject *args, PyObject *kwargs)
 
int InitAttributes (CMessage *self, PyObject *args, PyObject *kwargs)
 
PyObject * InternalGetScalar (const Message *message, const FieldDescriptor *field_descriptor)
 
CMessageInternalGetSubMessage (CMessage *self, const FieldDescriptor *field_descriptor)
 
int InternalReleaseFieldByDescriptor (CMessage *self, const FieldDescriptor *field_descriptor)
 
static int InternalReparentFields (CMessage *self, const std::vector< CMessage * > &messages_to_release, const std::vector< ContainerBase * > &containers_to_release)
 
static PyObject * InternalSerializeToString (CMessage *self, PyObject *args, PyObject *kwargs, bool require_initialized)
 
int InternalSetNonOneofScalar (Message *message, const FieldDescriptor *field_descriptor, PyObject *arg)
 
int InternalSetScalar (CMessage *self, const FieldDescriptor *field_descriptor, PyObject *arg)
 
PyObject * IsInitialized (CMessage *self, PyObject *args)
 
static PyObject * ListFields (CMessage *self)
 
static int MaybeReleaseOverlappingOneofField (CMessage *cmessage, const FieldDescriptor *field)
 
PyObject * MergeFrom (CMessage *self, PyObject *arg)
 
static PyObject * MergeFromString (CMessage *self, PyObject *arg)
 
static PyObject * New (PyTypeObject *cls, PyObject *unused_args, PyObject *unused_kwargs)
 
CMessageNewEmptyMessage (CMessageClass *type)
 
static PyObject * ParseFromString (CMessage *self, PyObject *arg)
 
PyObject * Reduce (CMessage *self)
 
PyObject * RegisterExtension (PyObject *cls, PyObject *extension_handle)
 
static PyObject * RichCompare (CMessage *self, PyObject *other, int opid)
 
static PyObject * SerializePartialToString (CMessage *self, PyObject *args, PyObject *kwargs)
 
static PyObject * SerializeToString (CMessage *self, PyObject *args, PyObject *kwargs)
 
PyObject * SetAllowOversizeProtos (PyObject *m, PyObject *arg)
 
bool SetCompositeField (CMessage *self, const FieldDescriptor *field, ContainerBase *value)
 
int SetFieldValue (CMessage *self, const FieldDescriptor *field_descriptor, PyObject *value)
 
static PyObject * SetInParent (CMessage *self, PyObject *args)
 
PyObject * SetState (CMessage *self, PyObject *state)
 
bool SetSubmessage (CMessage *self, CMessage *submessage)
 
static PyObject * ToStr (CMessage *self)
 
PyObject * ToUnicode (CMessage *self)
 
static PyObject * UnknownFieldSet (CMessage *self)
 
static PyObject * WhichOneof (CMessage *self, PyObject *arg)
 

Variables

static bool allow_oversize_protos = false
 
static PyGetSetDef Getters []
 
static PyMethodDef Methods []
 

Function Documentation

◆ _CheckCalledFromGeneratedFile()

PyObject* google::protobuf::python::cmessage::_CheckCalledFromGeneratedFile ( PyObject *  unused,
PyObject *  unused_arg 
)

Definition at line 2472 of file python/google/protobuf/pyext/message.cc.

◆ AssureWritable()

int google::protobuf::python::cmessage::AssureWritable ( CMessage self)

Definition at line 897 of file python/google/protobuf/pyext/message.cc.

◆ ByteSize()

static PyObject* google::protobuf::python::cmessage::ByteSize ( CMessage self,
PyObject *  args 
)
static

Definition at line 1971 of file python/google/protobuf/pyext/message.cc.

◆ CheckHasPresence()

bool google::protobuf::python::cmessage::CheckHasPresence ( const FieldDescriptor field_descriptor,
bool  in_oneof 
)

Definition at line 1396 of file python/google/protobuf/pyext/message.cc.

◆ Clear()

PyObject * google::protobuf::python::cmessage::Clear ( CMessage self)

Definition at line 1651 of file python/google/protobuf/pyext/message.cc.

◆ ClearExtension()

PyObject* google::protobuf::python::cmessage::ClearExtension ( CMessage self,
PyObject *  extension 
)

Definition at line 1471 of file python/google/protobuf/pyext/message.cc.

◆ ClearField()

PyObject * google::protobuf::python::cmessage::ClearField ( CMessage self,
PyObject *  arg 
)

Definition at line 1610 of file python/google/protobuf/pyext/message.cc.

◆ ClearFieldByDescriptor()

PyObject * google::protobuf::python::cmessage::ClearFieldByDescriptor ( CMessage self,
const FieldDescriptor field_descriptor 
)

Definition at line 1598 of file python/google/protobuf/pyext/message.cc.

◆ CopyFrom()

static PyObject* google::protobuf::python::cmessage::CopyFrom ( CMessage self,
PyObject *  arg 
)
static

Definition at line 1861 of file python/google/protobuf/pyext/message.cc.

◆ Dealloc()

static void google::protobuf::python::cmessage::Dealloc ( CMessage self)
static

Definition at line 1293 of file python/google/protobuf/pyext/message.cc.

◆ DeepCopy()

PyObject* google::protobuf::python::cmessage::DeepCopy ( CMessage self,
PyObject *  arg 
)

Definition at line 2377 of file python/google/protobuf/pyext/message.cc.

◆ DeleteRepeatedField()

int google::protobuf::python::cmessage::DeleteRepeatedField ( CMessage self,
const FieldDescriptor field_descriptor,
PyObject *  slice 
)

Definition at line 976 of file python/google/protobuf/pyext/message.cc.

◆ DiscardUnknownFields()

static PyObject* google::protobuf::python::cmessage::DiscardUnknownFields ( CMessage self)
static

Definition at line 2110 of file python/google/protobuf/pyext/message.cc.

◆ FindFieldWithOneofs()

const FieldDescriptor* google::protobuf::python::cmessage::FindFieldWithOneofs ( const Message message,
const string field_name,
bool *  in_oneof 
)

Definition at line 1377 of file python/google/protobuf/pyext/message.cc.

◆ FindInitializationErrors()

PyObject * google::protobuf::python::cmessage::FindInitializationErrors ( CMessage self)

Definition at line 2116 of file python/google/protobuf/pyext/message.cc.

◆ FixupMessageAfterMerge()

int google::protobuf::python::cmessage::FixupMessageAfterMerge ( CMessage self)

Definition at line 863 of file python/google/protobuf/pyext/message.cc.

◆ FromString()

PyObject* google::protobuf::python::cmessage::FromString ( PyTypeObject *  cls,
PyObject *  serialized 
)

Definition at line 2360 of file python/google/protobuf/pyext/message.cc.

◆ GetAttr()

PyObject* google::protobuf::python::cmessage::GetAttr ( PyObject *  pself,
PyObject *  name 
)

Definition at line 2608 of file python/google/protobuf/pyext/message.cc.

◆ GetExtensionDescriptor()

const FieldDescriptor * google::protobuf::python::cmessage::GetExtensionDescriptor ( PyObject *  extension)

Definition at line 933 of file python/google/protobuf/pyext/message.cc.

◆ GetExtensionDict()

static PyObject * google::protobuf::python::cmessage::GetExtensionDict ( CMessage self,
void closure 
)
static

Definition at line 2483 of file python/google/protobuf/pyext/message.cc.

◆ GetExtensionsByName()

static PyObject* google::protobuf::python::cmessage::GetExtensionsByName ( CMessage self,
void closure 
)
static

Definition at line 2510 of file python/google/protobuf/pyext/message.cc.

◆ GetExtensionsByNumber()

static PyObject* google::protobuf::python::cmessage::GetExtensionsByNumber ( CMessage self,
void closure 
)
static

Definition at line 2515 of file python/google/protobuf/pyext/message.cc.

◆ GetFactoryForMessage()

PyMessageFactory * google::protobuf::python::cmessage::GetFactoryForMessage ( CMessage message)

Definition at line 829 of file python/google/protobuf/pyext/message.cc.

◆ GetFieldValue()

PyObject * google::protobuf::python::cmessage::GetFieldValue ( CMessage self,
const FieldDescriptor field_descriptor 
)

Definition at line 2624 of file python/google/protobuf/pyext/message.cc.

◆ GetIntegerEnumValue()

static PyObject* google::protobuf::python::cmessage::GetIntegerEnumValue ( const FieldDescriptor descriptor,
PyObject *  value 
)
static

Definition at line 947 of file python/google/protobuf/pyext/message.cc.

◆ GetMessageName()

static string google::protobuf::python::cmessage::GetMessageName ( CMessage self)
static

Definition at line 1681 of file python/google/protobuf/pyext/message.cc.

◆ HasExtension()

PyObject* google::protobuf::python::cmessage::HasExtension ( CMessage self,
PyObject *  extension 
)

Definition at line 1482 of file python/google/protobuf/pyext/message.cc.

◆ HasField()

PyObject * google::protobuf::python::cmessage::HasField ( CMessage self,
PyObject *  arg 
)

Definition at line 1432 of file python/google/protobuf/pyext/message.cc.

◆ HasFieldByDescriptor()

PyObject * google::protobuf::python::cmessage::HasFieldByDescriptor ( CMessage self,
const FieldDescriptor field_descriptor 
)

Definition at line 1361 of file python/google/protobuf/pyext/message.cc.

◆ Init()

static int google::protobuf::python::cmessage::Init ( CMessage self,
PyObject *  args,
PyObject *  kwargs 
)
static

Definition at line 1286 of file python/google/protobuf/pyext/message.cc.

◆ InitAttributes()

int google::protobuf::python::cmessage::InitAttributes ( CMessage self,
PyObject *  args,
PyObject *  kwargs 
)

Definition at line 1065 of file python/google/protobuf/pyext/message.cc.

◆ InternalGetScalar()

PyObject * google::protobuf::python::cmessage::InternalGetScalar ( const Message message,
const FieldDescriptor field_descriptor 
)

Definition at line 2170 of file python/google/protobuf/pyext/message.cc.

◆ InternalGetSubMessage()

CMessage * google::protobuf::python::cmessage::InternalGetSubMessage ( CMessage self,
const FieldDescriptor field_descriptor 
)

Definition at line 2237 of file python/google/protobuf/pyext/message.cc.

◆ InternalReleaseFieldByDescriptor()

int google::protobuf::python::cmessage::InternalReleaseFieldByDescriptor ( CMessage self,
const FieldDescriptor field_descriptor 
)

Definition at line 1568 of file python/google/protobuf/pyext/message.cc.

◆ InternalReparentFields()

static int google::protobuf::python::cmessage::InternalReparentFields ( CMessage self,
const std::vector< CMessage * > &  messages_to_release,
const std::vector< ContainerBase * > &  containers_to_release 
)
static

Definition at line 1515 of file python/google/protobuf/pyext/message.cc.

◆ InternalSerializeToString()

static PyObject* google::protobuf::python::cmessage::InternalSerializeToString ( CMessage self,
PyObject *  args,
PyObject *  kwargs,
bool  require_initialized 
)
static

Definition at line 1689 of file python/google/protobuf/pyext/message.cc.

◆ InternalSetNonOneofScalar()

int google::protobuf::python::cmessage::InternalSetNonOneofScalar ( Message message,
const FieldDescriptor field_descriptor,
PyObject *  arg 
)

Definition at line 2265 of file python/google/protobuf/pyext/message.cc.

◆ InternalSetScalar()

int google::protobuf::python::cmessage::InternalSetScalar ( CMessage self,
const FieldDescriptor field_descriptor,
PyObject *  arg 
)

Definition at line 2345 of file python/google/protobuf/pyext/message.cc.

◆ IsInitialized()

PyObject* google::protobuf::python::cmessage::IsInitialized ( CMessage self,
PyObject *  args 
)

Definition at line 1331 of file python/google/protobuf/pyext/message.cc.

◆ ListFields()

static PyObject* google::protobuf::python::cmessage::ListFields ( CMessage self)
static

Definition at line 2033 of file python/google/protobuf/pyext/message.cc.

◆ MaybeReleaseOverlappingOneofField()

static int google::protobuf::python::cmessage::MaybeReleaseOverlappingOneofField ( CMessage cmessage,
const FieldDescriptor field 
)
static

Definition at line 834 of file python/google/protobuf/pyext/message.cc.

◆ MergeFrom()

PyObject * google::protobuf::python::cmessage::MergeFrom ( CMessage self,
PyObject *  arg 
)

Definition at line 1828 of file python/google/protobuf/pyext/message.cc.

◆ MergeFromString()

static PyObject* google::protobuf::python::cmessage::MergeFromString ( CMessage self,
PyObject *  arg 
)
static

Definition at line 1927 of file python/google/protobuf/pyext/message.cc.

◆ New()

static PyObject* google::protobuf::python::cmessage::New ( PyTypeObject *  cls,
PyObject *  unused_args,
PyObject *  unused_kwargs 
)
static

Definition at line 1256 of file python/google/protobuf/pyext/message.cc.

◆ NewEmptyMessage()

CMessage * google::protobuf::python::cmessage::NewEmptyMessage ( CMessageClass type)

Definition at line 1234 of file python/google/protobuf/pyext/message.cc.

◆ ParseFromString()

static PyObject* google::protobuf::python::cmessage::ParseFromString ( CMessage self,
PyObject *  arg 
)
static

Definition at line 1964 of file python/google/protobuf/pyext/message.cc.

◆ Reduce()

PyObject* google::protobuf::python::cmessage::Reduce ( CMessage self)

Definition at line 2425 of file python/google/protobuf/pyext/message.cc.

◆ RegisterExtension()

PyObject * google::protobuf::python::cmessage::RegisterExtension ( PyObject *  cls,
PyObject *  extension_handle 
)

Definition at line 1975 of file python/google/protobuf/pyext/message.cc.

◆ RichCompare()

static PyObject* google::protobuf::python::cmessage::RichCompare ( CMessage self,
PyObject *  other,
int  opid 
)
static

Definition at line 2138 of file python/google/protobuf/pyext/message.cc.

◆ SerializePartialToString()

static PyObject* google::protobuf::python::cmessage::SerializePartialToString ( CMessage self,
PyObject *  args,
PyObject *  kwargs 
)
static

Definition at line 1771 of file python/google/protobuf/pyext/message.cc.

◆ SerializeToString()

static PyObject* google::protobuf::python::cmessage::SerializeToString ( CMessage self,
PyObject *  args,
PyObject *  kwargs 
)
static

Definition at line 1765 of file python/google/protobuf/pyext/message.cc.

◆ SetAllowOversizeProtos()

PyObject * google::protobuf::python::cmessage::SetAllowOversizeProtos ( PyObject *  m,
PyObject *  arg 
)

Definition at line 1913 of file python/google/protobuf/pyext/message.cc.

◆ SetCompositeField()

bool google::protobuf::python::cmessage::SetCompositeField ( CMessage self,
const FieldDescriptor field,
ContainerBase value 
)

Definition at line 2591 of file python/google/protobuf/pyext/message.cc.

◆ SetFieldValue()

int google::protobuf::python::cmessage::SetFieldValue ( CMessage self,
const FieldDescriptor field_descriptor,
PyObject *  value 
)

Definition at line 2694 of file python/google/protobuf/pyext/message.cc.

◆ SetInParent()

static PyObject* google::protobuf::python::cmessage::SetInParent ( CMessage self,
PyObject *  args 
)
static

Definition at line 2001 of file python/google/protobuf/pyext/message.cc.

◆ SetState()

PyObject* google::protobuf::python::cmessage::SetState ( CMessage self,
PyObject *  state 
)

Definition at line 2449 of file python/google/protobuf/pyext/message.cc.

◆ SetSubmessage()

bool google::protobuf::python::cmessage::SetSubmessage ( CMessage self,
CMessage submessage 
)

Definition at line 2600 of file python/google/protobuf/pyext/message.cc.

◆ ToStr()

static PyObject* google::protobuf::python::cmessage::ToStr ( CMessage self)
static

Definition at line 1815 of file python/google/protobuf/pyext/message.cc.

◆ ToUnicode()

PyObject* google::protobuf::python::cmessage::ToUnicode ( CMessage self)

Definition at line 2396 of file python/google/protobuf/pyext/message.cc.

◆ UnknownFieldSet()

static PyObject* google::protobuf::python::cmessage::UnknownFieldSet ( CMessage self)
static

Definition at line 2501 of file python/google/protobuf/pyext/message.cc.

◆ WhichOneof()

static PyObject* google::protobuf::python::cmessage::WhichOneof ( CMessage self,
PyObject *  arg 
)
static

Definition at line 2006 of file python/google/protobuf/pyext/message.cc.

Variable Documentation

◆ allow_oversize_protos

bool google::protobuf::python::cmessage::allow_oversize_protos = false
static

Definition at line 1908 of file python/google/protobuf/pyext/message.cc.

◆ Getters

PyGetSetDef google::protobuf::python::cmessage::Getters[]
static
Initial value:
= {
{"Extensions", (getter)GetExtensionDict, NULL, "Extension dict"},
{"_extensions_by_name", (getter)GetExtensionsByName, NULL},
{"_extensions_by_number", (getter)GetExtensionsByNumber, NULL},
{NULL}
}

Definition at line 2520 of file python/google/protobuf/pyext/message.cc.

◆ Methods

PyMethodDef google::protobuf::python::cmessage::Methods[]
static

Definition at line 2528 of file python/google/protobuf/pyext/message.cc.

google::protobuf::python::cmessage::GetExtensionsByNumber
static PyObject * GetExtensionsByNumber(CMessage *self, void *closure)
Definition: python/google/protobuf/pyext/message.cc:2515
NULL
NULL
Definition: test_security_zap.cpp:405
google::protobuf::python::cmessage::GetExtensionsByName
static PyObject * GetExtensionsByName(CMessage *self, void *closure)
Definition: python/google/protobuf/pyext/message.cc:2510
google::protobuf::python::cmessage::GetExtensionDict
static PyObject * GetExtensionDict(CMessage *self, void *closure)
Definition: python/google/protobuf/pyext/message.cc:2483


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