| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: minigame.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 MiniGameSettle struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // 当前关卡ID
- LevelID int32 `protobuf:"varint,1,opt,name=levelID,proto3" json:"levelID,omitempty"`
- // 奖励列表
- Rewards *AssetList `protobuf:"bytes,2,opt,name=rewards,proto3" json:"rewards,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *MiniGameSettle) Reset() {
- *x = MiniGameSettle{}
- mi := &file_minigame_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *MiniGameSettle) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*MiniGameSettle) ProtoMessage() {}
- func (x *MiniGameSettle) ProtoReflect() protoreflect.Message {
- mi := &file_minigame_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 MiniGameSettle.ProtoReflect.Descriptor instead.
- func (*MiniGameSettle) Descriptor() ([]byte, []int) {
- return file_minigame_proto_rawDescGZIP(), []int{0}
- }
- func (x *MiniGameSettle) GetLevelID() int32 {
- if x != nil {
- return x.LevelID
- }
- return 0
- }
- func (x *MiniGameSettle) GetRewards() *AssetList {
- if x != nil {
- return x.Rewards
- }
- return nil
- }
- var File_minigame_proto protoreflect.FileDescriptor
- const file_minigame_proto_rawDesc = "" +
- "\n" +
- "\x0eminigame.proto\x12\x02pb\x1a\x0fbase_type.proto\"S\n" +
- "\x0eMiniGameSettle\x12\x18\n" +
- "\alevelID\x18\x01 \x01(\x05R\alevelID\x12'\n" +
- "\arewards\x18\x02 \x01(\v2\r.pb.AssetListR\arewardsB\x05Z\x03/pbb\x06proto3"
- var (
- file_minigame_proto_rawDescOnce sync.Once
- file_minigame_proto_rawDescData []byte
- )
- func file_minigame_proto_rawDescGZIP() []byte {
- file_minigame_proto_rawDescOnce.Do(func() {
- file_minigame_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_minigame_proto_rawDesc), len(file_minigame_proto_rawDesc)))
- })
- return file_minigame_proto_rawDescData
- }
- var file_minigame_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
- var file_minigame_proto_goTypes = []any{
- (*MiniGameSettle)(nil), // 0: pb.MiniGameSettle
- (*AssetList)(nil), // 1: pb.AssetList
- }
- var file_minigame_proto_depIdxs = []int32{
- 1, // 0: pb.MiniGameSettle.rewards:type_name -> pb.AssetList
- 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_minigame_proto_init() }
- func file_minigame_proto_init() {
- if File_minigame_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_minigame_proto_rawDesc), len(file_minigame_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 1,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_minigame_proto_goTypes,
- DependencyIndexes: file_minigame_proto_depIdxs,
- MessageInfos: file_minigame_proto_msgTypes,
- }.Build()
- File_minigame_proto = out.File
- file_minigame_proto_goTypes = nil
- file_minigame_proto_depIdxs = nil
- }
|