Classes | Namespaces | Macros | Functions
protobuf/python/google/protobuf/pyext/message.h File Reference
#include <Python.h>
#include <cstdint>
#include <memory>
#include <string>
#include <unordered_map>
#include <google/protobuf/stubs/common.h>
Include dependency graph for protobuf/python/google/protobuf/pyext/message.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  google::protobuf::python::CMessage
 
struct  google::protobuf::python::CMessageClass
 
struct  google::protobuf::python::ContainerBase
 

Namespaces

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

Macros

#define FIELD_IS_REPEATED(field_descriptor)   ((field_descriptor)->label() == FieldDescriptor::LABEL_REPEATED)
 
#define FULL_MODULE_NAME   "google.protobuf.pyext._message"
 
#define GOOGLE_CHECK_GET_BOOL(arg, value, err)
 
#define GOOGLE_CHECK_GET_DOUBLE(arg, value, err)
 
#define GOOGLE_CHECK_GET_FLOAT(arg, value, err)
 
#define GOOGLE_CHECK_GET_INT32(arg, value, err)
 
#define GOOGLE_CHECK_GET_INT64(arg, value, err)
 
#define GOOGLE_CHECK_GET_UINT32(arg, value, err)
 
#define GOOGLE_CHECK_GET_UINT64(arg, value, err)
 
#define IS_64BIT   (SIZEOF_LONG == 8)
 
#define PY_SSIZE_T_CLEAN
 

Functions

int google::protobuf::python::cmessage::AssureWritable (CMessage *self)
 
bool google::protobuf::python::CheckAndGetBool (PyObject *arg, bool *value)
 
bool google::protobuf::python::CheckAndGetDouble (PyObject *arg, double *value)
 
bool google::protobuf::python::CheckAndGetFloat (PyObject *arg, float *value)
 
template<class T >
bool google::protobuf::python::CheckAndGetInteger (PyObject *arg, T *value)
 
template bool google::protobuf::python::CheckAndGetInteger< int32 > (PyObject *, int32 *)
 
template bool google::protobuf::python::CheckAndGetInteger< int64 > (PyObject *, int64 *)
 
template bool google::protobuf::python::CheckAndGetInteger< uint32 > (PyObject *, uint32 *)
 
template bool google::protobuf::python::CheckAndGetInteger< uint64 > (PyObject *, uint64 *)
 
bool google::protobuf::python::CheckAndSetString (PyObject *arg, Message *message, const FieldDescriptor *descriptor, const Reflection *reflection, bool append, int index)
 
bool google::protobuf::python::CheckFieldBelongsToMessage (const FieldDescriptor *field_descriptor, const Message *message)
 
PyObject * google::protobuf::python::CheckString (PyObject *arg, const FieldDescriptor *descriptor)
 
PyObject * google::protobuf::python::cmessage::Clear (CMessage *self)
 
int google::protobuf::python::cmessage::ClearFieldByDescriptor (CMessage *self, const FieldDescriptor *field_descriptor)
 
int google::protobuf::python::cmessage::DeleteRepeatedField (CMessage *self, const FieldDescriptor *field_descriptor, PyObject *slice)
 
PyObject * google::protobuf::python::cmessage::FindInitializationErrors (CMessage *self)
 
void google::protobuf::python::FormatTypeError (PyObject *arg, const char *expected_types)
 
const FieldDescriptorgoogle::protobuf::python::cmessage::GetExtensionDescriptor (PyObject *extension)
 
PyMessageFactory * google::protobuf::python::cmessage::GetFactoryForMessage (CMessage *message)
 
PyObject * google::protobuf::python::cmessage::GetFieldValue (CMessage *self, const FieldDescriptor *field_descriptor)
 
PyObject * google::protobuf::python::cmessage::HasField (CMessage *self, PyObject *arg)
 
int google::protobuf::python::cmessage::HasFieldByDescriptor (CMessage *self, const FieldDescriptor *field_descriptor)
 
int google::protobuf::python::cmessage::InitAttributes (CMessage *self, PyObject *args, PyObject *kwargs)
 
bool google::protobuf::python::InitProto2MessageModule (PyObject *m)
 
PyObject * google::protobuf::python::cmessage::InternalGetScalar (const Message *message, const FieldDescriptor *field_descriptor)
 
CMessage * 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::MergeFrom (CMessage *self, PyObject *arg)
 
CMessage * google::protobuf::python::cmessage::NewEmptyMessage (CMessageClass *type)
 
const Messagegoogle::protobuf::python::PyMessage_GetMessagePointer (PyObject *msg)
 
