2023-07-28 15:57:37 +08:00
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
2023-10-13 17:36:43 +08:00
|
|
|
|
// protoc-gen-go v1.31.0
|
2023-07-28 15:57:37 +08:00
|
|
|
|
// protoc v4.23.1
|
|
|
|
|
// source: device_state.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)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 区段类型
|
|
|
|
|
type SectionType int32
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
SectionType_Any SectionType = 0
|
|
|
|
|
// 计轴区段
|
|
|
|
|
SectionType_Axle SectionType = 1
|
|
|
|
|
// 逻辑区段
|
|
|
|
|
SectionType_Logic SectionType = 2
|
|
|
|
|
// 物理区段
|
|
|
|
|
SectionType_Physic SectionType = 3
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Enum value maps for SectionType.
|
|
|
|
|
var (
|
|
|
|
|
SectionType_name = map[int32]string{
|
|
|
|
|
0: "Any",
|
|
|
|
|
1: "Axle",
|
|
|
|
|
2: "Logic",
|
|
|
|
|
3: "Physic",
|
|
|
|
|
}
|
|
|
|
|
SectionType_value = map[string]int32{
|
|
|
|
|
"Any": 0,
|
|
|
|
|
"Axle": 1,
|
|
|
|
|
"Logic": 2,
|
|
|
|
|
"Physic": 3,
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (x SectionType) Enum() *SectionType {
|
|
|
|
|
p := new(SectionType)
|
|
|
|
|
*p = x
|
|
|
|
|
return p
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x SectionType) String() string {
|
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (SectionType) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
|
return file_device_state_proto_enumTypes[0].Descriptor()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (SectionType) Type() protoreflect.EnumType {
|
|
|
|
|
return &file_device_state_proto_enumTypes[0]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x SectionType) Number() protoreflect.EnumNumber {
|
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use SectionType.Descriptor instead.
|
|
|
|
|
func (SectionType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-13 15:57:09 +08:00
|
|
|
|
// 信号机显示枚举
|
2023-10-13 14:41:55 +08:00
|
|
|
|
type Signal_Aspect int32
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
// 物理灭灯
|
|
|
|
|
Signal_OFF Signal_Aspect = 0
|
|
|
|
|
// 绿灯亮
|
2023-10-16 11:16:09 +08:00
|
|
|
|
Signal_L Signal_Aspect = 1
|
2023-10-13 15:57:09 +08:00
|
|
|
|
// 红
|
2023-10-16 11:16:09 +08:00
|
|
|
|
Signal_H Signal_Aspect = 2
|
2023-10-13 15:57:09 +08:00
|
|
|
|
// 黄
|
2023-10-16 11:16:09 +08:00
|
|
|
|
Signal_U Signal_Aspect = 3
|
2023-10-13 15:57:09 +08:00
|
|
|
|
// 红黄
|
2023-10-16 11:16:09 +08:00
|
|
|
|
Signal_HU Signal_Aspect = 4
|
2023-10-13 15:57:09 +08:00
|
|
|
|
// 白
|
2023-10-16 11:16:09 +08:00
|
|
|
|
Signal_B Signal_Aspect = 5
|
2023-10-13 15:57:09 +08:00
|
|
|
|
// 蓝
|
2023-10-16 11:16:09 +08:00
|
|
|
|
Signal_A Signal_Aspect = 6
|
2023-10-13 14:41:55 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Enum value maps for Signal_Aspect.
|
|
|
|
|
var (
|
|
|
|
|
Signal_Aspect_name = map[int32]string{
|
|
|
|
|
0: "OFF",
|
2023-10-16 11:16:09 +08:00
|
|
|
|
1: "L",
|
|
|
|
|
2: "H",
|
|
|
|
|
3: "U",
|
|
|
|
|
4: "HU",
|
|
|
|
|
5: "B",
|
|
|
|
|
6: "A",
|
2023-10-13 14:41:55 +08:00
|
|
|
|
}
|
|
|
|
|
Signal_Aspect_value = map[string]int32{
|
|
|
|
|
"OFF": 0,
|
2023-10-16 11:16:09 +08:00
|
|
|
|
"L": 1,
|
|
|
|
|
"H": 2,
|
|
|
|
|
"U": 3,
|
|
|
|
|
"HU": 4,
|
|
|
|
|
"B": 5,
|
|
|
|
|
"A": 6,
|
2023-10-13 14:41:55 +08:00
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (x Signal_Aspect) Enum() *Signal_Aspect {
|
|
|
|
|
p := new(Signal_Aspect)
|
|
|
|
|
*p = x
|
|
|
|
|
return p
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x Signal_Aspect) String() string {
|
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (Signal_Aspect) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
|
return file_device_state_proto_enumTypes[1].Descriptor()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (Signal_Aspect) Type() protoreflect.EnumType {
|
|
|
|
|
return &file_device_state_proto_enumTypes[1]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x Signal_Aspect) Number() protoreflect.EnumNumber {
|
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use Signal_Aspect.Descriptor instead.
|
|
|
|
|
func (Signal_Aspect) EnumDescriptor() ([]byte, []int) {
|
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{4, 0}
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-28 15:57:37 +08:00
|
|
|
|
// 相邻端点定义的link的状态
|
|
|
|
|
type LinkState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// link索引
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
// link上的列车id列表
|
|
|
|
|
TrainId []string `protobuf:"bytes,2,rep,name=trainId,proto3" json:"trainId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LinkState) Reset() {
|
|
|
|
|
*x = LinkState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_device_state_proto_msgTypes[0]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LinkState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*LinkState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *LinkState) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_device_state_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 LinkState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*LinkState) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{0}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LinkState) GetId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LinkState) GetTrainId() []string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TrainId
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 区段状态
|
|
|
|
|
type SectionState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 区段索引
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
// 区段类型
|
|
|
|
|
Type SectionType `protobuf:"varint,2,opt,name=type,proto3,enum=state.SectionType" json:"type,omitempty"`
|
|
|
|
|
// 区段占用
|
|
|
|
|
// true-占用;false-出清
|
|
|
|
|
Occupied bool `protobuf:"varint,3,opt,name=occupied,proto3" json:"occupied,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SectionState) Reset() {
|
|
|
|
|
*x = SectionState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_device_state_proto_msgTypes[1]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SectionState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*SectionState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *SectionState) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_device_state_proto_msgTypes[1]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use SectionState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*SectionState) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SectionState) GetId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SectionState) GetType() SectionType {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Type
|
|
|
|
|
}
|
|
|
|
|
return SectionType_Any
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SectionState) GetOccupied() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Occupied
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 道岔状态
|
|
|
|
|
type SwitchState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 道岔索引
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
2023-10-07 15:59:22 +08:00
|
|
|
|
// 道岔处于定位(表示)
|
2023-07-28 15:57:37 +08:00
|
|
|
|
Normal bool `protobuf:"varint,2,opt,name=normal,proto3" json:"normal,omitempty"`
|
2023-10-07 15:59:22 +08:00
|
|
|
|
// 道岔处于反位(表示)
|
2023-07-28 15:57:37 +08:00
|
|
|
|
Reverse bool `protobuf:"varint,3,opt,name=reverse,proto3" json:"reverse,omitempty"`
|
2023-10-07 15:59:22 +08:00
|
|
|
|
// 道岔处于定位(实际)
|
|
|
|
|
Dw bool `protobuf:"varint,4,opt,name=dw,proto3" json:"dw,omitempty"`
|
|
|
|
|
// 道岔处于反位(实际)
|
|
|
|
|
Fw bool `protobuf:"varint,5,opt,name=fw,proto3" json:"fw,omitempty"`
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SwitchState) Reset() {
|
|
|
|
|
*x = SwitchState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_device_state_proto_msgTypes[2]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SwitchState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*SwitchState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *SwitchState) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_device_state_proto_msgTypes[2]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use SwitchState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*SwitchState) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SwitchState) GetId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SwitchState) GetNormal() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Normal
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SwitchState) GetReverse() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Reverse
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-07 15:59:22 +08:00
|
|
|
|
func (x *SwitchState) GetDw() bool {
|
2023-09-27 14:55:26 +08:00
|
|
|
|
if x != nil {
|
2023-10-07 15:59:22 +08:00
|
|
|
|
return x.Dw
|
2023-09-27 14:55:26 +08:00
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-07 15:59:22 +08:00
|
|
|
|
func (x *SwitchState) GetFw() bool {
|
2023-10-07 10:57:16 +08:00
|
|
|
|
if x != nil {
|
2023-10-07 15:59:22 +08:00
|
|
|
|
return x.Fw
|
2023-10-07 10:57:16 +08:00
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-28 15:57:37 +08:00
|
|
|
|
// 信号机状态
|
|
|
|
|
type SignalState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 信号机索引
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
2023-10-13 15:57:09 +08:00
|
|
|
|
// 信号机的灯列表
|
2023-10-16 11:16:09 +08:00
|
|
|
|
Aspect Signal_Aspect `protobuf:"varint,2,opt,name=aspect,proto3,enum=state.Signal_Aspect" json:"aspect,omitempty"`
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SignalState) Reset() {
|
|
|
|
|
*x = SignalState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_device_state_proto_msgTypes[3]
|
|
|
|
|
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 {
|
|
|
|
|
mi := &file_device_state_proto_msgTypes[3]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use SignalState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*SignalState) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SignalState) GetId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-16 11:16:09 +08:00
|
|
|
|
func (x *SignalState) GetAspect() Signal_Aspect {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
if x != nil {
|
2023-10-16 11:16:09 +08:00
|
|
|
|
return x.Aspect
|
2023-10-13 14:41:55 +08:00
|
|
|
|
}
|
2023-10-16 11:16:09 +08:00
|
|
|
|
return Signal_OFF
|
2023-10-13 14:41:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-10-13 15:57:09 +08:00
|
|
|
|
// 信号机显示定义
|
2023-10-13 14:41:55 +08:00
|
|
|
|
type Signal struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Signal) Reset() {
|
|
|
|
|
*x = Signal{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_device_state_proto_msgTypes[4]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Signal) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*Signal) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *Signal) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_device_state_proto_msgTypes[4]
|
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use Signal.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*Signal) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{4}
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-28 15:57:37 +08:00
|
|
|
|
// 站台状态
|
|
|
|
|
type PlatformState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 站台索引
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PlatformState) Reset() {
|
|
|
|
|
*x = PlatformState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[5]
|
2023-07-28 15:57:37 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PlatformState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*PlatformState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *PlatformState) ProtoReflect() protoreflect.Message {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[5]
|
2023-07-28 15:57:37 +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 PlatformState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*PlatformState) Descriptor() ([]byte, []int) {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{5}
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PlatformState) GetId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 车站状态
|
|
|
|
|
type StationState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 车站索引
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *StationState) Reset() {
|
|
|
|
|
*x = StationState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[6]
|
2023-07-28 15:57:37 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *StationState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*StationState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *StationState) ProtoReflect() protoreflect.Message {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[6]
|
2023-07-28 15:57:37 +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 StationState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*StationState) Descriptor() ([]byte, []int) {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{6}
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *StationState) GetId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 列车状态
|
|
|
|
|
type TrainState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 列车索引
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
2023-08-25 16:09:04 +08:00
|
|
|
|
// 列车初始link运行方向
|
2023-07-28 15:57:37 +08:00
|
|
|
|
Up bool `protobuf:"varint,2,opt,name=up,proto3" json:"up,omitempty"`
|
2023-08-25 16:09:04 +08:00
|
|
|
|
// 列车初始速度
|
|
|
|
|
Speed float32 `protobuf:"fixed32,3,opt,name=speed,proto3" json:"speed,omitempty"`
|
2023-07-28 15:57:37 +08:00
|
|
|
|
// 列车长度,1=1mm
|
2023-08-25 16:09:04 +08:00
|
|
|
|
TrainLength int64 `protobuf:"varint,4,opt,name=trainLength,proto3" json:"trainLength,omitempty"`
|
2023-08-02 15:50:46 +08:00
|
|
|
|
// 列车是否显示
|
2023-08-25 16:09:04 +08:00
|
|
|
|
Show bool `protobuf:"varint,5,opt,name=show,proto3" json:"show,omitempty"`
|
2023-08-10 14:18:55 +08:00
|
|
|
|
// 列车车头所在设备ID
|
2023-08-25 16:09:04 +08:00
|
|
|
|
HeadDeviceId string `protobuf:"bytes,6,opt,name=headDeviceId,proto3" json:"headDeviceId,omitempty"`
|
2023-08-10 14:18:55 +08:00
|
|
|
|
// 列车车头所在设备偏移量
|
2023-08-25 16:09:04 +08:00
|
|
|
|
HeadOffset int64 `protobuf:"varint,7,opt,name=headOffset,proto3" json:"headOffset,omitempty"`
|
2023-08-10 14:18:55 +08:00
|
|
|
|
// 设备端口
|
2023-08-25 16:09:04 +08:00
|
|
|
|
DevicePort string `protobuf:"bytes,8,opt,name=devicePort,proto3" json:"devicePort,omitempty"`
|
2023-08-14 16:27:03 +08:00
|
|
|
|
// 运行方向指向(区段:A-B,道岔:-> 岔心)
|
2023-08-25 16:09:04 +08:00
|
|
|
|
PointTo bool `protobuf:"varint,9,opt,name=pointTo,proto3" json:"pointTo,omitempty"`
|
2023-08-14 16:27:03 +08:00
|
|
|
|
// 运行上下行(公里标 上行:小 -> 大,下行:大 -> 小)
|
2023-08-25 16:09:04 +08:00
|
|
|
|
RunDirection bool `protobuf:"varint,10,opt,name=runDirection,proto3" json:"runDirection,omitempty"`
|
2023-08-23 15:33:07 +08:00
|
|
|
|
// 列车车头方向
|
2023-08-25 16:09:04 +08:00
|
|
|
|
HeadDirection bool `protobuf:"varint,11,opt,name=headDirection,proto3" json:"headDirection,omitempty"`
|
|
|
|
|
// 动力学信息
|
|
|
|
|
DynamicState *TrainDynamicState `protobuf:"bytes,12,opt,name=dynamicState,proto3" json:"dynamicState,omitempty"`
|
|
|
|
|
// 半实物信息
|
|
|
|
|
VobcState *TrainVobcState `protobuf:"bytes,13,opt,name=vobcState,proto3" json:"vobcState,omitempty"`
|
2023-09-12 16:33:31 +08:00
|
|
|
|
// 所在公里标
|
|
|
|
|
TrainKilometer int64 `protobuf:"varint,14,opt,name=trainKilometer,proto3" json:"trainKilometer,omitempty"`
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainState) Reset() {
|
|
|
|
|
*x = TrainState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[7]
|
2023-07-28 15:57:37 +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-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[7]
|
2023-07-28 15:57:37 +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-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{7}
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainState) GetId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainState) GetUp() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Up
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainState) GetSpeed() float32 {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.Speed
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return 0
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainState) GetTrainLength() int64 {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.TrainLength
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainState) GetShow() bool {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.Show
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainState) GetHeadDeviceId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.HeadDeviceId
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainState) GetHeadOffset() int64 {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.HeadOffset
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainState) GetDevicePort() string {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.DevicePort
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return ""
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainState) GetPointTo() bool {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.PointTo
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return false
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainState) GetRunDirection() bool {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.RunDirection
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return false
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainState) GetHeadDirection() bool {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.HeadDirection
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainState) GetDynamicState() *TrainDynamicState {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.DynamicState
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return nil
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainState) GetVobcState() *TrainVobcState {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.VobcState
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-12 16:33:31 +08:00
|
|
|
|
func (x *TrainState) GetTrainKilometer() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TrainKilometer
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
// 动力学列车状态
|
|
|
|
|
type TrainDynamicState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 生命信号 每个周期+1
|
|
|
|
|
Heartbeat int32 `protobuf:"varint,1,opt,name=heartbeat,proto3" json:"heartbeat,omitempty"`
|
|
|
|
|
// 车头所在link的索引
|
|
|
|
|
HeadLinkId string `protobuf:"bytes,2,opt,name=headLinkId,proto3" json:"headLinkId,omitempty"`
|
|
|
|
|
// 车头所在link内的偏移量,单位为mm
|
|
|
|
|
HeadLinkOffset int64 `protobuf:"varint,3,opt,name=headLinkOffset,proto3" json:"headLinkOffset,omitempty"`
|
|
|
|
|
// 车尾所在link的索引
|
|
|
|
|
TailLinkId string `protobuf:"bytes,4,opt,name=tailLinkId,proto3" json:"tailLinkId,omitempty"`
|
|
|
|
|
// 车尾所在link内的偏移量,单位为mm
|
|
|
|
|
TailLinkOffset int64 `protobuf:"varint,5,opt,name=tailLinkOffset,proto3" json:"tailLinkOffset,omitempty"`
|
|
|
|
|
// 列车所占用的link的索引的列表
|
|
|
|
|
// 顺序为从车头到车尾
|
|
|
|
|
OccupiedLinkIndex []string `protobuf:"bytes,6,rep,name=occupiedLinkIndex,proto3" json:"occupiedLinkIndex,omitempty"`
|
|
|
|
|
// 列车所在位置坡度值,1=1‰
|
|
|
|
|
Slope int32 `protobuf:"varint,7,opt,name=slope,proto3" json:"slope,omitempty"`
|
|
|
|
|
// 列车所在位置坡度走势,1=上坡true,0=下坡false
|
|
|
|
|
Upslope bool `protobuf:"varint,8,opt,name=upslope,proto3" json:"upslope,omitempty"`
|
|
|
|
|
// 列车当前运行方向,1 =上行true 0 =下行false
|
|
|
|
|
RunningUp bool `protobuf:"varint,9,opt,name=runningUp,proto3" json:"runningUp,omitempty"`
|
|
|
|
|
// 实际运行阻力(总)(N)totalResistance,1=1KN
|
|
|
|
|
RunningResistanceSum float32 `protobuf:"fixed32,10,opt,name=runningResistanceSum,proto3" json:"runningResistanceSum,omitempty"`
|
|
|
|
|
// 阻力1(空气阻力)(N)airResistance,1=1KN
|
|
|
|
|
AirResistance float32 `protobuf:"fixed32,11,opt,name=airResistance,proto3" json:"airResistance,omitempty"`
|
|
|
|
|
// 阻力2(坡道阻力)(N)slopeResistance,1=1KN
|
|
|
|
|
RampResistance float32 `protobuf:"fixed32,12,opt,name=rampResistance,proto3" json:"rampResistance,omitempty"`
|
|
|
|
|
// 阻力3(曲线阻力)(N)curveResistance,1=1KN
|
|
|
|
|
CurveResistance float32 `protobuf:"fixed32,13,opt,name=curveResistance,proto3" json:"curveResistance,omitempty"`
|
|
|
|
|
// 列车运行速度(m/s)speed,1=1km/h
|
2023-09-05 15:12:11 +08:00
|
|
|
|
Speed int32 `protobuf:"varint,14,opt,name=speed,proto3" json:"speed,omitempty"`
|
2023-08-25 16:09:04 +08:00
|
|
|
|
// 头车速传1速度值(m/s)headSpeed1,1=1km/h
|
2023-09-05 15:12:11 +08:00
|
|
|
|
HeadSensorSpeed1 int32 `protobuf:"varint,15,opt,name=headSensorSpeed1,proto3" json:"headSensorSpeed1,omitempty"`
|
2023-08-25 16:09:04 +08:00
|
|
|
|
// 头车速度2速度值(m/s)headSpeed2,1=1km/h
|
2023-09-05 15:12:11 +08:00
|
|
|
|
HeadSensorSpeed2 int32 `protobuf:"varint,16,opt,name=headSensorSpeed2,proto3" json:"headSensorSpeed2,omitempty"`
|
2023-08-25 16:09:04 +08:00
|
|
|
|
// 尾车速传1速度值(m/s)tailSpeed1,1=1km/h
|
2023-09-05 15:12:11 +08:00
|
|
|
|
TailSensorSpeed1 int32 `protobuf:"varint,17,opt,name=tailSensorSpeed1,proto3" json:"tailSensorSpeed1,omitempty"`
|
2023-08-25 16:09:04 +08:00
|
|
|
|
// 尾车速度2速度值(m/s)tailSpeed2,1=1km/h
|
2023-09-05 15:12:11 +08:00
|
|
|
|
TailSensorSpeed2 int32 `protobuf:"varint,18,opt,name=tailSensorSpeed2,proto3" json:"tailSensorSpeed2,omitempty"`
|
2023-08-25 16:09:04 +08:00
|
|
|
|
// 头车雷达速度值(m/s)headRadarSpeed,1=1km/h
|
2023-09-05 15:12:11 +08:00
|
|
|
|
HeadRadarSpeed int32 `protobuf:"varint,19,opt,name=headRadarSpeed,proto3" json:"headRadarSpeed,omitempty"`
|
2023-08-25 16:09:04 +08:00
|
|
|
|
// 尾车雷达速度值(m/s)tailRadarSpeed,1=1km/h
|
2023-09-05 15:12:11 +08:00
|
|
|
|
TailRadarSpeed int32 `protobuf:"varint,20,opt,name=tailRadarSpeed,proto3" json:"tailRadarSpeed,omitempty"`
|
2023-10-07 17:00:39 +08:00
|
|
|
|
// 通讯中断
|
2023-09-12 10:00:13 +08:00
|
|
|
|
UdpInterruption bool `protobuf:"varint,21,opt,name=udpInterruption,proto3" json:"udpInterruption,omitempty"`
|
2023-10-07 17:00:39 +08:00
|
|
|
|
// 加速
|
|
|
|
|
Acceleration float32 `protobuf:"fixed32,22,opt,name=acceleration,proto3" json:"acceleration,omitempty"`
|
2023-08-25 16:09:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainDynamicState) Reset() {
|
|
|
|
|
*x = TrainDynamicState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[8]
|
2023-08-25 16:09:04 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainDynamicState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (*TrainDynamicState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *TrainDynamicState) ProtoReflect() protoreflect.Message {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[8]
|
2023-08-25 16:09:04 +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 TrainDynamicState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*TrainDynamicState) Descriptor() ([]byte, []int) {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{8}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainDynamicState) GetHeartbeat() int32 {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.Heartbeat
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainDynamicState) GetHeadLinkId() string {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.HeadLinkId
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return ""
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainDynamicState) GetHeadLinkOffset() int64 {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.HeadLinkOffset
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainDynamicState) GetTailLinkId() string {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.TailLinkId
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return ""
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainDynamicState) GetTailLinkOffset() int64 {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.TailLinkOffset
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainDynamicState) GetOccupiedLinkIndex() []string {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.OccupiedLinkIndex
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return nil
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainDynamicState) GetSlope() int32 {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.Slope
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainDynamicState) GetUpslope() bool {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.Upslope
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainDynamicState) GetRunningUp() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RunningUp
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainDynamicState) GetRunningResistanceSum() float32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RunningResistanceSum
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainDynamicState) GetAirResistance() float32 {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.AirResistance
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainDynamicState) GetRampResistance() float32 {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.RampResistance
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-25 16:09:04 +08:00
|
|
|
|
func (x *TrainDynamicState) GetCurveResistance() float32 {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.CurveResistance
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-05 15:12:11 +08:00
|
|
|
|
func (x *TrainDynamicState) GetSpeed() int32 {
|
2023-08-02 15:50:46 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.Speed
|
2023-08-02 15:50:46 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return 0
|
2023-08-02 15:50:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-05 15:12:11 +08:00
|
|
|
|
func (x *TrainDynamicState) GetHeadSensorSpeed1() int32 {
|
2023-08-10 14:18:55 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.HeadSensorSpeed1
|
2023-08-10 14:18:55 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return 0
|
2023-08-10 14:18:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-05 15:12:11 +08:00
|
|
|
|
func (x *TrainDynamicState) GetHeadSensorSpeed2() int32 {
|
2023-08-10 14:18:55 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.HeadSensorSpeed2
|
2023-08-10 14:18:55 +08:00
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-05 15:12:11 +08:00
|
|
|
|
func (x *TrainDynamicState) GetTailSensorSpeed1() int32 {
|
2023-08-10 14:18:55 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.TailSensorSpeed1
|
2023-08-10 14:18:55 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return 0
|
2023-08-10 14:18:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-05 15:12:11 +08:00
|
|
|
|
func (x *TrainDynamicState) GetTailSensorSpeed2() int32 {
|
2023-08-14 16:27:03 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.TailSensorSpeed2
|
2023-08-14 16:27:03 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return 0
|
2023-08-14 16:27:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-05 15:12:11 +08:00
|
|
|
|
func (x *TrainDynamicState) GetHeadRadarSpeed() int32 {
|
2023-08-14 16:27:03 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.HeadRadarSpeed
|
2023-08-14 16:27:03 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return 0
|
2023-08-14 16:27:03 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-05 15:12:11 +08:00
|
|
|
|
func (x *TrainDynamicState) GetTailRadarSpeed() int32 {
|
2023-08-23 15:33:07 +08:00
|
|
|
|
if x != nil {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return x.TailRadarSpeed
|
2023-08-23 15:33:07 +08:00
|
|
|
|
}
|
2023-08-25 16:09:04 +08:00
|
|
|
|
return 0
|
2023-08-23 15:33:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-09-12 10:00:13 +08:00
|
|
|
|
func (x *TrainDynamicState) GetUdpInterruption() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.UdpInterruption
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-07 17:00:39 +08:00
|
|
|
|
func (x *TrainDynamicState) GetAcceleration() float32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Acceleration
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-23 15:33:07 +08:00
|
|
|
|
// vobc发过来的列车信息
|
|
|
|
|
type TrainVobcState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 生命信号 每个周期+1
|
|
|
|
|
LifeSignal int32 `protobuf:"varint,1,opt,name=lifeSignal,proto3" json:"lifeSignal,omitempty"`
|
|
|
|
|
// TC1激活状态 1=激活
|
|
|
|
|
Tc1Active bool `protobuf:"varint,2,opt,name=tc1Active,proto3" json:"tc1Active,omitempty"`
|
|
|
|
|
// TC2激活状态 1=激活
|
|
|
|
|
Tc2Active bool `protobuf:"varint,3,opt,name=tc2Active,proto3" json:"tc2Active,omitempty"`
|
|
|
|
|
// 列车方向向前 1=方向向前
|
|
|
|
|
DirectionForward bool `protobuf:"varint,4,opt,name=directionForward,proto3" json:"directionForward,omitempty"`
|
|
|
|
|
// 列车方向向后 1=方向向后
|
|
|
|
|
DirectionBackward bool `protobuf:"varint,5,opt,name=directionBackward,proto3" json:"directionBackward,omitempty"`
|
|
|
|
|
// 列车牵引状态 1=牵引
|
|
|
|
|
TractionStatus bool `protobuf:"varint,6,opt,name=tractionStatus,proto3" json:"tractionStatus,omitempty"`
|
|
|
|
|
// 列车制动状态 1=制动
|
|
|
|
|
BrakingStatus bool `protobuf:"varint,7,opt,name=brakingStatus,proto3" json:"brakingStatus,omitempty"`
|
|
|
|
|
// 列车紧急制动状态 1=紧急制动
|
|
|
|
|
EmergencyBrakingStatus bool `protobuf:"varint,8,opt,name=emergencyBrakingStatus,proto3" json:"emergencyBrakingStatus,omitempty"`
|
|
|
|
|
// 列车折返状态(AR) 1=折返
|
|
|
|
|
TurnbackStatus bool `protobuf:"varint,9,opt,name=turnbackStatus,proto3" json:"turnbackStatus,omitempty"`
|
|
|
|
|
// 跳跃状态 1=跳跃
|
|
|
|
|
JumpStatus bool `protobuf:"varint,10,opt,name=jumpStatus,proto3" json:"jumpStatus,omitempty"`
|
|
|
|
|
// ATO模式 1=ATO模式
|
|
|
|
|
Ato bool `protobuf:"varint,11,opt,name=ato,proto3" json:"ato,omitempty"`
|
|
|
|
|
// FAM模式 1=FAM模式
|
|
|
|
|
Fam bool `protobuf:"varint,12,opt,name=fam,proto3" json:"fam,omitempty"`
|
|
|
|
|
// CAM模式 1=CAM模式
|
|
|
|
|
Cam bool `protobuf:"varint,13,opt,name=cam,proto3" json:"cam,omitempty"`
|
|
|
|
|
// 牵引安全回路 1=牵引安全切除
|
|
|
|
|
TractionSafetyCircuit bool `protobuf:"varint,14,opt,name=tractionSafetyCircuit,proto3" json:"tractionSafetyCircuit,omitempty"`
|
|
|
|
|
// 停放制动状态 1=停放施加
|
|
|
|
|
ParkingBrakeStatus bool `protobuf:"varint,15,opt,name=parkingBrakeStatus,proto3" json:"parkingBrakeStatus,omitempty"`
|
|
|
|
|
// 保持制动状态 1=保持制动施加
|
|
|
|
|
MaintainBrakeStatus bool `protobuf:"varint,16,opt,name=maintainBrakeStatus,proto3" json:"maintainBrakeStatus,omitempty"`
|
|
|
|
|
// 列车牵引力 100=1KN
|
|
|
|
|
TractionForce int64 `protobuf:"varint,17,opt,name=tractionForce,proto3" json:"tractionForce,omitempty"`
|
|
|
|
|
// 列车制动力 100=1KN
|
|
|
|
|
BrakeForce int64 `protobuf:"varint,18,opt,name=brakeForce,proto3" json:"brakeForce,omitempty"`
|
|
|
|
|
// 【列车载荷 100=1ton
|
|
|
|
|
TrainLoad int64 `protobuf:"varint,19,opt,name=trainLoad,proto3" json:"trainLoad,omitempty"`
|
|
|
|
|
// 列车开左门指令 1=开门
|
|
|
|
|
LeftDoorOpenCommand bool `protobuf:"varint,20,opt,name=leftDoorOpenCommand,proto3" json:"leftDoorOpenCommand,omitempty"`
|
|
|
|
|
// 列车开右门指令 1=开门
|
|
|
|
|
RightDoorOpenCommand bool `protobuf:"varint,21,opt,name=rightDoorOpenCommand,proto3" json:"rightDoorOpenCommand,omitempty"`
|
|
|
|
|
// 列车关左门指令 1=关门
|
|
|
|
|
LeftDoorCloseCommand bool `protobuf:"varint,22,opt,name=leftDoorCloseCommand,proto3" json:"leftDoorCloseCommand,omitempty"`
|
|
|
|
|
// 列车关右门指令 1=关门
|
|
|
|
|
RightDoorCloseCommand bool `protobuf:"varint,23,opt,name=rightDoorCloseCommand,proto3" json:"rightDoorCloseCommand,omitempty"`
|
|
|
|
|
// 整列车门关好 1=门关好
|
|
|
|
|
AllDoorClose bool `protobuf:"varint,24,opt,name=allDoorClose,proto3" json:"allDoorClose,omitempty"`
|
2023-10-07 17:00:39 +08:00
|
|
|
|
// 通讯中断
|
2023-09-12 10:00:13 +08:00
|
|
|
|
UdpInterruption bool `protobuf:"varint,25,opt,name=udpInterruption,proto3" json:"udpInterruption,omitempty"`
|
2023-08-23 15:33:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) Reset() {
|
|
|
|
|
*x = TrainVobcState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[9]
|
2023-08-23 15:33:07 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*TrainVobcState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) ProtoReflect() protoreflect.Message {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[9]
|
2023-08-23 15:33:07 +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 TrainVobcState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*TrainVobcState) Descriptor() ([]byte, []int) {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{9}
|
2023-08-23 15:33:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetLifeSignal() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.LifeSignal
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetTc1Active() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Tc1Active
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetTc2Active() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Tc2Active
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetDirectionForward() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.DirectionForward
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetDirectionBackward() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.DirectionBackward
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetTractionStatus() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TractionStatus
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetBrakingStatus() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.BrakingStatus
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetEmergencyBrakingStatus() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.EmergencyBrakingStatus
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetTurnbackStatus() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TurnbackStatus
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetJumpStatus() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.JumpStatus
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetAto() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Ato
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetFam() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Fam
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetCam() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Cam
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetTractionSafetyCircuit() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TractionSafetyCircuit
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetParkingBrakeStatus() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ParkingBrakeStatus
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetMaintainBrakeStatus() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MaintainBrakeStatus
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetTractionForce() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TractionForce
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetBrakeForce() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.BrakeForce
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetTrainLoad() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TrainLoad
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetLeftDoorOpenCommand() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.LeftDoorOpenCommand
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetRightDoorOpenCommand() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RightDoorOpenCommand
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetLeftDoorCloseCommand() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.LeftDoorCloseCommand
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetRightDoorCloseCommand() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RightDoorCloseCommand
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *TrainVobcState) GetAllDoorClose() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AllDoorClose
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-12 10:00:13 +08:00
|
|
|
|
func (x *TrainVobcState) GetUdpInterruption() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.UdpInterruption
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-27 18:02:07 +08:00
|
|
|
|
// 继电器状态
|
|
|
|
|
type ReplyState struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 继电器索引
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
// 继电器吸合状态
|
|
|
|
|
Xh bool `protobuf:"varint,2,opt,name=xh,proto3" json:"xh,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ReplyState) Reset() {
|
|
|
|
|
*x = ReplyState{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[10]
|
2023-09-27 18:02:07 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ReplyState) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*ReplyState) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *ReplyState) ProtoReflect() protoreflect.Message {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[10]
|
2023-09-27 18:02:07 +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 ReplyState.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*ReplyState) Descriptor() ([]byte, []int) {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{10}
|
2023-09-27 18:02:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ReplyState) GetId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *ReplyState) GetXh() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Xh
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-28 15:57:37 +08:00
|
|
|
|
// 仿真运行时状态变化量,当前时刻与上一时刻比较得到
|
|
|
|
|
type VariationStatus struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 新增或变化的列车的状态
|
|
|
|
|
UpdatedTrain []*TrainState `protobuf:"bytes,1,rep,name=updatedTrain,proto3" json:"updatedTrain,omitempty"`
|
|
|
|
|
// 移除的列车的索引
|
|
|
|
|
RemovedTrainId []string `protobuf:"bytes,2,rep,name=removedTrainId,proto3" json:"removedTrainId,omitempty"`
|
|
|
|
|
// 状态发生变化的道岔
|
|
|
|
|
UpdatedSwitch []*SwitchState `protobuf:"bytes,3,rep,name=updatedSwitch,proto3" json:"updatedSwitch,omitempty"`
|
|
|
|
|
// 状态发生变化的区段
|
|
|
|
|
UpdatedSection []*SectionState `protobuf:"bytes,4,rep,name=updatedSection,proto3" json:"updatedSection,omitempty"`
|
2023-09-28 11:23:34 +08:00
|
|
|
|
// 状态发送变化的继电器
|
|
|
|
|
UpdatedReply []*ReplyState `protobuf:"bytes,5,rep,name=updatedReply,proto3" json:"updatedReply,omitempty"`
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *VariationStatus) Reset() {
|
|
|
|
|
*x = VariationStatus{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[11]
|
2023-07-28 15:57:37 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *VariationStatus) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*VariationStatus) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *VariationStatus) ProtoReflect() protoreflect.Message {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[11]
|
2023-07-28 15:57:37 +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 VariationStatus.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*VariationStatus) Descriptor() ([]byte, []int) {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{11}
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *VariationStatus) GetUpdatedTrain() []*TrainState {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.UpdatedTrain
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *VariationStatus) GetRemovedTrainId() []string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RemovedTrainId
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *VariationStatus) GetUpdatedSwitch() []*SwitchState {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.UpdatedSwitch
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *VariationStatus) GetUpdatedSection() []*SectionState {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.UpdatedSection
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-28 11:23:34 +08:00
|
|
|
|
func (x *VariationStatus) GetUpdatedReply() []*ReplyState {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.UpdatedReply
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-28 15:57:37 +08:00
|
|
|
|
// 仿真运行时的所有设备的状态
|
|
|
|
|
type AllDevicesStatus struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// 所有列车状态
|
|
|
|
|
TrainState []*TrainState `protobuf:"bytes,1,rep,name=trainState,proto3" json:"trainState,omitempty"`
|
|
|
|
|
// 所有道岔状态
|
|
|
|
|
SwitchState []*SwitchState `protobuf:"bytes,2,rep,name=switchState,proto3" json:"switchState,omitempty"`
|
|
|
|
|
// 所有类型区段状态
|
|
|
|
|
SectionState []*SectionState `protobuf:"bytes,3,rep,name=sectionState,proto3" json:"sectionState,omitempty"`
|
2023-09-27 18:02:07 +08:00
|
|
|
|
// 所有继电器状态
|
|
|
|
|
ReplyState []*ReplyState `protobuf:"bytes,4,rep,name=replyState,proto3" json:"replyState,omitempty"`
|
2023-10-13 15:57:09 +08:00
|
|
|
|
// 所有信号机状态
|
|
|
|
|
SignalState []*SignalState `protobuf:"bytes,5,rep,name=signalState,proto3" json:"signalState,omitempty"`
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *AllDevicesStatus) Reset() {
|
|
|
|
|
*x = AllDevicesStatus{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[12]
|
2023-07-28 15:57:37 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *AllDevicesStatus) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*AllDevicesStatus) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *AllDevicesStatus) ProtoReflect() protoreflect.Message {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[12]
|
2023-07-28 15:57:37 +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 AllDevicesStatus.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*AllDevicesStatus) Descriptor() ([]byte, []int) {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{12}
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *AllDevicesStatus) GetTrainState() []*TrainState {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TrainState
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *AllDevicesStatus) GetSwitchState() []*SwitchState {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SwitchState
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *AllDevicesStatus) GetSectionState() []*SectionState {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SectionState
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-27 18:02:07 +08:00
|
|
|
|
func (x *AllDevicesStatus) GetReplyState() []*ReplyState {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ReplyState
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-13 15:57:09 +08:00
|
|
|
|
func (x *AllDevicesStatus) GetSignalState() []*SignalState {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SignalState
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-28 15:57:37 +08:00
|
|
|
|
// 服务器端向前端推送的设备状态信息
|
|
|
|
|
type PushedDevicesStatus struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
// true-全量设备状态信息,此时allStatus有效;
|
|
|
|
|
// false - 增量设备状态消息,此时varStatus有效
|
|
|
|
|
All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"`
|
|
|
|
|
// 增量设备状态消息
|
|
|
|
|
VarStatus *VariationStatus `protobuf:"bytes,2,opt,name=varStatus,proto3" json:"varStatus,omitempty"`
|
|
|
|
|
// 全量设备状态信息
|
|
|
|
|
AllStatus *AllDevicesStatus `protobuf:"bytes,3,opt,name=allStatus,proto3" json:"allStatus,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PushedDevicesStatus) Reset() {
|
|
|
|
|
*x = PushedDevicesStatus{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[13]
|
2023-07-28 15:57:37 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PushedDevicesStatus) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*PushedDevicesStatus) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *PushedDevicesStatus) ProtoReflect() protoreflect.Message {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[13]
|
2023-07-28 15:57:37 +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 PushedDevicesStatus.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*PushedDevicesStatus) Descriptor() ([]byte, []int) {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{13}
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PushedDevicesStatus) GetAll() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.All
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PushedDevicesStatus) GetVarStatus() *VariationStatus {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.VarStatus
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *PushedDevicesStatus) GetAllStatus() *AllDevicesStatus {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AllStatus
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-30 13:25:57 +08:00
|
|
|
|
// 仿真信息状态
|
|
|
|
|
type SimulationStatus struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
2023-09-19 11:02:50 +08:00
|
|
|
|
SimulationId string `protobuf:"bytes,1,opt,name=simulationId,proto3" json:"simulationId,omitempty"`
|
|
|
|
|
MapId int32 `protobuf:"varint,2,opt,name=mapId,proto3" json:"mapId,omitempty"`
|
|
|
|
|
ProjectId int32 `protobuf:"varint,3,opt,name=projectId,proto3" json:"projectId,omitempty"`
|
|
|
|
|
MapIds []int32 `protobuf:"varint,4,rep,packed,name=mapIds,proto3" json:"mapIds,omitempty"`
|
2023-08-30 13:25:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SimulationStatus) Reset() {
|
|
|
|
|
*x = SimulationStatus{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[14]
|
2023-08-30 13:25:57 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SimulationStatus) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*SimulationStatus) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *SimulationStatus) ProtoReflect() protoreflect.Message {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[14]
|
2023-08-30 13:25: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 SimulationStatus.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*SimulationStatus) Descriptor() ([]byte, []int) {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{14}
|
2023-08-30 13:25:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SimulationStatus) GetSimulationId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SimulationId
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SimulationStatus) GetMapId() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MapId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *SimulationStatus) GetProjectId() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ProjectId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-19 11:02:50 +08:00
|
|
|
|
func (x *SimulationStatus) GetMapIds() []int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MapIds
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-30 13:25:57 +08:00
|
|
|
|
// 变更信息状态
|
|
|
|
|
type MemoryDataStatus struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
AllSimulations []*SimulationStatus `protobuf:"bytes,1,rep,name=allSimulations,proto3" json:"allSimulations,omitempty"`
|
|
|
|
|
AddSimulations []*SimulationStatus `protobuf:"bytes,2,rep,name=addSimulations,proto3" json:"addSimulations,omitempty"`
|
|
|
|
|
RemoveSimulations []*SimulationStatus `protobuf:"bytes,3,rep,name=removeSimulations,proto3" json:"removeSimulations,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *MemoryDataStatus) Reset() {
|
|
|
|
|
*x = MemoryDataStatus{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[15]
|
2023-08-30 13:25:57 +08:00
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *MemoryDataStatus) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*MemoryDataStatus) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *MemoryDataStatus) ProtoReflect() protoreflect.Message {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
mi := &file_device_state_proto_msgTypes[15]
|
2023-08-30 13:25: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 MemoryDataStatus.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*MemoryDataStatus) Descriptor() ([]byte, []int) {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
return file_device_state_proto_rawDescGZIP(), []int{15}
|
2023-08-30 13:25:57 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *MemoryDataStatus) GetAllSimulations() []*SimulationStatus {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AllSimulations
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *MemoryDataStatus) GetAddSimulations() []*SimulationStatus {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AddSimulations
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *MemoryDataStatus) GetRemoveSimulations() []*SimulationStatus {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RemoveSimulations
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-28 15:57:37 +08:00
|
|
|
|
var File_device_state_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
var file_device_state_proto_rawDesc = []byte{
|
|
|
|
|
0x0a, 0x12, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70,
|
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x35, 0x0a, 0x09, 0x4c,
|
|
|
|
|
0x69, 0x6e, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x69,
|
|
|
|
|
0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x61, 0x69, 0x6e,
|
|
|
|
|
0x49, 0x64, 0x22, 0x62, 0x0a, 0x0c, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61,
|
|
|
|
|
0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
|
|
|
|
|
0x69, 0x64, 0x12, 0x26, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
|
|
|
|
|
0x32, 0x12, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
|
0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x63,
|
|
|
|
|
0x63, 0x75, 0x70, 0x69, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x63,
|
2023-10-07 15:59:22 +08:00
|
|
|
|
0x63, 0x75, 0x70, 0x69, 0x65, 0x64, 0x22, 0x6f, 0x0a, 0x0b, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68,
|
2023-07-28 15:57:37 +08:00
|
|
|
|
0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x18,
|
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x12, 0x18, 0x0a,
|
|
|
|
|
0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
|
2023-10-07 15:59:22 +08:00
|
|
|
|
0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x64, 0x77, 0x18, 0x04, 0x20,
|
|
|
|
|
0x01, 0x28, 0x08, 0x52, 0x02, 0x64, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x66, 0x77, 0x18, 0x05, 0x20,
|
2023-10-16 11:16:09 +08:00
|
|
|
|
0x01, 0x28, 0x08, 0x52, 0x02, 0x66, 0x77, 0x22, 0x4b, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x61,
|
2023-10-07 10:57:16 +08:00
|
|
|
|
0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
2023-10-16 11:16:09 +08:00
|
|
|
|
0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x06, 0x61, 0x73, 0x70, 0x65, 0x63, 0x74,
|
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53,
|
|
|
|
|
0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x41, 0x73, 0x70, 0x65, 0x63, 0x74, 0x52, 0x06, 0x61, 0x73,
|
|
|
|
|
0x70, 0x65, 0x63, 0x74, 0x22, 0x46, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x22, 0x3c,
|
|
|
|
|
0x0a, 0x06, 0x41, 0x73, 0x70, 0x65, 0x63, 0x74, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x46, 0x46, 0x10,
|
|
|
|
|
0x00, 0x12, 0x05, 0x0a, 0x01, 0x4c, 0x10, 0x01, 0x12, 0x05, 0x0a, 0x01, 0x48, 0x10, 0x02, 0x12,
|
|
|
|
|
0x05, 0x0a, 0x01, 0x55, 0x10, 0x03, 0x12, 0x06, 0x0a, 0x02, 0x48, 0x55, 0x10, 0x04, 0x12, 0x05,
|
|
|
|
|
0x0a, 0x01, 0x42, 0x10, 0x05, 0x12, 0x05, 0x0a, 0x01, 0x41, 0x10, 0x06, 0x22, 0x1f, 0x0a, 0x0d,
|
|
|
|
|
0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a,
|
|
|
|
|
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x1e, 0x0a,
|
|
|
|
|
0x0c, 0x53, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a,
|
|
|
|
|
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xdb, 0x03,
|
|
|
|
|
0x0a, 0x0a, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02,
|
|
|
|
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02,
|
|
|
|
|
0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x75, 0x70, 0x12, 0x14, 0x0a, 0x05,
|
|
|
|
|
0x73, 0x70, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x70, 0x65,
|
|
|
|
|
0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74,
|
|
|
|
|
0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x4c, 0x65,
|
|
|
|
|
0x6e, 0x67, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x68, 0x6f, 0x77, 0x18, 0x05, 0x20, 0x01,
|
|
|
|
|
0x28, 0x08, 0x52, 0x04, 0x73, 0x68, 0x6f, 0x77, 0x12, 0x22, 0x0a, 0x0c, 0x68, 0x65, 0x61, 0x64,
|
|
|
|
|
0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
|
|
|
|
|
0x68, 0x65, 0x61, 0x64, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a,
|
|
|
|
|
0x68, 0x65, 0x61, 0x64, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
|
|
|
|
|
0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x1e, 0x0a, 0x0a,
|
|
|
|
|
0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
|
0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, 0x07,
|
|
|
|
|
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x54, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70,
|
|
|
|
|
0x6f, 0x69, 0x6e, 0x74, 0x54, 0x6f, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x75, 0x6e, 0x44, 0x69, 0x72,
|
|
|
|
|
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x75,
|
|
|
|
|
0x6e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x68, 0x65,
|
|
|
|
|
0x61, 0x64, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28,
|
|
|
|
|
0x08, 0x52, 0x0d, 0x68, 0x65, 0x61, 0x64, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
|
0x12, 0x3c, 0x0a, 0x0c, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x65,
|
|
|
|
|
0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x54,
|
|
|
|
|
0x72, 0x61, 0x69, 0x6e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x65,
|
|
|
|
|
0x52, 0x0c, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x33,
|
|
|
|
|
0x0a, 0x09, 0x76, 0x6f, 0x62, 0x63, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28,
|
|
|
|
|
0x0b, 0x32, 0x15, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x56,
|
|
|
|
|
0x6f, 0x62, 0x63, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x09, 0x76, 0x6f, 0x62, 0x63, 0x53, 0x74,
|
|
|
|
|
0x61, 0x74, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x4b, 0x69, 0x6c, 0x6f,
|
|
|
|
|
0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x74, 0x72, 0x61,
|
|
|
|
|
0x69, 0x6e, 0x4b, 0x69, 0x6c, 0x6f, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x22, 0xcd, 0x06, 0x0a, 0x11,
|
|
|
|
|
0x54, 0x72, 0x61, 0x69, 0x6e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x53, 0x74, 0x61, 0x74,
|
|
|
|
|
0x65, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12,
|
|
|
|
|
0x1e, 0x0a, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x49, 0x64, 0x18, 0x02, 0x20,
|
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x49, 0x64, 0x12,
|
|
|
|
|
0x26, 0x0a, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x4f, 0x66, 0x66, 0x73, 0x65,
|
|
|
|
|
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x4c, 0x69, 0x6e,
|
|
|
|
|
0x6b, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x61, 0x69, 0x6c, 0x4c,
|
|
|
|
|
0x69, 0x6e, 0x6b, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x69,
|
|
|
|
|
0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x74, 0x61, 0x69, 0x6c, 0x4c,
|
|
|
|
|
0x69, 0x6e, 0x6b, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
|
|
0x0e, 0x74, 0x61, 0x69, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12,
|
|
|
|
|
0x2c, 0x0a, 0x11, 0x6f, 0x63, 0x63, 0x75, 0x70, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x49,
|
|
|
|
|
0x6e, 0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x6f, 0x63, 0x63, 0x75,
|
|
|
|
|
0x70, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x14, 0x0a,
|
|
|
|
|
0x05, 0x73, 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x6c,
|
|
|
|
|
0x6f, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x70, 0x73, 0x6c, 0x6f, 0x70, 0x65, 0x18, 0x08,
|
|
|
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x70, 0x73, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x1c, 0x0a,
|
|
|
|
|
0x09, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x55, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08,
|
|
|
|
|
0x52, 0x09, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x55, 0x70, 0x12, 0x32, 0x0a, 0x14, 0x72,
|
|
|
|
|
0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
|
|
|
|
|
0x53, 0x75, 0x6d, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x02, 0x52, 0x14, 0x72, 0x75, 0x6e, 0x6e, 0x69,
|
|
|
|
|
0x6e, 0x67, 0x52, 0x65, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x75, 0x6d, 0x12,
|
|
|
|
|
0x24, 0x0a, 0x0d, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
|
|
|
|
|
0x18, 0x0b, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0d, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x69, 0x73,
|
|
|
|
|
0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x61, 0x6d, 0x70, 0x52, 0x65, 0x73,
|
|
|
|
|
0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0e, 0x72,
|
|
|
|
|
0x61, 0x6d, 0x70, 0x52, 0x65, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x28, 0x0a,
|
|
|
|
|
0x0f, 0x63, 0x75, 0x72, 0x76, 0x65, 0x52, 0x65, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
|
|
|
|
|
0x18, 0x0d, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0f, 0x63, 0x75, 0x72, 0x76, 0x65, 0x52, 0x65, 0x73,
|
|
|
|
|
0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x70, 0x65, 0x65, 0x64,
|
|
|
|
|
0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x70, 0x65, 0x65, 0x64, 0x12, 0x2a, 0x0a,
|
|
|
|
|
0x10, 0x68, 0x65, 0x61, 0x64, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x53, 0x70, 0x65, 0x65, 0x64,
|
|
|
|
|
0x31, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x68, 0x65, 0x61, 0x64, 0x53, 0x65, 0x6e,
|
|
|
|
|
0x73, 0x6f, 0x72, 0x53, 0x70, 0x65, 0x65, 0x64, 0x31, 0x12, 0x2a, 0x0a, 0x10, 0x68, 0x65, 0x61,
|
|
|
|
|
0x64, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x53, 0x70, 0x65, 0x65, 0x64, 0x32, 0x18, 0x10, 0x20,
|
|
|
|
|
0x01, 0x28, 0x05, 0x52, 0x10, 0x68, 0x65, 0x61, 0x64, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x53,
|
|
|
|
|
0x70, 0x65, 0x65, 0x64, 0x32, 0x12, 0x2a, 0x0a, 0x10, 0x74, 0x61, 0x69, 0x6c, 0x53, 0x65, 0x6e,
|
|
|
|
|
0x73, 0x6f, 0x72, 0x53, 0x70, 0x65, 0x65, 0x64, 0x31, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52,
|
|
|
|
|
0x10, 0x74, 0x61, 0x69, 0x6c, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x53, 0x70, 0x65, 0x65, 0x64,
|
|
|
|
|
0x31, 0x12, 0x2a, 0x0a, 0x10, 0x74, 0x61, 0x69, 0x6c, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x53,
|
|
|
|
|
0x70, 0x65, 0x65, 0x64, 0x32, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x74, 0x61, 0x69,
|
|
|
|
|
0x6c, 0x53, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x53, 0x70, 0x65, 0x65, 0x64, 0x32, 0x12, 0x26, 0x0a,
|
|
|
|
|
0x0e, 0x68, 0x65, 0x61, 0x64, 0x52, 0x61, 0x64, 0x61, 0x72, 0x53, 0x70, 0x65, 0x65, 0x64, 0x18,
|
|
|
|
|
0x13, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x68, 0x65, 0x61, 0x64, 0x52, 0x61, 0x64, 0x61, 0x72,
|
|
|
|
|
0x53, 0x70, 0x65, 0x65, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x61, 0x64,
|
|
|
|
|
0x61, 0x72, 0x53, 0x70, 0x65, 0x65, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x74,
|
|
|
|
|
0x61, 0x69, 0x6c, 0x52, 0x61, 0x64, 0x61, 0x72, 0x53, 0x70, 0x65, 0x65, 0x64, 0x12, 0x28, 0x0a,
|
2023-10-13 15:57:09 +08:00
|
|
|
|
0x0f, 0x75, 0x64, 0x70, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
2023-10-16 11:16:09 +08:00
|
|
|
|
0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x75, 0x64, 0x70, 0x49, 0x6e, 0x74, 0x65, 0x72,
|
|
|
|
|
0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x6c,
|
|
|
|
|
0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x16, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x61,
|
|
|
|
|
0x63, 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe4, 0x07, 0x0a, 0x0e,
|
|
|
|
|
0x54, 0x72, 0x61, 0x69, 0x6e, 0x56, 0x6f, 0x62, 0x63, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e,
|
|
|
|
|
0x0a, 0x0a, 0x6c, 0x69, 0x66, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
|
0x28, 0x05, 0x52, 0x0a, 0x6c, 0x69, 0x66, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x1c,
|
|
|
|
|
0x0a, 0x09, 0x74, 0x63, 0x31, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
|
0x08, 0x52, 0x09, 0x74, 0x63, 0x31, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1c, 0x0a, 0x09,
|
|
|
|
|
0x74, 0x63, 0x32, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
|
|
|
|
|
0x09, 0x74, 0x63, 0x32, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x64, 0x69,
|
|
|
|
|
0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x18, 0x04,
|
|
|
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46,
|
|
|
|
|
0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,
|
|
|
|
|
0x69, 0x6f, 0x6e, 0x42, 0x61, 0x63, 0x6b, 0x77, 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
|
|
0x08, 0x52, 0x11, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x63, 0x6b,
|
|
|
|
|
0x77, 0x61, 0x72, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
|
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x74, 0x72,
|
|
|
|
|
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x0d,
|
|
|
|
|
0x62, 0x72, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20,
|
|
|
|
|
0x01, 0x28, 0x08, 0x52, 0x0d, 0x62, 0x72, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74,
|
|
|
|
|
0x75, 0x73, 0x12, 0x36, 0x0a, 0x16, 0x65, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x42,
|
|
|
|
|
0x72, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01,
|
|
|
|
|
0x28, 0x08, 0x52, 0x16, 0x65, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x72, 0x61,
|
|
|
|
|
0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x74, 0x75,
|
|
|
|
|
0x72, 0x6e, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01,
|
|
|
|
|
0x28, 0x08, 0x52, 0x0e, 0x74, 0x75, 0x72, 0x6e, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74,
|
|
|
|
|
0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x6a, 0x75, 0x6d, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
|
|
|
0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x6a, 0x75, 0x6d, 0x70, 0x53, 0x74, 0x61, 0x74,
|
|
|
|
|
0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x74, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52,
|
|
|
|
|
0x03, 0x61, 0x74, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x61, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28,
|
|
|
|
|
0x08, 0x52, 0x03, 0x66, 0x61, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x61, 0x6d, 0x18, 0x0d, 0x20,
|
|
|
|
|
0x01, 0x28, 0x08, 0x52, 0x03, 0x63, 0x61, 0x6d, 0x12, 0x34, 0x0a, 0x15, 0x74, 0x72, 0x61, 0x63,
|
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x53, 0x61, 0x66, 0x65, 0x74, 0x79, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69,
|
|
|
|
|
0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f,
|
|
|
|
|
0x6e, 0x53, 0x61, 0x66, 0x65, 0x74, 0x79, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x12, 0x2e,
|
|
|
|
|
0x0a, 0x12, 0x70, 0x61, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x42, 0x72, 0x61, 0x6b, 0x65, 0x53, 0x74,
|
|
|
|
|
0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x70, 0x61, 0x72, 0x6b,
|
|
|
|
|
0x69, 0x6e, 0x67, 0x42, 0x72, 0x61, 0x6b, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30,
|
|
|
|
|
0x0a, 0x13, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x42, 0x72, 0x61, 0x6b, 0x65, 0x53,
|
|
|
|
|
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x6d, 0x61, 0x69,
|
|
|
|
|
0x6e, 0x74, 0x61, 0x69, 0x6e, 0x42, 0x72, 0x61, 0x6b, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
|
|
|
0x12, 0x24, 0x0a, 0x0d, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x63,
|
|
|
|
|
0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f,
|
|
|
|
|
0x6e, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x72, 0x61, 0x6b, 0x65, 0x46,
|
|
|
|
|
0x6f, 0x72, 0x63, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6b,
|
|
|
|
|
0x65, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x4c,
|
|
|
|
|
0x6f, 0x61, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x72, 0x61, 0x69, 0x6e,
|
|
|
|
|
0x4c, 0x6f, 0x61, 0x64, 0x12, 0x30, 0x0a, 0x13, 0x6c, 0x65, 0x66, 0x74, 0x44, 0x6f, 0x6f, 0x72,
|
|
|
|
|
0x4f, 0x70, 0x65, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28,
|
|
|
|
|
0x08, 0x52, 0x13, 0x6c, 0x65, 0x66, 0x74, 0x44, 0x6f, 0x6f, 0x72, 0x4f, 0x70, 0x65, 0x6e, 0x43,
|
|
|
|
|
0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x32, 0x0a, 0x14, 0x72, 0x69, 0x67, 0x68, 0x74, 0x44,
|
|
|
|
|
0x6f, 0x6f, 0x72, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x15,
|
|
|
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x72, 0x69, 0x67, 0x68, 0x74, 0x44, 0x6f, 0x6f, 0x72, 0x4f,
|
|
|
|
|
0x70, 0x65, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x32, 0x0a, 0x14, 0x6c, 0x65,
|
|
|
|
|
0x66, 0x74, 0x44, 0x6f, 0x6f, 0x72, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
|
|
|
|
|
0x6e, 0x64, 0x18, 0x16, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x6c, 0x65, 0x66, 0x74, 0x44, 0x6f,
|
|
|
|
|
0x6f, 0x72, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x34,
|
|
|
|
|
0x0a, 0x15, 0x72, 0x69, 0x67, 0x68, 0x74, 0x44, 0x6f, 0x6f, 0x72, 0x43, 0x6c, 0x6f, 0x73, 0x65,
|
|
|
|
|
0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x72,
|
|
|
|
|
0x69, 0x67, 0x68, 0x74, 0x44, 0x6f, 0x6f, 0x72, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x43, 0x6f, 0x6d,
|
|
|
|
|
0x6d, 0x61, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x6c, 0x6c, 0x44, 0x6f, 0x6f, 0x72, 0x43,
|
|
|
|
|
0x6c, 0x6f, 0x73, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x44,
|
|
|
|
|
0x6f, 0x6f, 0x72, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x64, 0x70, 0x49,
|
|
|
|
|
0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x19, 0x20, 0x01, 0x28,
|
|
|
|
|
0x08, 0x52, 0x0f, 0x75, 0x64, 0x70, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69,
|
|
|
|
|
0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65,
|
|
|
|
|
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
|
|
|
|
|
0x12, 0x0e, 0x0a, 0x02, 0x78, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x78, 0x68,
|
|
|
|
|
0x22, 0x9e, 0x02, 0x0a, 0x0f, 0x56, 0x61, 0x72, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74,
|
|
|
|
|
0x61, 0x74, 0x75, 0x73, 0x12, 0x35, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54,
|
|
|
|
|
0x72, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x74, 0x61,
|
|
|
|
|
0x74, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x75,
|
|
|
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x12, 0x26, 0x0a, 0x0e, 0x72,
|
|
|
|
|
0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20,
|
|
|
|
|
0x03, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x54, 0x72, 0x61, 0x69,
|
|
|
|
|
0x6e, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x53, 0x77,
|
|
|
|
|
0x69, 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x74, 0x61,
|
|
|
|
|
0x74, 0x65, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0d,
|
|
|
|
|
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x12, 0x3b, 0x0a,
|
|
|
|
|
0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
|
|
|
|
0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x65,
|
|
|
|
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x75, 0x70, 0x64, 0x61,
|
|
|
|
|
0x74, 0x65, 0x64, 0x53, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x0c, 0x75, 0x70,
|
|
|
|
|
0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
|
|
|
|
|
0x32, 0x11, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x74,
|
|
|
|
|
0x61, 0x74, 0x65, 0x52, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c,
|
|
|
|
|
0x79, 0x22, 0x9d, 0x02, 0x0a, 0x10, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73,
|
|
|
|
|
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x53,
|
|
|
|
|
0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x74, 0x61,
|
|
|
|
|
0x74, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0a, 0x74,
|
|
|
|
|
0x72, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, 0x0b, 0x73, 0x77, 0x69,
|
|
|
|
|
0x74, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12,
|
|
|
|
|
0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61,
|
|
|
|
|
0x74, 0x65, 0x52, 0x0b, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
|
|
|
|
|
0x37, 0x0a, 0x0c, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18,
|
|
|
|
|
0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x65,
|
|
|
|
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x63, 0x74,
|
|
|
|
|
0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c,
|
|
|
|
|
0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73,
|
|
|
|
|
0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
|
|
|
|
|
0x0a, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, 0x0b, 0x73,
|
|
|
|
|
0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
|
|
|
|
|
0x32, 0x12, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53,
|
|
|
|
|
0x74, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74,
|
|
|
|
|
0x65, 0x22, 0x94, 0x01, 0x0a, 0x13, 0x50, 0x75, 0x73, 0x68, 0x65, 0x64, 0x44, 0x65, 0x76, 0x69,
|
|
|
|
|
0x63, 0x65, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6c, 0x6c,
|
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x34, 0x0a, 0x09, 0x76,
|
|
|
|
|
0x61, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
|
|
|
|
|
0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
|
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x76, 0x61, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75,
|
|
|
|
|
0x73, 0x12, 0x35, 0x0a, 0x09, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03,
|
|
|
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x6c, 0x6c,
|
|
|
|
|
0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x61,
|
|
|
|
|
0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x6d,
|
|
|
|
|
0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x0a,
|
|
|
|
|
0x0c, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20,
|
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49,
|
|
|
|
|
0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
|
|
|
|
0x52, 0x05, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65,
|
|
|
|
|
0x63, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a,
|
|
|
|
|
0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x73, 0x18,
|
|
|
|
|
0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x73, 0x22, 0xdb, 0x01,
|
|
|
|
|
0x0a, 0x10, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x61, 0x74,
|
|
|
|
|
0x75, 0x73, 0x12, 0x3f, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74,
|
|
|
|
|
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x74, 0x61,
|
|
|
|
|
0x74, 0x65, 0x2e, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61,
|
|
|
|
|
0x74, 0x75, 0x73, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69,
|
|
|
|
|
0x6f, 0x6e, 0x73, 0x12, 0x3f, 0x0a, 0x0e, 0x61, 0x64, 0x64, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61,
|
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x74,
|
|
|
|
|
0x61, 0x74, 0x65, 0x2e, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74,
|
|
|
|
|
0x61, 0x74, 0x75, 0x73, 0x52, 0x0e, 0x61, 0x64, 0x64, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74,
|
|
|
|
|
0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x69,
|
|
|
|
|
0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
2023-10-13 15:57:09 +08:00
|
|
|
|
0x17, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69,
|
2023-10-16 11:16:09 +08:00
|
|
|
|
0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65,
|
|
|
|
|
0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x37, 0x0a, 0x0b, 0x53,
|
|
|
|
|
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x6e,
|
|
|
|
|
0x79, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x78, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x09, 0x0a,
|
|
|
|
|
0x05, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x68, 0x79, 0x73,
|
|
|
|
|
0x69, 0x63, 0x10, 0x03, 0x42, 0x54, 0x0a, 0x25, 0x63, 0x6c, 0x75, 0x62, 0x2e, 0x6a, 0x6f, 0x79,
|
|
|
|
|
0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x62, 0x6a, 0x72, 0x74, 0x73, 0x73, 0x2e, 0x61, 0x74, 0x73, 0x2e,
|
|
|
|
|
0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x42, 0x10, 0x44,
|
|
|
|
|
0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a,
|
|
|
|
|
0x19, 0x2e, 0x2f, 0x61, 0x74, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x2f, 0x70, 0x72,
|
|
|
|
|
0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
|
0x6f, 0x33,
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
file_device_state_proto_rawDescOnce sync.Once
|
|
|
|
|
file_device_state_proto_rawDescData = file_device_state_proto_rawDesc
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func file_device_state_proto_rawDescGZIP() []byte {
|
|
|
|
|
file_device_state_proto_rawDescOnce.Do(func() {
|
|
|
|
|
file_device_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_device_state_proto_rawDescData)
|
|
|
|
|
})
|
|
|
|
|
return file_device_state_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-13 14:41:55 +08:00
|
|
|
|
var file_device_state_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
2023-10-16 11:16:09 +08:00
|
|
|
|
var file_device_state_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
2023-07-28 15:57:37 +08:00
|
|
|
|
var file_device_state_proto_goTypes = []interface{}{
|
|
|
|
|
(SectionType)(0), // 0: state.SectionType
|
2023-10-13 14:41:55 +08:00
|
|
|
|
(Signal_Aspect)(0), // 1: state.Signal.Aspect
|
|
|
|
|
(*LinkState)(nil), // 2: state.LinkState
|
|
|
|
|
(*SectionState)(nil), // 3: state.SectionState
|
|
|
|
|
(*SwitchState)(nil), // 4: state.SwitchState
|
|
|
|
|
(*SignalState)(nil), // 5: state.SignalState
|
|
|
|
|
(*Signal)(nil), // 6: state.Signal
|
|
|
|
|
(*PlatformState)(nil), // 7: state.PlatformState
|
|
|
|
|
(*StationState)(nil), // 8: state.StationState
|
|
|
|
|
(*TrainState)(nil), // 9: state.TrainState
|
|
|
|
|
(*TrainDynamicState)(nil), // 10: state.TrainDynamicState
|
|
|
|
|
(*TrainVobcState)(nil), // 11: state.TrainVobcState
|
|
|
|
|
(*ReplyState)(nil), // 12: state.ReplyState
|
|
|
|
|
(*VariationStatus)(nil), // 13: state.VariationStatus
|
|
|
|
|
(*AllDevicesStatus)(nil), // 14: state.AllDevicesStatus
|
|
|
|
|
(*PushedDevicesStatus)(nil), // 15: state.PushedDevicesStatus
|
|
|
|
|
(*SimulationStatus)(nil), // 16: state.SimulationStatus
|
|
|
|
|
(*MemoryDataStatus)(nil), // 17: state.MemoryDataStatus
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
var file_device_state_proto_depIdxs = []int32{
|
2023-08-23 15:33:07 +08:00
|
|
|
|
0, // 0: state.SectionState.type:type_name -> state.SectionType
|
2023-10-16 11:16:09 +08:00
|
|
|
|
1, // 1: state.SignalState.aspect:type_name -> state.Signal.Aspect
|
2023-10-13 14:41:55 +08:00
|
|
|
|
10, // 2: state.TrainState.dynamicState:type_name -> state.TrainDynamicState
|
|
|
|
|
11, // 3: state.TrainState.vobcState:type_name -> state.TrainVobcState
|
|
|
|
|
9, // 4: state.VariationStatus.updatedTrain:type_name -> state.TrainState
|
|
|
|
|
4, // 5: state.VariationStatus.updatedSwitch:type_name -> state.SwitchState
|
|
|
|
|
3, // 6: state.VariationStatus.updatedSection:type_name -> state.SectionState
|
|
|
|
|
12, // 7: state.VariationStatus.updatedReply:type_name -> state.ReplyState
|
|
|
|
|
9, // 8: state.AllDevicesStatus.trainState:type_name -> state.TrainState
|
|
|
|
|
4, // 9: state.AllDevicesStatus.switchState:type_name -> state.SwitchState
|
|
|
|
|
3, // 10: state.AllDevicesStatus.sectionState:type_name -> state.SectionState
|
|
|
|
|
12, // 11: state.AllDevicesStatus.replyState:type_name -> state.ReplyState
|
2023-10-13 15:57:09 +08:00
|
|
|
|
5, // 12: state.AllDevicesStatus.signalState:type_name -> state.SignalState
|
|
|
|
|
13, // 13: state.PushedDevicesStatus.varStatus:type_name -> state.VariationStatus
|
|
|
|
|
14, // 14: state.PushedDevicesStatus.allStatus:type_name -> state.AllDevicesStatus
|
|
|
|
|
16, // 15: state.MemoryDataStatus.allSimulations:type_name -> state.SimulationStatus
|
|
|
|
|
16, // 16: state.MemoryDataStatus.addSimulations:type_name -> state.SimulationStatus
|
|
|
|
|
16, // 17: state.MemoryDataStatus.removeSimulations:type_name -> state.SimulationStatus
|
2023-10-16 11:16:09 +08:00
|
|
|
|
18, // [18:18] is the sub-list for method output_type
|
|
|
|
|
18, // [18:18] is the sub-list for method input_type
|
|
|
|
|
18, // [18:18] is the sub-list for extension type_name
|
|
|
|
|
18, // [18:18] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:18] is the sub-list for field type_name
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { file_device_state_proto_init() }
|
|
|
|
|
func file_device_state_proto_init() {
|
|
|
|
|
if File_device_state_proto != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
|
file_device_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*LinkState); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*SectionState); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*SwitchState); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*SignalState); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*Signal); i {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*PlatformState); i {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*StationState); i {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*TrainState); i {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*TrainDynamicState); i {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*TrainVobcState); i {
|
2023-08-23 15:33:07 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*ReplyState); i {
|
2023-08-25 16:09:04 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*VariationStatus); i {
|
2023-07-28 15:57:37 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-30 13:25:57 +08:00
|
|
|
|
file_device_state_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*AllDevicesStatus); i {
|
2023-08-30 13:25:57 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*PushedDevicesStatus); i {
|
2023-09-27 18:02:07 +08:00
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
2023-10-13 14:41:55 +08:00
|
|
|
|
switch v := v.(*SimulationStatus); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_device_state_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
2023-08-30 13:25:57 +08:00
|
|
|
|
switch v := v.(*MemoryDataStatus); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-28 15:57:37 +08:00
|
|
|
|
}
|
|
|
|
|
type x struct{}
|
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: file_device_state_proto_rawDesc,
|
2023-10-13 14:41:55 +08:00
|
|
|
|
NumEnums: 2,
|
2023-10-16 11:16:09 +08:00
|
|
|
|
NumMessages: 16,
|
2023-07-28 15:57:37 +08:00
|
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 0,
|
|
|
|
|
},
|
|
|
|
|
GoTypes: file_device_state_proto_goTypes,
|
|
|
|
|
DependencyIndexes: file_device_state_proto_depIdxs,
|
|
|
|
|
EnumInfos: file_device_state_proto_enumTypes,
|
|
|
|
|
MessageInfos: file_device_state_proto_msgTypes,
|
|
|
|
|
}.Build()
|
|
|
|
|
File_device_state_proto = out.File
|
|
|
|
|
file_device_state_proto_rawDesc = nil
|
|
|
|
|
file_device_state_proto_goTypes = nil
|
|
|
|
|
file_device_state_proto_depIdxs = nil
|
|
|
|
|
}
|