signal 故障
This commit is contained in:
parent
7a5233e1f9
commit
22e91bc1e5
@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.1
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.23.1
|
||||
// source: component/common.proto
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.1
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.23.1
|
||||
// source: component/psd.proto
|
||||
|
||||
|
195
component/component_proto/signal.pb.go
Normal file
195
component/component_proto/signal.pb.go
Normal file
@ -0,0 +1,195 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.23.1
|
||||
// source: component/signal.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 Signal_Fault int32
|
||||
|
||||
const (
|
||||
// 灯丝断丝
|
||||
Signal_DS Signal_Fault = 0
|
||||
)
|
||||
|
||||
// Enum value maps for Signal_Fault.
|
||||
var (
|
||||
Signal_Fault_name = map[int32]string{
|
||||
0: "DS",
|
||||
}
|
||||
Signal_Fault_value = map[string]int32{
|
||||
"DS": 0,
|
||||
}
|
||||
)
|
||||
|
||||
func (x Signal_Fault) Enum() *Signal_Fault {
|
||||
p := new(Signal_Fault)
|
||||
*p = x
|
||||
return p
|
||||
}
|
||||
|
||||
func (x Signal_Fault) String() string {
|
||||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||
}
|
||||
|
||||
func (Signal_Fault) Descriptor() protoreflect.EnumDescriptor {
|
||||
return file_component_signal_proto_enumTypes[0].Descriptor()
|
||||
}
|
||||
|
||||
func (Signal_Fault) Type() protoreflect.EnumType {
|
||||
return &file_component_signal_proto_enumTypes[0]
|
||||
}
|
||||
|
||||
func (x Signal_Fault) Number() protoreflect.EnumNumber {
|
||||
return protoreflect.EnumNumber(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Signal_Fault.Descriptor instead.
|
||||
func (Signal_Fault) EnumDescriptor() ([]byte, []int) {
|
||||
return file_component_signal_proto_rawDescGZIP(), []int{0, 0}
|
||||
}
|
||||
|
||||
// 信号机故障
|
||||
type Signal struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Fault []Signal_Fault `protobuf:"varint,1,rep,packed,name=fault,proto3,enum=component.Signal_Fault" json:"fault,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Signal) Reset() {
|
||||
*x = Signal{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_component_signal_proto_msgTypes[0]
|
||||
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_component_signal_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 Signal.ProtoReflect.Descriptor instead.
|
||||
func (*Signal) Descriptor() ([]byte, []int) {
|
||||
return file_component_signal_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Signal) GetFault() []Signal_Fault {
|
||||
if x != nil {
|
||||
return x.Fault
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_component_signal_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_component_signal_proto_rawDesc = []byte{
|
||||
0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x69, 0x67, 0x6e,
|
||||
0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e,
|
||||
0x65, 0x6e, 0x74, 0x22, 0x48, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x2d, 0x0a,
|
||||
0x05, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x63,
|
||||
0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e,
|
||||
0x46, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x05, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x0f, 0x0a, 0x05,
|
||||
0x46, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x06, 0x0a, 0x02, 0x44, 0x53, 0x10, 0x00, 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_signal_proto_rawDescOnce sync.Once
|
||||
file_component_signal_proto_rawDescData = file_component_signal_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_component_signal_proto_rawDescGZIP() []byte {
|
||||
file_component_signal_proto_rawDescOnce.Do(func() {
|
||||
file_component_signal_proto_rawDescData = protoimpl.X.CompressGZIP(file_component_signal_proto_rawDescData)
|
||||
})
|
||||
return file_component_signal_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_component_signal_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_component_signal_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_component_signal_proto_goTypes = []interface{}{
|
||||
(Signal_Fault)(0), // 0: component.Signal.Fault
|
||||
(*Signal)(nil), // 1: component.Signal
|
||||
}
|
||||
var file_component_signal_proto_depIdxs = []int32{
|
||||
0, // 0: component.Signal.fault:type_name -> component.Signal.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_signal_proto_init() }
|
||||
func file_component_signal_proto_init() {
|
||||
if File_component_signal_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_component_signal_proto_msgTypes[0].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
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_component_signal_proto_rawDesc,
|
||||
NumEnums: 1,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_component_signal_proto_goTypes,
|
||||
DependencyIndexes: file_component_signal_proto_depIdxs,
|
||||
EnumInfos: file_component_signal_proto_enumTypes,
|
||||
MessageInfos: file_component_signal_proto_msgTypes,
|
||||
}.Build()
|
||||
File_component_signal_proto = out.File
|
||||
file_component_signal_proto_rawDesc = nil
|
||||
file_component_signal_proto_goTypes = nil
|
||||
file_component_signal_proto_depIdxs = nil
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.1
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.23.1
|
||||
// source: component/turnout.proto
|
||||
|
||||
|
15
proto/src/component/signal.proto
Normal file
15
proto/src/component/signal.proto
Normal file
@ -0,0 +1,15 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package component;
|
||||
|
||||
option go_package = "./component/component_proto";
|
||||
|
||||
|
||||
// 信号机故障
|
||||
message Signal {
|
||||
enum Fault {
|
||||
// 灯丝断丝
|
||||
DS = 0;
|
||||
}
|
||||
repeated Fault fault = 1;
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.1
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v4.23.1
|
||||
// source: model.proto
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user