首页 > 代码库 > python使用.proto文件生成service接口失败

python使用.proto文件生成service接口失败

package test;

option cc_generic_services = true;  //编译c++文件时,生成Service及Service_Stub接口类
option py_generic_services = true;  //编译python文件时,生成Service及Service_Stub接口类

message request {
    required string name =1;
};
message response {
    required string status = 1;
};
service TestService
{
    rpc test_interface(request) returns (response);
};



python使用.proto文件生成service接口失败