2023-08-14 16:23:34 +08:00
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.31.0
|
|
|
|
|
// protoc v4.23.1
|
|
|
|
|
// source: status.proto
|
|
|
|
|
|
2023-08-22 11:00:14 +08:00
|
|
|
|
package cstate
|
2023-08-14 16:23:34 +08:00
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
)
|
|
|
|
|
|
2023-08-15 18:12:30 +08:00
|
|
|
|
// 信号机显示枚举
|
|
|
|
|
type SignalAspect int32
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
// 无显示,灭灯
|
|
|
|
|
SignalAspect_No SignalAspect = 0
|
|
|
|
|
// 红
|
|
|
|
|
SignalAspect_R SignalAspect = 1
|
|
|
|
|
// 绿
|
|
|
|
|
SignalAspect_G SignalAspect = 2
|
|
|
|
|
// 黄
|
|
|
|
|
SignalAspect_Y SignalAspect = 3
|
|
|
|
|
// 月白
|
|
|
|
|
SignalAspect_W SignalAspect = 4
|
|
|
|
|
// 蓝
|
|
|
|
|
SignalAspect_B SignalAspect = 5
|
|
|
|
|
// 红黄
|
|
|
|
|
SignalAspect_RY SignalAspect = 6
|
|
|
|
|
// 红白
|
|
|
|
|
SignalAspect_RW SignalAspect = 7
|
|
|
|
|
// 绿绿
|
|
|
|
|
SignalAspect_GG SignalAspect = 8
|
|
|
|
|
// 绿黄
|
|
|
|
|
SignalAspect_GY SignalAspect = 9
|
|
|
|
|
// 黄黄
|
|
|
|
|
SignalAspect_YY SignalAspect = 10
|
|
|
|
|
// 红闪(flashing)
|
|
|
|
|
SignalAspect_RF SignalAspect = 11
|
|
|
|
|
// 黄闪(flashing)
|
|
|
|
|
SignalAspect_YF SignalAspect = 12
|
|
|
|
|
// 绿闪(flashing)
|
|
|
|
|
SignalAspect_GF SignalAspect = 13
|
|
|
|
|
// 白闪(flashing)
|
|
|
|
|
SignalAspect_WF SignalAspect = 14
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Enum value maps for SignalAspect.
|
|
|
|
|
var (
|
|
|
|
|
SignalAspect_name = map[int32]string{
|
|
|
|
|
0: "No",
|
|
|
|
|
1: "R",
|
|
|
|
|
2: "G",
|
|
|
|
|
3: "Y",
|
|
|
|
|
4: "W",
|
|
|
|
|
5: "B",
|
|
|
|
|
6: "RY",
|
|
|
|
|
7: "RW",
|
|
|
|
|
8: "GG",
|
|
|
|
|
9: "GY",
|
|
|
|
|
10: "YY",
|
|
|
|
|
11: "RF",
|
|
|
|
|
12: "YF",
|
|
|
|
|
13: "GF",
|
|
|
|
|
14: "WF",
|
|
|
|
|
}
|
|
|
|
|
SignalAspect_value = map[string]int32{
|
|
|
|
|
"No": 0,
|
|
|
|
|
"R": 1,
|
|
|
|
|
"G": 2,
|
|
|
|
|
"Y": 3,
|
|
|
|
|
"W": 4,
|
|
|
|
|
"B": 5,
|
|
|
|
|
"RY": 6,
|
|
|
|
|
"RW": 7,
|
|
|
|
|
"GG": 8,
|
|
|
|
|
"GY": 9,
|
|
|
|
|
"YY": 10,
|
|
|
|
|
"RF": 11,
|
|
|
|
|
"YF": 12,
|
|
|
|
|
"GF": 13,
|
|
|
|
|
"WF": 14,
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (x SignalAspect) Enum() *SignalAspect {
|
|
|
|
|
p := new(SignalAspect)
|
|
|
|
|
*p = x
|
|
|
|
|
return p
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x SignalAspect) String() string {
|
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (SignalAspect) Descriptor() protoreflect.EnumDescriptor {
|
2023-08-23 16:52:01 +08:00
|
|
|
|
return file_status_proto_enumTypes[0].Descriptor()
|
2023-08-15 18:12:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (SignalAspect) Type() protoreflect.EnumType {
|
2023-08-23 16:52:01 +08:00
|
|
|
|
return &file_status_proto_enumTypes[0]
|
2023-08-15 18:12:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x SignalAspect) Number() protoreflect.EnumNumber {
|
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use SignalAspect.Descriptor instead.
|
|
|
|
|
func (SignalAspect) EnumDescriptor() ([]byte, []int) {
|
2023-08-23 16:52:01 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{0}
|
2023-08-15 18:12:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-17 17:51:36 +08:00
|
|
|
|
// 列车激活的枚举
|
|
|
|
|
type TrainActiveEnum int32
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
// 列车两端均未激活
|
|
|
|
|
TrainActiveEnum_HEAD_N TrainActiveEnum = 0
|
|
|
|
|
// 列车A端激活
|
|
|
|
|
TrainActiveEnum_HEAD_A TrainActiveEnum = 1
|
|
|
|
|
// 列车B端激活
|
|
|
|
|
TrainActiveEnum_HEAD_B TrainActiveEnum = 2
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Enum value maps for TrainActiveEnum.
|
|
|
|
|
var (
|
|
|
|
|
TrainActiveEnum_name = map[int32]string{
|
|
|
|
|
0: "HEAD_N",
|
|
|
|
|
1: "HEAD_A",
|
|
|
|
|
2: "HEAD_B",
|
|
|
|
|
}
|
|
|
|
|
TrainActiveEnum_value = map[string]int32{
|
|
|
|
|
"HEAD_N": 0,
|
|
|
|
|
"HEAD_A": 1,
|
|
|
|
|
"HEAD_B": 2,
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (x TrainActiveEnum) Enum() *TrainActiveEnum {
|
|
|
|
|
p := new(TrainActiveEnum)
|
|
|
|
|
*p = x
|
|
|
|
|
return p
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x TrainActiveEnum) String() string {
|
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (TrainActiveEnum) Descriptor() protoreflect.EnumDescriptor {
|
2023-08-23 16:52:01 +08:00
|
|
|
|
return file_status_proto_enumTypes[1].Descriptor()
|
2023-08-17 17:51:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (TrainActiveEnum) Type() protoreflect.EnumType {
|
2023-08-23 16:52:01 +08:00
|
|
|
|
return &file_status_proto_enumTypes[1]
|
2023-08-17 17:51:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x TrainActiveEnum) Number() protoreflect.EnumNumber {
|
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use TrainActiveEnum.Descriptor instead.
|
|
|
|
|
func (TrainActiveEnum) EnumDescriptor() ([]byte, []int) {
|
2023-08-23 16:52:01 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{1}
|
2023-08-17 17:51:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-14 16:23:34 +08:00
|
|
|
|
// 设备身份信息
|
|
|
|
|
type DeviceIdentity struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 设备id
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DeviceIdentity) Reset() {
|
|
|
|
|
*x = DeviceIdentity{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_status_proto_msgTypes[0]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DeviceIdentity) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*DeviceIdentity) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *DeviceIdentity) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_status_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 DeviceIdentity.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*DeviceIdentity) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *DeviceIdentity) GetId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 11:23:52 +08:00
|
|
|
|
// 道岔继电器状态
|
|
|
|
|
type SwitchRelayState struct {
|
2023-08-14 16:23:34 +08:00
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
2023-08-16 15:00:24 +08:00
|
|
|
|
// 定操继电器
|
2023-08-18 11:23:52 +08:00
|
|
|
|
// true-继电器吸合
|
|
|
|
|
DcJ bool `protobuf:"varint,1,opt,name=dcJ,proto3" json:"dcJ,omitempty"`
|
2023-08-16 15:00:24 +08:00
|
|
|
|
// 反操继电器
|
2023-08-18 11:23:52 +08:00
|
|
|
|
// true-继电器吸合
|
|
|
|
|
FcJ bool `protobuf:"varint,2,opt,name=fcJ,proto3" json:"fcJ,omitempty"`
|
2023-08-16 15:00:24 +08:00
|
|
|
|
// 定表继电器
|
|
|
|
|
// true-继电器吸合表示道岔转动到定位
|
2023-08-18 11:23:52 +08:00
|
|
|
|
DbJ bool `protobuf:"varint,3,opt,name=dbJ,proto3" json:"dbJ,omitempty"`
|
2023-08-16 15:00:24 +08:00
|
|
|
|
// 反表继电器
|
|
|
|
|
// true-继电器吸合表示道岔转动到反位
|
2023-08-18 11:23:52 +08:00
|
|
|
|
FbJ bool `protobuf:"varint,4,opt,name=fbJ,proto3" json:"fbJ,omitempty"`
|
2023-08-14 16:23:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 11:23:52 +08:00
|
|
|
|
func (x *SwitchRelayState) Reset() {
|
|
|
|
|
*x = SwitchRelayState{}
|
2023-08-14 16:23:34 +08:00
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_status_proto_msgTypes[1]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 11:23:52 +08:00
|
|
|
|
func (x *SwitchRelayState) String() string {
|
2023-08-14 16:23:34 +08:00
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 11:23:52 +08:00
|
|
|
|
func (*SwitchRelayState) ProtoMessage() {}
|
2023-08-14 16:23:34 +08:00
|
|
|
|
|
2023-08-18 11:23:52 +08:00
|
|
|
|
func (x *SwitchRelayState) ProtoReflect() protoreflect.Message {
|
2023-08-14 16:23:34 +08:00
|
|
|
|
mi := &file_status_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)
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 11:23:52 +08:00
|
|
|
|
// Deprecated: Use SwitchRelayState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*SwitchRelayState) Descriptor() ([]byte, []int) {
|
2023-08-14 16:23:34 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 11:23:52 +08:00
|
|
|
|
func (x *SwitchRelayState) GetDcJ() bool {
|
2023-08-16 15:00:24 +08:00
|
|
|
|
if x != nil {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
return x.DcJ
|
2023-08-16 15:00:24 +08:00
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 11:23:52 +08:00
|
|
|
|
func (x *SwitchRelayState) GetFcJ() bool {
|
2023-08-16 15:00:24 +08:00
|
|
|
|
if x != nil {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
return x.FcJ
|
2023-08-16 15:00:24 +08:00
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 11:23:52 +08:00
|
|
|
|
func (x *SwitchRelayState) GetDbJ() bool {
|
2023-08-16 15:00:24 +08:00
|
|
|
|
if x != nil {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
return x.DbJ
|
2023-08-16 15:00:24 +08:00
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 11:23:52 +08:00
|
|
|
|
func (x *SwitchRelayState) GetFbJ() bool {
|
2023-08-16 15:00:24 +08:00
|
|
|
|
if x != nil {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
return x.FbJ
|
2023-08-14 18:06:26 +08:00
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-14 16:23:34 +08:00
|
|
|
|
// 物理区段状态
|
|
|
|
|
type PhysicalSectionState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// true-区段占用,false-区段未占用
|
|
|
|
|
Occupied bool `protobuf:"varint,1,opt,name=occupied,proto3" json:"occupied,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PhysicalSectionState) Reset() {
|
|
|
|
|
*x = PhysicalSectionState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[2]
|
2023-08-14 16:23:34 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PhysicalSectionState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*PhysicalSectionState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *PhysicalSectionState) ProtoReflect() protoreflect.Message {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[2]
|
2023-08-14 16:23:34 +08:00
|
|
|
|
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 PhysicalSectionState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*PhysicalSectionState) Descriptor() ([]byte, []int) {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{2}
|
2023-08-14 16:23:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PhysicalSectionState) GetOccupied() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Occupied
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-15 18:12:30 +08:00
|
|
|
|
// 信号机状态
|
|
|
|
|
type SignalState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
2023-08-16 15:00:24 +08:00
|
|
|
|
// 信号机显示状态
|
2023-08-22 11:00:14 +08:00
|
|
|
|
Display SignalAspect `protobuf:"varint,1,opt,name=display,proto3,enum=cstate.SignalAspect" json:"display,omitempty"`
|
2023-08-15 18:12:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SignalState) Reset() {
|
|
|
|
|
*x = SignalState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[3]
|
2023-08-15 18:12:30 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SignalState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*SignalState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *SignalState) ProtoReflect() protoreflect.Message {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[3]
|
2023-08-15 18:12:30 +08:00
|
|
|
|
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 SignalState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*SignalState) Descriptor() ([]byte, []int) {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{3}
|
2023-08-15 18:12:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SignalState) GetDisplay() SignalAspect {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Display
|
|
|
|
|
}
|
|
|
|
|
return SignalAspect_No
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-16 15:00:24 +08:00
|
|
|
|
// 信号机显示操作
|
|
|
|
|
type SignalDisplayOperating struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 是否执行操作
|
|
|
|
|
StartOperate bool `protobuf:"varint,1,opt,name=startOperate,proto3" json:"startOperate,omitempty"`
|
|
|
|
|
// 执行操作剩余时长,单位ms
|
|
|
|
|
OperateTime int64 `protobuf:"varint,2,opt,name=operateTime,proto3" json:"operateTime,omitempty"`
|
|
|
|
|
// 信号机目标显示
|
2023-08-22 11:00:14 +08:00
|
|
|
|
TargetAspect SignalAspect `protobuf:"varint,3,opt,name=targetAspect,proto3,enum=cstate.SignalAspect" json:"targetAspect,omitempty"`
|
2023-08-16 15:00:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SignalDisplayOperating) Reset() {
|
|
|
|
|
*x = SignalDisplayOperating{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[4]
|
2023-08-16 15:00:24 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SignalDisplayOperating) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*SignalDisplayOperating) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *SignalDisplayOperating) ProtoReflect() protoreflect.Message {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[4]
|
2023-08-16 15:00:24 +08:00
|
|
|
|
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 SignalDisplayOperating.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*SignalDisplayOperating) Descriptor() ([]byte, []int) {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{4}
|
2023-08-16 15:00:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SignalDisplayOperating) GetStartOperate() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.StartOperate
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SignalDisplayOperating) GetOperateTime() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.OperateTime
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SignalDisplayOperating) GetTargetAspect() SignalAspect {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TargetAspect
|
|
|
|
|
}
|
|
|
|
|
return SignalAspect_No
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 16:15:19 +08:00
|
|
|
|
// 站台一侧屏蔽门状态
|
2023-08-16 17:17:20 +08:00
|
|
|
|
type PsdState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 所有单个屏蔽门是否全关
|
|
|
|
|
AllClosed bool `protobuf:"varint,1,opt,name=allClosed,proto3" json:"allClosed,omitempty"`
|
|
|
|
|
// 所有单个屏蔽门是否全开
|
|
|
|
|
AllOpened bool `protobuf:"varint,2,opt,name=allOpened,proto3" json:"allOpened,omitempty"`
|
|
|
|
|
// 是否互锁解除,当互锁解除时ATS不关注该侧屏蔽门的状态
|
|
|
|
|
InterlockReleased bool `protobuf:"varint,3,opt,name=interlockReleased,proto3" json:"interlockReleased,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PsdState) Reset() {
|
|
|
|
|
*x = PsdState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[5]
|
2023-08-16 17:17:20 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PsdState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*PsdState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *PsdState) ProtoReflect() protoreflect.Message {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[5]
|
2023-08-16 17:17:20 +08:00
|
|
|
|
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 PsdState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*PsdState) Descriptor() ([]byte, []int) {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{5}
|
2023-08-16 17:17:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PsdState) GetAllClosed() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AllClosed
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PsdState) GetAllOpened() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AllOpened
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PsdState) GetInterlockReleased() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.InterlockReleased
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 09:45:11 +08:00
|
|
|
|
// 百分比设备,具体如道岔、门等
|
|
|
|
|
type PercentageDeviceState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 当前百分比值,值范围[0,100],L=0,H=100
|
|
|
|
|
Rate int32 `protobuf:"varint,1,opt,name=rate,proto3" json:"rate,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PercentageDeviceState) Reset() {
|
|
|
|
|
*x = PercentageDeviceState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[6]
|
2023-08-18 09:45:11 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PercentageDeviceState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*PercentageDeviceState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *PercentageDeviceState) ProtoReflect() protoreflect.Message {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[6]
|
2023-08-18 09:45:11 +08:00
|
|
|
|
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 PercentageDeviceState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*PercentageDeviceState) Descriptor() ([]byte, []int) {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{6}
|
2023-08-18 09:45:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PercentageDeviceState) GetRate() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Rate
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 百分比设备操作
|
|
|
|
|
type PercentageDeviceOperating struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 变动方向
|
|
|
|
|
ToH bool `protobuf:"varint,1,opt,name=toH,proto3" json:"toH,omitempty"`
|
2023-08-18 11:02:00 +08:00
|
|
|
|
// 0-100总距离,单位ms
|
|
|
|
|
LhDistance int64 `protobuf:"varint,2,opt,name=lhDistance,proto3" json:"lhDistance,omitempty"`
|
|
|
|
|
// 本次操作开始时已经移动的距离,单位ms
|
|
|
|
|
InitDistance int64 `protobuf:"varint,3,opt,name=initDistance,proto3" json:"initDistance,omitempty"`
|
2023-08-18 09:45:11 +08:00
|
|
|
|
// 本次操作一共要移动的距离,单位ms
|
2023-08-18 11:02:00 +08:00
|
|
|
|
SumDistance int64 `protobuf:"varint,4,opt,name=sumDistance,proto3" json:"sumDistance,omitempty"`
|
|
|
|
|
// 剩余移动距离,单位ms
|
|
|
|
|
RemainingDistance int64 `protobuf:"varint,5,opt,name=remainingDistance,proto3" json:"remainingDistance,omitempty"`
|
2023-08-18 09:45:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PercentageDeviceOperating) Reset() {
|
|
|
|
|
*x = PercentageDeviceOperating{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[7]
|
2023-08-18 09:45:11 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PercentageDeviceOperating) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*PercentageDeviceOperating) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *PercentageDeviceOperating) ProtoReflect() protoreflect.Message {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[7]
|
2023-08-18 09:45:11 +08:00
|
|
|
|
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 PercentageDeviceOperating.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*PercentageDeviceOperating) Descriptor() ([]byte, []int) {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{7}
|
2023-08-18 09:45:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PercentageDeviceOperating) GetToH() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ToH
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 11:02:00 +08:00
|
|
|
|
func (x *PercentageDeviceOperating) GetLhDistance() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.LhDistance
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-18 09:45:11 +08:00
|
|
|
|
func (x *PercentageDeviceOperating) GetInitDistance() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.InitDistance
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PercentageDeviceOperating) GetSumDistance() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SumDistance
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PercentageDeviceOperating) GetRemainingDistance() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RemainingDistance
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-17 17:39:57 +08:00
|
|
|
|
// 应答器状态
|
|
|
|
|
type BaliseState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 应答器报文
|
|
|
|
|
Content *BaliseContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BaliseState) Reset() {
|
|
|
|
|
*x = BaliseState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[8]
|
2023-08-17 17:39:57 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BaliseState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*BaliseState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *BaliseState) ProtoReflect() protoreflect.Message {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[8]
|
2023-08-17 17:39:57 +08:00
|
|
|
|
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 BaliseState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*BaliseState) Descriptor() ([]byte, []int) {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{8}
|
2023-08-17 17:39:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BaliseState) GetContent() *BaliseContent {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Content
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 应答器报文定义
|
|
|
|
|
type BaliseContent struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 报文id
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
// 报文类型
|
|
|
|
|
Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
|
// 应答器报文
|
|
|
|
|
Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BaliseContent) Reset() {
|
|
|
|
|
*x = BaliseContent{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[9]
|
2023-08-17 17:39:57 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BaliseContent) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*BaliseContent) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *BaliseContent) ProtoReflect() protoreflect.Message {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[9]
|
2023-08-17 17:39:57 +08:00
|
|
|
|
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 BaliseContent.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*BaliseContent) Descriptor() ([]byte, []int) {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{9}
|
2023-08-17 17:39:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BaliseContent) GetId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BaliseContent) GetType() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Type
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BaliseContent) GetContent() []byte {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Content
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ////////////////////////////////////////////////////////
|
|
|
|
|
// 列车占用轨道位置定义
|
|
|
|
|
type OccupiedLinkPosition struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 轨道id
|
|
|
|
|
LinkId string `protobuf:"bytes,1,opt,name=linkId,proto3" json:"linkId,omitempty"`
|
|
|
|
|
// 占用起始偏移
|
|
|
|
|
StartOffset int64 `protobuf:"varint,2,opt,name=startOffset,proto3" json:"startOffset,omitempty"`
|
|
|
|
|
// 占用终点偏移
|
|
|
|
|
EndOffset int64 `protobuf:"varint,3,opt,name=endOffset,proto3" json:"endOffset,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *OccupiedLinkPosition) Reset() {
|
|
|
|
|
*x = OccupiedLinkPosition{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[10]
|
2023-08-17 17:39:57 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *OccupiedLinkPosition) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*OccupiedLinkPosition) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *OccupiedLinkPosition) ProtoReflect() protoreflect.Message {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[10]
|
2023-08-17 17:39:57 +08:00
|
|
|
|
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 OccupiedLinkPosition.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*OccupiedLinkPosition) Descriptor() ([]byte, []int) {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{10}
|
2023-08-17 17:39:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *OccupiedLinkPosition) GetLinkId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.LinkId
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *OccupiedLinkPosition) GetStartOffset() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.StartOffset
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *OccupiedLinkPosition) GetEndOffset() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.EndOffset
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 列车状态定义
|
|
|
|
|
type TrainState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
2023-08-17 17:51:36 +08:00
|
|
|
|
// 列车激活端
|
2023-08-22 11:00:14 +08:00
|
|
|
|
ActiveHead TrainActiveEnum `protobuf:"varint,1,opt,name=activeHead,proto3,enum=cstate.TrainActiveEnum" json:"activeHead,omitempty"`
|
2023-08-17 17:39:57 +08:00
|
|
|
|
// 列车所占的轨道位置列表
|
2023-08-17 17:51:36 +08:00
|
|
|
|
OccupiedLinks []*OccupiedLinkPosition `protobuf:"bytes,7,rep,name=occupiedLinks,proto3" json:"occupiedLinks,omitempty"`
|
2023-08-17 17:39:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainState) Reset() {
|
|
|
|
|
*x = TrainState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[11]
|
2023-08-17 17:39:57 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*TrainState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *TrainState) ProtoReflect() protoreflect.Message {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[11]
|
2023-08-17 17:39:57 +08:00
|
|
|
|
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 TrainState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*TrainState) Descriptor() ([]byte, []int) {
|
2023-08-18 16:15:19 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{11}
|
2023-08-17 17:39:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-17 17:51:36 +08:00
|
|
|
|
func (x *TrainState) GetActiveHead() TrainActiveEnum {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ActiveHead
|
|
|
|
|
}
|
|
|
|
|
return TrainActiveEnum_HEAD_N
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-17 17:39:57 +08:00
|
|
|
|
func (x *TrainState) GetOccupiedLinks() []*OccupiedLinkPosition {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.OccupiedLinks
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-22 17:21:21 +08:00
|
|
|
|
// 自复位按钮、非自复位按钮、两档位旋钮
|
|
|
|
|
// pos1与pos2含义有用户规定
|
|
|
|
|
// 如自复位按钮:规定pos1=true时按钮按下,pos2=true时按钮弹起,当pos1=false且pos2=false时状态未知
|
|
|
|
|
// 操作方式为由用户指令即时操作
|
|
|
|
|
type TowPositionButtonState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 是否在位置一,true-到达位置一
|
|
|
|
|
Pos1 bool `protobuf:"varint,1,opt,name=pos1,proto3" json:"pos1,omitempty"`
|
|
|
|
|
// 是否在位置二,true-到达位置二
|
|
|
|
|
Pos2 bool `protobuf:"varint,2,opt,name=pos2,proto3" json:"pos2,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TowPositionButtonState) Reset() {
|
|
|
|
|
*x = TowPositionButtonState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_status_proto_msgTypes[12]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TowPositionButtonState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*TowPositionButtonState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *TowPositionButtonState) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_status_proto_msgTypes[12]
|
|
|
|
|
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 TowPositionButtonState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*TowPositionButtonState) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{12}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TowPositionButtonState) GetPos1() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Pos1
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TowPositionButtonState) GetPos2() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Pos2
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-17 17:14:47 +08:00
|
|
|
|
// 按钮状态
|
|
|
|
|
type ButtonState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 是否按下
|
|
|
|
|
PressDown bool `protobuf:"varint,1,opt,name=pressDown,proto3" json:"pressDown,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonState) Reset() {
|
|
|
|
|
*x = ButtonState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[13]
|
2023-08-17 17:14:47 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*ButtonState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonState) ProtoReflect() protoreflect.Message {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[13]
|
2023-08-17 17:14:47 +08:00
|
|
|
|
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 ButtonState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ButtonState) Descriptor() ([]byte, []int) {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{13}
|
2023-08-17 17:14:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonState) GetPressDown() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.PressDown
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 按钮按下、抬起操作
|
|
|
|
|
type ButtonPressOperating struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 开始操作
|
|
|
|
|
Start bool `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
|
|
|
|
|
// 是否按下(true)、抬起(false)
|
|
|
|
|
Down bool `protobuf:"varint,2,opt,name=down,proto3" json:"down,omitempty"`
|
|
|
|
|
// 倒计时
|
|
|
|
|
OperateTime int64 `protobuf:"varint,3,opt,name=operateTime,proto3" json:"operateTime,omitempty"`
|
|
|
|
|
// 需确认
|
|
|
|
|
NeedConfirm bool `protobuf:"varint,4,opt,name=needConfirm,proto3" json:"needConfirm,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonPressOperating) Reset() {
|
|
|
|
|
*x = ButtonPressOperating{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[14]
|
2023-08-17 17:14:47 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonPressOperating) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*ButtonPressOperating) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonPressOperating) ProtoReflect() protoreflect.Message {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[14]
|
2023-08-17 17:14:47 +08:00
|
|
|
|
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 ButtonPressOperating.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ButtonPressOperating) Descriptor() ([]byte, []int) {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{14}
|
2023-08-17 17:14:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonPressOperating) GetStart() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Start
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonPressOperating) GetDown() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Down
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonPressOperating) GetOperateTime() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.OperateTime
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonPressOperating) GetNeedConfirm() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.NeedConfirm
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 按钮确认操作
|
|
|
|
|
type ButtonConfirmOperating struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 确认操作
|
|
|
|
|
Confirm bool `protobuf:"varint,1,opt,name=confirm,proto3" json:"confirm,omitempty"`
|
|
|
|
|
// 取消
|
|
|
|
|
Cancel bool `protobuf:"varint,2,opt,name=cancel,proto3" json:"cancel,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonConfirmOperating) Reset() {
|
|
|
|
|
*x = ButtonConfirmOperating{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[15]
|
2023-08-17 17:14:47 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonConfirmOperating) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*ButtonConfirmOperating) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonConfirmOperating) ProtoReflect() protoreflect.Message {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
mi := &file_status_proto_msgTypes[15]
|
2023-08-17 17:14:47 +08:00
|
|
|
|
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 ButtonConfirmOperating.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ButtonConfirmOperating) Descriptor() ([]byte, []int) {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
return file_status_proto_rawDescGZIP(), []int{15}
|
2023-08-17 17:14:47 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonConfirmOperating) GetConfirm() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Confirm
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ButtonConfirmOperating) GetCancel() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Cancel
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-14 16:23:34 +08:00
|
|
|
|
var File_status_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
var file_status_proto_rawDesc = []byte{
|
2023-08-22 11:00:14 +08:00
|
|
|
|
0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
|
|
|
|
|
0x63, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x20, 0x0a, 0x0e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65,
|
|
|
|
|
0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x5a, 0x0a, 0x10, 0x53, 0x77, 0x69, 0x74,
|
|
|
|
|
0x63, 0x68, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03,
|
|
|
|
|
0x64, 0x63, 0x4a, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x64, 0x63, 0x4a, 0x12, 0x10,
|
|
|
|
|
0x0a, 0x03, 0x66, 0x63, 0x4a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x66, 0x63, 0x4a,
|
|
|
|
|
0x12, 0x10, 0x0a, 0x03, 0x64, 0x62, 0x4a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x64,
|
|
|
|
|
0x62, 0x4a, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x62, 0x4a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
|
|
|
|
|
0x03, 0x66, 0x62, 0x4a, 0x22, 0x32, 0x0a, 0x14, 0x50, 0x68, 0x79, 0x73, 0x69, 0x63, 0x61, 0x6c,
|
|
|
|
|
0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
|
|
0x6f, 0x63, 0x63, 0x75, 0x70, 0x69, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08,
|
|
|
|
|
0x6f, 0x63, 0x63, 0x75, 0x70, 0x69, 0x65, 0x64, 0x22, 0x3d, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e,
|
|
|
|
|
0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c,
|
|
|
|
|
0x61, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x63, 0x73, 0x74, 0x61, 0x74,
|
|
|
|
|
0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x41, 0x73, 0x70, 0x65, 0x63, 0x74, 0x52, 0x07,
|
|
|
|
|
0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x22, 0x98, 0x01, 0x0a, 0x16, 0x53, 0x69, 0x67, 0x6e,
|
|
|
|
|
0x61, 0x6c, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
|
|
|
|
0x6e, 0x67, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61,
|
|
|
|
|
0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4f,
|
|
|
|
|
0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
|
|
|
|
|
0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6f, 0x70, 0x65,
|
|
|
|
|
0x72, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67,
|
|
|
|
|
0x65, 0x74, 0x41, 0x73, 0x70, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14,
|
|
|
|
|
0x2e, 0x63, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x41, 0x73,
|
|
|
|
|
0x70, 0x65, 0x63, 0x74, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x73, 0x70, 0x65,
|
|
|
|
|
0x63, 0x74, 0x22, 0x74, 0x0a, 0x08, 0x50, 0x73, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c,
|
|
|
|
|
0x0a, 0x09, 0x61, 0x6c, 0x6c, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
|
0x08, 0x52, 0x09, 0x61, 0x6c, 0x6c, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09,
|
|
|
|
|
0x61, 0x6c, 0x6c, 0x4f, 0x70, 0x65, 0x6e, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
|
|
|
|
|
0x09, 0x61, 0x6c, 0x6c, 0x4f, 0x70, 0x65, 0x6e, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x69, 0x6e,
|
|
|
|
|
0x74, 0x65, 0x72, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x18,
|
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6c, 0x6f, 0x63, 0x6b,
|
|
|
|
|
0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x22, 0x2b, 0x0a, 0x15, 0x50, 0x65, 0x72, 0x63,
|
|
|
|
|
0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74,
|
|
|
|
|
0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
|
|
|
0x04, 0x72, 0x61, 0x74, 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x19, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e,
|
|
|
|
|
0x74, 0x61, 0x67, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
|
|
|
|
|
0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6f, 0x48, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
|
|
|
|
|
0x52, 0x03, 0x74, 0x6f, 0x48, 0x12, 0x1e, 0x0a, 0x0a, 0x6c, 0x68, 0x44, 0x69, 0x73, 0x74, 0x61,
|
|
|
|
|
0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6c, 0x68, 0x44, 0x69, 0x73,
|
|
|
|
|
0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x44, 0x69, 0x73,
|
|
|
|
|
0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x69, 0x6e, 0x69,
|
|
|
|
|
0x74, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x75, 0x6d,
|
|
|
|
|
0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b,
|
|
|
|
|
0x73, 0x75, 0x6d, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x72,
|
|
|
|
|
0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
|
|
|
|
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e,
|
|
|
|
|
0x67, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x3e, 0x0a, 0x0b, 0x42, 0x61, 0x6c,
|
|
|
|
|
0x69, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74,
|
|
|
|
|
0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x73, 0x74, 0x61,
|
|
|
|
|
0x74, 0x65, 0x2e, 0x42, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
|
|
|
|
|
0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x4d, 0x0a, 0x0d, 0x42, 0x61, 0x6c,
|
|
|
|
|
0x69, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
|
|
|
|
|
0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18,
|
|
|
|
|
0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
|
|
|
|
|
0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x6e, 0x0a, 0x14, 0x4f, 0x63, 0x63, 0x75,
|
|
|
|
|
0x70, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
|
0x12, 0x16, 0x0a, 0x06, 0x6c, 0x69, 0x6e, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
|
0x52, 0x06, 0x6c, 0x69, 0x6e, 0x6b, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72,
|
|
|
|
|
0x74, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73,
|
|
|
|
|
0x74, 0x61, 0x72, 0x74, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e,
|
|
|
|
|
0x64, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65,
|
|
|
|
|
0x6e, 0x64, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x89, 0x01, 0x0a, 0x0a, 0x54, 0x72, 0x61,
|
|
|
|
|
0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76,
|
|
|
|
|
0x65, 0x48, 0x65, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x63, 0x73,
|
|
|
|
|
0x74, 0x61, 0x74, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65,
|
|
|
|
|
0x45, 0x6e, 0x75, 0x6d, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x48, 0x65, 0x61, 0x64,
|
|
|
|
|
0x12, 0x42, 0x0a, 0x0d, 0x6f, 0x63, 0x63, 0x75, 0x70, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b,
|
|
|
|
|
0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x73, 0x74, 0x61, 0x74, 0x65,
|
|
|
|
|
0x2e, 0x4f, 0x63, 0x63, 0x75, 0x70, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x6f, 0x73,
|
|
|
|
|
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6f, 0x63, 0x63, 0x75, 0x70, 0x69, 0x65, 0x64, 0x4c,
|
2023-08-22 17:21:21 +08:00
|
|
|
|
0x69, 0x6e, 0x6b, 0x73, 0x22, 0x40, 0x0a, 0x16, 0x54, 0x6f, 0x77, 0x50, 0x6f, 0x73, 0x69, 0x74,
|
|
|
|
|
0x69, 0x6f, 0x6e, 0x42, 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12,
|
|
|
|
|
0x0a, 0x04, 0x70, 0x6f, 0x73, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x70, 0x6f,
|
|
|
|
|
0x73, 0x31, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
|
|
|
|
0x52, 0x04, 0x70, 0x6f, 0x73, 0x32, 0x22, 0x2b, 0x0a, 0x0b, 0x42, 0x75, 0x74, 0x74, 0x6f, 0x6e,
|
|
|
|
|
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x73, 0x73, 0x44, 0x6f,
|
|
|
|
|
0x77, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x70, 0x72, 0x65, 0x73, 0x73, 0x44,
|
|
|
|
|
0x6f, 0x77, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x14, 0x42, 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x50, 0x72,
|
|
|
|
|
0x65, 0x73, 0x73, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05,
|
|
|
|
|
0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61,
|
|
|
|
|
0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x77, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
|
|
|
|
0x52, 0x04, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74,
|
|
|
|
|
0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6f, 0x70, 0x65,
|
|
|
|
|
0x72, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x65, 0x65, 0x64,
|
|
|
|
|
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x6e,
|
|
|
|
|
0x65, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x22, 0x4a, 0x0a, 0x16, 0x42, 0x75,
|
|
|
|
|
0x74, 0x74, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x4f, 0x70, 0x65, 0x72, 0x61,
|
|
|
|
|
0x74, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x18,
|
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x12, 0x16,
|
|
|
|
|
0x0a, 0x06, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06,
|
2023-08-23 16:52:01 +08:00
|
|
|
|
0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x2a, 0x81, 0x01, 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x61,
|
|
|
|
|
0x6c, 0x41, 0x73, 0x70, 0x65, 0x63, 0x74, 0x12, 0x06, 0x0a, 0x02, 0x4e, 0x6f, 0x10, 0x00, 0x12,
|
|
|
|
|
0x05, 0x0a, 0x01, 0x52, 0x10, 0x01, 0x12, 0x05, 0x0a, 0x01, 0x47, 0x10, 0x02, 0x12, 0x05, 0x0a,
|
|
|
|
|
0x01, 0x59, 0x10, 0x03, 0x12, 0x05, 0x0a, 0x01, 0x57, 0x10, 0x04, 0x12, 0x05, 0x0a, 0x01, 0x42,
|
|
|
|
|
0x10, 0x05, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x59, 0x10, 0x06, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x57,
|
|
|
|
|
0x10, 0x07, 0x12, 0x06, 0x0a, 0x02, 0x47, 0x47, 0x10, 0x08, 0x12, 0x06, 0x0a, 0x02, 0x47, 0x59,
|
|
|
|
|
0x10, 0x09, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x59, 0x10, 0x0a, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x46,
|
|
|
|
|
0x10, 0x0b, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x46, 0x10, 0x0c, 0x12, 0x06, 0x0a, 0x02, 0x47, 0x46,
|
|
|
|
|
0x10, 0x0d, 0x12, 0x06, 0x0a, 0x02, 0x57, 0x46, 0x10, 0x0e, 0x2a, 0x35, 0x0a, 0x0f, 0x54, 0x72,
|
|
|
|
|
0x61, 0x69, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0a, 0x0a,
|
|
|
|
|
0x06, 0x48, 0x45, 0x41, 0x44, 0x5f, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x48, 0x45, 0x41,
|
|
|
|
|
0x44, 0x5f, 0x41, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x48, 0x45, 0x41, 0x44, 0x5f, 0x42, 0x10,
|
|
|
|
|
0x02, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x63, 0x73, 0x74, 0x61, 0x74, 0x65, 0x62, 0x06, 0x70,
|
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2023-08-14 16:23:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
file_status_proto_rawDescOnce sync.Once
|
|
|
|
|
file_status_proto_rawDescData = file_status_proto_rawDesc
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func file_status_proto_rawDescGZIP() []byte {
|
|
|
|
|
file_status_proto_rawDescOnce.Do(func() {
|
|
|
|
|
file_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_status_proto_rawDescData)
|
|
|
|
|
})
|
|
|
|
|
return file_status_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-23 16:52:01 +08:00
|
|
|
|
var file_status_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
2023-08-22 17:21:21 +08:00
|
|
|
|
var file_status_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
2023-08-14 16:23:34 +08:00
|
|
|
|
var file_status_proto_goTypes = []interface{}{
|
2023-08-23 16:52:01 +08:00
|
|
|
|
(SignalAspect)(0), // 0: cstate.SignalAspect
|
|
|
|
|
(TrainActiveEnum)(0), // 1: cstate.TrainActiveEnum
|
|
|
|
|
(*DeviceIdentity)(nil), // 2: cstate.DeviceIdentity
|
|
|
|
|
(*SwitchRelayState)(nil), // 3: cstate.SwitchRelayState
|
|
|
|
|
(*PhysicalSectionState)(nil), // 4: cstate.PhysicalSectionState
|
|
|
|
|
(*SignalState)(nil), // 5: cstate.SignalState
|
|
|
|
|
(*SignalDisplayOperating)(nil), // 6: cstate.SignalDisplayOperating
|
|
|
|
|
(*PsdState)(nil), // 7: cstate.PsdState
|
|
|
|
|
(*PercentageDeviceState)(nil), // 8: cstate.PercentageDeviceState
|
|
|
|
|
(*PercentageDeviceOperating)(nil), // 9: cstate.PercentageDeviceOperating
|
|
|
|
|
(*BaliseState)(nil), // 10: cstate.BaliseState
|
|
|
|
|
(*BaliseContent)(nil), // 11: cstate.BaliseContent
|
|
|
|
|
(*OccupiedLinkPosition)(nil), // 12: cstate.OccupiedLinkPosition
|
|
|
|
|
(*TrainState)(nil), // 13: cstate.TrainState
|
|
|
|
|
(*TowPositionButtonState)(nil), // 14: cstate.TowPositionButtonState
|
|
|
|
|
(*ButtonState)(nil), // 15: cstate.ButtonState
|
|
|
|
|
(*ButtonPressOperating)(nil), // 16: cstate.ButtonPressOperating
|
|
|
|
|
(*ButtonConfirmOperating)(nil), // 17: cstate.ButtonConfirmOperating
|
2023-08-14 16:23:34 +08:00
|
|
|
|
}
|
|
|
|
|
var file_status_proto_depIdxs = []int32{
|
2023-08-23 16:52:01 +08:00
|
|
|
|
0, // 0: cstate.SignalState.display:type_name -> cstate.SignalAspect
|
|
|
|
|
0, // 1: cstate.SignalDisplayOperating.targetAspect:type_name -> cstate.SignalAspect
|
|
|
|
|
11, // 2: cstate.BaliseState.content:type_name -> cstate.BaliseContent
|
|
|
|
|
1, // 3: cstate.TrainState.activeHead:type_name -> cstate.TrainActiveEnum
|
|
|
|
|
12, // 4: cstate.TrainState.occupiedLinks:type_name -> cstate.OccupiedLinkPosition
|
2023-08-17 17:51:36 +08:00
|
|
|
|
5, // [5:5] is the sub-list for method output_type
|
|
|
|
|
5, // [5:5] is the sub-list for method input_type
|
|
|
|
|
5, // [5:5] is the sub-list for extension type_name
|
|
|
|
|
5, // [5:5] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:5] is the sub-list for field type_name
|
2023-08-14 16:23:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { file_status_proto_init() }
|
|
|
|
|
func file_status_proto_init() {
|
|
|
|
|
if File_status_proto != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
|
file_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*DeviceIdentity); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_status_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-18 11:23:52 +08:00
|
|
|
|
switch v := v.(*SwitchRelayState); i {
|
2023-08-14 16:23:34 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_status_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-16 15:00:24 +08:00
|
|
|
|
switch v := v.(*PhysicalSectionState); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 11:23:52 +08:00
|
|
|
|
file_status_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-15 18:12:30 +08:00
|
|
|
|
switch v := v.(*SignalState); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 11:23:52 +08:00
|
|
|
|
file_status_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-16 15:00:24 +08:00
|
|
|
|
switch v := v.(*SignalDisplayOperating); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 11:23:52 +08:00
|
|
|
|
file_status_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-16 17:17:20 +08:00
|
|
|
|
switch v := v.(*PsdState); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 16:15:19 +08:00
|
|
|
|
file_status_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-18 09:45:11 +08:00
|
|
|
|
switch v := v.(*PercentageDeviceState); i {
|
2023-08-17 17:39:57 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 16:15:19 +08:00
|
|
|
|
file_status_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-18 09:45:11 +08:00
|
|
|
|
switch v := v.(*PercentageDeviceOperating); i {
|
2023-08-17 17:39:57 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 16:15:19 +08:00
|
|
|
|
file_status_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-18 09:45:11 +08:00
|
|
|
|
switch v := v.(*BaliseState); i {
|
2023-08-17 17:39:57 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 16:15:19 +08:00
|
|
|
|
file_status_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-18 09:45:11 +08:00
|
|
|
|
switch v := v.(*BaliseContent); i {
|
2023-08-17 17:39:57 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 16:15:19 +08:00
|
|
|
|
file_status_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-18 09:45:11 +08:00
|
|
|
|
switch v := v.(*OccupiedLinkPosition); i {
|
2023-08-17 17:51:36 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 16:15:19 +08:00
|
|
|
|
file_status_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-18 09:45:11 +08:00
|
|
|
|
switch v := v.(*TrainState); i {
|
2023-08-17 17:51:36 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 16:15:19 +08:00
|
|
|
|
file_status_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
switch v := v.(*TowPositionButtonState); i {
|
2023-08-18 09:45:11 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 16:15:19 +08:00
|
|
|
|
file_status_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
switch v := v.(*ButtonState); i {
|
2023-08-18 09:45:11 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-18 16:15:19 +08:00
|
|
|
|
file_status_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-22 17:21:21 +08:00
|
|
|
|
switch v := v.(*ButtonPressOperating); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_status_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-17 17:14:47 +08:00
|
|
|
|
switch v := v.(*ButtonConfirmOperating); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-14 16:23:34 +08:00
|
|
|
|
}
|
|
|
|
|
type x struct{}
|
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: file_status_proto_rawDesc,
|
2023-08-23 16:52:01 +08:00
|
|
|
|
NumEnums: 2,
|
2023-08-22 17:21:21 +08:00
|
|
|
|
NumMessages: 16,
|
2023-08-14 16:23:34 +08:00
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 0,
|
|
|
|
|
},
|
|
|
|
|
GoTypes: file_status_proto_goTypes,
|
|
|
|
|
DependencyIndexes: file_status_proto_depIdxs,
|
2023-08-15 18:12:30 +08:00
|
|
|
|
EnumInfos: file_status_proto_enumTypes,
|
2023-08-14 16:23:34 +08:00
|
|
|
|
MessageInfos: file_status_proto_msgTypes,
|
|
|
|
|
}.Build()
|
|
|
|
|
File_status_proto = out.File
|
|
|
|
|
file_status_proto_rawDesc = nil
|
|
|
|
|
file_status_proto_goTypes = nil
|
|
|
|
|
file_status_proto_depIdxs = nil
|
|
|
|
|
}
|