Open
Description
We use code like this to encode a version of the gRPC protocol:
import "google/protobuf/descriptor.proto";
extend google.protobuf.FileOptions {
string protocol_version = 51000;
}
option (protocol_version) = "0.1.0";
And in Python, one can access it using:
import test_service_pb2
version = test_service_pb2.DESCRIPTOR.GetOptions().Extensions[test_service_pb2.protocol_version]
But it seems there is no way to access extensions from JavaScript code?