syntax = "proto3"; package proto; //新增一个可选的package声明符,用来防止不同的消息类型有命名冲突 option go_package = "./pkg/proto;proto"; //这个选项表明生成go结构体所在的包 import "google/protobuf/any.proto"; message TextItem { string Status = 1; string Text = 2; repeated string PlaceholderList = 3; } message Command { string Name = 1; map Param = 2; repeated TextItem TextList = 3; } // 腾讯识别的技能 message TencentNlpSkillRequest{ message AppInfo { string appId = 1; string requestId = 2; } message UserInfo { string uid = 1; string hid = 2; } message DevInfo { string mac = 1; string tarMac = 2; } AppInfo appInfo = 1; DevInfo devInfo = 2; UserInfo userInfo = 3; Command command = 4; string asr_recognize = 5; // TODO: 增加识别结果 } /*message AlarmRemindItem{ int32 id = 1; string note = 2; string date = 3; string time = 4; string status = 5; }*/ message TencentNlpSkillResponse{ message Status { int32 code = 1; string msg = 2; } message Response { string prefix = 1; string text = 2; string hint = 3; string suffix = 4; } Status status = 1; Response response = 2; repeated google.protobuf.Any result = 3; bool isMultiRound = 4; } service TencentNlpSkill { rpc Process (TencentNlpSkillRequest) returns (TencentNlpSkillResponse); }