rts-sim-module/state/status.pb.go

1633 lines
49 KiB
Go
Raw Normal View History

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
package state
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 {
return file_status_proto_enumTypes[0].Descriptor()
}
func (SignalAspect) Type() protoreflect.EnumType {
return &file_status_proto_enumTypes[0]
}
func (x SignalAspect) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SignalAspect.Descriptor instead.
func (SignalAspect) EnumDescriptor() ([]byte, []int) {
return file_status_proto_rawDescGZIP(), []int{0}
}
// 列车激活的枚举
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 {
return file_status_proto_enumTypes[1].Descriptor()
}
func (TrainActiveEnum) Type() protoreflect.EnumType {
return &file_status_proto_enumTypes[1]
}
func (x TrainActiveEnum) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrainActiveEnum.Descriptor instead.
func (TrainActiveEnum) EnumDescriptor() ([]byte, []int) {
return file_status_proto_rawDescGZIP(), []int{1}
}
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-15 18:12:30 +08:00
Display SignalAspect `protobuf:"varint,1,opt,name=display,proto3,enum=state.SignalAspect" json:"display,omitempty"`
}
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"`
// 信号机目标显示
TargetAspect SignalAspect `protobuf:"varint,3,opt,name=targetAspect,proto3,enum=state.SignalAspect" json:"targetAspect,omitempty"`
}
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-16 17:17:20 +08:00
// 单个屏蔽门状态
type PsdCellState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 门关百分比,值范围[0,100],0-全开100-全关
CloseRate int32 `protobuf:"varint,1,opt,name=closeRate,proto3" json:"closeRate,omitempty"`
}
func (x *PsdCellState) Reset() {
*x = PsdCellState{}
if protoimpl.UnsafeEnabled {
2023-08-18 11:23:52 +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 *PsdCellState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PsdCellState) ProtoMessage() {}
func (x *PsdCellState) ProtoReflect() protoreflect.Message {
2023-08-18 11:23:52 +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 PsdCellState.ProtoReflect.Descriptor instead.
func (*PsdCellState) Descriptor() ([]byte, []int) {
2023-08-18 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{5}
2023-08-16 17:17:20 +08:00
}
func (x *PsdCellState) GetCloseRate() int32 {
if x != nil {
return x.CloseRate
}
return 0
}
// 站台一侧所有单个屏蔽门状态
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 11:23:52 +08:00
mi := &file_status_proto_msgTypes[6]
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 11:23:52 +08:00
mi := &file_status_proto_msgTypes[6]
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 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{6}
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
}
// 单个屏蔽门操作
type PsdCellOperating struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 是否启动操作
Start bool `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
// 是否关门动作
// true-关门动作false-开门动作
CloseOperate bool `protobuf:"varint,2,opt,name=closeOperate,proto3" json:"closeOperate,omitempty"`
2023-08-17 14:25:18 +08:00
// 本次操作开始时的初始移动距离单位mm
InitDistance int64 `protobuf:"varint,3,opt,name=initDistance,proto3" json:"initDistance,omitempty"`
// 本次操作一共要移动的距离单位mm
SumDistance int64 `protobuf:"varint,4,opt,name=sumDistance,proto3" json:"sumDistance,omitempty"`
// 剩余移动距离单位mm
RemainingDistance int64 `protobuf:"varint,5,opt,name=remainingDistance,proto3" json:"remainingDistance,omitempty"`
2023-08-16 17:17:20 +08:00
}
func (x *PsdCellOperating) Reset() {
*x = PsdCellOperating{}
if protoimpl.UnsafeEnabled {
2023-08-18 11:23:52 +08:00
mi := &file_status_proto_msgTypes[7]
2023-08-16 17:17:20 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PsdCellOperating) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PsdCellOperating) ProtoMessage() {}
func (x *PsdCellOperating) ProtoReflect() protoreflect.Message {
2023-08-18 11:23:52 +08:00
mi := &file_status_proto_msgTypes[7]
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 PsdCellOperating.ProtoReflect.Descriptor instead.
func (*PsdCellOperating) Descriptor() ([]byte, []int) {
2023-08-18 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{7}
2023-08-16 17:17:20 +08:00
}
func (x *PsdCellOperating) GetStart() bool {
if x != nil {
return x.Start
}
return false
}
func (x *PsdCellOperating) GetCloseOperate() bool {
if x != nil {
return x.CloseOperate
}
return false
}
2023-08-17 14:25:18 +08:00
func (x *PsdCellOperating) GetInitDistance() int64 {
2023-08-16 17:17:20 +08:00
if x != nil {
2023-08-17 14:25:18 +08:00
return x.InitDistance
2023-08-16 17:17:20 +08:00
}
return 0
}
2023-08-17 14:25:18 +08:00
func (x *PsdCellOperating) GetSumDistance() int64 {
2023-08-16 17:17:20 +08:00
if x != nil {
2023-08-17 14:25:18 +08:00
return x.SumDistance
}
return 0
}
func (x *PsdCellOperating) GetRemainingDistance() int64 {
if x != nil {
return x.RemainingDistance
2023-08-16 17:17:20 +08:00
}
return 0
}
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 11:23:52 +08:00
mi := &file_status_proto_msgTypes[8]
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 11:23:52 +08:00
mi := &file_status_proto_msgTypes[8]
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 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{8}
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 11:23:52 +08:00
mi := &file_status_proto_msgTypes[9]
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 11:23:52 +08:00
mi := &file_status_proto_msgTypes[9]
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 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{9}
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 11:23:52 +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 *BaliseState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BaliseState) ProtoMessage() {}
func (x *BaliseState) ProtoReflect() protoreflect.Message {
2023-08-18 11:23:52 +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 BaliseState.ProtoReflect.Descriptor instead.
func (*BaliseState) Descriptor() ([]byte, []int) {
2023-08-18 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{10}
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 11:23:52 +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 *BaliseContent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BaliseContent) ProtoMessage() {}
func (x *BaliseContent) ProtoReflect() protoreflect.Message {
2023-08-18 11:23:52 +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 BaliseContent.ProtoReflect.Descriptor instead.
func (*BaliseContent) Descriptor() ([]byte, []int) {
2023-08-18 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{11}
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 11:23:52 +08:00
mi := &file_status_proto_msgTypes[12]
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 11:23:52 +08:00
mi := &file_status_proto_msgTypes[12]
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 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{12}
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
// 列车激活端
ActiveHead TrainActiveEnum `protobuf:"varint,1,opt,name=activeHead,proto3,enum=state.TrainActiveEnum" json:"activeHead,omitempty"`
2023-08-17 17:39:57 +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 11:23:52 +08:00
mi := &file_status_proto_msgTypes[13]
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 11:23:52 +08:00
mi := &file_status_proto_msgTypes[13]
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 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{13}
2023-08-17 17:39:57 +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-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-18 11:23:52 +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 *ButtonState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ButtonState) ProtoMessage() {}
func (x *ButtonState) ProtoReflect() protoreflect.Message {
2023-08-18 11:23:52 +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 ButtonState.ProtoReflect.Descriptor instead.
func (*ButtonState) Descriptor() ([]byte, []int) {
2023-08-18 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{14}
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-18 11:23:52 +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 *ButtonPressOperating) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ButtonPressOperating) ProtoMessage() {}
func (x *ButtonPressOperating) ProtoReflect() protoreflect.Message {
2023-08-18 11:23:52 +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 ButtonPressOperating.ProtoReflect.Descriptor instead.
func (*ButtonPressOperating) Descriptor() ([]byte, []int) {
2023-08-18 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{15}
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-18 11:23:52 +08:00
mi := &file_status_proto_msgTypes[16]
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-18 11:23:52 +08:00
mi := &file_status_proto_msgTypes[16]
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-18 11:23:52 +08:00
return file_status_proto_rawDescGZIP(), []int{16}
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{
0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05,
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,
2023-08-18 11:23:52 +08:00
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, 0x3c, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x61,
0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 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, 0x97, 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, 0x37, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
0x41, 0x73, 0x70, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 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,
0x2c, 0x0a, 0x0c, 0x50, 0x73, 0x64, 0x43, 0x65, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x05, 0x52, 0x09, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x61, 0x74, 0x65, 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, 0xc0, 0x01, 0x0a, 0x10, 0x50, 0x73, 0x64, 0x43, 0x65, 0x6c, 0x6c, 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, 0x22,
0x0a, 0x0c, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61,
0x74, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e,
2023-08-18 11:02:00 +08:00
0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x44, 0x69,
2023-08-18 09:45:11 +08:00
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x75, 0x6d, 0x44, 0x69, 0x73,
2023-08-18 11:02:00 +08:00
0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x75, 0x6d,
2023-08-18 09:45:11 +08:00
0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x72, 0x65, 0x6d, 0x61,
2023-08-18 11:02:00 +08:00
0x69, 0x6e, 0x69, 0x6e, 0x67, 0x44, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20,
2023-08-18 09:45:11 +08:00
0x01, 0x28, 0x03, 0x52, 0x11, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x44, 0x69,
2023-08-18 11:23:52 +08:00
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 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, 0x3d, 0x0a, 0x0b, 0x42, 0x61, 0x6c, 0x69, 0x73,
0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 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, 0x87, 0x01, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x53,
0x74, 0x61, 0x74, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x48, 0x65,
0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 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, 0x41, 0x0a, 0x0d,
0x6f, 0x63, 0x63, 0x75, 0x70, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x07, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 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, 0x69, 0x6e, 0x6b, 0x73, 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, 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, 0x09, 0x5a, 0x07, 0x2e, 0x2f,
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
}
var file_status_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
2023-08-18 11:23:52 +08:00
var file_status_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
2023-08-14 16:23:34 +08:00
var file_status_proto_goTypes = []interface{}{
2023-08-18 09:45:11 +08:00
(SignalAspect)(0), // 0: state.SignalAspect
(TrainActiveEnum)(0), // 1: state.TrainActiveEnum
(*DeviceIdentity)(nil), // 2: state.DeviceIdentity
2023-08-18 11:23:52 +08:00
(*SwitchRelayState)(nil), // 3: state.SwitchRelayState
(*PhysicalSectionState)(nil), // 4: state.PhysicalSectionState
(*SignalState)(nil), // 5: state.SignalState
(*SignalDisplayOperating)(nil), // 6: state.SignalDisplayOperating
(*PsdCellState)(nil), // 7: state.PsdCellState
(*PsdState)(nil), // 8: state.PsdState
(*PsdCellOperating)(nil), // 9: state.PsdCellOperating
(*PercentageDeviceState)(nil), // 10: state.PercentageDeviceState
(*PercentageDeviceOperating)(nil), // 11: state.PercentageDeviceOperating
(*BaliseState)(nil), // 12: state.BaliseState
(*BaliseContent)(nil), // 13: state.BaliseContent
(*OccupiedLinkPosition)(nil), // 14: state.OccupiedLinkPosition
(*TrainState)(nil), // 15: state.TrainState
(*ButtonState)(nil), // 16: state.ButtonState
(*ButtonPressOperating)(nil), // 17: state.ButtonPressOperating
(*ButtonConfirmOperating)(nil), // 18: state.ButtonConfirmOperating
2023-08-14 16:23:34 +08:00
}
var file_status_proto_depIdxs = []int32{
2023-08-17 17:39:57 +08:00
0, // 0: state.SignalState.display:type_name -> state.SignalAspect
0, // 1: state.SignalDisplayOperating.targetAspect:type_name -> state.SignalAspect
2023-08-18 11:23:52 +08:00
13, // 2: state.BaliseState.content:type_name -> state.BaliseContent
1, // 3: state.TrainState.activeHead:type_name -> state.TrainActiveEnum
2023-08-18 11:23:52 +08:00
14, // 4: state.TrainState.occupiedLinks:type_name -> state.OccupiedLinkPosition
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.(*PsdCellState); 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[6].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 11:23:52 +08:00
file_status_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
2023-08-16 17:17:20 +08:00
switch v := v.(*PsdCellOperating); 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[8].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 11:23:52 +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.(*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 11:23:52 +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.(*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 11:23:52 +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.(*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 11:23:52 +08:00
file_status_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
2023-08-18 09:45:11 +08:00
switch v := v.(*OccupiedLinkPosition); 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[13].Exporter = func(v interface{}, i int) interface{} {
2023-08-18 09:45:11 +08:00
switch v := v.(*TrainState); 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[14].Exporter = func(v interface{}, i int) interface{} {
2023-08-18 09:45:11 +08:00
switch v := v.(*ButtonState); 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[15].Exporter = func(v interface{}, i int) interface{} {
2023-08-18 09:45:11 +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
}
}
2023-08-18 11:23:52 +08:00
file_status_proto_msgTypes[16].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,
NumEnums: 2,
2023-08-18 11:23:52 +08:00
NumMessages: 17,
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
}