minigame.pb.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // message结构的属性名请使用 驼峰小写字母开始
  2. // Code generated by protoc-gen-go. DO NOT EDIT.
  3. // versions:
  4. // protoc-gen-go v1.36.8
  5. // protoc v6.31.1
  6. // source: minigame.proto
  7. package pb
  8. import (
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // 小游戏结算
  22. type MiniGameSettle struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 当前关卡ID
  25. LevelID int32 `protobuf:"varint,1,opt,name=levelID,proto3" json:"levelID,omitempty"`
  26. // 奖励列表
  27. Rewards *AssetList `protobuf:"bytes,2,opt,name=rewards,proto3" json:"rewards,omitempty"`
  28. unknownFields protoimpl.UnknownFields
  29. sizeCache protoimpl.SizeCache
  30. }
  31. func (x *MiniGameSettle) Reset() {
  32. *x = MiniGameSettle{}
  33. mi := &file_minigame_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. func (x *MiniGameSettle) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*MiniGameSettle) ProtoMessage() {}
  41. func (x *MiniGameSettle) ProtoReflect() protoreflect.Message {
  42. mi := &file_minigame_proto_msgTypes[0]
  43. if x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use MiniGameSettle.ProtoReflect.Descriptor instead.
  53. func (*MiniGameSettle) Descriptor() ([]byte, []int) {
  54. return file_minigame_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *MiniGameSettle) GetLevelID() int32 {
  57. if x != nil {
  58. return x.LevelID
  59. }
  60. return 0
  61. }
  62. func (x *MiniGameSettle) GetRewards() *AssetList {
  63. if x != nil {
  64. return x.Rewards
  65. }
  66. return nil
  67. }
  68. var File_minigame_proto protoreflect.FileDescriptor
  69. const file_minigame_proto_rawDesc = "" +
  70. "\n" +
  71. "\x0eminigame.proto\x12\x02pb\x1a\x0fbase_type.proto\"S\n" +
  72. "\x0eMiniGameSettle\x12\x18\n" +
  73. "\alevelID\x18\x01 \x01(\x05R\alevelID\x12'\n" +
  74. "\arewards\x18\x02 \x01(\v2\r.pb.AssetListR\arewardsB\x05Z\x03/pbb\x06proto3"
  75. var (
  76. file_minigame_proto_rawDescOnce sync.Once
  77. file_minigame_proto_rawDescData []byte
  78. )
  79. func file_minigame_proto_rawDescGZIP() []byte {
  80. file_minigame_proto_rawDescOnce.Do(func() {
  81. file_minigame_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_minigame_proto_rawDesc), len(file_minigame_proto_rawDesc)))
  82. })
  83. return file_minigame_proto_rawDescData
  84. }
  85. var file_minigame_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  86. var file_minigame_proto_goTypes = []any{
  87. (*MiniGameSettle)(nil), // 0: pb.MiniGameSettle
  88. (*AssetList)(nil), // 1: pb.AssetList
  89. }
  90. var file_minigame_proto_depIdxs = []int32{
  91. 1, // 0: pb.MiniGameSettle.rewards:type_name -> pb.AssetList
  92. 1, // [1:1] is the sub-list for method output_type
  93. 1, // [1:1] is the sub-list for method input_type
  94. 1, // [1:1] is the sub-list for extension type_name
  95. 1, // [1:1] is the sub-list for extension extendee
  96. 0, // [0:1] is the sub-list for field type_name
  97. }
  98. func init() { file_minigame_proto_init() }
  99. func file_minigame_proto_init() {
  100. if File_minigame_proto != nil {
  101. return
  102. }
  103. file_base_type_proto_init()
  104. type x struct{}
  105. out := protoimpl.TypeBuilder{
  106. File: protoimpl.DescBuilder{
  107. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  108. RawDescriptor: unsafe.Slice(unsafe.StringData(file_minigame_proto_rawDesc), len(file_minigame_proto_rawDesc)),
  109. NumEnums: 0,
  110. NumMessages: 1,
  111. NumExtensions: 0,
  112. NumServices: 0,
  113. },
  114. GoTypes: file_minigame_proto_goTypes,
  115. DependencyIndexes: file_minigame_proto_depIdxs,
  116. MessageInfos: file_minigame_proto_msgTypes,
  117. }.Build()
  118. File_minigame_proto = out.File
  119. file_minigame_proto_goTypes = nil
  120. file_minigame_proto_depIdxs = nil
  121. }