// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1-devel // protoc v3.19.4 // source: protocol/upgrade/upgrade.proto package upgrade 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 PacketID int32 const ( // 3100~3199 PacketID_PacketID_Zero PacketID = 0 PacketID_PACKET_CSClientUpgrades PacketID = 3100 PacketID_PACKET_SCClientUpgrades PacketID = 3101 ) // Enum value maps for PacketID. var ( PacketID_name = map[int32]string{ 0: "PacketID_Zero", 3100: "PACKET_CSClientUpgrades", 3101: "PACKET_SCClientUpgrades", } PacketID_value = map[string]int32{ "PacketID_Zero": 0, "PACKET_CSClientUpgrades": 3100, "PACKET_SCClientUpgrades": 3101, } ) func (x PacketID) Enum() *PacketID { p := new(PacketID) *p = x return p } func (x PacketID) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (PacketID) Descriptor() protoreflect.EnumDescriptor { return file_protocol_upgrade_upgrade_proto_enumTypes[0].Descriptor() } func (PacketID) Type() protoreflect.EnumType { return &file_protocol_upgrade_upgrade_proto_enumTypes[0] } func (x PacketID) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use PacketID.Descriptor instead. func (PacketID) EnumDescriptor() ([]byte, []int) { return file_protocol_upgrade_upgrade_proto_rawDescGZIP(), []int{0} } type PropInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ItemId int32 `protobuf:"varint,1,opt,name=ItemId,proto3" json:"ItemId,omitempty"` //物品ID ItemNum int64 `protobuf:"varint,2,opt,name=ItemNum,proto3" json:"ItemNum,omitempty"` //物品数量 } func (x *PropInfo) Reset() { *x = PropInfo{} if protoimpl.UnsafeEnabled { mi := &file_protocol_upgrade_upgrade_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *PropInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*PropInfo) ProtoMessage() {} func (x *PropInfo) ProtoReflect() protoreflect.Message { mi := &file_protocol_upgrade_upgrade_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 PropInfo.ProtoReflect.Descriptor instead. func (*PropInfo) Descriptor() ([]byte, []int) { return file_protocol_upgrade_upgrade_proto_rawDescGZIP(), []int{0} } func (x *PropInfo) GetItemId() int32 { if x != nil { return x.ItemId } return 0 } func (x *PropInfo) GetItemNum() int64 { if x != nil { return x.ItemNum } return 0 } // 客户端升级奖励 //PACKET_CSClientUpgrades type CSClientUpgrades struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *CSClientUpgrades) Reset() { *x = CSClientUpgrades{} if protoimpl.UnsafeEnabled { mi := &file_protocol_upgrade_upgrade_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *CSClientUpgrades) String() string { return protoimpl.X.MessageStringOf(x) } func (*CSClientUpgrades) ProtoMessage() {} func (x *CSClientUpgrades) ProtoReflect() protoreflect.Message { mi := &file_protocol_upgrade_upgrade_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 CSClientUpgrades.ProtoReflect.Descriptor instead. func (*CSClientUpgrades) Descriptor() ([]byte, []int) { return file_protocol_upgrade_upgrade_proto_rawDescGZIP(), []int{1} } //PACKET_SCClientUpgrades type SCClientUpgrades struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields On bool `protobuf:"varint,1,opt,name=On,proto3" json:"On,omitempty"` // 是否开启 OnForce bool `protobuf:"varint,2,opt,name=OnForce,proto3" json:"OnForce,omitempty"` // 是否强制升级(没有关闭按钮) Award []*PropInfo `protobuf:"bytes,3,rep,name=Award,proto3" json:"Award,omitempty"` // 奖励 Version int32 `protobuf:"varint,4,opt,name=Version,proto3" json:"Version,omitempty"` // 版本号 } func (x *SCClientUpgrades) Reset() { *x = SCClientUpgrades{} if protoimpl.UnsafeEnabled { mi := &file_protocol_upgrade_upgrade_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SCClientUpgrades) String() string { return protoimpl.X.MessageStringOf(x) } func (*SCClientUpgrades) ProtoMessage() {} func (x *SCClientUpgrades) ProtoReflect() protoreflect.Message { mi := &file_protocol_upgrade_upgrade_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 SCClientUpgrades.ProtoReflect.Descriptor instead. func (*SCClientUpgrades) Descriptor() ([]byte, []int) { return file_protocol_upgrade_upgrade_proto_rawDescGZIP(), []int{2} } func (x *SCClientUpgrades) GetOn() bool { if x != nil { return x.On } return false } func (x *SCClientUpgrades) GetOnForce() bool { if x != nil { return x.OnForce } return false } func (x *SCClientUpgrades) GetAward() []*PropInfo { if x != nil { return x.Award } return nil } func (x *SCClientUpgrades) GetVersion() int32 { if x != nil { return x.Version } return 0 } var File_protocol_upgrade_upgrade_proto protoreflect.FileDescriptor var file_protocol_upgrade_upgrade_proto_rawDesc = []byte{ 0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x2f, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x22, 0x3c, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x49, 0x74, 0x65, 0x6d, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x49, 0x74, 0x65, 0x6d, 0x4e, 0x75, 0x6d, 0x22, 0x12, 0x0a, 0x10, 0x43, 0x53, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x73, 0x22, 0x7f, 0x0a, 0x10, 0x53, 0x43, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x4f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x6e, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x4f, 0x6e, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x41, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x41, 0x77, 0x61, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x59, 0x0a, 0x08, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x44, 0x5f, 0x5a, 0x65, 0x72, 0x6f, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x17, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x43, 0x53, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x73, 0x10, 0x9c, 0x18, 0x12, 0x1c, 0x0a, 0x17, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x53, 0x43, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x73, 0x10, 0x9d, 0x18, 0x42, 0x27, 0x5a, 0x25, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_protocol_upgrade_upgrade_proto_rawDescOnce sync.Once file_protocol_upgrade_upgrade_proto_rawDescData = file_protocol_upgrade_upgrade_proto_rawDesc ) func file_protocol_upgrade_upgrade_proto_rawDescGZIP() []byte { file_protocol_upgrade_upgrade_proto_rawDescOnce.Do(func() { file_protocol_upgrade_upgrade_proto_rawDescData = protoimpl.X.CompressGZIP(file_protocol_upgrade_upgrade_proto_rawDescData) }) return file_protocol_upgrade_upgrade_proto_rawDescData } var file_protocol_upgrade_upgrade_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_protocol_upgrade_upgrade_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_protocol_upgrade_upgrade_proto_goTypes = []interface{}{ (PacketID)(0), // 0: upgrade.PacketID (*PropInfo)(nil), // 1: upgrade.PropInfo (*CSClientUpgrades)(nil), // 2: upgrade.CSClientUpgrades (*SCClientUpgrades)(nil), // 3: upgrade.SCClientUpgrades } var file_protocol_upgrade_upgrade_proto_depIdxs = []int32{ 1, // 0: upgrade.SCClientUpgrades.Award:type_name -> upgrade.PropInfo 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_protocol_upgrade_upgrade_proto_init() } func file_protocol_upgrade_upgrade_proto_init() { if File_protocol_upgrade_upgrade_proto != nil { return } if !protoimpl.UnsafeEnabled { file_protocol_upgrade_upgrade_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PropInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_protocol_upgrade_upgrade_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CSClientUpgrades); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_protocol_upgrade_upgrade_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SCClientUpgrades); 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_protocol_upgrade_upgrade_proto_rawDesc, NumEnums: 1, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, GoTypes: file_protocol_upgrade_upgrade_proto_goTypes, DependencyIndexes: file_protocol_upgrade_upgrade_proto_depIdxs, EnumInfos: file_protocol_upgrade_upgrade_proto_enumTypes, MessageInfos: file_protocol_upgrade_upgrade_proto_msgTypes, }.Build() File_protocol_upgrade_upgrade_proto = out.File file_protocol_upgrade_upgrade_proto_rawDesc = nil file_protocol_upgrade_upgrade_proto_goTypes = nil file_protocol_upgrade_upgrade_proto_depIdxs = nil }