Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: third_party/protobuf/python/google/protobuf/pyext/descriptor_containers.h

Issue 2600753002: Reverts third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved. 2 // Copyright 2008 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 25 matching lines...) Expand all
36 // See descriptor_containers.cc for more description. 36 // See descriptor_containers.cc for more description.
37 #include <Python.h> 37 #include <Python.h>
38 38
39 namespace google { 39 namespace google {
40 namespace protobuf { 40 namespace protobuf {
41 41
42 class Descriptor; 42 class Descriptor;
43 class FileDescriptor; 43 class FileDescriptor;
44 class EnumDescriptor; 44 class EnumDescriptor;
45 class OneofDescriptor; 45 class OneofDescriptor;
46 class ServiceDescriptor;
47 46
48 namespace python { 47 namespace python {
49 48
50 // Initialize the various types and objects. 49 // Initialize the various types and objects.
51 bool InitDescriptorMappingTypes(); 50 bool InitDescriptorMappingTypes();
52 51
53 // Each function below returns a Mapping, or a Sequence of descriptors. 52 // Each function below returns a Mapping, or a Sequence of descriptors.
54 // They all return a new reference. 53 // They all return a new reference.
55 54
56 namespace message_descriptor { 55 namespace message_descriptor {
(...skipping 26 matching lines...) Expand all
83 PyObject* NewOneofFieldsSeq(const OneofDescriptor* descriptor); 82 PyObject* NewOneofFieldsSeq(const OneofDescriptor* descriptor);
84 } // namespace oneof_descriptor 83 } // namespace oneof_descriptor
85 84
86 namespace file_descriptor { 85 namespace file_descriptor {
87 PyObject* NewFileMessageTypesByName(const FileDescriptor* descriptor); 86 PyObject* NewFileMessageTypesByName(const FileDescriptor* descriptor);
88 87
89 PyObject* NewFileEnumTypesByName(const FileDescriptor* descriptor); 88 PyObject* NewFileEnumTypesByName(const FileDescriptor* descriptor);
90 89
91 PyObject* NewFileExtensionsByName(const FileDescriptor* descriptor); 90 PyObject* NewFileExtensionsByName(const FileDescriptor* descriptor);
92 91
93 PyObject* NewFileServicesByName(const FileDescriptor* descriptor);
94
95 PyObject* NewFileDependencies(const FileDescriptor* descriptor); 92 PyObject* NewFileDependencies(const FileDescriptor* descriptor);
96 PyObject* NewFilePublicDependencies(const FileDescriptor* descriptor); 93 PyObject* NewFilePublicDependencies(const FileDescriptor* descriptor);
97 } // namespace file_descriptor 94 } // namespace file_descriptor
98 95
99 namespace service_descriptor {
100 PyObject* NewServiceMethodsSeq(const ServiceDescriptor* descriptor);
101 PyObject* NewServiceMethodsByName(const ServiceDescriptor* descriptor);
102 } // namespace service_descriptor
103
104 96
105 } // namespace python 97 } // namespace python
106 } // namespace protobuf 98 } // namespace protobuf
107 99
108 } // namespace google 100 } // namespace google
109 #endif // GOOGLE_PROTOBUF_PYTHON_CPP_DESCRIPTOR_CONTAINERS_H__ 101 #endif // GOOGLE_PROTOBUF_PYTHON_CPP_DESCRIPTOR_CONTAINERS_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698