Hi,
I'm trying to generate the code in python with grpc_tools, but it doesn't
recognize the import. I want to import it so that the API will also be
available as restful API.
Is there a python package that will support it?
My proto file is:
syntax = "proto3";
import "google/api/annotations.proto";
service JobOccupations {
rpc GetAllJobOccupations(AllJobOccupationsRequest) returns
(AllJobOccupationsResponse) {
option (google.api.http) = {
get: "/jobOccupations"
};
}
}
message AllJobOccupationsRequest {}
message AllJobOccupationsResponse {
repeated JobOccupation jobOccupation = 1;
}
message JobOccupation {
string description = 1;
float salary = 2;
float demand_percentage = 3;
float average_working_hours = 4;
}
Thanks
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/c4f9f88c-ab8a-4e09-afd0-24874842f3a1n%40googlegroups.com.