841 lines
28 KiB
Go
841 lines
28 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.31.0
|
|
// protoc v4.23.1
|
|
// source: request.proto
|
|
|
|
package request_proto
|
|
|
|
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 Turnout_Operation int32
|
|
|
|
const (
|
|
Turnout_Undefined Turnout_Operation = 0 // 未定义
|
|
Turnout_DC Turnout_Operation = 1 // 定操
|
|
Turnout_CancelDC Turnout_Operation = 2 // 取消定操
|
|
Turnout_FC Turnout_Operation = 3 // 反操
|
|
Turnout_CancelFC Turnout_Operation = 4 // 取消反操
|
|
Turnout_SetSB Turnout_Operation = 5 // 设置失表故障
|
|
Turnout_CancelSB Turnout_Operation = 6 // 取消失表故障
|
|
Turnout_SetJC Turnout_Operation = 7 // 设置挤岔故障
|
|
Turnout_CancelJC Turnout_Operation = 8 // 取消挤岔故障
|
|
Turnout_ForceDw Turnout_Operation = 9 // 强制定位
|
|
Turnout_ForceFw Turnout_Operation = 10 // 强制反位
|
|
Turnout_CancelForce Turnout_Operation = 11 // 取消强制
|
|
)
|
|
|
|
// Enum value maps for Turnout_Operation.
|
|
var (
|
|
Turnout_Operation_name = map[int32]string{
|
|
0: "Undefined",
|
|
1: "DC",
|
|
2: "CancelDC",
|
|
3: "FC",
|
|
4: "CancelFC",
|
|
5: "SetSB",
|
|
6: "CancelSB",
|
|
7: "SetJC",
|
|
8: "CancelJC",
|
|
9: "ForceDw",
|
|
10: "ForceFw",
|
|
11: "CancelForce",
|
|
}
|
|
Turnout_Operation_value = map[string]int32{
|
|
"Undefined": 0,
|
|
"DC": 1,
|
|
"CancelDC": 2,
|
|
"FC": 3,
|
|
"CancelFC": 4,
|
|
"SetSB": 5,
|
|
"CancelSB": 6,
|
|
"SetJC": 7,
|
|
"CancelJC": 8,
|
|
"ForceDw": 9,
|
|
"ForceFw": 10,
|
|
"CancelForce": 11,
|
|
}
|
|
)
|
|
|
|
func (x Turnout_Operation) Enum() *Turnout_Operation {
|
|
p := new(Turnout_Operation)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Turnout_Operation) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Turnout_Operation) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_request_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Turnout_Operation) Type() protoreflect.EnumType {
|
|
return &file_request_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Turnout_Operation) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Turnout_Operation.Descriptor instead.
|
|
func (Turnout_Operation) EnumDescriptor() ([]byte, []int) {
|
|
return file_request_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
// 信号机操作
|
|
type Signal_Operation int32
|
|
|
|
const (
|
|
Signal_Undefined Signal_Operation = 0 // 未定义
|
|
Signal_Display Signal_Operation = 1 //显示操作,如设置绿色、设置红黄色
|
|
Signal_LightHFaultDs Signal_Operation = 2 //设置红灯断丝故障
|
|
Signal_LightUFaultDs Signal_Operation = 3 //设置黄灯断丝故障
|
|
Signal_LightLFaultDs Signal_Operation = 4 //设置绿灯断丝故障
|
|
Signal_LightAFaultDs Signal_Operation = 5 //设置蓝灯断丝故障
|
|
Signal_LightBFaultDs Signal_Operation = 6 //设置白灯断丝故障
|
|
Signal_LightHCancelDs Signal_Operation = 7 //取消红灯断丝故障
|
|
Signal_LightUCancelDs Signal_Operation = 8 //取消黄灯断丝故障
|
|
Signal_LightLCancelDs Signal_Operation = 9 //取消绿灯断丝故障
|
|
Signal_LightACancelDs Signal_Operation = 10 //取消蓝灯断丝故障
|
|
Signal_LightBCancelDs Signal_Operation = 11 //取消白灯断丝故障
|
|
)
|
|
|
|
// Enum value maps for Signal_Operation.
|
|
var (
|
|
Signal_Operation_name = map[int32]string{
|
|
0: "Undefined",
|
|
1: "Display",
|
|
2: "LightHFaultDs",
|
|
3: "LightUFaultDs",
|
|
4: "LightLFaultDs",
|
|
5: "LightAFaultDs",
|
|
6: "LightBFaultDs",
|
|
7: "LightHCancelDs",
|
|
8: "LightUCancelDs",
|
|
9: "LightLCancelDs",
|
|
10: "LightACancelDs",
|
|
11: "LightBCancelDs",
|
|
}
|
|
Signal_Operation_value = map[string]int32{
|
|
"Undefined": 0,
|
|
"Display": 1,
|
|
"LightHFaultDs": 2,
|
|
"LightUFaultDs": 3,
|
|
"LightLFaultDs": 4,
|
|
"LightAFaultDs": 5,
|
|
"LightBFaultDs": 6,
|
|
"LightHCancelDs": 7,
|
|
"LightUCancelDs": 8,
|
|
"LightLCancelDs": 9,
|
|
"LightACancelDs": 10,
|
|
"LightBCancelDs": 11,
|
|
}
|
|
)
|
|
|
|
func (x Signal_Operation) Enum() *Signal_Operation {
|
|
p := new(Signal_Operation)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Signal_Operation) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Signal_Operation) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_request_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (Signal_Operation) Type() protoreflect.EnumType {
|
|
return &file_request_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x Signal_Operation) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Signal_Operation.Descriptor instead.
|
|
func (Signal_Operation) EnumDescriptor() ([]byte, []int) {
|
|
return file_request_proto_rawDescGZIP(), []int{2, 0}
|
|
}
|
|
|
|
// 区段操作
|
|
type Section_Operation int32
|
|
|
|
const (
|
|
Section_SetDrst Section_Operation = 0 //设置计轴直接复位
|
|
Section_CancelDrst Section_Operation = 1 //取消计轴直接复位
|
|
Section_SetPdrst Section_Operation = 2 //设置计轴预复位
|
|
Section_CancelPdrst Section_Operation = 3 //取消计轴预复位
|
|
Section_SetFaultOcc Section_Operation = 4 //设置故障占用
|
|
Section_CancelFaultOcc Section_Operation = 5 //取消故障占用
|
|
)
|
|
|
|
// Enum value maps for Section_Operation.
|
|
var (
|
|
Section_Operation_name = map[int32]string{
|
|
0: "SetDrst",
|
|
1: "CancelDrst",
|
|
2: "SetPdrst",
|
|
3: "CancelPdrst",
|
|
4: "SetFaultOcc",
|
|
5: "CancelFaultOcc",
|
|
}
|
|
Section_Operation_value = map[string]int32{
|
|
"SetDrst": 0,
|
|
"CancelDrst": 1,
|
|
"SetPdrst": 2,
|
|
"CancelPdrst": 3,
|
|
"SetFaultOcc": 4,
|
|
"CancelFaultOcc": 5,
|
|
}
|
|
)
|
|
|
|
func (x Section_Operation) Enum() *Section_Operation {
|
|
p := new(Section_Operation)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Section_Operation) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Section_Operation) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_request_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (Section_Operation) Type() protoreflect.EnumType {
|
|
return &file_request_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x Section_Operation) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Section_Operation.Descriptor instead.
|
|
func (Section_Operation) EnumDescriptor() ([]byte, []int) {
|
|
return file_request_proto_rawDescGZIP(), []int{3, 0}
|
|
}
|
|
|
|
type Psd_Operation int32
|
|
|
|
const (
|
|
Psd_Undefined Psd_Operation = 0
|
|
Psd_Km4 Psd_Operation = 1 //四编组开门
|
|
Psd_CancelKm4 Psd_Operation = 2 //取消四编组开门
|
|
Psd_Km8 Psd_Operation = 3 //八编组开门
|
|
Psd_CancelKm8 Psd_Operation = 4 //取消八编组开门
|
|
Psd_Gm Psd_Operation = 5 //关门
|
|
Psd_CancelGm Psd_Operation = 6 //取消关门
|
|
Psd_ForceKm4 Psd_Operation = 7 //强制四编组开门
|
|
Psd_ForceKm8 Psd_Operation = 8 //强制八编组开门
|
|
Psd_ForceGm Psd_Operation = 9 //强制关门
|
|
Psd_AsdCannotOpen Psd_Operation = 10 //滑动门无法开门
|
|
Psd_CancelAsdCannotOpen Psd_Operation = 11 //取消滑动门无法开门
|
|
Psd_AsdCannotClose Psd_Operation = 12 //滑动门无法关闭
|
|
Psd_CancelAsdCannotClose Psd_Operation = 13 //取消滑动门无法关闭
|
|
)
|
|
|
|
// Enum value maps for Psd_Operation.
|
|
var (
|
|
Psd_Operation_name = map[int32]string{
|
|
0: "Undefined",
|
|
1: "Km4",
|
|
2: "CancelKm4",
|
|
3: "Km8",
|
|
4: "CancelKm8",
|
|
5: "Gm",
|
|
6: "CancelGm",
|
|
7: "ForceKm4",
|
|
8: "ForceKm8",
|
|
9: "ForceGm",
|
|
10: "AsdCannotOpen",
|
|
11: "CancelAsdCannotOpen",
|
|
12: "AsdCannotClose",
|
|
13: "CancelAsdCannotClose",
|
|
}
|
|
Psd_Operation_value = map[string]int32{
|
|
"Undefined": 0,
|
|
"Km4": 1,
|
|
"CancelKm4": 2,
|
|
"Km8": 3,
|
|
"CancelKm8": 4,
|
|
"Gm": 5,
|
|
"CancelGm": 6,
|
|
"ForceKm4": 7,
|
|
"ForceKm8": 8,
|
|
"ForceGm": 9,
|
|
"AsdCannotOpen": 10,
|
|
"CancelAsdCannotOpen": 11,
|
|
"AsdCannotClose": 12,
|
|
"CancelAsdCannotClose": 13,
|
|
}
|
|
)
|
|
|
|
func (x Psd_Operation) Enum() *Psd_Operation {
|
|
p := new(Psd_Operation)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Psd_Operation) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Psd_Operation) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_request_proto_enumTypes[3].Descriptor()
|
|
}
|
|
|
|
func (Psd_Operation) Type() protoreflect.EnumType {
|
|
return &file_request_proto_enumTypes[3]
|
|
}
|
|
|
|
func (x Psd_Operation) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Psd_Operation.Descriptor instead.
|
|
func (Psd_Operation) EnumDescriptor() ([]byte, []int) {
|
|
return file_request_proto_rawDescGZIP(), []int{4, 0}
|
|
}
|
|
|
|
// 道岔
|
|
type Turnout struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *Turnout) Reset() {
|
|
*x = Turnout{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_request_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Turnout) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Turnout) ProtoMessage() {}
|
|
|
|
func (x *Turnout) ProtoReflect() protoreflect.Message {
|
|
mi := &file_request_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 Turnout.ProtoReflect.Descriptor instead.
|
|
func (*Turnout) Descriptor() ([]byte, []int) {
|
|
return file_request_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
// 道岔操作请求
|
|
type TurnoutOperationReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
SimulationId string `protobuf:"bytes,1,opt,name=simulationId,proto3" json:"simulationId,omitempty"` // 仿真id
|
|
MapId int32 `protobuf:"varint,2,opt,name=mapId,proto3" json:"mapId,omitempty"` // 图id
|
|
DeviceId string `protobuf:"bytes,3,opt,name=deviceId,proto3" json:"deviceId,omitempty"` // 设备id
|
|
Operation Turnout_Operation `protobuf:"varint,4,opt,name=operation,proto3,enum=request.Turnout_Operation" json:"operation,omitempty"` // 道岔操作
|
|
}
|
|
|
|
func (x *TurnoutOperationReq) Reset() {
|
|
*x = TurnoutOperationReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_request_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *TurnoutOperationReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TurnoutOperationReq) ProtoMessage() {}
|
|
|
|
func (x *TurnoutOperationReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_request_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 TurnoutOperationReq.ProtoReflect.Descriptor instead.
|
|
func (*TurnoutOperationReq) Descriptor() ([]byte, []int) {
|
|
return file_request_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *TurnoutOperationReq) GetSimulationId() string {
|
|
if x != nil {
|
|
return x.SimulationId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TurnoutOperationReq) GetMapId() int32 {
|
|
if x != nil {
|
|
return x.MapId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TurnoutOperationReq) GetDeviceId() string {
|
|
if x != nil {
|
|
return x.DeviceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TurnoutOperationReq) GetOperation() Turnout_Operation {
|
|
if x != nil {
|
|
return x.Operation
|
|
}
|
|
return Turnout_Undefined
|
|
}
|
|
|
|
// 信号机
|
|
type Signal struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *Signal) Reset() {
|
|
*x = Signal{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_request_proto_msgTypes[2]
|
|
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_request_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 Signal.ProtoReflect.Descriptor instead.
|
|
func (*Signal) Descriptor() ([]byte, []int) {
|
|
return file_request_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
// 区段
|
|
type Section struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *Section) Reset() {
|
|
*x = Section{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_request_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Section) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Section) ProtoMessage() {}
|
|
|
|
func (x *Section) ProtoReflect() protoreflect.Message {
|
|
mi := &file_request_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 Section.ProtoReflect.Descriptor instead.
|
|
func (*Section) Descriptor() ([]byte, []int) {
|
|
return file_request_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
// 屏蔽门
|
|
type Psd struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *Psd) Reset() {
|
|
*x = Psd{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_request_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Psd) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Psd) ProtoMessage() {}
|
|
|
|
func (x *Psd) ProtoReflect() protoreflect.Message {
|
|
mi := &file_request_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 Psd.ProtoReflect.Descriptor instead.
|
|
func (*Psd) Descriptor() ([]byte, []int) {
|
|
return file_request_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
// 屏蔽门操作请求
|
|
type PsdOperationReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
SimulationId string `protobuf:"bytes,1,opt,name=simulationId,proto3" json:"simulationId,omitempty"` // 仿真id
|
|
MapId int32 `protobuf:"varint,2,opt,name=mapId,proto3" json:"mapId,omitempty"` // 图id
|
|
DeviceId string `protobuf:"bytes,3,opt,name=deviceId,proto3" json:"deviceId,omitempty"` // 设备id
|
|
Operation Psd_Operation `protobuf:"varint,4,opt,name=operation,proto3,enum=request.Psd_Operation" json:"operation,omitempty"` // 操作
|
|
AsdCodes []int32 `protobuf:"varint,5,rep,packed,name=asdCodes,proto3" json:"asdCodes,omitempty"` //无法关闭/无法开启故障涉及的滑动门的编号
|
|
}
|
|
|
|
func (x *PsdOperationReq) Reset() {
|
|
*x = PsdOperationReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_request_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *PsdOperationReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PsdOperationReq) ProtoMessage() {}
|
|
|
|
func (x *PsdOperationReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_request_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PsdOperationReq.ProtoReflect.Descriptor instead.
|
|
func (*PsdOperationReq) Descriptor() ([]byte, []int) {
|
|
return file_request_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *PsdOperationReq) GetSimulationId() string {
|
|
if x != nil {
|
|
return x.SimulationId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PsdOperationReq) GetMapId() int32 {
|
|
if x != nil {
|
|
return x.MapId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PsdOperationReq) GetDeviceId() string {
|
|
if x != nil {
|
|
return x.DeviceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PsdOperationReq) GetOperation() Psd_Operation {
|
|
if x != nil {
|
|
return x.Operation
|
|
}
|
|
return Psd_Undefined
|
|
}
|
|
|
|
func (x *PsdOperationReq) GetAsdCodes() []int32 {
|
|
if x != nil {
|
|
return x.AsdCodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_request_proto protoreflect.FileDescriptor
|
|
|
|
var file_request_proto_rawDesc = []byte{
|
|
0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
|
0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xaf, 0x01, 0x0a, 0x07, 0x54, 0x75, 0x72,
|
|
0x6e, 0x6f, 0x75, 0x74, 0x22, 0xa3, 0x01, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
|
0x6f, 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10,
|
|
0x00, 0x12, 0x06, 0x0a, 0x02, 0x44, 0x43, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x61, 0x6e,
|
|
0x63, 0x65, 0x6c, 0x44, 0x43, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x46, 0x43, 0x10, 0x03, 0x12,
|
|
0x0c, 0x0a, 0x08, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x46, 0x43, 0x10, 0x04, 0x12, 0x09, 0x0a,
|
|
0x05, 0x53, 0x65, 0x74, 0x53, 0x42, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x61, 0x6e, 0x63,
|
|
0x65, 0x6c, 0x53, 0x42, 0x10, 0x06, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x65, 0x74, 0x4a, 0x43, 0x10,
|
|
0x07, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x43, 0x10, 0x08, 0x12,
|
|
0x0b, 0x0a, 0x07, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x44, 0x77, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07,
|
|
0x46, 0x6f, 0x72, 0x63, 0x65, 0x46, 0x77, 0x10, 0x0a, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x61, 0x6e,
|
|
0x63, 0x65, 0x6c, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x10, 0x0b, 0x22, 0xa5, 0x01, 0x0a, 0x13, 0x54,
|
|
0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
|
|
0x65, 0x71, 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, 0x1a, 0x0a, 0x08,
|
|
0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72,
|
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x72, 0x65,
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x2e, 0x4f, 0x70,
|
|
0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
|
0x6f, 0x6e, 0x22, 0xf5, 0x01, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x22, 0xea, 0x01,
|
|
0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x55,
|
|
0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x69,
|
|
0x73, 0x70, 0x6c, 0x61, 0x79, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x69, 0x67, 0x68, 0x74,
|
|
0x48, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x73, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x69,
|
|
0x67, 0x68, 0x74, 0x55, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x73, 0x10, 0x03, 0x12, 0x11, 0x0a,
|
|
0x0d, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x4c, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x73, 0x10, 0x04,
|
|
0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x41, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x44,
|
|
0x73, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x42, 0x46, 0x61, 0x75,
|
|
0x6c, 0x74, 0x44, 0x73, 0x10, 0x06, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x48,
|
|
0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x44, 0x73, 0x10, 0x07, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x69,
|
|
0x67, 0x68, 0x74, 0x55, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x44, 0x73, 0x10, 0x08, 0x12, 0x12,
|
|
0x0a, 0x0e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x4c, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x44, 0x73,
|
|
0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x41, 0x43, 0x61, 0x6e, 0x63,
|
|
0x65, 0x6c, 0x44, 0x73, 0x10, 0x0a, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x42,
|
|
0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x44, 0x73, 0x10, 0x0b, 0x22, 0x77, 0x0a, 0x07, 0x53, 0x65,
|
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6c, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
|
0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x65, 0x74, 0x44, 0x72, 0x73, 0x74, 0x10, 0x00, 0x12,
|
|
0x0e, 0x0a, 0x0a, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x44, 0x72, 0x73, 0x74, 0x10, 0x01, 0x12,
|
|
0x0c, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x50, 0x64, 0x72, 0x73, 0x74, 0x10, 0x02, 0x12, 0x0f, 0x0a,
|
|
0x0b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x50, 0x64, 0x72, 0x73, 0x74, 0x10, 0x03, 0x12, 0x0f,
|
|
0x0a, 0x0b, 0x53, 0x65, 0x74, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x63, 0x63, 0x10, 0x04, 0x12,
|
|
0x12, 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x63,
|
|
0x63, 0x10, 0x05, 0x22, 0xeb, 0x01, 0x0a, 0x03, 0x50, 0x73, 0x64, 0x22, 0xe3, 0x01, 0x0a, 0x09,
|
|
0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x6e, 0x64,
|
|
0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4b, 0x6d, 0x34, 0x10,
|
|
0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4b, 0x6d, 0x34, 0x10, 0x02,
|
|
0x12, 0x07, 0x0a, 0x03, 0x4b, 0x6d, 0x38, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x61, 0x6e,
|
|
0x63, 0x65, 0x6c, 0x4b, 0x6d, 0x38, 0x10, 0x04, 0x12, 0x06, 0x0a, 0x02, 0x47, 0x6d, 0x10, 0x05,
|
|
0x12, 0x0c, 0x0a, 0x08, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x47, 0x6d, 0x10, 0x06, 0x12, 0x0c,
|
|
0x0a, 0x08, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x4b, 0x6d, 0x34, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08,
|
|
0x46, 0x6f, 0x72, 0x63, 0x65, 0x4b, 0x6d, 0x38, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x6f,
|
|
0x72, 0x63, 0x65, 0x47, 0x6d, 0x10, 0x09, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x73, 0x64, 0x43, 0x61,
|
|
0x6e, 0x6e, 0x6f, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x10, 0x0a, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x61,
|
|
0x6e, 0x63, 0x65, 0x6c, 0x41, 0x73, 0x64, 0x43, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x4f, 0x70, 0x65,
|
|
0x6e, 0x10, 0x0b, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x73, 0x64, 0x43, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
|
|
0x43, 0x6c, 0x6f, 0x73, 0x65, 0x10, 0x0c, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65,
|
|
0x6c, 0x41, 0x73, 0x64, 0x43, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x10,
|
|
0x0d, 0x22, 0xb9, 0x01, 0x0a, 0x0f, 0x50, 0x73, 0x64, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
|
|
0x6f, 0x6e, 0x52, 0x65, 0x71, 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,
|
|
0x1a, 0x0a, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x09, 0x6f,
|
|
0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16,
|
|
0x2e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x73, 0x64, 0x2e, 0x4f, 0x70, 0x65,
|
|
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x73, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20,
|
|
0x03, 0x28, 0x05, 0x52, 0x08, 0x61, 0x73, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x42, 0x15, 0x5a,
|
|
0x13, 0x2e, 0x2f, 0x64, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_request_proto_rawDescOnce sync.Once
|
|
file_request_proto_rawDescData = file_request_proto_rawDesc
|
|
)
|
|
|
|
func file_request_proto_rawDescGZIP() []byte {
|
|
file_request_proto_rawDescOnce.Do(func() {
|
|
file_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_request_proto_rawDescData)
|
|
})
|
|
return file_request_proto_rawDescData
|
|
}
|
|
|
|
var file_request_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
|
var file_request_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_request_proto_goTypes = []interface{}{
|
|
(Turnout_Operation)(0), // 0: request.Turnout.Operation
|
|
(Signal_Operation)(0), // 1: request.Signal.Operation
|
|
(Section_Operation)(0), // 2: request.Section.Operation
|
|
(Psd_Operation)(0), // 3: request.Psd.Operation
|
|
(*Turnout)(nil), // 4: request.Turnout
|
|
(*TurnoutOperationReq)(nil), // 5: request.TurnoutOperationReq
|
|
(*Signal)(nil), // 6: request.Signal
|
|
(*Section)(nil), // 7: request.Section
|
|
(*Psd)(nil), // 8: request.Psd
|
|
(*PsdOperationReq)(nil), // 9: request.PsdOperationReq
|
|
}
|
|
var file_request_proto_depIdxs = []int32{
|
|
0, // 0: request.TurnoutOperationReq.operation:type_name -> request.Turnout.Operation
|
|
3, // 1: request.PsdOperationReq.operation:type_name -> request.Psd.Operation
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_request_proto_init() }
|
|
func file_request_proto_init() {
|
|
if File_request_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Turnout); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*TurnoutOperationReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Signal); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_request_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Section); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_request_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Psd); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_request_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*PsdOperationReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_request_proto_rawDesc,
|
|
NumEnums: 4,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_request_proto_goTypes,
|
|
DependencyIndexes: file_request_proto_depIdxs,
|
|
EnumInfos: file_request_proto_enumTypes,
|
|
MessageInfos: file_request_proto_msgTypes,
|
|
}.Build()
|
|
File_request_proto = out.File
|
|
file_request_proto_rawDesc = nil
|
|
file_request_proto_goTypes = nil
|
|
file_request_proto_depIdxs = nil
|
|
}
|