protobuf/python/google/protobuf/pyext/descriptor_containers.h
Go to the documentation of this file.
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 //
9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 // * Redistributions in binary form must reproduce the above
12 // copyright notice, this list of conditions and the following disclaimer
13 // in the documentation and/or other materials provided with the
14 // distribution.
15 // * Neither the name of Google Inc. nor the names of its
16 // contributors may be used to endorse or promote products derived from
17 // this software without specific prior written permission.
18 //
19 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 #ifndef GOOGLE_PROTOBUF_PYTHON_CPP_DESCRIPTOR_CONTAINERS_H__
32 #define GOOGLE_PROTOBUF_PYTHON_CPP_DESCRIPTOR_CONTAINERS_H__
33 
34 // Mappings and Sequences of descriptors.
35 // They implement containers like fields_by_name, EnumDescriptor.values...
36 // See descriptor_containers.cc for more description.
37 #define PY_SSIZE_T_CLEAN
38 #include <Python.h>
39 
40 namespace google {
41 namespace protobuf {
42 
43 class Descriptor;
44 class FileDescriptor;
45 class EnumDescriptor;
46 class OneofDescriptor;
47 class ServiceDescriptor;
48 
49 namespace python {
50 
51 // Initialize the various types and objects.
53 
54 // Each function below returns a Mapping, or a Sequence of descriptors.
55 // They all return a new reference.
56 
57 namespace message_descriptor {
61 PyObject* NewMessageFieldsSeq(const Descriptor* descriptor);
62 
65 
67 PyObject* NewMessageEnumsSeq(const Descriptor* descriptor);
69 
72 
74 PyObject* NewMessageOneofsSeq(const Descriptor* descriptor);
75 } // namespace message_descriptor
76 
77 namespace enum_descriptor {
81 } // namespace enum_descriptor
82 
83 namespace oneof_descriptor {
85 } // namespace oneof_descriptor
86 
87 namespace file_descriptor {
89 
91 
93 
95 
98 } // namespace file_descriptor
99 
100 namespace service_descriptor {
103 } // namespace service_descriptor
104 
105 
106 } // namespace python
107 } // namespace protobuf
108 } // namespace google
109 
110 #endif // GOOGLE_PROTOBUF_PYTHON_CPP_DESCRIPTOR_CONTAINERS_H__
google::protobuf::python::message_descriptor::NewMessageExtensionsSeq
PyObject * NewMessageExtensionsSeq(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1256
google::protobuf::python::file_descriptor::NewFileDependencies
PyObject * NewFileDependencies(const FileDescriptor *descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1733
google::protobuf::python::message_descriptor::NewMessageOneofsSeq
PyObject * NewMessageOneofsSeq(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1308
google::protobuf::python::file_descriptor::NewFileMessageTypesByName
PyObject * NewFileMessageTypesByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1553
google::protobuf::python::oneof_descriptor::NewOneofFieldsSeq
PyObject * NewOneofFieldsSeq(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1433
google::protobuf::python::file_descriptor::NewFileEnumTypesByName
PyObject * NewFileEnumTypesByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1601
google::protobuf::python::file_descriptor::NewFilePublicDependencies
PyObject * NewFilePublicDependencies(const FileDescriptor *descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1769
google::protobuf::python::service_descriptor::NewServiceMethodsByName
PyObject * NewServiceMethodsByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1495
FileDescriptor
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:128
google::protobuf::python::message_descriptor::NewMessageNestedTypesSeq
PyObject * NewMessageNestedTypesSeq(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1077
google::protobuf
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:12
google::protobuf::python::enum_descriptor::NewEnumValuesByNumber
PyObject * NewEnumValuesByNumber(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1379
google::protobuf::python::message_descriptor::NewMessageExtensionsByName
PyObject * NewMessageExtensionsByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1252
google::protobuf::python::message_descriptor::NewMessageEnumsByName
PyObject * NewMessageEnumsByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1129
google::protobuf::python::message_descriptor::NewMessageNestedTypesByName
PyObject * NewMessageNestedTypesByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1081
Descriptor
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:121
google::protobuf::python::InitDescriptorMappingTypes
bool InitDescriptorMappingTypes()
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1779
google::protobuf::python::message_descriptor::NewMessageFieldsByNumber
PyObject * NewMessageFieldsByNumber(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1025
google::protobuf::python::enum_descriptor::NewEnumValuesByName
PyObject * NewEnumValuesByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1375
EnumDescriptor
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:143
google::protobuf::python::message_descriptor::NewMessageFieldsByName
PyObject * NewMessageFieldsByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1016
google::protobuf::python::message_descriptor::NewMessageFieldsSeq
PyObject * NewMessageFieldsSeq(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1029
OneofDescriptor
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:138
google::protobuf::python::file_descriptor::NewFileExtensionsByName
PyObject * NewFileExtensionsByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1649
google::protobuf::python::message_descriptor::NewMessageOneofsByName
PyObject * NewMessageOneofsByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1304
google::protobuf::python::file_descriptor::NewFileServicesByName
PyObject * NewFileServicesByName(const FileDescriptor *descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1697
google::protobuf::python::message_descriptor::NewMessageEnumValuesByName
PyObject * NewMessageEnumValuesByName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1204
google::protobuf::python::service_descriptor::NewServiceMethodsSeq
PyObject * NewServiceMethodsSeq(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1491
google::protobuf::python::message_descriptor::NewMessageFieldsByCamelcaseName
PyObject * NewMessageFieldsByCamelcaseName(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1020
enum_descriptor
VALUE enum_descriptor(VALUE self)
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/message.c:794
descriptor
static const char descriptor[1336]
Definition: certs.upbdefs.c:16
grpc::protobuf::ServiceDescriptor
GRPC_CUSTOM_SERVICEDESCRIPTOR ServiceDescriptor
Definition: include/grpcpp/impl/codegen/config_protobuf.h:88
google
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:11
google::protobuf::python::message_descriptor::NewMessageEnumsSeq
PyObject * NewMessageEnumsSeq(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1133
google::protobuf::python::enum_descriptor::NewEnumValuesSeq
PyObject * NewEnumValuesSeq(ParentDescriptor descriptor)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.cc:1383


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:14