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)
 
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)
 
int ClearFieldByDescriptor (CMessage *self, const FieldDescriptor *field_descriptor)
 
static PyObject * CopyFrom (CMessage *self, PyObject *arg)
 
static PyObject * CopyFrom (CMessage *self, PyObject *arg)
 
static void Dealloc (CMessage *self)
 
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)
 
static PyObject * DiscardUnknownFields (CMessage *self)
 
const FieldDescriptorFindFieldWithOneofs (const Message *message, const string &field_name, bool *in_oneof)
 
const FieldDescriptorFindFieldWithOneofs (const Message *message, ConstStringParam 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 * GetExtensionDict (CMessage *self, void *closure)
 
static PyObject * GetExtensionsByName (CMessage *self, void *closure)
 
static PyObject * GetExtensionsByName (CMessage *self, void *closure)
 
static PyObject * GetExtensionsByNumber (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 PyObject * GetIntegerEnumValue (const FieldDescriptor &descriptor, PyObject *value)
 
static std::string GetMessageName (CMessage *self)
 
static string GetMessageName (CMessage *self)
 
PyObject * HasExtension (CMessage *self, PyObject *extension)
 
PyObject * HasField (CMessage *self, PyObject *arg)
 
int HasFieldByDescriptor (CMessage *self, const FieldDescriptor *field_descriptor)
 
static int Init (CMessage *self, PyObject *args, PyObject *kwargs)
 
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 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)
 
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 PyObject * ListFields (CMessage *self)
 
static int MaybeReleaseOverlappingOneofField (CMessage *cmessage, const FieldDescriptor *field)
 
static int MaybeReleaseOverlappingOneofField (CMessage *cmessage, const FieldDescriptor *field)
 
PyObject * MergeFrom (CMessage *self, PyObject *arg)
 
static PyObject * MergeFromString (CMessage *self, PyObject *arg)
 
static PyObject * MergeFromString (CMessage *self, PyObject *arg)
 
static PyObject * New (PyTypeObject *cls, PyObject *unused_args, PyObject *unused_kwargs)
 
static PyObject * New (PyTypeObject *cls, PyObject *unused_args, PyObject *unused_kwargs)
 
static CMessageNewCMessage (CMessageClass *type)
 
CMessageNewEmptyMessage (CMessageClass *type)
 
static PyObject * ParseFromString (CMessage *self, PyObject *arg)
 
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 * RichCompare (CMessage *self, PyObject *other, int opid)
 
static PyObject * SerializePartialToString (CMessage *self, PyObject *args, PyObject *kwargs)
 
static PyObject * SerializePartialToString (CMessage *self, PyObject *args, PyObject *kwargs)
 
static PyObject * SerializeToString (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)
 
static PyObject * SetInParent (CMessage *self, PyObject *args)
 
PyObject * SetState (CMessage *self, PyObject *state)
 
bool SetSubmessage (CMessage *self, CMessage *submessage)
 
static PyObject * ToStr (CMessage *self)
 
static PyObject * ToStr (CMessage *self)
 
PyObject * ToUnicode (CMessage *self)
 
static PyObject * UnknownFieldSet (CMessage *self)
 
static PyObject * UnknownFieldSet (CMessage *self)
 
static PyObject * WhichOneof (CMessage *self, PyObject *arg)
 
static PyObject * WhichOneof (CMessage *self, PyObject *arg)
 

Variables

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

Function Documentation

◆ _CheckCalledFromGeneratedFile()

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

◆ AssureWritable()

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

◆ ByteSize() [1/2]

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

◆ ByteSize() [2/2]

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

◆ CheckHasPresence()

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

◆ Clear()

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

◆ ClearExtension()

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

◆ ClearField()

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

◆ ClearFieldByDescriptor()

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

◆ CopyFrom() [1/2]

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

◆ CopyFrom() [2/2]

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

◆ Dealloc() [1/2]

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

◆ Dealloc() [2/2]

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

◆ DeepCopy()

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

◆ DeleteRepeatedField()

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

◆ DiscardUnknownFields() [1/2]

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

◆ DiscardUnknownFields() [2/2]

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

◆ FindFieldWithOneofs() [1/2]

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

◆ FindFieldWithOneofs() [2/2]

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

◆ FindInitializationErrors()

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

◆ FixupMessageAfterMerge()

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

◆ FromString()

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

◆ GetAttr()

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

◆ GetExtensionDescriptor()

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

◆ GetExtensionDict() [1/2]

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

◆ GetExtensionDict() [2/2]

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

◆ GetExtensionsByName() [1/2]

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

◆ GetExtensionsByName() [2/2]

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

◆ GetExtensionsByNumber() [1/2]

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

◆ GetExtensionsByNumber() [2/2]

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

◆ GetFactoryForMessage()

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

◆ GetFieldValue()

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

◆ GetIntegerEnumValue() [1/2]

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

◆ GetIntegerEnumValue() [2/2]

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

◆ GetMessageName() [1/2]

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

◆ GetMessageName() [2/2]

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

◆ HasExtension()

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

◆ HasField()

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

◆ HasFieldByDescriptor()

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

◆ Init() [1/2]

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

◆ Init() [2/2]

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

◆ InitAttributes()

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

◆ InternalGetScalar()

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

◆ InternalGetSubMessage()

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

◆ InternalReleaseFieldByDescriptor()

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

◆ InternalReparentFields() [1/2]

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

◆ InternalReparentFields() [2/2]

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

◆ InternalSerializeToString() [1/2]

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

◆ InternalSerializeToString() [2/2]

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

◆ InternalSetNonOneofScalar()

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

◆ InternalSetScalar()

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

◆ IsInitialized()

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

◆ ListFields() [1/2]

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

◆ ListFields() [2/2]

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

◆ MaybeReleaseOverlappingOneofField() [1/2]

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

◆ MaybeReleaseOverlappingOneofField() [2/2]

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

◆ MergeFrom()

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

◆ MergeFromString() [1/2]

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

◆ MergeFromString() [2/2]

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

◆ New() [1/2]

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

◆ New() [2/2]

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

◆ NewCMessage()

static CMessage* google::protobuf::python::cmessage::NewCMessage ( CMessageClass type)
static

◆ NewEmptyMessage()

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

◆ ParseFromString() [1/2]

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

◆ ParseFromString() [2/2]

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

◆ Reduce()

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

◆ RegisterExtension()

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

◆ RichCompare() [1/2]

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

◆ RichCompare() [2/2]

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

◆ SerializePartialToString() [1/2]

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

◆ SerializePartialToString() [2/2]

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

◆ SerializeToString() [1/2]

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

◆ SerializeToString() [2/2]

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

◆ SetAllowOversizeProtos()

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

◆ SetCompositeField()

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

◆ SetFieldValue()

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

◆ SetInParent() [1/2]

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

◆ SetInParent() [2/2]

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

◆ SetState()

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

◆ SetSubmessage()

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

◆ ToStr() [1/2]

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

◆ ToStr() [2/2]

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

◆ ToUnicode()

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

◆ UnknownFieldSet() [1/2]

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

◆ UnknownFieldSet() [2/2]

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

◆ WhichOneof() [1/2]

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

◆ WhichOneof() [2/2]

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

Variable Documentation

◆ allow_oversize_protos

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

◆ Getters [1/2]

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 2457 of file protobuf/python/google/protobuf/pyext/message.cc.

◆ Getters [2/2]

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 2531 of file bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc.

◆ Methods [1/2]

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

◆ Methods [2/2]

PyMethodDef google::protobuf::python::cmessage::Methods[]
static
google::protobuf::python::cmessage::GetExtensionsByNumber
static PyObject * GetExtensionsByNumber(CMessage *self, void *closure)
Definition: protobuf/python/google/protobuf/pyext/message.cc:2452
google::protobuf::python::cmessage::GetExtensionsByName
static PyObject * GetExtensionsByName(CMessage *self, void *closure)
Definition: protobuf/python/google/protobuf/pyext/message.cc:2447
google::protobuf::python::cmessage::GetExtensionDict
static PyObject * GetExtensionDict(CMessage *self, void *closure)
Definition: protobuf/python/google/protobuf/pyext/message.cc:2420


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:28