protocolbuffers / protobuf

Protocol Buffers - Google's data interchange format
http://protobuf.dev
Other
65.14k stars 15.44k forks source link

just gen cpp async or sync SourceCode [code_generator] [diy_code_generator] #16889

Closed stan1334 closed 1 week ago

stan1334 commented 3 months ago

What language does this apply to? If it's a proto syntax change, is it for proto2 or proto3? If it's about generated code change, what programming language?

Describe the problem you are trying to solve. i cannot find cmd params 2 set just code sync or async code

Describe the solution you'd like

protoc --grpc_out=./ --plugin=protoc-gen-grpc="/C:/Program Files/grpc/bin/grpc_cpp_plugin.exe sync" helloworld.proto protoc --grpc_out=./ --plugin=protoc-gen-grpc="/C:/Program Files/grpc/bin/grpc_cpp_plugin.exe" --grpc_out=async helloworld.proto

Describe alternatives you've considered add MYCppGrpcGenerator just like CppGrpcGenerator class.

Additional context Add any other context or screenshots about the feature request here.

Administrator@CHINAMI-GJCV7IR MINGW64 /d/code/Tools/grpc/examples/protos (master) $ protoc --plugin=protoc-gen-grpc="/C:/Program Files/grpc/bin/grpc_cpp_plugin.exe" --grpc_out=./ --cpp_out=./ --grpc_opt=generate_async=true helloworld.proto --grpc_out: helloworld.proto: Unknown parameter: generate_async=true

github-actions[bot] commented 3 weeks ago

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago. This issue will be closed and archived after 14 additional days without activity.

github-actions[bot] commented 1 week ago

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.

This issue was closed and archived because there has been no new activity in the 14 days since the inactive label was added.