skill.pb.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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: skill.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 Skill struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 技能 id
  25. SkillID int32 `protobuf:"varint,1,opt,name=skillID,proto3" json:"skillID,omitempty"`
  26. // 配置的武将
  27. Heroes []int64 `protobuf:"varint,2,rep,packed,name=heroes,proto3" json:"heroes,omitempty"`
  28. // 阶级
  29. Evolve int32 `protobuf:"varint,3,opt,name=evolve,proto3" json:"evolve,omitempty"`
  30. unknownFields protoimpl.UnknownFields
  31. sizeCache protoimpl.SizeCache
  32. }
  33. func (x *Skill) Reset() {
  34. *x = Skill{}
  35. mi := &file_skill_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. func (x *Skill) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*Skill) ProtoMessage() {}
  43. func (x *Skill) ProtoReflect() protoreflect.Message {
  44. mi := &file_skill_proto_msgTypes[0]
  45. if x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use Skill.ProtoReflect.Descriptor instead.
  55. func (*Skill) Descriptor() ([]byte, []int) {
  56. return file_skill_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *Skill) GetSkillID() int32 {
  59. if x != nil {
  60. return x.SkillID
  61. }
  62. return 0
  63. }
  64. func (x *Skill) GetHeroes() []int64 {
  65. if x != nil {
  66. return x.Heroes
  67. }
  68. return nil
  69. }
  70. func (x *Skill) GetEvolve() int32 {
  71. if x != nil {
  72. return x.Evolve
  73. }
  74. return 0
  75. }
  76. type SkillList struct {
  77. state protoimpl.MessageState `protogen:"open.v1"`
  78. List []*Skill `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
  79. unknownFields protoimpl.UnknownFields
  80. sizeCache protoimpl.SizeCache
  81. }
  82. func (x *SkillList) Reset() {
  83. *x = SkillList{}
  84. mi := &file_skill_proto_msgTypes[1]
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. ms.StoreMessageInfo(mi)
  87. }
  88. func (x *SkillList) String() string {
  89. return protoimpl.X.MessageStringOf(x)
  90. }
  91. func (*SkillList) ProtoMessage() {}
  92. func (x *SkillList) ProtoReflect() protoreflect.Message {
  93. mi := &file_skill_proto_msgTypes[1]
  94. if x != nil {
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. if ms.LoadMessageInfo() == nil {
  97. ms.StoreMessageInfo(mi)
  98. }
  99. return ms
  100. }
  101. return mi.MessageOf(x)
  102. }
  103. // Deprecated: Use SkillList.ProtoReflect.Descriptor instead.
  104. func (*SkillList) Descriptor() ([]byte, []int) {
  105. return file_skill_proto_rawDescGZIP(), []int{1}
  106. }
  107. func (x *SkillList) GetList() []*Skill {
  108. if x != nil {
  109. return x.List
  110. }
  111. return nil
  112. }
  113. // [请求] 技能学习
  114. type SkillStudyRequest struct {
  115. state protoimpl.MessageState `protogen:"open.v1"`
  116. // 技能 ID
  117. SkillID int32 `protobuf:"varint,1,opt,name=skillID,proto3" json:"skillID,omitempty"`
  118. // 英雄唯一 ID
  119. HeroGUID int64 `protobuf:"varint,2,opt,name=heroGUID,proto3" json:"heroGUID,omitempty"`
  120. // 技能下标 (只能是 1 和 2)
  121. SkillIndex int32 `protobuf:"varint,3,opt,name=skillIndex,proto3" json:"skillIndex,omitempty"`
  122. unknownFields protoimpl.UnknownFields
  123. sizeCache protoimpl.SizeCache
  124. }
  125. func (x *SkillStudyRequest) Reset() {
  126. *x = SkillStudyRequest{}
  127. mi := &file_skill_proto_msgTypes[2]
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. ms.StoreMessageInfo(mi)
  130. }
  131. func (x *SkillStudyRequest) String() string {
  132. return protoimpl.X.MessageStringOf(x)
  133. }
  134. func (*SkillStudyRequest) ProtoMessage() {}
  135. func (x *SkillStudyRequest) ProtoReflect() protoreflect.Message {
  136. mi := &file_skill_proto_msgTypes[2]
  137. if x != nil {
  138. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  139. if ms.LoadMessageInfo() == nil {
  140. ms.StoreMessageInfo(mi)
  141. }
  142. return ms
  143. }
  144. return mi.MessageOf(x)
  145. }
  146. // Deprecated: Use SkillStudyRequest.ProtoReflect.Descriptor instead.
  147. func (*SkillStudyRequest) Descriptor() ([]byte, []int) {
  148. return file_skill_proto_rawDescGZIP(), []int{2}
  149. }
  150. func (x *SkillStudyRequest) GetSkillID() int32 {
  151. if x != nil {
  152. return x.SkillID
  153. }
  154. return 0
  155. }
  156. func (x *SkillStudyRequest) GetHeroGUID() int64 {
  157. if x != nil {
  158. return x.HeroGUID
  159. }
  160. return 0
  161. }
  162. func (x *SkillStudyRequest) GetSkillIndex() int32 {
  163. if x != nil {
  164. return x.SkillIndex
  165. }
  166. return 0
  167. }
  168. var File_skill_proto protoreflect.FileDescriptor
  169. const file_skill_proto_rawDesc = "" +
  170. "\n" +
  171. "\vskill.proto\x12\x02pb\"Q\n" +
  172. "\x05Skill\x12\x18\n" +
  173. "\askillID\x18\x01 \x01(\x05R\askillID\x12\x16\n" +
  174. "\x06heroes\x18\x02 \x03(\x03R\x06heroes\x12\x16\n" +
  175. "\x06evolve\x18\x03 \x01(\x05R\x06evolve\"*\n" +
  176. "\tSkillList\x12\x1d\n" +
  177. "\x04list\x18\x01 \x03(\v2\t.pb.SkillR\x04list\"i\n" +
  178. "\x11SkillStudyRequest\x12\x18\n" +
  179. "\askillID\x18\x01 \x01(\x05R\askillID\x12\x1a\n" +
  180. "\bheroGUID\x18\x02 \x01(\x03R\bheroGUID\x12\x1e\n" +
  181. "\n" +
  182. "skillIndex\x18\x03 \x01(\x05R\n" +
  183. "skillIndexB\x05Z\x03/pbb\x06proto3"
  184. var (
  185. file_skill_proto_rawDescOnce sync.Once
  186. file_skill_proto_rawDescData []byte
  187. )
  188. func file_skill_proto_rawDescGZIP() []byte {
  189. file_skill_proto_rawDescOnce.Do(func() {
  190. file_skill_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_skill_proto_rawDesc), len(file_skill_proto_rawDesc)))
  191. })
  192. return file_skill_proto_rawDescData
  193. }
  194. var file_skill_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  195. var file_skill_proto_goTypes = []any{
  196. (*Skill)(nil), // 0: pb.Skill
  197. (*SkillList)(nil), // 1: pb.SkillList
  198. (*SkillStudyRequest)(nil), // 2: pb.SkillStudyRequest
  199. }
  200. var file_skill_proto_depIdxs = []int32{
  201. 0, // 0: pb.SkillList.list:type_name -> pb.Skill
  202. 1, // [1:1] is the sub-list for method output_type
  203. 1, // [1:1] is the sub-list for method input_type
  204. 1, // [1:1] is the sub-list for extension type_name
  205. 1, // [1:1] is the sub-list for extension extendee
  206. 0, // [0:1] is the sub-list for field type_name
  207. }
  208. func init() { file_skill_proto_init() }
  209. func file_skill_proto_init() {
  210. if File_skill_proto != nil {
  211. return
  212. }
  213. type x struct{}
  214. out := protoimpl.TypeBuilder{
  215. File: protoimpl.DescBuilder{
  216. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  217. RawDescriptor: unsafe.Slice(unsafe.StringData(file_skill_proto_rawDesc), len(file_skill_proto_rawDesc)),
  218. NumEnums: 0,
  219. NumMessages: 3,
  220. NumExtensions: 0,
  221. NumServices: 0,
  222. },
  223. GoTypes: file_skill_proto_goTypes,
  224. DependencyIndexes: file_skill_proto_depIdxs,
  225. MessageInfos: file_skill_proto_msgTypes,
  226. }.Build()
  227. File_skill_proto = out.File
  228. file_skill_proto_goTypes = nil
  229. file_skill_proto_depIdxs = nil
  230. }