| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: facility.proto
- package pb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- 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 Facilities struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 城建
- List []*Facility `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
- // 已解锁的队列
- Queue []*FacilityQueue `protobuf:"bytes,2,rep,name=queue,proto3" json:"queue,omitempty"`
- // 属性
- Attrs *Attrs `protobuf:"bytes,3,opt,name=attrs,proto3" json:"attrs,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Facilities) Reset() {
- *x = Facilities{}
- mi := &file_facility_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Facilities) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Facilities) ProtoMessage() {}
- func (x *Facilities) ProtoReflect() protoreflect.Message {
- mi := &file_facility_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Facilities.ProtoReflect.Descriptor instead.
- func (*Facilities) Descriptor() ([]byte, []int) {
- return file_facility_proto_rawDescGZIP(), []int{0}
- }
- func (x *Facilities) GetList() []*Facility {
- if x != nil {
- return x.List
- }
- return nil
- }
- func (x *Facilities) GetQueue() []*FacilityQueue {
- if x != nil {
- return x.Queue
- }
- return nil
- }
- func (x *Facilities) GetAttrs() *Attrs {
- if x != nil {
- return x.Attrs
- }
- return nil
- }
- // 建筑列表
- type FacilityList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- List []*Facility `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *FacilityList) Reset() {
- *x = FacilityList{}
- mi := &file_facility_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *FacilityList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FacilityList) ProtoMessage() {}
- func (x *FacilityList) ProtoReflect() protoreflect.Message {
- mi := &file_facility_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FacilityList.ProtoReflect.Descriptor instead.
- func (*FacilityList) Descriptor() ([]byte, []int) {
- return file_facility_proto_rawDescGZIP(), []int{1}
- }
- func (x *FacilityList) GetList() []*Facility {
- if x != nil {
- return x.List
- }
- return nil
- }
- // 城建
- type Facility struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 城建 ID
- FacilityID int32 `protobuf:"varint,1,opt,name=facilityID,proto3" json:"facilityID,omitempty"`
- // 等级
- Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Facility) Reset() {
- *x = Facility{}
- mi := &file_facility_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Facility) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Facility) ProtoMessage() {}
- func (x *Facility) ProtoReflect() protoreflect.Message {
- mi := &file_facility_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Facility.ProtoReflect.Descriptor instead.
- func (*Facility) Descriptor() ([]byte, []int) {
- return file_facility_proto_rawDescGZIP(), []int{2}
- }
- func (x *Facility) GetFacilityID() int32 {
- if x != nil {
- return x.FacilityID
- }
- return 0
- }
- func (x *Facility) GetLevel() int32 {
- if x != nil {
- return x.Level
- }
- return 0
- }
- // 城建队列
- type FacilityQueue struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 队列 ID
- FacilityQueueID int32 `protobuf:"varint,1,opt,name=facilityQueueID,proto3" json:"facilityQueueID,omitempty"`
- // 城建 ID
- FacilityID int32 `protobuf:"varint,2,opt,name=facilityID,proto3" json:"facilityID,omitempty"`
- // 开始时间 (s)
- StartTime int64 `protobuf:"varint,3,opt,name=startTime,proto3" json:"startTime,omitempty"`
- // 完成截止时间 (s)
- FinishTime int64 `protobuf:"varint,4,opt,name=finishTime,proto3" json:"finishTime,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *FacilityQueue) Reset() {
- *x = FacilityQueue{}
- mi := &file_facility_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *FacilityQueue) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FacilityQueue) ProtoMessage() {}
- func (x *FacilityQueue) ProtoReflect() protoreflect.Message {
- mi := &file_facility_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FacilityQueue.ProtoReflect.Descriptor instead.
- func (*FacilityQueue) Descriptor() ([]byte, []int) {
- return file_facility_proto_rawDescGZIP(), []int{3}
- }
- func (x *FacilityQueue) GetFacilityQueueID() int32 {
- if x != nil {
- return x.FacilityQueueID
- }
- return 0
- }
- func (x *FacilityQueue) GetFacilityID() int32 {
- if x != nil {
- return x.FacilityID
- }
- return 0
- }
- func (x *FacilityQueue) GetStartTime() int64 {
- if x != nil {
- return x.StartTime
- }
- return 0
- }
- func (x *FacilityQueue) GetFinishTime() int64 {
- if x != nil {
- return x.FinishTime
- }
- return 0
- }
- var File_facility_proto protoreflect.FileDescriptor
- const file_facility_proto_rawDesc = "" +
- "\n" +
- "\x0efacility.proto\x12\x02pb\x1a\x0fbase_type.proto\"x\n" +
- "\n" +
- "Facilities\x12 \n" +
- "\x04list\x18\x01 \x03(\v2\f.pb.FacilityR\x04list\x12'\n" +
- "\x05queue\x18\x02 \x03(\v2\x11.pb.FacilityQueueR\x05queue\x12\x1f\n" +
- "\x05attrs\x18\x03 \x01(\v2\t.pb.AttrsR\x05attrs\"0\n" +
- "\fFacilityList\x12 \n" +
- "\x04list\x18\x01 \x03(\v2\f.pb.FacilityR\x04list\"@\n" +
- "\bFacility\x12\x1e\n" +
- "\n" +
- "facilityID\x18\x01 \x01(\x05R\n" +
- "facilityID\x12\x14\n" +
- "\x05level\x18\x02 \x01(\x05R\x05level\"\x97\x01\n" +
- "\rFacilityQueue\x12(\n" +
- "\x0ffacilityQueueID\x18\x01 \x01(\x05R\x0ffacilityQueueID\x12\x1e\n" +
- "\n" +
- "facilityID\x18\x02 \x01(\x05R\n" +
- "facilityID\x12\x1c\n" +
- "\tstartTime\x18\x03 \x01(\x03R\tstartTime\x12\x1e\n" +
- "\n" +
- "finishTime\x18\x04 \x01(\x03R\n" +
- "finishTimeB\x05Z\x03/pbb\x06proto3"
- var (
- file_facility_proto_rawDescOnce sync.Once
- file_facility_proto_rawDescData []byte
- )
- func file_facility_proto_rawDescGZIP() []byte {
- file_facility_proto_rawDescOnce.Do(func() {
- file_facility_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_facility_proto_rawDesc), len(file_facility_proto_rawDesc)))
- })
- return file_facility_proto_rawDescData
- }
- var file_facility_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
- var file_facility_proto_goTypes = []any{
- (*Facilities)(nil), // 0: pb.Facilities
- (*FacilityList)(nil), // 1: pb.FacilityList
- (*Facility)(nil), // 2: pb.Facility
- (*FacilityQueue)(nil), // 3: pb.FacilityQueue
- (*Attrs)(nil), // 4: pb.Attrs
- }
- var file_facility_proto_depIdxs = []int32{
- 2, // 0: pb.Facilities.list:type_name -> pb.Facility
- 3, // 1: pb.Facilities.queue:type_name -> pb.FacilityQueue
- 4, // 2: pb.Facilities.attrs:type_name -> pb.Attrs
- 2, // 3: pb.FacilityList.list:type_name -> pb.Facility
- 4, // [4:4] is the sub-list for method output_type
- 4, // [4:4] is the sub-list for method input_type
- 4, // [4:4] is the sub-list for extension type_name
- 4, // [4:4] is the sub-list for extension extendee
- 0, // [0:4] is the sub-list for field type_name
- }
- func init() { file_facility_proto_init() }
- func file_facility_proto_init() {
- if File_facility_proto != nil {
- return
- }
- file_base_type_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_facility_proto_rawDesc), len(file_facility_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 4,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_facility_proto_goTypes,
- DependencyIndexes: file_facility_proto_depIdxs,
- MessageInfos: file_facility_proto_msgTypes,
- }.Build()
- File_facility_proto = out.File
- file_facility_proto_goTypes = nil
- file_facility_proto_depIdxs = nil
- }
|