Merge branch 'master' of https://git.code.tencent.com/jl-framework/rtss_simulation
# Conflicts: # repo/dto/cg_repo.pb.go
This commit is contained in:
commit
3cb6678a19
@ -42,7 +42,7 @@ const (
|
|||||||
|
|
||||||
// 占用状态
|
// 占用状态
|
||||||
type OccupiedStatus struct {
|
type OccupiedStatus struct {
|
||||||
Type OccupiedType
|
Types []OccupiedType // 占用状态
|
||||||
}
|
}
|
||||||
|
|
||||||
var OccupiedStatusType = ecs.NewComponentType[OccupiedStatus]() // 占用状态组件
|
var OccupiedStatusType = ecs.NewComponentType[OccupiedStatus]() // 占用状态组件
|
||||||
@ -69,9 +69,8 @@ var BlockadeStatusType = ecs.NewComponentType[BlockadeStatus]() // 封锁状态
|
|||||||
|
|
||||||
// 解锁状态
|
// 解锁状态
|
||||||
type UnLockStatus struct {
|
type UnLockStatus struct {
|
||||||
Delay bool // 延迟状态
|
Delay bool // 延迟状态
|
||||||
DelayTime time.Duration // 延迟解锁时间
|
DelayTime time.Duration // 延迟解锁时间
|
||||||
TriggerDevice *ecs.Entry // 触发解锁设备
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var UnLockStatusType = ecs.NewComponentType[UnLockStatus]() // 解锁状态组件
|
var UnLockStatusType = ecs.NewComponentType[UnLockStatus]() // 解锁状态组件
|
||||||
@ -118,6 +117,7 @@ type RouteStatus struct {
|
|||||||
AtsControl bool // ats自动控制
|
AtsControl bool // ats自动控制
|
||||||
Setting bool // 进路是否排列中
|
Setting bool // 进路是否排列中
|
||||||
Lock bool // 已锁闭
|
Lock bool // 已锁闭
|
||||||
|
Setable bool // 是否可排列
|
||||||
}
|
}
|
||||||
|
|
||||||
var RouteStatusType = ecs.NewComponentType[RouteStatus]() // 进路状态组件
|
var RouteStatusType = ecs.NewComponentType[RouteStatus]() // 进路状态组件
|
||||||
@ -145,24 +145,7 @@ const (
|
|||||||
type DevicePosition struct {
|
type DevicePosition struct {
|
||||||
Device *ecs.Entry // 设备
|
Device *ecs.Entry // 设备
|
||||||
Offset int64 // 在设备上的相对a位置偏移
|
Offset int64 // 在设备上的相对a位置偏移
|
||||||
Direction bool // 从a到b为true;从b到a为false
|
Direction bool // 上下行
|
||||||
}
|
}
|
||||||
|
|
||||||
var DevicePositionType = ecs.NewComponentType[DevicePosition]()
|
var DevicePositionType = ecs.NewComponentType[DevicePosition]()
|
||||||
|
|
||||||
// 列车运行状态
|
|
||||||
type TrainRunStatus struct {
|
|
||||||
RunLevel TrainRunLevel // 列车运行级别
|
|
||||||
DriveMode DriveMode // 驾驶模式
|
|
||||||
Speed float32 // 运行速度
|
|
||||||
SpeedMax float32 // 最大速度
|
|
||||||
HeadPosition *DevicePosition // 车头位置
|
|
||||||
TailPosition *DevicePosition // 车尾位置
|
|
||||||
Hold bool // 扣车
|
|
||||||
}
|
|
||||||
|
|
||||||
var TrainRunStatusType = ecs.NewComponentType[TrainRunStatus]() // 列车位置状态组件
|
|
||||||
|
|
||||||
var (
|
|
||||||
TrainSpeedMax float32 = 80 / 3.6
|
|
||||||
)
|
|
||||||
|
10
component/ci.go
Normal file
10
component/ci.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package component
|
||||||
|
|
||||||
|
import (
|
||||||
|
"joylink.club/ecs"
|
||||||
|
"joylink.club/rtsssimulation/component/component_data"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
CiSysRAMType = ecs.NewComponentType[component_data.CiSysRAM]()
|
||||||
|
)
|
@ -6,6 +6,8 @@ import (
|
|||||||
"joylink.club/rtsssimulation/consts"
|
"joylink.club/rtsssimulation/consts"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var BitType = ecs.NewComponentType[bool]()
|
||||||
|
|
||||||
// 唯一ID组件
|
// 唯一ID组件
|
||||||
type Uid struct {
|
type Uid struct {
|
||||||
Id string
|
Id string
|
||||||
@ -19,16 +21,17 @@ var UidType = ecs.NewComponentType[Uid]()
|
|||||||
// Speed int
|
// Speed int
|
||||||
// }
|
// }
|
||||||
|
|
||||||
type TwoPositionTransform struct {
|
type FixedPositionTransform struct {
|
||||||
component_proto.TwoPositionTransform
|
component_proto.TwoPositionTransform
|
||||||
}
|
}
|
||||||
|
|
||||||
// 当前位置百分比值
|
// 当前位置百分比值
|
||||||
func (tp *TwoPositionTransform) Percentage() float32 {
|
func (tp *FixedPositionTransform) Percentage() float32 {
|
||||||
return float32(tp.Pos) / consts.TwoPosMax
|
return float32(tp.Pos) / consts.TwoPosMax
|
||||||
}
|
}
|
||||||
|
|
||||||
var TwoPositionTransformType = ecs.NewComponentType[TwoPositionTransform]()
|
// 固定位置转换组件类型
|
||||||
|
var FixedPositionTransformType = ecs.NewComponentType[FixedPositionTransform]()
|
||||||
|
|
||||||
// 计算两位置动作的平均速度
|
// 计算两位置动作的平均速度
|
||||||
// 总时间t和tick的单位都应该是ms
|
// 总时间t和tick的单位都应该是ms
|
||||||
|
1305
component/component_data/ci.pb.go
Normal file
1305
component/component_data/ci.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
436
component/component_data/common.pb.go
Normal file
436
component/component_data/common.pb.go
Normal file
@ -0,0 +1,436 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.1
|
||||||
|
// protoc v4.23.1
|
||||||
|
// source: component/common.proto
|
||||||
|
|
||||||
|
package component_data
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
|
)
|
||||||
|
|
||||||
|
// 电机
|
||||||
|
type Motor struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// 是否通电
|
||||||
|
PowerUp bool `protobuf:"varint,1,opt,name=powerUp,proto3" json:"powerUp,omitempty"`
|
||||||
|
// 是否正转
|
||||||
|
Forward bool `protobuf:"varint,2,opt,name=forward,proto3" json:"forward,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Motor) Reset() {
|
||||||
|
*x = Motor{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_common_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Motor) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Motor) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Motor) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_common_proto_msgTypes[0]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use Motor.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Motor) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_common_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Motor) GetPowerUp() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.PowerUp
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Motor) GetForward() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Forward
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// 固定位置转换组件
|
||||||
|
type FixedPositionTransform struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Pos int32 `protobuf:"varint,1,opt,name=pos,proto3" json:"pos,omitempty"` // 当前位置百分比,[0, 10000],两位小数
|
||||||
|
Speed int32 `protobuf:"varint,2,opt,name=speed,proto3" json:"speed,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FixedPositionTransform) Reset() {
|
||||||
|
*x = FixedPositionTransform{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_common_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FixedPositionTransform) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*FixedPositionTransform) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *FixedPositionTransform) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_common_proto_msgTypes[1]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use FixedPositionTransform.ProtoReflect.Descriptor instead.
|
||||||
|
func (*FixedPositionTransform) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_common_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FixedPositionTransform) GetPos() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Pos
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FixedPositionTransform) GetSpeed() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Speed
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// 开关状态组件
|
||||||
|
type BitState struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Val bool `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BitState) Reset() {
|
||||||
|
*x = BitState{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_common_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BitState) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*BitState) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *BitState) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_common_proto_msgTypes[2]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use BitState.ProtoReflect.Descriptor instead.
|
||||||
|
func (*BitState) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_common_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BitState) GetVal() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Val
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// 计数/计时组件
|
||||||
|
type Counter struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Val int32 `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
|
||||||
|
Step int32 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Counter) Reset() {
|
||||||
|
*x = Counter{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_common_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Counter) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Counter) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Counter) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_common_proto_msgTypes[3]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use Counter.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Counter) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_common_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Counter) GetVal() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Val
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Counter) GetStep() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Step
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// 倒数/倒计时组件
|
||||||
|
type CounterDown struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Val int32 `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
|
||||||
|
Step int32 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CounterDown) Reset() {
|
||||||
|
*x = CounterDown{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_common_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CounterDown) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*CounterDown) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *CounterDown) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_common_proto_msgTypes[4]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use CounterDown.ProtoReflect.Descriptor instead.
|
||||||
|
func (*CounterDown) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_common_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CounterDown) GetVal() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Val
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CounterDown) GetStep() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Step
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_component_common_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_component_common_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
|
||||||
|
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e,
|
||||||
|
0x65, 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x05, 0x4d, 0x6f, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07,
|
||||||
|
0x70, 0x6f, 0x77, 0x65, 0x72, 0x55, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70,
|
||||||
|
0x6f, 0x77, 0x65, 0x72, 0x55, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72,
|
||||||
|
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64,
|
||||||
|
0x22, 0x40, 0x0a, 0x16, 0x46, 0x69, 0x78, 0x65, 0x64, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f,
|
||||||
|
0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f,
|
||||||
|
0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x12, 0x14, 0x0a, 0x05,
|
||||||
|
0x73, 0x70, 0x65, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x70, 0x65,
|
||||||
|
0x65, 0x64, 0x22, 0x1c, 0x0a, 0x08, 0x42, 0x69, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x10,
|
||||||
|
0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x76, 0x61, 0x6c,
|
||||||
|
0x22, 0x2f, 0x0a, 0x07, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x76,
|
||||||
|
0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x12, 0x12, 0x0a,
|
||||||
|
0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, 0x65,
|
||||||
|
0x70, 0x22, 0x33, 0x0a, 0x0b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x44, 0x6f, 0x77, 0x6e,
|
||||||
|
0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76,
|
||||||
|
0x61, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
||||||
|
0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x42, 0x1c, 0x5a, 0x1a, 0x2e, 0x2f, 0x63, 0x6f, 0x6d, 0x70,
|
||||||
|
0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f,
|
||||||
|
0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_component_common_proto_rawDescOnce sync.Once
|
||||||
|
file_component_common_proto_rawDescData = file_component_common_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_component_common_proto_rawDescGZIP() []byte {
|
||||||
|
file_component_common_proto_rawDescOnce.Do(func() {
|
||||||
|
file_component_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_component_common_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_component_common_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_component_common_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||||
|
var file_component_common_proto_goTypes = []interface{}{
|
||||||
|
(*Motor)(nil), // 0: component.Motor
|
||||||
|
(*FixedPositionTransform)(nil), // 1: component.FixedPositionTransform
|
||||||
|
(*BitState)(nil), // 2: component.BitState
|
||||||
|
(*Counter)(nil), // 3: component.Counter
|
||||||
|
(*CounterDown)(nil), // 4: component.CounterDown
|
||||||
|
}
|
||||||
|
var file_component_common_proto_depIdxs = []int32{
|
||||||
|
0, // [0:0] is the sub-list for method output_type
|
||||||
|
0, // [0:0] is the sub-list for method input_type
|
||||||
|
0, // [0:0] is the sub-list for extension type_name
|
||||||
|
0, // [0:0] is the sub-list for extension extendee
|
||||||
|
0, // [0:0] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_component_common_proto_init() }
|
||||||
|
func file_component_common_proto_init() {
|
||||||
|
if File_component_common_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_component_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*Motor); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*FixedPositionTransform); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*BitState); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*Counter); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*CounterDown); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_component_common_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 5,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_component_common_proto_goTypes,
|
||||||
|
DependencyIndexes: file_component_common_proto_depIdxs,
|
||||||
|
MessageInfos: file_component_common_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_component_common_proto = out.File
|
||||||
|
file_component_common_proto_rawDesc = nil
|
||||||
|
file_component_common_proto_goTypes = nil
|
||||||
|
file_component_common_proto_depIdxs = nil
|
||||||
|
}
|
639
component/component_data/points.pb.go
Normal file
639
component/component_data/points.pb.go
Normal file
@ -0,0 +1,639 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.1
|
||||||
|
// protoc v4.23.1
|
||||||
|
// source: component/points.proto
|
||||||
|
|
||||||
|
package component_data
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
|
)
|
||||||
|
|
||||||
|
// 道岔故障
|
||||||
|
type Points_Fault int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
// 失表
|
||||||
|
Points_SB Points_Fault = 0
|
||||||
|
// 定位失表
|
||||||
|
Points_DWSB Points_Fault = 1
|
||||||
|
// 反位失表
|
||||||
|
Points_FWSB Points_Fault = 2
|
||||||
|
// 挤岔
|
||||||
|
Points_JC Points_Fault = 3
|
||||||
|
// 联锁无法驱动故障
|
||||||
|
Points_CIQD Points_Fault = 4
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for Points_Fault.
|
||||||
|
var (
|
||||||
|
Points_Fault_name = map[int32]string{
|
||||||
|
0: "SB",
|
||||||
|
1: "DWSB",
|
||||||
|
2: "FWSB",
|
||||||
|
3: "JC",
|
||||||
|
4: "CIQD",
|
||||||
|
}
|
||||||
|
Points_Fault_value = map[string]int32{
|
||||||
|
"SB": 0,
|
||||||
|
"DWSB": 1,
|
||||||
|
"FWSB": 2,
|
||||||
|
"JC": 3,
|
||||||
|
"CIQD": 4,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x Points_Fault) Enum() *Points_Fault {
|
||||||
|
p := new(Points_Fault)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x Points_Fault) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (Points_Fault) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_component_points_proto_enumTypes[0].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (Points_Fault) Type() protoreflect.EnumType {
|
||||||
|
return &file_component_points_proto_enumTypes[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x Points_Fault) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use Points_Fault.Descriptor instead.
|
||||||
|
func (Points_Fault) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_component_points_proto_rawDescGZIP(), []int{2, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔转辙机自动开闭器状态
|
||||||
|
// 自动开闭器接点位置,默认定位接通1/3排,反位接通2/4排
|
||||||
|
// 由定位转反位(1DQJ和1DQJF励磁吸起,2DQJ在反位——即落下),三相电路导通,电机开始反转,转辙机将第3排接点接通第4排,到位锁闭后,转辙机的自动开闭器拉簧将第1排接点拉到第2排,接点到2排后,三相电路断路
|
||||||
|
// 由反位转定位(1DQJ和1DQJF励磁吸起,2DQJ在定位——即吸起),三相电路导通,电机开始正转,转辙机将第2排接点接通第1排,到位锁闭后,转辙机的自动开闭器拉簧将第4排接点拉到第3排,接点到3排后,三相电路断路
|
||||||
|
type PointsZzjKbqState struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// 接点在1/2排的位置,false-接点在1排,true-接点在2排
|
||||||
|
Jd13 bool `protobuf:"varint,1,opt,name=jd13,proto3" json:"jd13,omitempty"`
|
||||||
|
// 接点在3/4排的位置,false-接点在3排,true-接点在4排
|
||||||
|
Jd24 bool `protobuf:"varint,2,opt,name=jd24,proto3" json:"jd24,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsZzjKbqState) Reset() {
|
||||||
|
*x = PointsZzjKbqState{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_points_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsZzjKbqState) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PointsZzjKbqState) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PointsZzjKbqState) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_points_proto_msgTypes[0]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use PointsZzjKbqState.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PointsZzjKbqState) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_points_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsZzjKbqState) GetJd13() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Jd13
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsZzjKbqState) GetJd24() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Jd24
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔位置状态表示组件
|
||||||
|
type PointsPosition struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// 是否定位(实际位置)
|
||||||
|
Dw bool `protobuf:"varint,1,opt,name=dw,proto3" json:"dw,omitempty"`
|
||||||
|
// 是否反位(实际位置)
|
||||||
|
Fw bool `protobuf:"varint,2,opt,name=fw,proto3" json:"fw,omitempty"`
|
||||||
|
// 定表
|
||||||
|
Db bool `protobuf:"varint,3,opt,name=db,proto3" json:"db,omitempty"`
|
||||||
|
// 反表
|
||||||
|
Fb bool `protobuf:"varint,4,opt,name=fb,proto3" json:"fb,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsPosition) Reset() {
|
||||||
|
*x = PointsPosition{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_points_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsPosition) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PointsPosition) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PointsPosition) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_points_proto_msgTypes[1]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use PointsPosition.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PointsPosition) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_points_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsPosition) GetDw() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Dw
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsPosition) GetFw() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Fw
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsPosition) GetDb() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Db
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsPosition) GetFb() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Fb
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔
|
||||||
|
type Points struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Points) Reset() {
|
||||||
|
*x = Points{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_points_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Points) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Points) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Points) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_points_proto_msgTypes[2]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use Points.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Points) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_points_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔失表故障
|
||||||
|
type PointsFaultSB struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsFaultSB) Reset() {
|
||||||
|
*x = PointsFaultSB{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_points_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsFaultSB) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PointsFaultSB) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PointsFaultSB) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_points_proto_msgTypes[3]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use PointsFaultSB.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PointsFaultSB) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_points_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔定位失表故障
|
||||||
|
type PointsFaultDwsb struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsFaultDwsb) Reset() {
|
||||||
|
*x = PointsFaultDwsb{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_points_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsFaultDwsb) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PointsFaultDwsb) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PointsFaultDwsb) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_points_proto_msgTypes[4]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use PointsFaultDwsb.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PointsFaultDwsb) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_points_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔反位失表故障
|
||||||
|
type PointsFaultFwsb struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsFaultFwsb) Reset() {
|
||||||
|
*x = PointsFaultFwsb{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_points_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsFaultFwsb) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PointsFaultFwsb) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PointsFaultFwsb) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_points_proto_msgTypes[5]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use PointsFaultFwsb.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PointsFaultFwsb) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_points_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔挤岔故障
|
||||||
|
type PointsFaultJc struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsFaultJc) Reset() {
|
||||||
|
*x = PointsFaultJc{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_points_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsFaultJc) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PointsFaultJc) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PointsFaultJc) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_points_proto_msgTypes[6]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use PointsFaultJc.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PointsFaultJc) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_points_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔联锁无法驱动故障
|
||||||
|
type PointsFaultCiqd struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsFaultCiqd) Reset() {
|
||||||
|
*x = PointsFaultCiqd{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_component_points_proto_msgTypes[7]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PointsFaultCiqd) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PointsFaultCiqd) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PointsFaultCiqd) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_component_points_proto_msgTypes[7]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use PointsFaultCiqd.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PointsFaultCiqd) Descriptor() ([]byte, []int) {
|
||||||
|
return file_component_points_proto_rawDescGZIP(), []int{7}
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_component_points_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_component_points_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x70, 0x6f, 0x69, 0x6e,
|
||||||
|
0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e,
|
||||||
|
0x65, 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x11, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x5a, 0x7a, 0x6a,
|
||||||
|
0x4b, 0x62, 0x71, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x64, 0x31, 0x33,
|
||||||
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6a, 0x64, 0x31, 0x33, 0x12, 0x12, 0x0a, 0x04,
|
||||||
|
0x6a, 0x64, 0x32, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6a, 0x64, 0x32, 0x34,
|
||||||
|
0x22, 0x50, 0x0a, 0x0e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69,
|
||||||
|
0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x64, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02,
|
||||||
|
0x64, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x66, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02,
|
||||||
|
0x66, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x64, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02,
|
||||||
|
0x64, 0x62, 0x12, 0x0e, 0x0a, 0x02, 0x66, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02,
|
||||||
|
0x66, 0x62, 0x22, 0x3f, 0x0a, 0x06, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x22, 0x35, 0x0a, 0x05,
|
||||||
|
0x46, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x42, 0x10, 0x00, 0x12, 0x08, 0x0a,
|
||||||
|
0x04, 0x44, 0x57, 0x53, 0x42, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x57, 0x53, 0x42, 0x10,
|
||||||
|
0x02, 0x12, 0x06, 0x0a, 0x02, 0x4a, 0x43, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x49, 0x51,
|
||||||
|
0x44, 0x10, 0x04, 0x22, 0x0f, 0x0a, 0x0d, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x46, 0x61, 0x75,
|
||||||
|
0x6c, 0x74, 0x53, 0x42, 0x22, 0x11, 0x0a, 0x0f, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x46, 0x61,
|
||||||
|
0x75, 0x6c, 0x74, 0x44, 0x77, 0x73, 0x62, 0x22, 0x11, 0x0a, 0x0f, 0x50, 0x6f, 0x69, 0x6e, 0x74,
|
||||||
|
0x73, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x77, 0x73, 0x62, 0x22, 0x0f, 0x0a, 0x0d, 0x50, 0x6f,
|
||||||
|
0x69, 0x6e, 0x74, 0x73, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x4a, 0x63, 0x22, 0x11, 0x0a, 0x0f, 0x50,
|
||||||
|
0x6f, 0x69, 0x6e, 0x74, 0x73, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x69, 0x71, 0x64, 0x42, 0x1c,
|
||||||
|
0x5a, 0x1a, 0x2e, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x6f,
|
||||||
|
0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72,
|
||||||
|
0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_component_points_proto_rawDescOnce sync.Once
|
||||||
|
file_component_points_proto_rawDescData = file_component_points_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_component_points_proto_rawDescGZIP() []byte {
|
||||||
|
file_component_points_proto_rawDescOnce.Do(func() {
|
||||||
|
file_component_points_proto_rawDescData = protoimpl.X.CompressGZIP(file_component_points_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_component_points_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_component_points_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
|
var file_component_points_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||||
|
var file_component_points_proto_goTypes = []interface{}{
|
||||||
|
(Points_Fault)(0), // 0: component.Points.Fault
|
||||||
|
(*PointsZzjKbqState)(nil), // 1: component.PointsZzjKbqState
|
||||||
|
(*PointsPosition)(nil), // 2: component.PointsPosition
|
||||||
|
(*Points)(nil), // 3: component.Points
|
||||||
|
(*PointsFaultSB)(nil), // 4: component.PointsFaultSB
|
||||||
|
(*PointsFaultDwsb)(nil), // 5: component.PointsFaultDwsb
|
||||||
|
(*PointsFaultFwsb)(nil), // 6: component.PointsFaultFwsb
|
||||||
|
(*PointsFaultJc)(nil), // 7: component.PointsFaultJc
|
||||||
|
(*PointsFaultCiqd)(nil), // 8: component.PointsFaultCiqd
|
||||||
|
}
|
||||||
|
var file_component_points_proto_depIdxs = []int32{
|
||||||
|
0, // [0:0] is the sub-list for method output_type
|
||||||
|
0, // [0:0] is the sub-list for method input_type
|
||||||
|
0, // [0:0] is the sub-list for extension type_name
|
||||||
|
0, // [0:0] is the sub-list for extension extendee
|
||||||
|
0, // [0:0] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_component_points_proto_init() }
|
||||||
|
func file_component_points_proto_init() {
|
||||||
|
if File_component_points_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_component_points_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PointsZzjKbqState); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_points_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PointsPosition); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_points_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*Points); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_points_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PointsFaultSB); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_points_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PointsFaultDwsb); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_points_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PointsFaultFwsb); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_points_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PointsFaultJc); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_component_points_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PointsFaultCiqd); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_component_points_proto_rawDesc,
|
||||||
|
NumEnums: 1,
|
||||||
|
NumMessages: 8,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_component_points_proto_goTypes,
|
||||||
|
DependencyIndexes: file_component_points_proto_depIdxs,
|
||||||
|
EnumInfos: file_component_points_proto_enumTypes,
|
||||||
|
MessageInfos: file_component_points_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_component_points_proto = out.File
|
||||||
|
file_component_points_proto_rawDesc = nil
|
||||||
|
file_component_points_proto_goTypes = nil
|
||||||
|
file_component_points_proto_depIdxs = nil
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.31.0
|
// protoc-gen-go v1.28.1
|
||||||
// protoc v4.23.1
|
// protoc v4.23.1
|
||||||
// source: component/ci.proto
|
// source: component/ci.proto
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.31.0
|
// protoc-gen-go v1.28.1
|
||||||
// protoc v4.23.1
|
// protoc v4.23.1
|
||||||
// source: component/common.proto
|
// source: component/common.proto
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.31.0
|
// protoc-gen-go v1.28.1
|
||||||
// protoc v4.23.1
|
// protoc v4.23.1
|
||||||
// source: component/psd.proto
|
// source: component/psd.proto
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.31.0
|
// protoc-gen-go v1.28.1
|
||||||
// protoc v4.23.1
|
// protoc v4.23.1
|
||||||
// source: component/signal.proto
|
// source: component/signal.proto
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.31.0
|
// protoc-gen-go v1.28.1
|
||||||
// protoc v4.23.1
|
// protoc v4.23.1
|
||||||
// source: component/turnout.proto
|
// source: component/turnout.proto
|
||||||
|
|
||||||
|
166
component/relation/points.go
Normal file
166
component/relation/points.go
Normal file
@ -0,0 +1,166 @@
|
|||||||
|
package relation
|
||||||
|
|
||||||
|
import (
|
||||||
|
"joylink.club/ecs"
|
||||||
|
"joylink.club/rtsssimulation/modelrepo/model"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
// 道岔模型数据引用组件类型
|
||||||
|
PointsModelRelaType = ecs.NewComponentType[PointsModelRela]()
|
||||||
|
// 道岔转辙机关系组件类型
|
||||||
|
PointsZzjRelaType = ecs.NewComponentType[PointsZzjRela]()
|
||||||
|
// ZDJ9双机电路元器件组件类型
|
||||||
|
Zdj9TwoElectronicType = ecs.NewComponentType[Zdj9TwoElectronic]()
|
||||||
|
)
|
||||||
|
|
||||||
|
// 道岔模型数据引用
|
||||||
|
type PointsModelRela struct {
|
||||||
|
M model.Turnout
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewPointsModelRela(m model.Turnout) *PointsModelRela {
|
||||||
|
return &PointsModelRela{
|
||||||
|
M: m,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔转辙机关系组件
|
||||||
|
type PointsZzjRela struct {
|
||||||
|
Turnout *ecs.Entry
|
||||||
|
Zzjs []*ecs.Entry
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewPointsZzjRela(t *ecs.Entry, zzjs ...*ecs.Entry) *PointsZzjRela {
|
||||||
|
return &PointsZzjRela{
|
||||||
|
Turnout: t,
|
||||||
|
Zzjs: zzjs,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取转辙机一,若没有则panic
|
||||||
|
func (tz *PointsZzjRela) GetZzj1() *ecs.Entry {
|
||||||
|
len := len(tz.Zzjs)
|
||||||
|
if len > 0 {
|
||||||
|
return tz.Zzjs[0]
|
||||||
|
}
|
||||||
|
panic("道岔没有转辙机一")
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取转辙机二,若没有则panic
|
||||||
|
func (tz *PointsZzjRela) GetZzj2() *ecs.Entry {
|
||||||
|
len := len(tz.Zzjs)
|
||||||
|
if len > 1 {
|
||||||
|
return tz.Zzjs[1]
|
||||||
|
}
|
||||||
|
panic("道岔没有转辙机二")
|
||||||
|
}
|
||||||
|
|
||||||
|
// ZDJ9双机电路元器件
|
||||||
|
type Zdj9TwoElectronic struct {
|
||||||
|
TDC_DCJ *ecs.Entry // 定操继电器
|
||||||
|
TDC_FCJ *ecs.Entry // 反操继电器
|
||||||
|
TDC_YCJ *ecs.Entry // 允许操作继电器
|
||||||
|
TDC_ZDBJ *ecs.Entry // 总定表继电器
|
||||||
|
TDC_ZFBJ *ecs.Entry // 总反表继电器
|
||||||
|
|
||||||
|
// 一机
|
||||||
|
TDFJ1_1DQJ *ecs.Entry // 一启动继电器
|
||||||
|
TDFJ1_BHJ *ecs.Entry // 保护继电器
|
||||||
|
TDFJ1_2DQJ *ecs.Entry // 二启动继电器
|
||||||
|
TDFJ1_1DQJF *ecs.Entry // 一启动复示继电器
|
||||||
|
TDFJ1_DBQ *ecs.Entry // 断相保护器
|
||||||
|
TDFJ1_DBJ *ecs.Entry // 定位表示继电器
|
||||||
|
TDFJ1_FBJ *ecs.Entry // 反位表示继电器
|
||||||
|
TDFJ1_QDJ *ecs.Entry // 切断继电器
|
||||||
|
TDFJ1_ZBHJ *ecs.Entry // 总保护继电器
|
||||||
|
|
||||||
|
TDFJ1_QDJ_Remain int // 切断继电器保持电路保持剩余时间
|
||||||
|
|
||||||
|
// 二机
|
||||||
|
TDFJ2_1DQJ *ecs.Entry // 一启动继电器
|
||||||
|
TDFJ2_BHJ *ecs.Entry // 保护继电器
|
||||||
|
TDFJ2_2DQJ *ecs.Entry // 二启动继电器
|
||||||
|
TDFJ2_1DQJF *ecs.Entry // 一启动复示继电器
|
||||||
|
TDFJ2_DBQ *ecs.Entry // 断相保护器
|
||||||
|
TDFJ2_DBJ *ecs.Entry // 定位表示继电器
|
||||||
|
TDFJ2_FBJ *ecs.Entry // 反位表示继电器
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查空引用,返回空引用字段名称
|
||||||
|
func (te *Zdj9TwoElectronic) CheckNilReference() []string {
|
||||||
|
var nils []string = make([]string, 0)
|
||||||
|
if te.TDC_DCJ == nil {
|
||||||
|
nils = append(nils, "TDC_DCJ")
|
||||||
|
}
|
||||||
|
if te.TDC_FCJ == nil {
|
||||||
|
nils = append(nils, "TDC_FCJ")
|
||||||
|
}
|
||||||
|
if te.TDC_YCJ == nil {
|
||||||
|
nils = append(nils, "TDC_YCJ")
|
||||||
|
}
|
||||||
|
if te.TDC_ZDBJ == nil {
|
||||||
|
nils = append(nils, "TDC_ZDBJ")
|
||||||
|
}
|
||||||
|
if te.TDC_ZFBJ == nil {
|
||||||
|
nils = append(nils, "TDC_ZFBJ")
|
||||||
|
}
|
||||||
|
// 一机
|
||||||
|
if te.TDFJ1_1DQJ == nil {
|
||||||
|
nils = append(nils, "TDFJ1_1DQJ")
|
||||||
|
}
|
||||||
|
if te.TDFJ1_BHJ == nil {
|
||||||
|
nils = append(nils, "TDFJ1_BHJ")
|
||||||
|
}
|
||||||
|
if te.TDFJ1_2DQJ == nil {
|
||||||
|
nils = append(nils, "TDFJ1_2DQJ")
|
||||||
|
}
|
||||||
|
if te.TDFJ1_1DQJF == nil {
|
||||||
|
nils = append(nils, "TDFJ1_1DQJF")
|
||||||
|
}
|
||||||
|
if te.TDFJ1_DBQ == nil {
|
||||||
|
nils = append(nils, "TDFJ1_DBQ")
|
||||||
|
}
|
||||||
|
if te.TDFJ1_DBJ == nil {
|
||||||
|
nils = append(nils, "TDFJ1_DBJ")
|
||||||
|
}
|
||||||
|
if te.TDFJ1_FBJ == nil {
|
||||||
|
nils = append(nils, "TDFJ1_FBJ")
|
||||||
|
}
|
||||||
|
if te.TDFJ1_QDJ == nil {
|
||||||
|
nils = append(nils, "TDFJ1_QDJ")
|
||||||
|
}
|
||||||
|
if te.TDFJ1_ZBHJ == nil {
|
||||||
|
nils = append(nils, "TDFJ1_ZBHJ")
|
||||||
|
}
|
||||||
|
|
||||||
|
// 二机
|
||||||
|
if te.TDFJ2_1DQJ == nil {
|
||||||
|
nils = append(nils, "TDFJ2_1DQJ")
|
||||||
|
}
|
||||||
|
if te.TDFJ2_BHJ == nil {
|
||||||
|
nils = append(nils, "TDFJ2_BHJ")
|
||||||
|
}
|
||||||
|
if te.TDFJ2_2DQJ == nil {
|
||||||
|
nils = append(nils, "TDFJ2_2DQJ")
|
||||||
|
}
|
||||||
|
if te.TDFJ2_1DQJF == nil {
|
||||||
|
nils = append(nils, "TDFJ2_1DQJF")
|
||||||
|
}
|
||||||
|
if te.TDFJ2_DBQ == nil {
|
||||||
|
nils = append(nils, "TDFJ2_DBQ")
|
||||||
|
}
|
||||||
|
if te.TDFJ2_DBJ == nil {
|
||||||
|
nils = append(nils, "TDFJ2_DBJ")
|
||||||
|
}
|
||||||
|
if te.TDFJ2_FBJ == nil {
|
||||||
|
nils = append(nils, "TDFJ2_FBJ")
|
||||||
|
}
|
||||||
|
return nils
|
||||||
|
}
|
||||||
|
|
||||||
|
// 是否有空引用
|
||||||
|
func (te *Zdj9TwoElectronic) HasNilReference() bool {
|
||||||
|
nils := te.CheckNilReference()
|
||||||
|
return len(nils) > 0
|
||||||
|
}
|
@ -9,6 +9,7 @@ import (
|
|||||||
var EntityUidIndexType = ecs.NewComponentType[EntityUidIndex]()
|
var EntityUidIndexType = ecs.NewComponentType[EntityUidIndex]()
|
||||||
|
|
||||||
// 对象实体Uid索引
|
// 对象实体Uid索引
|
||||||
|
// 只索引具有uid且不会销毁的实体
|
||||||
type EntityUidIndex struct {
|
type EntityUidIndex struct {
|
||||||
mu sync.RWMutex
|
mu sync.RWMutex
|
||||||
entityMap map[string]ecs.Entity
|
entityMap map[string]ecs.Entity
|
@ -13,6 +13,9 @@ func LoadSingletons(w ecs.World, r modelrepo.Repo) {
|
|||||||
loadUidEntityIndex(w)
|
loadUidEntityIndex(w)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Singleton struct {
|
||||||
|
}
|
||||||
|
|
||||||
var worldRepoQuery = ecs.NewQuery(filter.Contains(WorldRepoType))
|
var worldRepoQuery = ecs.NewQuery(filter.Contains(WorldRepoType))
|
||||||
var worldTimeQuery = ecs.NewQuery(filter.Contains(WorldTimeType))
|
var worldTimeQuery = ecs.NewQuery(filter.Contains(WorldTimeType))
|
||||||
var uidEntityIndexQuery = ecs.NewQuery(filter.Contains(EntityUidIndexType))
|
var uidEntityIndexQuery = ecs.NewQuery(filter.Contains(EntityUidIndexType))
|
||||||
|
@ -26,7 +26,7 @@ func (w *WorldTime) GetTime() time.Time {
|
|||||||
return time.UnixMilli(w.time)
|
return time.UnixMilli(w.time)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取时间戳
|
// 获取时间戳ms
|
||||||
func (w *WorldTime) GetMilli() int64 {
|
func (w *WorldTime) GetMilli() int64 {
|
||||||
return w.time
|
return w.time
|
||||||
}
|
}
|
||||||
|
@ -59,10 +59,10 @@ func NewValveEntity(w ecs.World, id string, valveType proto.Valve_Type) *ecs.Ent
|
|||||||
wd := GetWorldData(w)
|
wd := GetWorldData(w)
|
||||||
e, ok := wd.EntityMap[id]
|
e, ok := wd.EntityMap[id]
|
||||||
if !ok {
|
if !ok {
|
||||||
e = w.Entry(w.Create(component.UidType, component.ValveType, component.ValveControllerType, component.TwoPositionTransformType, component.DeviceExceptionType))
|
e = w.Entry(w.Create(component.UidType, component.ValveType, component.ValveControllerType, component.FixedPositionTransformType, component.DeviceExceptionType))
|
||||||
component.UidType.SetValue(e, component.Uid{Id: id})
|
component.UidType.SetValue(e, component.Uid{Id: id})
|
||||||
//默认全关位置
|
//默认全关位置
|
||||||
component.TwoPositionTransformType.Set(e, &component.TwoPositionTransform{TwoPositionTransform: component_proto.TwoPositionTransform{Pos: consts.TwoPosMin}})
|
component.FixedPositionTransformType.Set(e, &component.FixedPositionTransform{TwoPositionTransform: component_proto.TwoPositionTransform{Pos: consts.TwoPosMin}})
|
||||||
component.ValveControllerType.Set(e, &component.ValveController{TargetOpenRate: 0})
|
component.ValveControllerType.Set(e, &component.ValveController{TargetOpenRate: 0})
|
||||||
//
|
//
|
||||||
switch valveType {
|
switch valveType {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// 加载城轨仿真实体
|
// 加载城轨仿真实体
|
||||||
func LoadCg(w ecs.World, repo modelrepo.Repo) error {
|
func Loading(w ecs.World, repo modelrepo.Repo) error {
|
||||||
singleton.LoadSingletons(w, repo)
|
singleton.LoadSingletons(w, repo)
|
||||||
for _, s := range repo.GetEcses() {
|
for _, s := range repo.GetEcses() {
|
||||||
// 加载道岔实体
|
// 加载道岔实体
|
@ -1,16 +1,17 @@
|
|||||||
package entity
|
package entity
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"strconv"
|
||||||
|
|
||||||
"joylink.club/ecs"
|
"joylink.club/ecs"
|
||||||
"joylink.club/rtsssimulation/component"
|
"joylink.club/rtsssimulation/component"
|
||||||
"joylink.club/rtsssimulation/repository"
|
"joylink.club/rtsssimulation/repository"
|
||||||
"strconv"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var PsdBaseComponentTypeArr = []ecs.IComponentType{component.PsdTag, component.UidType,
|
var PsdBaseComponentTypeArr = []ecs.IComponentType{component.PsdTag, component.UidType,
|
||||||
component.PsdStateType, component.AsdListType, component.PscType}
|
component.PsdStateType, component.AsdListType, component.PscType}
|
||||||
var AsdBaseComponentTypeArr = []ecs.IComponentType{component.AsdTag, component.UidType,
|
var AsdBaseComponentTypeArr = []ecs.IComponentType{component.AsdTag, component.UidType,
|
||||||
component.AsdMotorStateType, component.TwoPositionTransformType, component.AsdStateType}
|
component.AsdMotorStateType, component.FixedPositionTransformType, component.AsdStateType}
|
||||||
|
|
||||||
func LoadPsd(w ecs.World) error {
|
func LoadPsd(w ecs.World) error {
|
||||||
data := GetWorldData(w)
|
data := GetWorldData(w)
|
||||||
|
@ -52,7 +52,7 @@ func LoadTurnoutZdj9One(w ecs.World, turnout *repository.Turnout, entry *ecs.Ent
|
|||||||
// 加载道岔ZDJ9双机转辙机
|
// 加载道岔ZDJ9双机转辙机
|
||||||
func LoadTurnoutZdj9Two(w ecs.World, turnout *repository.Turnout, entry *ecs.Entry, entityMap map[string]*ecs.Entry) error {
|
func LoadTurnoutZdj9Two(w ecs.World, turnout *repository.Turnout, entry *ecs.Entry, entityMap map[string]*ecs.Entry) error {
|
||||||
// 加载转辙机
|
// 加载转辙机
|
||||||
entrys := ecs.Entries(w, w.CreateMany(2, component.ZzjStateType, component.TwoPositionTransformType))
|
entrys := ecs.Entries(w, w.CreateMany(2, component.ZzjStateType, component.FixedPositionTransformType))
|
||||||
// 给道岔添加转辙机引用组件
|
// 给道岔添加转辙机引用组件
|
||||||
entry.AddComponent(component.TurnoutZzjType, unsafe.Pointer(&component.TurnoutZzj{
|
entry.AddComponent(component.TurnoutZzjType, unsafe.Pointer(&component.TurnoutZzj{
|
||||||
ZzjList: entrys,
|
ZzjList: entrys,
|
||||||
|
@ -2,6 +2,7 @@ package fi
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"joylink.club/ecs"
|
"joylink.club/ecs"
|
||||||
"joylink.club/rtsssimulation/component"
|
"joylink.club/rtsssimulation/component"
|
||||||
"joylink.club/rtsssimulation/consts"
|
"joylink.club/rtsssimulation/consts"
|
||||||
@ -23,7 +24,7 @@ func ValveOperate(w ecs.World, deviceId string, openRate uint8) error {
|
|||||||
return ecs.NewErrResult(fmt.Errorf("设备[%s]实体不存在", deviceId))
|
return ecs.NewErrResult(fmt.Errorf("设备[%s]实体不存在", deviceId))
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
if !(deviceEntry.HasComponent(component.ValveType) && deviceEntry.HasComponent(component.ValveControllerType) && deviceEntry.HasComponent(component.TwoPositionTransformType)) {
|
if !(deviceEntry.HasComponent(component.ValveType) && deviceEntry.HasComponent(component.ValveControllerType) && deviceEntry.HasComponent(component.FixedPositionTransformType)) {
|
||||||
return ecs.NewErrResult(fmt.Errorf("设备[%s]不是阀门", deviceId))
|
return ecs.NewErrResult(fmt.Errorf("设备[%s]不是阀门", deviceId))
|
||||||
}
|
}
|
||||||
component.ValveControllerType.Get(deviceEntry).TargetOpenRate = openRate
|
component.ValveControllerType.Get(deviceEntry).TargetOpenRate = openRate
|
||||||
|
2
init.go
2
init.go
@ -25,7 +25,7 @@ func NewSimulation(repo *repository.Repository) (ecs.World, error) {
|
|||||||
func LoadCgSimulation(repo modelrepo.Repo) (ecs.World, error) {
|
func LoadCgSimulation(repo modelrepo.Repo) (ecs.World, error) {
|
||||||
w := ecs.NewWorld(RtssSimulationTick)
|
w := ecs.NewWorld(RtssSimulationTick)
|
||||||
// 加载组件实体
|
// 加载组件实体
|
||||||
err := entity.LoadCg(w, repo)
|
err := entity.Loading(w, repo)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,149 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package component;
|
package component;
|
||||||
|
|
||||||
option go_package = "./component/component_proto";
|
option go_package = "./component/component_data";
|
||||||
|
|
||||||
|
// 联锁系统内存数据状态
|
||||||
|
message CiSysRAM {
|
||||||
|
map<string, CiQcState> qcStates = 2;
|
||||||
|
map<string, CiSectionState> sectionStates = 3;
|
||||||
|
map<string, CiPointsState> turnoutStates = 4;
|
||||||
|
map<string, CiSignalState> signalStates = 5;
|
||||||
|
map<string, CiPlatformState> platformStates = 6;
|
||||||
|
map<string, CiRouteState> routeStates = 7;
|
||||||
|
map<string, CiOverlapState> overlapStates = 8;
|
||||||
|
}
|
||||||
|
|
||||||
// 联锁驱动、采集状态表
|
// 联锁驱动、采集状态表
|
||||||
message CiQcState {
|
message CiQcState {
|
||||||
// 驱动bit表
|
// 驱动bit表
|
||||||
bytes qbs = 1;
|
bytes qbs = 2;
|
||||||
// 采集bit表
|
// 采集bit表
|
||||||
bytes cbs = 2;
|
bytes cbs = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 联锁区段状态
|
||||||
|
message CiSectionState {
|
||||||
|
// 是否物理检测占用
|
||||||
|
bool ciOccupied = 2;
|
||||||
|
// 是否cbtc逻辑占用
|
||||||
|
bool cbtcOccupied = 3;
|
||||||
|
// 是否进路锁闭
|
||||||
|
bool routeLock = 4;
|
||||||
|
// 是否延续保护锁闭
|
||||||
|
bool overlapLock = 5;
|
||||||
|
// 是否封锁
|
||||||
|
bool block = 6;
|
||||||
|
// 是否故障锁闭
|
||||||
|
bool failLock = 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 联锁道岔状态
|
||||||
|
message CiPointsState {
|
||||||
|
// 是否物理检测占用
|
||||||
|
bool ciOccupied = 1;
|
||||||
|
// 是否cbtc逻辑占用
|
||||||
|
bool cbtcOccupied = 2;
|
||||||
|
// 是否进路锁闭
|
||||||
|
bool routeLock = 3;
|
||||||
|
// 是否延续保护锁闭
|
||||||
|
bool overlapLock = 4;
|
||||||
|
// 是否封锁
|
||||||
|
bool block = 5;
|
||||||
|
// 是否故障锁闭
|
||||||
|
bool failLock = 6;
|
||||||
|
// 是否定位
|
||||||
|
bool normal = 7;
|
||||||
|
// 是否反位
|
||||||
|
bool reverse = 8;
|
||||||
|
// 是否挤岔
|
||||||
|
bool jammed = 9;
|
||||||
|
// 是否单锁
|
||||||
|
bool singleLock = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Signal {
|
||||||
|
// 信号显示
|
||||||
|
enum Aspect {
|
||||||
|
// 红灯亮
|
||||||
|
H = 0;
|
||||||
|
// 绿灯亮
|
||||||
|
L = 1;
|
||||||
|
// 黄灯亮
|
||||||
|
U = 2;
|
||||||
|
// 黄红灯亮(引导信号)
|
||||||
|
UH = 3;
|
||||||
|
// 白灯亮
|
||||||
|
B = 4;
|
||||||
|
// 蓝灯亮
|
||||||
|
A = 5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 联锁信号机状态
|
||||||
|
message CiSignalState {
|
||||||
|
// 信号显示
|
||||||
|
Signal.Aspect aspect = 1;
|
||||||
|
// 是否逻辑点灯(即室外灭灯)
|
||||||
|
bool logic = 2;
|
||||||
|
// 是否封锁
|
||||||
|
bool block = 3;
|
||||||
|
// 是否灯丝断丝
|
||||||
|
bool lampFault = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 联锁站台状态
|
||||||
|
message CiPlatformState {
|
||||||
|
// 车站上行扣车
|
||||||
|
bool upwardHold = 1;
|
||||||
|
// 车站下行扣车
|
||||||
|
bool downwardHold = 2;
|
||||||
|
// 中心上行扣车
|
||||||
|
bool occUpwardHold = 3;
|
||||||
|
// 中心下行扣车
|
||||||
|
bool occDownwardHold = 4;
|
||||||
|
// 屏蔽门开
|
||||||
|
bool psdOpen = 5;
|
||||||
|
// 紧急关闭/停车
|
||||||
|
bool emergStop = 6;
|
||||||
|
// 停站时间
|
||||||
|
int32 stopTime = 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
message RouteSignal {
|
||||||
|
// 进路信号控制级别
|
||||||
|
enum ControlLevel {
|
||||||
|
// 关闭
|
||||||
|
Close = 0;
|
||||||
|
// 引导信号控制级别
|
||||||
|
CallOn = 1;
|
||||||
|
// 移动闭塞信号控制级别
|
||||||
|
CTC = 2;
|
||||||
|
// 主信号控制级别
|
||||||
|
Main = 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 联锁进路状态
|
||||||
|
message CiRouteState {
|
||||||
|
// 是否进路锁闭
|
||||||
|
bool lock = 1;
|
||||||
|
// 是否接近锁闭
|
||||||
|
bool approachLock = 2;
|
||||||
|
// 是否车队模式
|
||||||
|
bool fleetMode = 3;
|
||||||
|
// 是否联锁自动触发
|
||||||
|
bool ciAutoMode = 4;
|
||||||
|
// 是否ats自动控
|
||||||
|
bool atsAutoMode = 5;
|
||||||
|
// 是否办理中
|
||||||
|
bool setting = 6;
|
||||||
|
// 进路信号控制级别
|
||||||
|
RouteSignal.ControlLevel controlLevel = 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 联锁延续保护进路状态
|
||||||
|
message CiOverlapState {
|
||||||
|
// 是否延续保护锁闭
|
||||||
|
bool lock = 1;
|
||||||
}
|
}
|
||||||
|
@ -2,15 +2,23 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package component;
|
package component;
|
||||||
|
|
||||||
option go_package = "./component/component_proto";
|
option go_package = "./component/component_data";
|
||||||
|
|
||||||
// 两个稳态位置转换组件
|
// 电机
|
||||||
message TwoPositionTransform {
|
message Motor {
|
||||||
|
// 是否通电
|
||||||
|
bool powerUp = 1;
|
||||||
|
// 是否正转
|
||||||
|
bool forward = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 固定位置转换组件
|
||||||
|
message FixedPositionTransform {
|
||||||
int32 pos = 1; // 当前位置百分比,[0, 10000],两位小数
|
int32 pos = 1; // 当前位置百分比,[0, 10000],两位小数
|
||||||
int32 speed = 2;
|
int32 speed = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 仅有两状态的组件
|
// 开关状态组件
|
||||||
message BitState {
|
message BitState {
|
||||||
bool val = 1;
|
bool val = 1;
|
||||||
}
|
}
|
||||||
|
65
proto/src/component/points.proto
Normal file
65
proto/src/component/points.proto
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package component;
|
||||||
|
|
||||||
|
option go_package = "./component/component_data";
|
||||||
|
|
||||||
|
// 道岔转辙机自动开闭器状态
|
||||||
|
// 自动开闭器接点位置,默认定位接通1/3排,反位接通2/4排
|
||||||
|
// 由定位转反位(1DQJ和1DQJF励磁吸起,2DQJ在反位——即落下),三相电路导通,电机开始反转,转辙机将第3排接点接通第4排,到位锁闭后,转辙机的自动开闭器拉簧将第1排接点拉到第2排,接点到2排后,三相电路断路
|
||||||
|
// 由反位转定位(1DQJ和1DQJF励磁吸起,2DQJ在定位——即吸起),三相电路导通,电机开始正转,转辙机将第2排接点接通第1排,到位锁闭后,转辙机的自动开闭器拉簧将第4排接点拉到第3排,接点到3排后,三相电路断路
|
||||||
|
message PointsZzjKbqState {
|
||||||
|
// 接点在1/2排的位置,false-接点在1排,true-接点在2排
|
||||||
|
bool jd13 = 1;
|
||||||
|
// 接点在3/4排的位置,false-接点在3排,true-接点在4排
|
||||||
|
bool jd24 = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔位置状态表示组件
|
||||||
|
message PointsPosition {
|
||||||
|
// 是否定位(实际位置)
|
||||||
|
bool dw = 1;
|
||||||
|
// 是否反位(实际位置)
|
||||||
|
bool fw = 2;
|
||||||
|
// 定表
|
||||||
|
bool db = 3;
|
||||||
|
// 反表
|
||||||
|
bool fb = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 道岔
|
||||||
|
message Points {
|
||||||
|
// 道岔故障
|
||||||
|
enum Fault {
|
||||||
|
// 失表
|
||||||
|
SB = 0;
|
||||||
|
// 定位失表
|
||||||
|
DWSB = 1;
|
||||||
|
// 反位失表
|
||||||
|
FWSB = 2;
|
||||||
|
// 挤岔
|
||||||
|
JC = 3;
|
||||||
|
// 联锁无法驱动故障
|
||||||
|
CIQD = 4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 道岔失表故障
|
||||||
|
message PointsFaultSB {
|
||||||
|
|
||||||
|
}
|
||||||
|
// 道岔定位失表故障
|
||||||
|
message PointsFaultDwsb {
|
||||||
|
|
||||||
|
}
|
||||||
|
// 道岔反位失表故障
|
||||||
|
message PointsFaultFwsb {
|
||||||
|
|
||||||
|
}
|
||||||
|
// 道岔挤岔故障
|
||||||
|
message PointsFaultJc {
|
||||||
|
|
||||||
|
}
|
||||||
|
// 道岔联锁无法驱动故障
|
||||||
|
message PointsFaultCiqd {
|
||||||
|
|
||||||
|
}
|
@ -1,54 +0,0 @@
|
|||||||
syntax = "proto3";
|
|
||||||
|
|
||||||
package component;
|
|
||||||
|
|
||||||
option go_package = "./component/component_proto";
|
|
||||||
|
|
||||||
// 道岔位置状态表示组件
|
|
||||||
message TurnoutPosition {
|
|
||||||
// 是否在定位(实际位置)
|
|
||||||
bool dw = 1;
|
|
||||||
// 是否在反位(实际位置)
|
|
||||||
bool fw = 2;
|
|
||||||
|
|
||||||
// 定表
|
|
||||||
bool db = 3;
|
|
||||||
// 反表
|
|
||||||
bool fb = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 道岔故障
|
|
||||||
message Turnout {
|
|
||||||
enum Fault {
|
|
||||||
// 失表
|
|
||||||
SB = 0;
|
|
||||||
// 定位失表
|
|
||||||
DWSB = 1;
|
|
||||||
// 反位失表
|
|
||||||
FWSB = 2;
|
|
||||||
// 挤岔
|
|
||||||
JC = 3;
|
|
||||||
// 联锁无法驱动故障
|
|
||||||
CIQD = 4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// 道岔失表故障
|
|
||||||
message TurnoutFaultSB {
|
|
||||||
|
|
||||||
}
|
|
||||||
// 道岔定位失表故障
|
|
||||||
message TurnoutFaultDwsb {
|
|
||||||
|
|
||||||
}
|
|
||||||
// 道岔反位失表故障
|
|
||||||
message TurnoutFaultFwsb {
|
|
||||||
|
|
||||||
}
|
|
||||||
// 道岔挤岔故障
|
|
||||||
message TurnoutFaultJc {
|
|
||||||
|
|
||||||
}
|
|
||||||
// 道岔联锁无法驱动故障
|
|
||||||
message TurnoutFaultCiqd {
|
|
||||||
|
|
||||||
}
|
|
@ -216,6 +216,8 @@ enum DeviceType {
|
|||||||
DeviceType_Breakers = 21;
|
DeviceType_Breakers = 21;
|
||||||
//电源屏
|
//电源屏
|
||||||
DeviceType_PowerScreen = 22;
|
DeviceType_PowerScreen = 22;
|
||||||
|
// 进路
|
||||||
|
DeviceType_Route = 23;
|
||||||
//--------ISCS 编号[300,500]------
|
//--------ISCS 编号[300,500]------
|
||||||
|
|
||||||
//ISCS门磁
|
//ISCS门磁
|
||||||
@ -574,18 +576,24 @@ message Route {
|
|||||||
PASS = 3;
|
PASS = 3;
|
||||||
LONG_SHUNTING = 4;
|
LONG_SHUNTING = 4;
|
||||||
}
|
}
|
||||||
|
message TurnoutPosition {
|
||||||
|
string id = 1; // 道岔ID
|
||||||
|
bool normal = 2; // 道岔定位
|
||||||
|
}
|
||||||
string id = 1;
|
string id = 1;
|
||||||
string name = 2;
|
string name = 2;
|
||||||
// 开始信号机
|
// 开始信号机
|
||||||
string startId = 3;
|
string startId = 3;
|
||||||
// 目的信号机
|
// 目的信号机
|
||||||
string destinationId = 4;
|
string destinationId = 4;
|
||||||
// 关联设备ID
|
// 关联区段ID
|
||||||
repeated string deviceIds = 5;
|
repeated string deviceIds = 5;
|
||||||
// 敌对进路ID
|
// 敌对进路ID
|
||||||
repeated string conflictingRouteIds = 6;
|
repeated string conflictingRouteIds = 6;
|
||||||
// 进路类型
|
// 进路类型
|
||||||
RouteType routeType = 7;
|
RouteType routeType = 7;
|
||||||
|
// 对应的道岔位置
|
||||||
|
repeated TurnoutPosition turnouts = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////ISCS///////////////////////////////////
|
//////////////////////////ISCS///////////////////////////////////
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.31.0
|
// protoc-gen-go v1.28.1
|
||||||
// protoc v4.23.1
|
// protoc v4.23.1
|
||||||
// source: cg_repo.proto
|
// source: cg_repo.proto
|
||||||
|
|
||||||
@ -603,7 +603,7 @@ func (JKP_Type) EnumDescriptor() ([]byte, []int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 城轨数据
|
// 城轨数据
|
||||||
type CgRepo struct {
|
type Modelrepo struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
@ -615,8 +615,8 @@ type CgRepo struct {
|
|||||||
Jkps []*JKP `protobuf:"bytes,3,rep,name=jkps,proto3" json:"jkps,omitempty"`
|
Jkps []*JKP `protobuf:"bytes,3,rep,name=jkps,proto3" json:"jkps,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CgRepo) Reset() {
|
func (x *Modelrepo) Reset() {
|
||||||
*x = CgRepo{}
|
*x = Modelrepo{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_cg_repo_proto_msgTypes[0]
|
mi := &file_cg_repo_proto_msgTypes[0]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -624,13 +624,13 @@ func (x *CgRepo) Reset() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CgRepo) String() string {
|
func (x *Modelrepo) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*CgRepo) ProtoMessage() {}
|
func (*Modelrepo) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CgRepo) ProtoReflect() protoreflect.Message {
|
func (x *Modelrepo) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_cg_repo_proto_msgTypes[0]
|
mi := &file_cg_repo_proto_msgTypes[0]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
@ -642,26 +642,26 @@ func (x *CgRepo) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use CgRepo.ProtoReflect.Descriptor instead.
|
// Deprecated: Use Modelrepo.ProtoReflect.Descriptor instead.
|
||||||
func (*CgRepo) Descriptor() ([]byte, []int) {
|
func (*Modelrepo) Descriptor() ([]byte, []int) {
|
||||||
return file_cg_repo_proto_rawDescGZIP(), []int{0}
|
return file_cg_repo_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CgRepo) GetId() string {
|
func (x *Modelrepo) GetId() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Id
|
return x.Id
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CgRepo) GetLines() []*Line {
|
func (x *Modelrepo) GetLines() []*Line {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Lines
|
return x.Lines
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CgRepo) GetJkps() []*JKP {
|
func (x *Modelrepo) GetJkps() []*JKP {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Jkps
|
return x.Jkps
|
||||||
}
|
}
|
||||||
@ -3181,311 +3181,312 @@ var File_cg_repo_proto protoreflect.FileDescriptor
|
|||||||
|
|
||||||
var file_cg_repo_proto_rawDesc = []byte{
|
var file_cg_repo_proto_rawDesc = []byte{
|
||||||
0x0a, 0x0d, 0x63, 0x67, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
0x0a, 0x0d, 0x63, 0x67, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||||
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5f, 0x0a, 0x06, 0x43, 0x67, 0x52, 0x65,
|
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x62, 0x0a, 0x09, 0x6d, 0x6f, 0x64, 0x65,
|
||||||
0x70, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
|
0x6c, 0x72, 0x65, 0x70, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x69, 0x64, 0x12, 0x23, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
|
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x02,
|
||||||
0x0b, 0x32, 0x0d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4c, 0x69, 0x6e, 0x65,
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4c,
|
||||||
0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x04, 0x6a, 0x6b, 0x70, 0x73, 0x18,
|
0x69, 0x6e, 0x65, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x04, 0x6a, 0x6b,
|
||||||
0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
0x70, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
||||||
0x4a, 0x4b, 0x50, 0x52, 0x04, 0x6a, 0x6b, 0x70, 0x73, 0x22, 0x7d, 0x0a, 0x04, 0x4c, 0x69, 0x6e,
|
0x67, 0x65, 0x2e, 0x4a, 0x4b, 0x50, 0x52, 0x04, 0x6a, 0x6b, 0x70, 0x73, 0x22, 0x7d, 0x0a, 0x04,
|
||||||
0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x4c, 0x69, 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18,
|
0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x69, 0x6e, 0x65,
|
||||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a,
|
0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64,
|
||||||
0x04, 0x78, 0x68, 0x62, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6d, 0x65,
|
0x12, 0x21, 0x0a, 0x04, 0x78, 0x68, 0x62, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d,
|
||||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x58, 0x48, 0x42, 0x5a, 0x52, 0x04, 0x78, 0x68, 0x62, 0x7a,
|
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x58, 0x48, 0x42, 0x5a, 0x52, 0x04, 0x78,
|
||||||
0x12, 0x26, 0x0a, 0x05, 0x6a, 0x64, 0x71, 0x62, 0x7a, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
0x68, 0x62, 0x7a, 0x12, 0x26, 0x0a, 0x05, 0x6a, 0x64, 0x71, 0x62, 0x7a, 0x18, 0x04, 0x20, 0x03,
|
||||||
0x10, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x69, 0x4a, 0x44, 0x51, 0x42,
|
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x69, 0x4a,
|
||||||
0x5a, 0x52, 0x05, 0x6a, 0x64, 0x71, 0x62, 0x7a, 0x22, 0xe0, 0x05, 0x0a, 0x04, 0x58, 0x48, 0x42,
|
0x44, 0x51, 0x42, 0x5a, 0x52, 0x05, 0x6a, 0x64, 0x71, 0x62, 0x7a, 0x22, 0xe0, 0x05, 0x0a, 0x04,
|
||||||
0x5a, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
|
0x58, 0x48, 0x42, 0x5a, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x64, 0x12, 0x2c, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20,
|
0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
||||||
0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x74,
|
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||||
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12,
|
0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f,
|
||||||
0x2f, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03,
|
0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18,
|
||||||
0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x6c, 0x61,
|
0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
||||||
0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73,
|
0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
|
||||||
0x12, 0x20, 0x0a, 0x04, 0x70, 0x73, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c,
|
0x72, 0x6d, 0x73, 0x12, 0x20, 0x0a, 0x04, 0x70, 0x73, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,
|
||||||
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x73, 0x64, 0x52, 0x04, 0x70, 0x73,
|
0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x73, 0x64, 0x52,
|
||||||
0x64, 0x73, 0x12, 0x2c, 0x0a, 0x08, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05,
|
0x04, 0x70, 0x73, 0x64, 0x73, 0x12, 0x2c, 0x0a, 0x08, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53,
|
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||||
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, 0x65, 0x63, 0x74, 0x69,
|
||||||
0x12, 0x2c, 0x0a, 0x08, 0x74, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03,
|
0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x0a, 0x08, 0x74, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x73, 0x18,
|
||||||
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x75, 0x72,
|
0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
||||||
0x6e, 0x6f, 0x75, 0x74, 0x52, 0x08, 0x74, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x73, 0x12, 0x3e,
|
0x54, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x52, 0x08, 0x74, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74,
|
||||||
0x0a, 0x0e, 0x64, 0x65, 0x76, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73,
|
0x73, 0x12, 0x3e, 0x0a, 0x0e, 0x64, 0x65, 0x76, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x69,
|
||||||
0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73,
|
||||||
0x2e, 0x44, 0x65, 0x76, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0e,
|
0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x69, 0x6e,
|
||||||
0x64, 0x65, 0x76, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x29,
|
0x74, 0x52, 0x0e, 0x64, 0x65, 0x76, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x69, 0x6e, 0x74,
|
||||||
0x0a, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
0x73, 0x12, 0x29, 0x0a, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03,
|
||||||
0x0f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c,
|
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x69, 0x67,
|
||||||
0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x12, 0x29, 0x0a, 0x07, 0x62, 0x61, 0x6c,
|
0x6e, 0x61, 0x6c, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x12, 0x29, 0x0a, 0x07,
|
||||||
0x69, 0x73, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6d, 0x65, 0x73,
|
0x62, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
|
||||||
0x73, 0x61, 0x67, 0x65, 0x2e, 0x42, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x52, 0x07, 0x62, 0x61, 0x6c,
|
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x42, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x52, 0x07,
|
||||||
0x69, 0x73, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x0c, 0x70, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53,
|
0x62, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x0c, 0x70, 0x61, 0x72, 0x6b, 0x69,
|
||||||
0x70, 0x6f, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73,
|
0x6e, 0x67, 0x53, 0x70, 0x6f, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e,
|
||||||
0x73, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x6f, 0x74,
|
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53,
|
||||||
0x52, 0x0c, 0x70, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x6f, 0x74, 0x73, 0x12, 0x1d,
|
0x70, 0x6f, 0x74, 0x52, 0x0c, 0x70, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x6f, 0x74,
|
||||||
0x0a, 0x03, 0x70, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x6d, 0x65,
|
0x73, 0x12, 0x1d, 0x0a, 0x03, 0x70, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b,
|
||||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x64, 0x52, 0x03, 0x70, 0x64, 0x73, 0x12, 0x1d, 0x0a,
|
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x64, 0x52, 0x03, 0x70, 0x64, 0x73,
|
||||||
0x03, 0x71, 0x64, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x6d, 0x65, 0x73,
|
0x12, 0x1d, 0x0a, 0x03, 0x71, 0x64, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e,
|
||||||
0x73, 0x61, 0x67, 0x65, 0x2e, 0x51, 0x64, 0x52, 0x03, 0x71, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x04,
|
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x51, 0x64, 0x52, 0x03, 0x71, 0x64, 0x73, 0x12,
|
||||||
0x65, 0x6d, 0x70, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73,
|
0x20, 0x0a, 0x04, 0x65, 0x6d, 0x70, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e,
|
||||||
0x73, 0x61, 0x67, 0x65, 0x2e, 0x45, 0x4d, 0x50, 0x52, 0x04, 0x65, 0x6d, 0x70, 0x73, 0x12, 0x20,
|
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x45, 0x4d, 0x50, 0x52, 0x04, 0x65, 0x6d, 0x70,
|
||||||
0x0a, 0x04, 0x74, 0x64, 0x74, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d,
|
0x73, 0x12, 0x20, 0x0a, 0x04, 0x74, 0x64, 0x74, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||||
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x44, 0x54, 0x52, 0x04, 0x74, 0x64, 0x74, 0x73,
|
0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x44, 0x54, 0x52, 0x04, 0x74,
|
||||||
0x12, 0x20, 0x0a, 0x04, 0x6d, 0x6b, 0x78, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c,
|
0x64, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x04, 0x6d, 0x6b, 0x78, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28,
|
||||||
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x6b, 0x78, 0x52, 0x04, 0x6d, 0x6b,
|
0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x6b, 0x78, 0x52,
|
||||||
0x78, 0x73, 0x12, 0x20, 0x0a, 0x04, 0x70, 0x73, 0x6c, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b,
|
0x04, 0x6d, 0x6b, 0x78, 0x73, 0x12, 0x20, 0x0a, 0x04, 0x70, 0x73, 0x6c, 0x73, 0x18, 0x10, 0x20,
|
||||||
0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x53, 0x4c, 0x52, 0x04,
|
0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x53,
|
||||||
0x70, 0x73, 0x6c, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x73, 0x70, 0x6b, 0x73, 0x18, 0x11, 0x20, 0x03,
|
0x4c, 0x52, 0x04, 0x70, 0x73, 0x6c, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x73, 0x70, 0x6b, 0x73, 0x18,
|
||||||
0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x50, 0x4b,
|
0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
||||||
0x53, 0x52, 0x04, 0x73, 0x70, 0x6b, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63,
|
0x53, 0x50, 0x4b, 0x53, 0x52, 0x04, 0x73, 0x70, 0x6b, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x64, 0x65,
|
||||||
0x65, 0x45, 0x63, 0x63, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65,
|
0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12,
|
||||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x52,
|
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45,
|
||||||
0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x73, 0x22, 0x4a, 0x0a, 0x04, 0x53,
|
0x63, 0x63, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x73, 0x22, 0x4a,
|
||||||
0x50, 0x4b, 0x53, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
0x0a, 0x04, 0x53, 0x50, 0x4b, 0x53, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||||
|
0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c,
|
||||||
|
0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a,
|
||||||
|
0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x03, 0x50, 0x53,
|
||||||
|
0x4c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69,
|
||||||
|
0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
|
0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x73, 0x64, 0x49, 0x64, 0x18, 0x03,
|
||||||
|
0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x70, 0x73, 0x64, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x03, 0x4d,
|
||||||
|
0x6b, 0x78, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02,
|
||||||
|
0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||||
|
0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x73, 0x64, 0x49, 0x64, 0x18,
|
||||||
|
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x70, 0x73, 0x64, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x03,
|
||||||
|
0x54, 0x44, 0x54, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
||||||
0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66,
|
0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66,
|
||||||
0x6f, 0x72, 0x6d, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x6c, 0x61,
|
0x6f, 0x72, 0x6d, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x6c, 0x61,
|
||||||
0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x03, 0x50, 0x53, 0x4c, 0x12, 0x0e,
|
0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x03, 0x45, 0x4d, 0x50, 0x12, 0x0e,
|
||||||
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
|
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
|
||||||
0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f,
|
0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f,
|
||||||
0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x73, 0x64, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
|
0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64,
|
||||||
0x0d, 0x52, 0x05, 0x70, 0x73, 0x64, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x03, 0x4d, 0x6b, 0x78, 0x12,
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
|
||||||
|
0x49, 0x64, 0x22, 0x14, 0x0a, 0x02, 0x51, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
||||||
|
0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x14, 0x0a, 0x02, 0x50, 0x64, 0x12, 0x0e,
|
||||||
|
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4f,
|
||||||
|
0x0a, 0x0b, 0x50, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x6f, 0x74, 0x12, 0x0e, 0x0a,
|
||||||
|
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a,
|
||||||
|
0x03, 0x74, 0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x74, 0x67, 0x6e, 0x12,
|
||||||
|
0x1e, 0x0a, 0x03, 0x67, 0x6c, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d,
|
||||||
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x4c, 0x42, 0x52, 0x03, 0x67, 0x6c, 0x62, 0x22,
|
||||||
|
0x84, 0x01, 0x0a, 0x06, 0x42, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
||||||
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79,
|
||||||
|
0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
||||||
|
0x67, 0x65, 0x2e, 0x42, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
|
||||||
|
0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x63, 0x73, 0x49,
|
||||||
|
0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x22, 0x16,
|
||||||
|
0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x46, 0x42, 0x10, 0x00, 0x12, 0x06,
|
||||||
|
0x0a, 0x02, 0x54, 0x42, 0x10, 0x01, 0x22, 0xfd, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x76, 0x69, 0x64,
|
||||||
|
0x69, 0x6e, 0x67, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
||||||
|
0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
|
||||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||||
|
0x2e, 0x44, 0x65, 0x76, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x54,
|
||||||
|
0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
|
||||||
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a,
|
||||||
|
0x03, 0x67, 0x6c, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73,
|
||||||
|
0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x4c, 0x42, 0x52, 0x03, 0x67, 0x6c, 0x62, 0x12, 0x38, 0x0a,
|
||||||
|
0x0c, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x05, 0x20,
|
||||||
|
0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65,
|
||||||
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x0c, 0x73, 0x65, 0x63, 0x74, 0x69,
|
||||||
|
0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x63, 0x73, 0x49, 0x64,
|
||||||
|
0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x65, 0x63, 0x73, 0x49, 0x64, 0x73, 0x22,
|
||||||
|
0x25, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x6f, 0x75, 0x6e, 0x64,
|
||||||
|
0x61, 0x72, 0x79, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4a, 0x5a, 0x10, 0x01, 0x12, 0x07, 0x0a,
|
||||||
|
0x03, 0x4a, 0x59, 0x4a, 0x10, 0x02, 0x22, 0x7b, 0x0a, 0x05, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12,
|
||||||
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12,
|
||||||
|
0x27, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e,
|
||||||
|
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x54, 0x79,
|
||||||
|
0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x39, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65,
|
||||||
|
0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0b, 0x0a,
|
||||||
|
0x07, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x75,
|
||||||
|
0x72, 0x6e, 0x6f, 0x75, 0x74, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61,
|
||||||
|
0x6c, 0x10, 0x03, 0x22, 0x92, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50,
|
||||||
|
0x6f, 0x72, 0x74, 0x12, 0x27, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
|
0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x65,
|
||||||
|
0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02,
|
||||||
|
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x04,
|
||||||
|
0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x73,
|
||||||
|
0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74,
|
||||||
|
0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x1b, 0x0a, 0x04, 0x54,
|
||||||
|
0x79, 0x70, 0x65, 0x12, 0x05, 0x0a, 0x01, 0x41, 0x10, 0x00, 0x12, 0x05, 0x0a, 0x01, 0x42, 0x10,
|
||||||
|
0x01, 0x12, 0x05, 0x0a, 0x01, 0x43, 0x10, 0x02, 0x22, 0xd8, 0x02, 0x0a, 0x06, 0x53, 0x69, 0x67,
|
||||||
|
0x6e, 0x61, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
||||||
|
0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
|
||||||
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||||
|
0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d,
|
||||||
|
0x6f, 0x64, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x18, 0x04, 0x20,
|
||||||
|
0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x03, 0x74, 0x72,
|
||||||
|
0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||||
|
0x65, 0x2e, 0x54, 0x52, 0x44, 0x52, 0x03, 0x74, 0x72, 0x64, 0x22, 0xc6, 0x01, 0x0a, 0x05, 0x4d,
|
||||||
|
0x6f, 0x64, 0x65, 0x6c, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x4c, 0x55, 0x5f, 0x30, 0x5f, 0x31, 0x5f,
|
||||||
|
0x31, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x4c, 0x55, 0x5f, 0x30, 0x5f, 0x30, 0x5f, 0x31,
|
||||||
|
0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x4c, 0x55, 0x5f, 0x30, 0x5f, 0x31, 0x5f, 0x30, 0x10,
|
||||||
|
0x02, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x4c, 0x55, 0x5f, 0x55, 0x5f, 0x30, 0x5f, 0x30, 0x10, 0x03,
|
||||||
|
0x12, 0x0d, 0x0a, 0x09, 0x48, 0x4c, 0x55, 0x5f, 0x4c, 0x5f, 0x31, 0x5f, 0x31, 0x10, 0x04, 0x12,
|
||||||
|
0x0d, 0x0a, 0x09, 0x48, 0x4c, 0x55, 0x5f, 0x4c, 0x5f, 0x31, 0x5f, 0x30, 0x10, 0x05, 0x12, 0x0e,
|
||||||
|
0x0a, 0x0a, 0x48, 0x4c, 0x55, 0x5f, 0x4c, 0x55, 0x5f, 0x30, 0x5f, 0x30, 0x10, 0x06, 0x12, 0x08,
|
||||||
|
0x0a, 0x04, 0x48, 0x4c, 0x5f, 0x30, 0x10, 0x07, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4c, 0x5f, 0x4c,
|
||||||
|
0x10, 0x08, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x55, 0x5f, 0x30, 0x10, 0x09, 0x12, 0x08, 0x0a, 0x04,
|
||||||
|
0x48, 0x55, 0x5f, 0x55, 0x10, 0x0a, 0x12, 0x05, 0x0a, 0x01, 0x48, 0x10, 0x0b, 0x12, 0x06, 0x0a,
|
||||||
|
0x02, 0x41, 0x42, 0x10, 0x0c, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x42, 0x55, 0x5f, 0x30, 0x5f, 0x31,
|
||||||
|
0x5f, 0x30, 0x10, 0x0d, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x42, 0x55, 0x5f, 0x55, 0x5f, 0x30, 0x5f,
|
||||||
|
0x30, 0x10, 0x0e, 0x22, 0x8a, 0x02, 0x0a, 0x07, 0x54, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x12,
|
||||||
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12,
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12,
|
||||||
0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63,
|
0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63,
|
||||||
0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x73, 0x64, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01,
|
0x6f, 0x64, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01,
|
||||||
0x28, 0x0d, 0x52, 0x05, 0x70, 0x73, 0x64, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x03, 0x54, 0x44, 0x54,
|
0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x75, 0x72,
|
||||||
|
0x6e, 0x6f, 0x75, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65,
|
||||||
|
0x6c, 0x12, 0x26, 0x0a, 0x03, 0x61, 0x73, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,
|
||||||
|
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
|
0x50, 0x6f, 0x72, 0x74, 0x52, 0x03, 0x61, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x03, 0x62, 0x73, 0x70,
|
||||||
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||||||
|
0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x03, 0x62, 0x73,
|
||||||
|
0x70, 0x12, 0x26, 0x0a, 0x03, 0x63, 0x73, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14,
|
||||||
|
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
|
0x50, 0x6f, 0x72, 0x74, 0x52, 0x03, 0x63, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x63, 0x73,
|
||||||
|
0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x22,
|
||||||
|
0x1f, 0x0a, 0x05, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x0a, 0x0a, 0x06, 0x5a, 0x44, 0x4a, 0x39,
|
||||||
|
0x5f, 0x31, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x5a, 0x44, 0x4a, 0x39, 0x5f, 0x32, 0x10, 0x01,
|
||||||
|
0x22, 0x96, 0x02, 0x0a, 0x07, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02,
|
||||||
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
|
||||||
|
0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
|
||||||
|
0x12, 0x29, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15,
|
||||||
|
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
|
0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x03, 0x61,
|
||||||
|
0x73, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
||||||
|
0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x03,
|
||||||
|
0x61, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x03, 0x62, 0x73, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
|
||||||
|
0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69,
|
||||||
|
0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x03, 0x62, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65,
|
||||||
|
0x63, 0x73, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x63, 0x73, 0x49,
|
||||||
|
0x64, 0x12, 0x1e, 0x0a, 0x03, 0x74, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c,
|
||||||
|
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x52, 0x44, 0x52, 0x03, 0x74, 0x72,
|
||||||
|
0x64, 0x22, 0x36, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x68, 0x79,
|
||||||
|
0x73, 0x69, 0x63, 0x61, 0x6c, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x75, 0x72, 0x6e, 0x6f,
|
||||||
|
0x75, 0x74, 0x50, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07,
|
||||||
|
0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x10, 0x02, 0x22, 0x49, 0x0a, 0x03, 0x50, 0x73, 0x64,
|
||||||
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64,
|
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64,
|
||||||
0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||||
0x63, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
|
0x63, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
|
||||||
0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
|
0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
|
||||||
0x72, 0x6d, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x03, 0x45, 0x4d, 0x50, 0x12, 0x0e, 0x0a, 0x02, 0x69,
|
0x72, 0x6d, 0x49, 0x64, 0x22, 0x7a, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
|
||||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63,
|
|
||||||
0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12,
|
|
||||||
0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64, 0x18, 0x03, 0x20,
|
|
||||||
0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64, 0x22,
|
|
||||||
0x14, 0x0a, 0x02, 0x51, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
||||||
0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x14, 0x0a, 0x02, 0x50, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69,
|
|
||||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4f, 0x0a, 0x0b, 0x50,
|
|
||||||
0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x6f, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x67,
|
|
||||||
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x74, 0x67, 0x6e, 0x12, 0x1e, 0x0a, 0x03,
|
|
||||||
0x67, 0x6c, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73,
|
|
||||||
0x61, 0x67, 0x65, 0x2e, 0x47, 0x4c, 0x42, 0x52, 0x03, 0x67, 0x6c, 0x62, 0x22, 0x84, 0x01, 0x0a,
|
|
||||||
0x06, 0x42, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
|
|
||||||
0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
|
|
||||||
0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
|
||||||
0x42, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,
|
|
||||||
0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
||||||
0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x18, 0x04,
|
|
||||||
0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x22, 0x16, 0x0a, 0x04, 0x54,
|
|
||||||
0x79, 0x70, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x46, 0x42, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x54,
|
|
||||||
0x42, 0x10, 0x01, 0x22, 0xfd, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x76, 0x69, 0x64, 0x69, 0x6e, 0x67,
|
|
||||||
0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
||||||
0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
|
|
||||||
0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65,
|
|
||||||
0x76, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65,
|
|
||||||
0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03,
|
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x03, 0x67, 0x6c,
|
|
||||||
0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
||||||
0x65, 0x2e, 0x47, 0x4c, 0x42, 0x52, 0x03, 0x67, 0x6c, 0x62, 0x12, 0x38, 0x0a, 0x0c, 0x73, 0x65,
|
|
||||||
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
|
|
||||||
0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69,
|
|
||||||
0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x0c, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50,
|
|
||||||
0x6f, 0x72, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x63, 0x73, 0x49, 0x64, 0x73, 0x18, 0x06,
|
|
||||||
0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x65, 0x63, 0x73, 0x49, 0x64, 0x73, 0x22, 0x25, 0x0a, 0x04,
|
|
||||||
0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x61, 0x72, 0x79,
|
|
||||||
0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4a, 0x5a, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4a, 0x59,
|
|
||||||
0x4a, 0x10, 0x02, 0x22, 0x7b, 0x0a, 0x05, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x0e, 0x0a, 0x02,
|
|
||||||
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x27, 0x0a, 0x04,
|
|
||||||
0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73,
|
|
||||||
0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52,
|
|
||||||
0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x39, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a,
|
|
||||||
0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x65,
|
|
||||||
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x75, 0x72, 0x6e, 0x6f,
|
|
||||||
0x75, 0x74, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x10, 0x03,
|
|
||||||
0x22, 0x92, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74,
|
|
||||||
0x12, 0x27, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13,
|
|
||||||
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x54,
|
|
||||||
0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
|
||||||
0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x04, 0x70, 0x6f, 0x72,
|
|
||||||
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
||||||
0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x2e, 0x54, 0x79,
|
|
||||||
0x70, 0x65, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x1b, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65,
|
|
||||||
0x12, 0x05, 0x0a, 0x01, 0x41, 0x10, 0x00, 0x12, 0x05, 0x0a, 0x01, 0x42, 0x10, 0x01, 0x12, 0x05,
|
|
||||||
0x0a, 0x01, 0x43, 0x10, 0x02, 0x22, 0xd8, 0x02, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c,
|
|
||||||
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64,
|
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64,
|
||||||
0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||||
0x63, 0x6f, 0x64, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x03, 0x20,
|
0x63, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
|
||||||
0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x69,
|
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65,
|
0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x53, 0x65,
|
||||||
0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d,
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x70,
|
||||||
0x52, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x03, 0x74, 0x72, 0x64, 0x18, 0x05,
|
0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,
|
||||||
0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54,
|
0x22, 0xb3, 0x01, 0x0a, 0x07, 0x53, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02,
|
||||||
0x52, 0x44, 0x52, 0x03, 0x74, 0x72, 0x64, 0x22, 0xc6, 0x01, 0x0a, 0x05, 0x4d, 0x6f, 0x64, 0x65,
|
|
||||||
0x6c, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x4c, 0x55, 0x5f, 0x30, 0x5f, 0x31, 0x5f, 0x31, 0x10, 0x00,
|
|
||||||
0x12, 0x0d, 0x0a, 0x09, 0x48, 0x4c, 0x55, 0x5f, 0x30, 0x5f, 0x30, 0x5f, 0x31, 0x10, 0x01, 0x12,
|
|
||||||
0x0d, 0x0a, 0x09, 0x48, 0x4c, 0x55, 0x5f, 0x30, 0x5f, 0x31, 0x5f, 0x30, 0x10, 0x02, 0x12, 0x0d,
|
|
||||||
0x0a, 0x09, 0x48, 0x4c, 0x55, 0x5f, 0x55, 0x5f, 0x30, 0x5f, 0x30, 0x10, 0x03, 0x12, 0x0d, 0x0a,
|
|
||||||
0x09, 0x48, 0x4c, 0x55, 0x5f, 0x4c, 0x5f, 0x31, 0x5f, 0x31, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09,
|
|
||||||
0x48, 0x4c, 0x55, 0x5f, 0x4c, 0x5f, 0x31, 0x5f, 0x30, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x48,
|
|
||||||
0x4c, 0x55, 0x5f, 0x4c, 0x55, 0x5f, 0x30, 0x5f, 0x30, 0x10, 0x06, 0x12, 0x08, 0x0a, 0x04, 0x48,
|
|
||||||
0x4c, 0x5f, 0x30, 0x10, 0x07, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4c, 0x5f, 0x4c, 0x10, 0x08, 0x12,
|
|
||||||
0x08, 0x0a, 0x04, 0x48, 0x55, 0x5f, 0x30, 0x10, 0x09, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x55, 0x5f,
|
|
||||||
0x55, 0x10, 0x0a, 0x12, 0x05, 0x0a, 0x01, 0x48, 0x10, 0x0b, 0x12, 0x06, 0x0a, 0x02, 0x41, 0x42,
|
|
||||||
0x10, 0x0c, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x42, 0x55, 0x5f, 0x30, 0x5f, 0x31, 0x5f, 0x30, 0x10,
|
|
||||||
0x0d, 0x12, 0x0d, 0x0a, 0x09, 0x48, 0x42, 0x55, 0x5f, 0x55, 0x5f, 0x30, 0x5f, 0x30, 0x10, 0x0e,
|
|
||||||
0x22, 0x8a, 0x02, 0x0a, 0x07, 0x54, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x12, 0x0e, 0x0a, 0x02,
|
|
||||||
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
|
||||||
0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
||||||
0x12, 0x2c, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,
|
0x12, 0x14, 0x0a, 0x05, 0x7a, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x75, 0x72, 0x6e, 0x6f, 0x75,
|
0x05, 0x7a, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x03, 0x67, 0x6c, 0x62, 0x18, 0x04, 0x20,
|
||||||
0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x26,
|
0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x4c,
|
||||||
0x0a, 0x03, 0x61, 0x73, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65,
|
0x42, 0x52, 0x03, 0x67, 0x6c, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73, 0x45, 0x63, 0x73, 0x18,
|
||||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72,
|
0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x45, 0x63, 0x73, 0x12, 0x12, 0x0a, 0x04,
|
||||||
0x74, 0x52, 0x03, 0x61, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x03, 0x62, 0x73, 0x70, 0x18, 0x05, 0x20,
|
0x69, 0x73, 0x43, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x43, 0x64,
|
||||||
0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65,
|
0x12, 0x24, 0x0a, 0x0d, 0x65, 0x63, 0x73, 0x53, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,
|
||||||
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x03, 0x62, 0x73, 0x70, 0x12, 0x26,
|
0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0d, 0x65, 0x63, 0x73, 0x53, 0x74, 0x61, 0x74,
|
||||||
0x0a, 0x03, 0x63, 0x73, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65,
|
0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x43, 0x0a, 0x03, 0x47, 0x4c, 0x42, 0x12, 0x10, 0x0a,
|
||||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72,
|
0x03, 0x7a, 0x62, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x7a, 0x62, 0x78, 0x12,
|
||||||
0x74, 0x52, 0x03, 0x63, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x18,
|
0x14, 0x0a, 0x05, 0x72, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,
|
||||||
0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x22, 0x1f, 0x0a, 0x05,
|
0x72, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03,
|
||||||
0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x0a, 0x0a, 0x06, 0x5a, 0x44, 0x4a, 0x39, 0x5f, 0x31, 0x10,
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x95, 0x02, 0x0a, 0x07,
|
||||||
0x00, 0x12, 0x0a, 0x0a, 0x06, 0x5a, 0x44, 0x4a, 0x39, 0x5f, 0x32, 0x10, 0x01, 0x22, 0x96, 0x02,
|
0x43, 0x69, 0x4a, 0x44, 0x51, 0x42, 0x5a, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x63, 0x73, 0x4e, 0x61,
|
||||||
0x0a, 0x07, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x63, 0x73, 0x4e, 0x61, 0x6d,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
|
0x65, 0x12, 0x26, 0x0a, 0x06, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
|
||||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x29, 0x0a,
|
0x0b, 0x32, 0x0e, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x6c, 0x61,
|
||||||
0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x6d, 0x65,
|
0x79, 0x52, 0x06, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x04, 0x70, 0x66, 0x70,
|
||||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x79,
|
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||||
0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x03, 0x61, 0x73, 0x70, 0x18,
|
0x65, 0x2e, 0x50, 0x46, 0x50, 0x52, 0x04, 0x70, 0x66, 0x70, 0x73, 0x12, 0x3a, 0x0a, 0x0e, 0x64,
|
||||||
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x67, 0x44, 0x61, 0x74, 0x61, 0x73, 0x18, 0x04, 0x20,
|
||||||
0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x03, 0x61, 0x73, 0x70,
|
0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65,
|
||||||
0x12, 0x26, 0x0a, 0x03, 0x62, 0x73, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
|
0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x52, 0x0e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45,
|
||||||
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50,
|
0x63, 0x67, 0x44, 0x61, 0x74, 0x61, 0x73, 0x12, 0x24, 0x0a, 0x03, 0x63, 0x6a, 0x74, 0x18, 0x05,
|
||||||
0x6f, 0x72, 0x74, 0x52, 0x03, 0x62, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x63, 0x73, 0x49,
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43,
|
||||||
0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x63, 0x73, 0x49, 0x64, 0x12, 0x1e,
|
0x69, 0x43, 0x6a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, 0x63, 0x6a, 0x74, 0x12, 0x24, 0x0a,
|
||||||
0x0a, 0x03, 0x74, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x6d, 0x65,
|
0x03, 0x71, 0x64, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73,
|
||||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x52, 0x44, 0x52, 0x03, 0x74, 0x72, 0x64, 0x22, 0x36,
|
0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x69, 0x51, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03,
|
||||||
0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x68, 0x79, 0x73, 0x69, 0x63,
|
0x71, 0x64, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,
|
||||||
0x61, 0x6c, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x50,
|
0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x6f, 0x67,
|
0x49, 0x64, 0x73, 0x22, 0x30, 0x0a, 0x0e, 0x43, 0x69, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x69, 0x63, 0x61, 0x6c, 0x10, 0x02, 0x22, 0x49, 0x0a, 0x03, 0x50, 0x73, 0x64, 0x12, 0x0e, 0x0a,
|
0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
|
0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x74, 0x69,
|
||||||
|
0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x27, 0x0a, 0x09, 0x43, 0x69, 0x51, 0x64, 0x54, 0x61, 0x62,
|
||||||
|
0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x49, 0x64, 0x73, 0x18, 0x01,
|
||||||
|
0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x49, 0x64, 0x73, 0x22, 0x34,
|
||||||
|
0x0a, 0x09, 0x43, 0x69, 0x43, 0x6a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x69,
|
||||||
|
0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73,
|
||||||
|
0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x69, 0x43, 0x6a, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69,
|
||||||
|
0x74, 0x65, 0x6d, 0x73, 0x22, 0x30, 0x0a, 0x08, 0x43, 0x69, 0x43, 0x6a, 0x49, 0x74, 0x65, 0x6d,
|
||||||
|
0x12, 0x16, 0x0a, 0x06, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
|
0x52, 0x06, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x0c, 0x0a, 0x01, 0x71, 0x18, 0x02, 0x20,
|
||||||
|
0x01, 0x28, 0x08, 0x52, 0x01, 0x71, 0x22, 0x29, 0x0a, 0x03, 0x50, 0x46, 0x50, 0x12, 0x0e, 0x0a,
|
||||||
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a,
|
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a,
|
||||||
0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64,
|
0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64,
|
||||||
0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x64, 0x18,
|
0x65, 0x22, 0xe0, 0x01, 0x0a, 0x05, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69,
|
||||||
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49,
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x05, 0x6d,
|
||||||
0x64, 0x22, 0x7a, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x0e, 0x0a,
|
0x6f, 0x64, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73,
|
||||||
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a,
|
0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c,
|
||||||
0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64,
|
0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
|
||||||
0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x03,
|
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x05,
|
||||||
0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
|
0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x50, 0x58, 0x43, 0x5f, 0x31, 0x30,
|
||||||
0x2c, 0x0a, 0x11, 0x70, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x74, 0x69,
|
0x30, 0x30, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x50, 0x58, 0x43, 0x5f, 0x31, 0x37, 0x30,
|
||||||
0x6f, 0x6e, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x70, 0x68, 0x79, 0x73,
|
0x30, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x57, 0x4a, 0x58, 0x43, 0x5f, 0x34, 0x38, 0x30,
|
||||||
0x69, 0x63, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xb3, 0x01,
|
0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x4a, 0x57, 0x4a, 0x58, 0x43, 0x5f, 0x48, 0x31, 0x32, 0x35,
|
||||||
0x0a, 0x07, 0x53, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
0x5f, 0x38, 0x30, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x57, 0x58, 0x43, 0x5f, 0x31, 0x37,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
0x30, 0x30, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x57, 0x58, 0x43, 0x5f, 0x48, 0x33, 0x34,
|
||||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a,
|
0x30, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x4a, 0x59, 0x4a, 0x58, 0x43, 0x5f, 0x31, 0x36, 0x30,
|
||||||
0x05, 0x7a, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x7a, 0x6e,
|
0x5f, 0x32, 0x36, 0x30, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x4a, 0x5a, 0x58, 0x43, 0x5f, 0x48,
|
||||||
0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x03, 0x67, 0x6c, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
|
0x31, 0x38, 0x10, 0x07, 0x22, 0x86, 0x02, 0x0a, 0x03, 0x4a, 0x4b, 0x50, 0x12, 0x10, 0x0a, 0x03,
|
||||||
0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x4c, 0x42, 0x52, 0x03,
|
0x67, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x67, 0x69, 0x64, 0x12, 0x25,
|
||||||
0x67, 0x6c, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73, 0x45, 0x63, 0x73, 0x18, 0x05, 0x20, 0x01,
|
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x6d,
|
||||||
0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x45, 0x63, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x43,
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4a, 0x4b, 0x50, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52,
|
||||||
0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x43, 0x64, 0x12, 0x24, 0x0a,
|
0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x03, 0x6b, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03,
|
||||||
0x0d, 0x65, 0x63, 0x73, 0x53, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x18, 0x07,
|
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4b, 0x61, 0x69,
|
||||||
0x20, 0x03, 0x28, 0x0d, 0x52, 0x0d, 0x65, 0x63, 0x73, 0x53, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
0x47, 0x75, 0x61, 0x6e, 0x52, 0x03, 0x6b, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x05, 0x6c, 0x61, 0x6d,
|
||||||
0x49, 0x64, 0x73, 0x22, 0x43, 0x0a, 0x03, 0x47, 0x4c, 0x42, 0x12, 0x10, 0x0a, 0x03, 0x7a, 0x62,
|
0x70, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
||||||
0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x7a, 0x62, 0x78, 0x12, 0x14, 0x0a, 0x05,
|
0x67, 0x65, 0x2e, 0x4c, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x6c, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x26,
|
||||||
0x72, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x69, 0x67,
|
0x0a, 0x06, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e,
|
||||||
0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
|
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x52, 0x06,
|
||||||
0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x95, 0x02, 0x0a, 0x07, 0x43, 0x69, 0x4a,
|
0x61, 0x6c, 0x61, 0x72, 0x6d, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
|
||||||
0x44, 0x51, 0x42, 0x5a, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x63, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x18,
|
0x45, 0x63, 0x63, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x63, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26,
|
0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x52, 0x0a,
|
||||||
0x0a, 0x06, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e,
|
0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x73, 0x22, 0x21, 0x0a, 0x04, 0x54, 0x79,
|
||||||
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x06,
|
0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x42, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50,
|
||||||
0x72, 0x65, 0x6c, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x04, 0x70, 0x66, 0x70, 0x73, 0x18, 0x03,
|
0x53, 0x4c, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x4b, 0x58, 0x10, 0x02, 0x22, 0x2b, 0x0a,
|
||||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x50,
|
0x05, 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x46, 0x50, 0x52, 0x04, 0x70, 0x66, 0x70, 0x73, 0x12, 0x3a, 0x0a, 0x0e, 0x64, 0x65, 0x76, 0x69,
|
0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
|
||||||
0x63, 0x65, 0x45, 0x63, 0x67, 0x44, 0x61, 0x74, 0x61, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x53, 0x0a, 0x07, 0x4b, 0x61,
|
||||||
0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63,
|
0x69, 0x47, 0x75, 0x61, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x65, 0x45, 0x63, 0x63, 0x52, 0x0e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x67, 0x44,
|
0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20,
|
||||||
0x61, 0x74, 0x61, 0x73, 0x12, 0x24, 0x0a, 0x03, 0x63, 0x6a, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28,
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x7a, 0x66, 0x77,
|
||||||
0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x69, 0x43, 0x6a,
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x7a, 0x66, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6c,
|
||||||
0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, 0x63, 0x6a, 0x74, 0x12, 0x24, 0x0a, 0x03, 0x71, 0x64,
|
0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x61, 0x6d, 0x70, 0x22,
|
||||||
0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
0x2a, 0x0a, 0x04, 0x4c, 0x61, 0x6d, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||||
0x65, 0x2e, 0x43, 0x69, 0x51, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, 0x71, 0x64, 0x74,
|
0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
|
||||||
0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x18, 0x07,
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x09,
|
||||||
0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73,
|
0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x12, 0x33, 0x0a, 0x0a, 0x64, 0x65, 0x76,
|
||||||
0x22, 0x30, 0x0a, 0x0e, 0x43, 0x69, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x62,
|
0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e,
|
||||||
0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73,
|
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x54, 0x79,
|
||||||
0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49,
|
0x70, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e,
|
||||||
0x64, 0x73, 0x22, 0x27, 0x0a, 0x09, 0x43, 0x69, 0x51, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12,
|
0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||||
0x1a, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e,
|
||||||
0x09, 0x52, 0x08, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x49, 0x64, 0x73, 0x22, 0x34, 0x0a, 0x09, 0x43,
|
0x0a, 0x03, 0x65, 0x63, 0x63, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65,
|
||||||
0x69, 0x43, 0x6a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d,
|
0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x45, 0x63, 0x63, 0x52, 0x03, 0x65, 0x63, 0x63, 0x22, 0x2b,
|
||||||
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
0x0a, 0x03, 0x45, 0x63, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
|
||||||
0x65, 0x2e, 0x43, 0x69, 0x43, 0x6a, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d,
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73,
|
||||||
0x73, 0x22, 0x30, 0x0a, 0x08, 0x43, 0x69, 0x43, 0x6a, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x16, 0x0a,
|
0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x03, 0x69, 0x64, 0x73, 0x2a, 0x1f, 0x0a, 0x03, 0x54,
|
||||||
0x06, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75,
|
0x52, 0x44, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x70, 0x77, 0x61, 0x72, 0x64, 0x10, 0x00, 0x12, 0x0c,
|
||||||
0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x0c, 0x0a, 0x01, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
0x0a, 0x08, 0x44, 0x6f, 0x77, 0x6e, 0x77, 0x61, 0x72, 0x64, 0x10, 0x01, 0x42, 0x0c, 0x5a, 0x0a,
|
||||||
0x52, 0x01, 0x71, 0x22, 0x29, 0x0a, 0x03, 0x50, 0x46, 0x50, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
0x2e, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x2f, 0x64, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
|
0x6f, 0x33,
|
||||||
0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0xe0,
|
|
||||||
0x01, 0x0a, 0x05, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
|
||||||
0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65,
|
|
||||||
0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
||||||
0x65, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d,
|
|
||||||
0x6f, 0x64, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01,
|
|
||||||
0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x05, 0x4d, 0x6f, 0x64,
|
|
||||||
0x65, 0x6c, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x50, 0x58, 0x43, 0x5f, 0x31, 0x30, 0x30, 0x30, 0x10,
|
|
||||||
0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x50, 0x58, 0x43, 0x5f, 0x31, 0x37, 0x30, 0x30, 0x10, 0x01,
|
|
||||||
0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x57, 0x4a, 0x58, 0x43, 0x5f, 0x34, 0x38, 0x30, 0x10, 0x02, 0x12,
|
|
||||||
0x11, 0x0a, 0x0d, 0x4a, 0x57, 0x4a, 0x58, 0x43, 0x5f, 0x48, 0x31, 0x32, 0x35, 0x5f, 0x38, 0x30,
|
|
||||||
0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x57, 0x58, 0x43, 0x5f, 0x31, 0x37, 0x30, 0x30, 0x10,
|
|
||||||
0x04, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x57, 0x58, 0x43, 0x5f, 0x48, 0x33, 0x34, 0x30, 0x10, 0x05,
|
|
||||||
0x12, 0x11, 0x0a, 0x0d, 0x4a, 0x59, 0x4a, 0x58, 0x43, 0x5f, 0x31, 0x36, 0x30, 0x5f, 0x32, 0x36,
|
|
||||||
0x30, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x4a, 0x5a, 0x58, 0x43, 0x5f, 0x48, 0x31, 0x38, 0x10,
|
|
||||||
0x07, 0x22, 0x86, 0x02, 0x0a, 0x03, 0x4a, 0x4b, 0x50, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64,
|
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x67, 0x69, 0x64, 0x12, 0x25, 0x0a, 0x04, 0x74,
|
|
||||||
0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73,
|
|
||||||
0x61, 0x67, 0x65, 0x2e, 0x4a, 0x4b, 0x50, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,
|
|
||||||
0x70, 0x65, 0x12, 0x22, 0x0a, 0x03, 0x6b, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
||||||
0x10, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4b, 0x61, 0x69, 0x47, 0x75, 0x61,
|
|
||||||
0x6e, 0x52, 0x03, 0x6b, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x05, 0x6c, 0x61, 0x6d, 0x70, 0x73, 0x18,
|
|
||||||
0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
|
||||||
0x4c, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x6c, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x26, 0x0a, 0x06, 0x61,
|
|
||||||
0x6c, 0x61, 0x72, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6d, 0x65,
|
|
||||||
0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x52, 0x06, 0x61, 0x6c, 0x61,
|
|
||||||
0x72, 0x6d, 0x73, 0x12, 0x32, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x63,
|
|
||||||
0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
||||||
0x65, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x52, 0x0a, 0x64, 0x65, 0x76,
|
|
||||||
0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x73, 0x22, 0x21, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12,
|
|
||||||
0x07, 0x0a, 0x03, 0x49, 0x42, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x53, 0x4c, 0x10,
|
|
||||||
0x01, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x4b, 0x58, 0x10, 0x02, 0x22, 0x2b, 0x0a, 0x05, 0x41, 0x6c,
|
|
||||||
0x61, 0x72, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
|
||||||
0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
||||||
0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x53, 0x0a, 0x07, 0x4b, 0x61, 0x69, 0x47, 0x75,
|
|
||||||
0x61, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02,
|
|
||||||
0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
||||||
0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x7a, 0x66, 0x77, 0x18, 0x03, 0x20,
|
|
||||||
0x01, 0x28, 0x08, 0x52, 0x03, 0x7a, 0x66, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x6d, 0x70,
|
|
||||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x61, 0x6d, 0x70, 0x22, 0x2a, 0x0a, 0x04,
|
|
||||||
0x4c, 0x61, 0x6d, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
|
|
||||||
0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
||||||
0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x09, 0x44, 0x65, 0x76,
|
|
||||||
0x69, 0x63, 0x65, 0x45, 0x63, 0x63, 0x12, 0x33, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
|
|
||||||
0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73,
|
|
||||||
0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52,
|
|
||||||
0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
|
|
||||||
0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
||||||
0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x03, 0x65,
|
|
||||||
0x63, 0x63, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
|
||||||
0x67, 0x65, 0x2e, 0x45, 0x63, 0x63, 0x52, 0x03, 0x65, 0x63, 0x63, 0x22, 0x2b, 0x0a, 0x03, 0x45,
|
|
||||||
0x63, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
||||||
0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20,
|
|
||||||
0x03, 0x28, 0x0d, 0x52, 0x03, 0x69, 0x64, 0x73, 0x2a, 0x1f, 0x0a, 0x03, 0x54, 0x52, 0x44, 0x12,
|
|
||||||
0x0a, 0x0a, 0x06, 0x55, 0x70, 0x77, 0x61, 0x72, 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44,
|
|
||||||
0x6f, 0x77, 0x6e, 0x77, 0x61, 0x72, 0x64, 0x10, 0x01, 0x42, 0x0c, 0x5a, 0x0a, 0x2e, 0x2f, 0x72,
|
|
||||||
0x65, 0x70, 0x6f, 0x2f, 0x64, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -3513,7 +3514,7 @@ var file_cg_repo_proto_goTypes = []interface{}{
|
|||||||
(Section_Type)(0), // 7: message.Section.Type
|
(Section_Type)(0), // 7: message.Section.Type
|
||||||
(Relay_Model)(0), // 8: message.Relay.Model
|
(Relay_Model)(0), // 8: message.Relay.Model
|
||||||
(JKP_Type)(0), // 9: message.JKP.Type
|
(JKP_Type)(0), // 9: message.JKP.Type
|
||||||
(*CgRepo)(nil), // 10: message.CgRepo
|
(*Modelrepo)(nil), // 10: message.modelrepo
|
||||||
(*Line)(nil), // 11: message.Line
|
(*Line)(nil), // 11: message.Line
|
||||||
(*XHBZ)(nil), // 12: message.XHBZ
|
(*XHBZ)(nil), // 12: message.XHBZ
|
||||||
(*SPKS)(nil), // 13: message.SPKS
|
(*SPKS)(nil), // 13: message.SPKS
|
||||||
@ -3550,8 +3551,8 @@ var file_cg_repo_proto_goTypes = []interface{}{
|
|||||||
(*Ecc)(nil), // 44: message.Ecc
|
(*Ecc)(nil), // 44: message.Ecc
|
||||||
}
|
}
|
||||||
var file_cg_repo_proto_depIdxs = []int32{
|
var file_cg_repo_proto_depIdxs = []int32{
|
||||||
11, // 0: message.CgRepo.lines:type_name -> message.Line
|
11, // 0: message.modelrepo.lines:type_name -> message.Line
|
||||||
39, // 1: message.CgRepo.jkps:type_name -> message.JKP
|
39, // 1: message.modelrepo.jkps:type_name -> message.JKP
|
||||||
12, // 2: message.Line.xhbz:type_name -> message.XHBZ
|
12, // 2: message.Line.xhbz:type_name -> message.XHBZ
|
||||||
32, // 3: message.Line.jdqbz:type_name -> message.CiJDQBZ
|
32, // 3: message.Line.jdqbz:type_name -> message.CiJDQBZ
|
||||||
30, // 4: message.XHBZ.stations:type_name -> message.Station
|
30, // 4: message.XHBZ.stations:type_name -> message.Station
|
||||||
@ -3618,7 +3619,7 @@ func file_cg_repo_proto_init() {
|
|||||||
}
|
}
|
||||||
if !protoimpl.UnsafeEnabled {
|
if !protoimpl.UnsafeEnabled {
|
||||||
file_cg_repo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
file_cg_repo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*CgRepo); i {
|
switch v := v.(*Modelrepo); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -35,6 +35,9 @@ type PhysicalSection struct {
|
|||||||
|
|
||||||
//物理区段所属集中站
|
//物理区段所属集中站
|
||||||
centralizedStation string
|
centralizedStation string
|
||||||
|
|
||||||
|
// 所属站台
|
||||||
|
platform *Platform
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewPhysicalSection(id string) *PhysicalSection {
|
func NewPhysicalSection(id string) *PhysicalSection {
|
||||||
@ -188,6 +191,10 @@ func (s *PhysicalSection) LinkRanges() []*LinkRange {
|
|||||||
return s.linkRanges
|
return s.linkRanges
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p *PhysicalSection) Platform() *Platform {
|
||||||
|
return p.platform
|
||||||
|
}
|
||||||
|
|
||||||
type PhysicalSectionPort struct {
|
type PhysicalSectionPort struct {
|
||||||
section *PhysicalSection
|
section *PhysicalSection
|
||||||
port proto.Port
|
port proto.Port
|
||||||
|
@ -6,6 +6,7 @@ type Platform struct {
|
|||||||
Identity
|
Identity
|
||||||
code string
|
code string
|
||||||
station *Station
|
station *Station
|
||||||
|
section *PhysicalSection
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewPlatform(id string, code string) *Platform {
|
func NewPlatform(id string, code string) *Platform {
|
||||||
@ -25,3 +26,7 @@ func (p *Platform) Code() string {
|
|||||||
func (p *Platform) Station() *Station {
|
func (p *Platform) Station() *Station {
|
||||||
return p.station
|
return p.station
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p *Platform) Section() *PhysicalSection {
|
||||||
|
return p.section
|
||||||
|
}
|
||||||
|
55
repository/route.go
Normal file
55
repository/route.go
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
package repository
|
||||||
|
|
||||||
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
||||||
|
|
||||||
|
type Route struct {
|
||||||
|
Identity
|
||||||
|
name string
|
||||||
|
routeType proto.Route_RouteType
|
||||||
|
start *Signal
|
||||||
|
destination *Signal
|
||||||
|
sections []*PhysicalSection
|
||||||
|
conflictingRoutes []*Route
|
||||||
|
turnoutPositions []*TurnoutPosition
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewRoute(id string, name string, routeType proto.Route_RouteType) *Route {
|
||||||
|
return &Route{
|
||||||
|
Identity: identity{id, proto.DeviceType_DeviceType_Route},
|
||||||
|
name: name,
|
||||||
|
routeType: routeType,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *Route) StartSignal() *Signal {
|
||||||
|
return s.start
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *Route) DestinationSignal() *Signal {
|
||||||
|
return s.destination
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *Route) Sections() []*PhysicalSection {
|
||||||
|
return s.sections
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *Route) ConflictingRoutes() []*Route {
|
||||||
|
return s.conflictingRoutes
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *Route) TurnoutPositions() []*TurnoutPosition {
|
||||||
|
return s.turnoutPositions
|
||||||
|
}
|
||||||
|
|
||||||
|
type TurnoutPosition struct {
|
||||||
|
turnout *Turnout
|
||||||
|
normal bool
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TurnoutPosition) Turnout() *Turnout {
|
||||||
|
return s.turnout
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TurnoutPosition) Position() bool {
|
||||||
|
return s.normal
|
||||||
|
}
|
@ -1,33 +0,0 @@
|
|||||||
package cbtc_sys
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/yohamta/donburi"
|
|
||||||
"joylink.club/ecs"
|
|
||||||
"joylink.club/ecs/filter"
|
|
||||||
"joylink.club/rtsssimulation/component"
|
|
||||||
)
|
|
||||||
|
|
||||||
// 列车运行控制组件,给列车增加限制组件
|
|
||||||
type TrainRunControlSys struct {
|
|
||||||
trainQuery *ecs.Query
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewTrainRunControlSys() *TrainRunControlSys {
|
|
||||||
return &TrainRunControlSys{
|
|
||||||
trainQuery: ecs.NewQuery(filter.Contains(component.TrainRunStatusType)),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (sls *TrainRunControlSys) Update(w ecs.World) {
|
|
||||||
sls.trainQuery.Each(w, func(e *donburi.Entry) {
|
|
||||||
runStatus := component.TrainRunStatusType.Get(e)
|
|
||||||
headDevice := runStatus.HeadPosition.Device
|
|
||||||
// 限速赋值
|
|
||||||
if headDevice.HasComponent(component.SpeedLimitType) { // 车头所在设备有限速组件
|
|
||||||
speedLimit := component.SpeedLimitType.Get(headDevice)
|
|
||||||
runStatus.SpeedMax = speedLimit.Val
|
|
||||||
} else {
|
|
||||||
runStatus.SpeedMax = component.TrainSpeedMax
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
@ -13,14 +13,14 @@ type TwoPositionMovementSys struct {
|
|||||||
|
|
||||||
func NewTwoPositionMovementSys() *TwoPositionMovementSys {
|
func NewTwoPositionMovementSys() *TwoPositionMovementSys {
|
||||||
return &TwoPositionMovementSys{
|
return &TwoPositionMovementSys{
|
||||||
query: ecs.NewQuery(filter.Contains(component.TwoPositionTransformType)),
|
query: ecs.NewQuery(filter.Contains(component.FixedPositionTransformType)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新位置
|
// 更新位置
|
||||||
func (tp *TwoPositionMovementSys) Update(w ecs.World) {
|
func (tp *TwoPositionMovementSys) Update(w ecs.World) {
|
||||||
tp.query.Each(w, func(entry *ecs.Entry) {
|
tp.query.Each(w, func(entry *ecs.Entry) {
|
||||||
position := component.TwoPositionTransformType.Get(entry)
|
position := component.FixedPositionTransformType.Get(entry)
|
||||||
if position.Speed != 0 {
|
if position.Speed != 0 {
|
||||||
pos := position.Pos + position.Speed
|
pos := position.Pos + position.Speed
|
||||||
if pos < consts.TwoPosMin {
|
if pos < consts.TwoPosMin {
|
||||||
|
@ -13,7 +13,7 @@ type AsdSys struct {
|
|||||||
|
|
||||||
func NewAsdSys() *AsdSys {
|
func NewAsdSys() *AsdSys {
|
||||||
return &AsdSys{
|
return &AsdSys{
|
||||||
query: ecs.NewQuery(filter.Contains(component.AsdMotorStateType, component.TwoPositionTransformType)),
|
query: ecs.NewQuery(filter.Contains(component.AsdMotorStateType, component.FixedPositionTransformType)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ func (s *AsdSys) Update(world ecs.World) {
|
|||||||
s.query.Each(world, func(entry *ecs.Entry) {
|
s.query.Each(world, func(entry *ecs.Entry) {
|
||||||
//设置两位置转换速度
|
//设置两位置转换速度
|
||||||
psdMotorState := component.AsdMotorStateType.Get(entry)
|
psdMotorState := component.AsdMotorStateType.Get(entry)
|
||||||
twoPosition := component.TwoPositionTransformType.Get(entry)
|
twoPosition := component.FixedPositionTransformType.Get(entry)
|
||||||
asdState := component.AsdStateType.Get(entry)
|
asdState := component.AsdStateType.Get(entry)
|
||||||
pos := twoPosition.Pos
|
pos := twoPosition.Pos
|
||||||
if entry.HasComponent(component.AsdCannotOpenTag) {
|
if entry.HasComponent(component.AsdCannotOpenTag) {
|
||||||
|
@ -13,7 +13,7 @@ type ZzjSys struct {
|
|||||||
|
|
||||||
func NewZzjSys() *ZzjSys {
|
func NewZzjSys() *ZzjSys {
|
||||||
return &ZzjSys{
|
return &ZzjSys{
|
||||||
query: ecs.NewQuery(filter.Contains(component.ZzjStateType, component.TwoPositionTransformType)),
|
query: ecs.NewQuery(filter.Contains(component.ZzjStateType, component.FixedPositionTransformType)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ const (
|
|||||||
func (z *ZzjSys) Update(w ecs.World) {
|
func (z *ZzjSys) Update(w ecs.World) {
|
||||||
z.query.Each(w, func(entry *ecs.Entry) {
|
z.query.Each(w, func(entry *ecs.Entry) {
|
||||||
zzj := component.ZzjStateType.Get(entry)
|
zzj := component.ZzjStateType.Get(entry)
|
||||||
tp := component.TwoPositionTransformType.Get(entry)
|
tp := component.FixedPositionTransformType.Get(entry)
|
||||||
if entry.HasComponent(component.TurnoutFaultJcType) {
|
if entry.HasComponent(component.TurnoutFaultJcType) {
|
||||||
// 道岔挤岔,设置位置到中间,且不再能转动
|
// 道岔挤岔,设置位置到中间,且不再能转动
|
||||||
tp.Pos = consts.TwoPosMax / 2
|
tp.Pos = consts.TwoPosMax / 2
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
package iscs_sys
|
package iscs_sys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"math"
|
||||||
|
|
||||||
"joylink.club/ecs"
|
"joylink.club/ecs"
|
||||||
"joylink.club/ecs/filter"
|
"joylink.club/ecs/filter"
|
||||||
"joylink.club/rtsssimulation/component"
|
"joylink.club/rtsssimulation/component"
|
||||||
"joylink.club/rtsssimulation/consts"
|
"joylink.club/rtsssimulation/consts"
|
||||||
"joylink.club/rtsssimulation/entity"
|
"joylink.club/rtsssimulation/entity"
|
||||||
"math"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValveSystem 阀门
|
// ValveSystem 阀门
|
||||||
@ -16,7 +17,7 @@ type ValveSystem struct {
|
|||||||
|
|
||||||
func NewValveSystem() *ValveSystem {
|
func NewValveSystem() *ValveSystem {
|
||||||
return &ValveSystem{
|
return &ValveSystem{
|
||||||
query: ecs.NewQuery(filter.Contains(component.UidType, component.ValveType, component.ValveControllerType, component.TwoPositionTransformType)),
|
query: ecs.NewQuery(filter.Contains(component.UidType, component.ValveType, component.ValveControllerType, component.FixedPositionTransformType)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,7 +27,7 @@ func (s *ValveSystem) Update(w ecs.World) {
|
|||||||
valveId := component.UidType.Get(entry).Id
|
valveId := component.UidType.Get(entry).Id
|
||||||
valve := component.ValveType.Get(entry)
|
valve := component.ValveType.Get(entry)
|
||||||
valveController := component.ValveControllerType.Get(entry)
|
valveController := component.ValveControllerType.Get(entry)
|
||||||
position := component.TwoPositionTransformType.Get(entry)
|
position := component.FixedPositionTransformType.Get(entry)
|
||||||
//
|
//
|
||||||
valve.OpenRate = uint8((float64(position.Pos-consts.TwoPosMin) / float64(consts.TwoPosMax-consts.TwoPosMin)) * float64(100))
|
valve.OpenRate = uint8((float64(position.Pos-consts.TwoPosMin) / float64(consts.TwoPosMax-consts.TwoPosMin)) * float64(100))
|
||||||
valve.Closed = valve.OpenRate <= 0
|
valve.Closed = valve.OpenRate <= 0
|
||||||
|
Loading…
Reference in New Issue
Block a user