Messagegoogle::protobuf::python::PyMessage_GetMutableMessagePointer (PyObject *msg)
 
PyObject * google::protobuf::python::PyMessage_New (const Descriptor *descriptor, PyObject *py_message_factory)
 
PyObject * google::protobuf::python::PyMessage_NewMessageOwnedExternally (Message *message, PyObject *message_factory)
 
PyObject * google::protobuf::python::cmessage::RegisterExtension (PyObject *cls, PyObject *extension_handle)
 
PyObject * google::protobuf::python::cmessage::SetAllowOversizeProtos (PyObject *m, PyObject *arg)
 
bool google::protobuf::python::cmessage::SetCompositeField (CMessage *self, const FieldDescriptor *field, ContainerBase *value)
 
int google::protobuf::python::cmessage::SetFieldValue (CMessage *self, const FieldDescriptor *field_descriptor, PyObject *value)
 
bool google::protobuf::python::cmessage::SetSubmessage (CMessage *self, CMessage *submessage)
 
PyObject * google::protobuf::python::ToStringObject (const FieldDescriptor *descriptor, const std::string &value)
 

Macro Definition Documentation

◆ FIELD_IS_REPEATED

#define FIELD_IS_REPEATED (   field_descriptor)    ((field_descriptor)->label() == FieldDescriptor::LABEL_REPEATED)

◆ FULL_MODULE_NAME

#define FULL_MODULE_NAME   "google.protobuf.pyext._message"

◆ GOOGLE_CHECK_GET_BOOL

#define GOOGLE_CHECK_GET_BOOL (   arg,
  value,
  err 
)
Value:
bool value; \
if (!CheckAndGetBool(arg, &value)) { \
return err; \
}

Definition at line 326 of file protobuf/python/google/protobuf/pyext/message.h.

◆ GOOGLE_CHECK_GET_DOUBLE

#define GOOGLE_CHECK_GET_DOUBLE (   arg,
  value,
  err 
)
Value:
double value; \
return err; \
}

Definition at line 320 of file protobuf/python/google/protobuf/pyext/message.h.

◆ GOOGLE_CHECK_GET_FLOAT

#define GOOGLE_CHECK_GET_FLOAT (   arg,
  value,
  err 
)
Value:
float value; \
if (!CheckAndGetFloat(arg, &value)) { \
return err; \
}

Definition at line 314 of file protobuf/python/google/protobuf/pyext/message.h.

◆ GOOGLE_CHECK_GET_INT32

#define GOOGLE_CHECK_GET_INT32 (   arg,
  value,
  err 
)
Value:
return err; \
}

Definition at line 290 of file protobuf/python/google/protobuf/pyext/message.h.

◆ GOOGLE_CHECK_GET_INT64

#define GOOGLE_CHECK_GET_INT64 (   arg,
  value,
  err 
)
Value:
return err; \
}

Definition at line 296 of file protobuf/python/google/protobuf/pyext/message.h.

◆ GOOGLE_CHECK_GET_UINT32

#define GOOGLE_CHECK_GET_UINT32 (   arg,
  value,
  err 
)
Value:
return err; \
}

Definition at line 302 of file protobuf/python/google/protobuf/pyext/message.h.

◆ GOOGLE_CHECK_GET_UINT64

#define GOOGLE_CHECK_GET_UINT64 (   arg,
  value,
  err 
)
Value:
return err; \
}

Definition at line 308 of file protobuf/python/google/protobuf/pyext/message.h.

◆ IS_64BIT

#define IS_64BIT   (SIZEOF_LONG == 8)

◆ PY_SSIZE_T_CLEAN

#define PY_SSIZE_T_CLEAN
error_ref_leak.err
err
Definition: error_ref_leak.py:35
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
int64_t
signed __int64 int64_t
Definition: stdint-msvc2008.h:89
uint64_t
unsigned __int64 uint64_t
Definition: stdint-msvc2008.h:90
arg
Definition: cmdline.cc:40
value
const char * value
Definition: hpack_parser_table.cc:165
google::protobuf::python::CheckAndGetFloat
bool CheckAndGetFloat(PyObject *arg, float *value)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:685
google::protobuf::python::CheckAndGetBool
bool CheckAndGetBool(PyObject *arg, bool *value)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:694
google::protobuf::python::CheckAndGetDouble
bool CheckAndGetDouble(PyObject *arg, double *value)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:676
int32_t
signed int int32_t
Definition: stdint-msvc2008.h:77
google::protobuf::python::CheckAndGetInteger
bool CheckAndGetInteger(PyObject *arg, T *value)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:591


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