grpc/src/ruby/pb
Adam Cozzette 016ed921ce
[deps] Upgrade protobuf version to v25.0 (#34513)
This commit upgrades gRPC to protobuf v25.0 and makes some fixes to
account for upb changes. One major change is that upb has been merged
into the protobuf repo, so we can now drop the separate `@upb`
dependency. Another is that `.upb.c` files no longer exist and there are
new `.upb_minitable.h` and `.upb_minitable.c` files. The longer
filenames exceeded a Windows restriction, so to work around that I
renamed the `upb-generated` directory to just `upb-gen`, and likewise
for `upbdefs-generated`.
2023-11-10 00:11:09 -08:00
..
grpc [deps] Upgrade protobuf version to v25.0 (#34513) 2023-11-10 00:11:09 -08:00
src/proto/grpc/testing [deps] Upgrade protobuf version to v25.0 (#34513) 2023-11-10 00:11:09 -08:00
test [Ruby] add special status msg interop test (#33990) 2023-08-09 16:52:39 -07:00
README.md Fix various typos in .cc and .md and .py files 2019-02-12 11:11:43 -05:00
generate_proto_ruby.sh Fix regenerate protos scripts. (#32135) 2023-01-19 09:16:23 +01:00

README.md

Protocol Buffers

This folder contains protocol buffers provided with gRPC ruby, and the generated code to them.

PREREQUISITES

The code is generated using the protoc (> 3.0.0.alpha.1) and the grpc_ruby_plugin. These must be installed to regenerate the IDL defined classes, but that's not necessary just to use them.

health_check/v1

This package defines the surface of a simple health check service that gRPC servers may choose to implement, and provides an implementation for it. To re-generate the surface.

$ # (from this directory)
$ protoc -I ../../proto ../../proto/grpc/health/v1/health.proto \
    --grpc_out=. \
    --ruby_out=. \
    --plugin=protoc-gen-grpc=`which grpc_ruby_plugin`

test

This package defines the surface of the gRPC interop test service and client To re-generate the surface, it's necessary to have checked-out versions of the grpc interop test proto, e.g, by having the full gRPC repository. E.g,

$ # (from this directory within the grpc repo)
$ protoc -I../../.. ../../../test/proto/{messages,test,empty}.proto \
    --grpc_out=. \
    --ruby_out=. \
    --plugin=protoc-gen-grpc=`which grpc_ruby_plugin`