Files

71 lines
2.6 KiB
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
syntax = "proto3";
package laserweld.project;
option csharp_namespace = "Laserweld.Protos.Project";
// ===== Java / Android 必须的配置 =====
option java_multiple_files = true;
option java_package = "com.lxsoft.weld.grpc";
option java_outer_classname = "ProjectProto";
import "common.proto";
// ==================== 项目详情命令 ====================
message GetProjectDetail {} // 获取当前打开项目的详细信息
message GetGeneralProc { // 获取普通/特殊工艺参数
uint32 index = 1; // 1-8: 普通工艺, 9-10: 特殊工艺
}
message SetGeneralProc { // 设置普通/特殊工艺参数
uint32 index = 1; // 工艺索引
laserweld.common.GeneralProc proc = 2; // 工艺参数
}
message GetEmptyProc { // 获取空走工艺参数
uint32 index = 1; // 1-2: 空走工艺索引
}
message SetEmptyProc { // 设置空走工艺参数
uint32 index = 1; // 空走工艺索引
laserweld.common.EmptyProc proc = 2; // 空走参数
}
message GetInputPortNames {} // 获取所有输入端口名称(1-8
message GetOutputPortNames {} // 获取所有输出端口名称(1-10)
// ==================== 轨迹操作命令 ====================
message AddTrack { // 添加轨迹
laserweld.common.TrackItem item = 1; // 轨迹数据
}
message AddSubTrack { // 在子程序下添加轨迹
uint32 parent_track_id = 1; // 子程序 ID
laserweld.common.TrackItem item = 2; // 轨迹数据
}
message DeleteTrack { // 删除单条轨迹
uint32 track_id = 1; // 轨迹ID
}
message DeleteTracks { // 批量删除轨迹
repeated uint32 track_ids = 1; // 轨迹ID列表
}
message ModifyTrack { // 修改轨迹
uint32 track_id = 1; // 要修改的轨迹ID
laserweld.common.TrackItem new_item = 2; // 新轨迹数据
}
message ModifyProc { // 批量修改轨迹工艺
repeated uint32 track_ids = 1; // 轨迹ID列表
uint32 proc = 2; // 工艺ID(1-12)
}
message InsertTrack { // 插入轨迹(非常规插入)
uint32 track_id = 1;
laserweld.common.TrackItem item = 2; // 轨迹数据
}