James Eady
3b26451025
Add static method to generated code to return fully qualified protobuf service name.
8 years ago
Manuel Kroiss
6580894218
Fix python imports in gRPC generated python code
...
This changes the import style for proto dependencies from a) to b).
a) "import a.b.c as x"
b) "from a.b import c as x"
Using statement a) causes problems when using __init__ files. If module
"a.b" has an __init__.py file which is importing the python generated
grpc code "a.b.d", then we cannot import a module named "a.b.c" because
the module "a.b" does not exist yet. In this case python will throw:
AttributeError: 'module' object has no attribute 'b'
This PR adapts the code to use the same logic as in:
/google/protobuf/compiler/python/python_generator.cc
8 years ago
Alexander Polcyn
f5521c33f9
Revert "Merge branch 'master' into v1.3.x"
...
This reverts commit 79759fea1a
, reversing
changes made to dc36f4df6a
.
8 years ago
Muxi Yan
8805306941
Revert API to change default queue for a stub
8 years ago
Mahak Mukhi
ea07b60401
Post-review update
8 years ago
Mehrdad Afshari
68f6a67327
Always generate body for python code elements
...
Since
#...
class Service:
class NextService:
#...
without a body or `pass` under `Service` is invalid
Python, we ensure a `pass` statement is always
emitted to make the generated code valid.
8 years ago
Mahak Mukhi
2814b5148e
formatting
8 years ago
Mahak Mukhi
529e4c5385
update according to new changes in cpp code
8 years ago
Mahak Mukhi
31d92d42ff
Initial commit: Auto-generate GMOCK code for client stub.
8 years ago
Muxi Yan
2f23be7e8c
clang-format
8 years ago
Mahak Mukhi
1383895b76
Initial commit: Auto-generate GMOCK code for client stub.
8 years ago
Muxi Yan
56369ea4a2
Support in ProtoRPC
8 years ago
Craig Tiller
d4e9a4863a
Convert all async client stream types to not allocate
8 years ago
Harsh Vardhan
d48ee255b2
Update
8 years ago
Harsh Vardhan
abf9ce25d9
Fix merge conflicts
8 years ago
Harsh Vardhan
974f3d797a
remove lang specific streaming methods
8 years ago
Harsh Vardhan
cacd5e84cd
revert to python specific code
8 years ago
Harsh Vardhan
dbd4497fa8
remove python specific code
8 years ago
Harsh Vardhan
31e74bb0f3
Update sources & headers
8 years ago
Harsh Vardhan
4b0ba1a690
clang-format
8 years ago
Harsh Vardhan
0f12cd9247
Update python_generator.cc
8 years ago
Harsh Vardhan
6a9950dc0a
Fix errors
8 years ago
Harsh Vardhan
64741b279e
Fix build issues
8 years ago
Harsh Vardhan
93077aefbc
Update Python generator files
8 years ago
Harsh Vardhan
5b8fa87282
Refactor python code generator to support other serializers
8 years ago
thinkerou
9f00073f3c
fix markdown render error
8 years ago
Nathaniel Manista
2f390dbb02
Drop unnecessary imports from _pb2_grpc.py files
8 years ago
Eric Pinzur
e718647ed0
fix the namespacing for php docs on clients
8 years ago
Craig Tiller
5845091432
[EXPERIMENTAL] allocate unary response writer against call arena
8 years ago
Jan Tattermusch
482e2d2010
prevent name clashes in C# generated code
8 years ago
Nathaniel Manista
40d55f9dac
Add import prefix to Python generator
...
This is needed by a customer with a nontraditional codebase.
8 years ago
Stanley Cheung
1a3f4a55c2
PHP: make tests runnable on both protobuf 3.1 and 3.2
8 years ago
yang-g
20115614e1
Stop generating method name array when there is no method.
8 years ago
Masood Malekghassemi
0d62d7e8d7
Add `auto-gen`d comment to `_pb2_grpc.py` files
8 years ago
Bryan Blanchard
c549a3e37b
don't print multiple imports to protobuf modules
8 years ago
Jan Tattermusch
00f66361b7
Generate param comments in C# proto plugin
8 years ago
Jan Tattermusch
726f40f046
remove leading space in C# comments
8 years ago
Jan Tattermusch
727f887cc2
remove leading space in C# comments
8 years ago
Masood Malekghassemi
53360f2d1c
Backport Python features to 1.0.x
...
Backports per-object grpc_init/deinit and separated-file grpc protoc
codegen (#7538 , #8246 , #8920 ).
8 years ago
Masood Malekghassemi
561dce4525
Switch to command-arg for Python split-codegen
...
Almost fixes #8753 (which still needs a test).
8 years ago
Jan Tattermusch
09ba2d6f4a
fix formatting
8 years ago
Alexander Polcyn
333658177d
generate server base class as partial too
9 years ago
Alexander Polcyn
660e4b082c
generate partial c# client stubs as partial classes
9 years ago
Vijay Pai
713c7b87e1
clang-format
9 years ago
Vijay Pai
c0b2acb1a0
Use C++11 final and override
9 years ago
Masood Malekghassemi
7780cc018a
Clang-format python_generator.cc
9 years ago
Masood Malekghassemi
4a051ccca6
Clean-up types in Python generator
9 years ago
Masood Malekghassemi
d953959e2b
Enable split code generation
...
To support magical internal build processes, the pb2 files need to be
split into pure-proto and gRPC parts. This performs that split and
further fixes bad module names in the test harness that interfered with
the intended test implementation.
An unfortunate side effect, due to limitations of protoc and holdover
behavior we must support in major version 1.x, is that trash files are
generated in split generation. This shouldn't be a problem in normal
protoc plugin use.
9 years ago
murgatroid99
45096614fe
Fix incorrect ruby_generator.cc merge
9 years ago
Alexander Polcyn
79a1375f2a
fix type comparison in ruby plugin
9 years ago