rts-sim-module/component/component_proto/turnout.pb.go
2023-10-12 17:53:30 +08:00

514 lines
15 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.23.1
// source: component/turnout.proto
package component_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_Fault int32
const (
// 失表
Turnout_SB Turnout_Fault = 0
// 定位失表
Turnout_DWSB Turnout_Fault = 1
// 反位失表
Turnout_FWSB Turnout_Fault = 2
// 挤岔
Turnout_JC Turnout_Fault = 3
)
// Enum value maps for Turnout_Fault.
var (
Turnout_Fault_name = map[int32]string{
0: "SB",
1: "DWSB",
2: "FWSB",
}
Turnout_Fault_value = map[string]int32{
"SB": 0,
"DWSB": 1,
"FWSB": 2,
}
)
func (x Turnout_Fault) Enum() *Turnout_Fault {
p := new(Turnout_Fault)
*p = x
return p
}
func (x Turnout_Fault) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Turnout_Fault) Descriptor() protoreflect.EnumDescriptor {
return file_component_turnout_proto_enumTypes[0].Descriptor()
}
func (Turnout_Fault) Type() protoreflect.EnumType {
return &file_component_turnout_proto_enumTypes[0]
}
func (x Turnout_Fault) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Turnout_Fault.Descriptor instead.
func (Turnout_Fault) EnumDescriptor() ([]byte, []int) {
return file_component_turnout_proto_rawDescGZIP(), []int{1, 0}
}
// 道岔位置状态表示组件
type TurnoutPosition struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 是否在定位(实际位置)
Dw bool `protobuf:"varint,1,opt,name=dw,proto3" json:"dw,omitempty"`
// 是否在反位(实际位置)
Fw bool `protobuf:"varint,2,opt,name=fw,proto3" json:"fw,omitempty"`
// 定表
Db bool `protobuf:"varint,3,opt,name=db,proto3" json:"db,omitempty"`
// 反表
Fb bool `protobuf:"varint,4,opt,name=fb,proto3" json:"fb,omitempty"`
}
func (x *TurnoutPosition) Reset() {
*x = TurnoutPosition{}
if protoimpl.UnsafeEnabled {
mi := &file_component_turnout_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TurnoutPosition) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TurnoutPosition) ProtoMessage() {}
func (x *TurnoutPosition) ProtoReflect() protoreflect.Message {
mi := &file_component_turnout_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 TurnoutPosition.ProtoReflect.Descriptor instead.
func (*TurnoutPosition) Descriptor() ([]byte, []int) {
return file_component_turnout_proto_rawDescGZIP(), []int{0}
}
func (x *TurnoutPosition) GetDw() bool {
if x != nil {
return x.Dw
}
return false
}
func (x *TurnoutPosition) GetFw() bool {
if x != nil {
return x.Fw
}
return false
}
func (x *TurnoutPosition) GetDb() bool {
if x != nil {
return x.Db
}
return false
}
func (x *TurnoutPosition) GetFb() bool {
if x != nil {
return x.Fb
}
return false
}
// 道岔故障
type Turnout struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Fault []Turnout_Fault `protobuf:"varint,1,rep,packed,name=fault,proto3,enum=component.Turnout_Fault" json:"fault,omitempty"`
}
func (x *Turnout) Reset() {
*x = Turnout{}
if protoimpl.UnsafeEnabled {
mi := &file_component_turnout_proto_msgTypes[1]
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_component_turnout_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 Turnout.ProtoReflect.Descriptor instead.
func (*Turnout) Descriptor() ([]byte, []int) {
return file_component_turnout_proto_rawDescGZIP(), []int{1}
}
func (x *Turnout) GetFault() []Turnout_Fault {
if x != nil {
return x.Fault
}
return nil
}
// 道岔失表故障
type TurnoutFaultSB struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *TurnoutFaultSB) Reset() {
*x = TurnoutFaultSB{}
if protoimpl.UnsafeEnabled {
mi := &file_component_turnout_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TurnoutFaultSB) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TurnoutFaultSB) ProtoMessage() {}
func (x *TurnoutFaultSB) ProtoReflect() protoreflect.Message {
mi := &file_component_turnout_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 TurnoutFaultSB.ProtoReflect.Descriptor instead.
func (*TurnoutFaultSB) Descriptor() ([]byte, []int) {
return file_component_turnout_proto_rawDescGZIP(), []int{2}
}
// 道岔定位失表故障
type TurnoutFaultDwsb struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *TurnoutFaultDwsb) Reset() {
*x = TurnoutFaultDwsb{}
if protoimpl.UnsafeEnabled {
mi := &file_component_turnout_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TurnoutFaultDwsb) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TurnoutFaultDwsb) ProtoMessage() {}
func (x *TurnoutFaultDwsb) ProtoReflect() protoreflect.Message {
mi := &file_component_turnout_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 TurnoutFaultDwsb.ProtoReflect.Descriptor instead.
func (*TurnoutFaultDwsb) Descriptor() ([]byte, []int) {
return file_component_turnout_proto_rawDescGZIP(), []int{3}
}
// 道岔反位失表故障
type TurnoutFaultFwsb struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *TurnoutFaultFwsb) Reset() {
*x = TurnoutFaultFwsb{}
if protoimpl.UnsafeEnabled {
mi := &file_component_turnout_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TurnoutFaultFwsb) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TurnoutFaultFwsb) ProtoMessage() {}
func (x *TurnoutFaultFwsb) ProtoReflect() protoreflect.Message {
mi := &file_component_turnout_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 TurnoutFaultFwsb.ProtoReflect.Descriptor instead.
func (*TurnoutFaultFwsb) Descriptor() ([]byte, []int) {
return file_component_turnout_proto_rawDescGZIP(), []int{4}
}
// 道岔挤岔故障
type TurnoutFaultJc struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *TurnoutFaultJc) Reset() {
*x = TurnoutFaultJc{}
if protoimpl.UnsafeEnabled {
mi := &file_component_turnout_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TurnoutFaultJc) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TurnoutFaultJc) ProtoMessage() {}
func (x *TurnoutFaultJc) ProtoReflect() protoreflect.Message {
mi := &file_component_turnout_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 TurnoutFaultJc.ProtoReflect.Descriptor instead.
func (*TurnoutFaultJc) Descriptor() ([]byte, []int) {
return file_component_turnout_proto_rawDescGZIP(), []int{5}
}
var File_component_turnout_proto protoreflect.FileDescriptor
var file_component_turnout_proto_rawDesc = []byte{
0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x75, 0x72, 0x6e,
0x6f, 0x75, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f,
0x6e, 0x65, 0x6e, 0x74, 0x22, 0x51, 0x0a, 0x0f, 0x54, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x50,
0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x64, 0x77, 0x18, 0x01, 0x20,
0x01, 0x28, 0x08, 0x52, 0x02, 0x64, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x66, 0x77, 0x18, 0x02, 0x20,
0x01, 0x28, 0x08, 0x52, 0x02, 0x66, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x64, 0x62, 0x18, 0x03, 0x20,
0x01, 0x28, 0x08, 0x52, 0x02, 0x64, 0x62, 0x12, 0x0e, 0x0a, 0x02, 0x66, 0x62, 0x18, 0x04, 0x20,
0x01, 0x28, 0x08, 0x52, 0x02, 0x66, 0x62, 0x22, 0x5e, 0x0a, 0x07, 0x54, 0x75, 0x72, 0x6e, 0x6f,
0x75, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0e, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x75,
0x72, 0x6e, 0x6f, 0x75, 0x74, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x05, 0x66, 0x61, 0x75,
0x6c, 0x74, 0x22, 0x23, 0x0a, 0x05, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x06, 0x0a, 0x02, 0x53,
0x42, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x57, 0x53, 0x42, 0x10, 0x01, 0x12, 0x08, 0x0a,
0x04, 0x46, 0x57, 0x53, 0x42, 0x10, 0x02, 0x22, 0x10, 0x0a, 0x0e, 0x54, 0x75, 0x72, 0x6e, 0x6f,
0x75, 0x74, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x42, 0x22, 0x12, 0x0a, 0x10, 0x54, 0x75, 0x72,
0x6e, 0x6f, 0x75, 0x74, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x77, 0x73, 0x62, 0x22, 0x12, 0x0a,
0x10, 0x54, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x77, 0x73,
0x62, 0x22, 0x10, 0x0a, 0x0e, 0x54, 0x75, 0x72, 0x6e, 0x6f, 0x75, 0x74, 0x46, 0x61, 0x75, 0x6c,
0x74, 0x4a, 0x63, 0x42, 0x1d, 0x5a, 0x1b, 0x2e, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65,
0x6e, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_component_turnout_proto_rawDescOnce sync.Once
file_component_turnout_proto_rawDescData = file_component_turnout_proto_rawDesc
)
func file_component_turnout_proto_rawDescGZIP() []byte {
file_component_turnout_proto_rawDescOnce.Do(func() {
file_component_turnout_proto_rawDescData = protoimpl.X.CompressGZIP(file_component_turnout_proto_rawDescData)
})
return file_component_turnout_proto_rawDescData
}
var file_component_turnout_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_component_turnout_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_component_turnout_proto_goTypes = []interface{}{
(Turnout_Fault)(0), // 0: component.Turnout.Fault
(*TurnoutPosition)(nil), // 1: component.TurnoutPosition
(*Turnout)(nil), // 2: component.Turnout
(*TurnoutFaultSB)(nil), // 3: component.TurnoutFaultSB
(*TurnoutFaultDwsb)(nil), // 4: component.TurnoutFaultDwsb
(*TurnoutFaultFwsb)(nil), // 5: component.TurnoutFaultFwsb
(*TurnoutFaultJc)(nil), // 6: component.TurnoutFaultJc
}
var file_component_turnout_proto_depIdxs = []int32{
0, // 0: component.Turnout.fault:type_name -> component.Turnout.Fault
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_component_turnout_proto_init() }
func file_component_turnout_proto_init() {
if File_component_turnout_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_component_turnout_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TurnoutPosition); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_component_turnout_proto_msgTypes[1].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_component_turnout_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TurnoutFaultSB); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_component_turnout_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TurnoutFaultDwsb); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_component_turnout_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TurnoutFaultFwsb); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_component_turnout_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TurnoutFaultJc); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_component_turnout_proto_rawDesc,
NumEnums: 1,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_component_turnout_proto_goTypes,
DependencyIndexes: file_component_turnout_proto_depIdxs,
EnumInfos: file_component_turnout_proto_enumTypes,
MessageInfos: file_component_turnout_proto_msgTypes,
}.Build()
File_component_turnout_proto = out.File
file_component_turnout_proto_rawDesc = nil
file_component_turnout_proto_goTypes = nil
file_component_turnout_proto_depIdxs = nil
}