clinic.pb.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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: clinic.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 ClinicRecovery struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 需要治疗的英雄 key为英雄唯一ID,value为治疗量
  25. Heros []*I64I32 `protobuf:"bytes,1,rep,name=heros,proto3" json:"heros,omitempty"`
  26. // 补充药剂数量 默认为0
  27. MedicineCount int32 `protobuf:"varint,2,opt,name=medicineCount,proto3" json:"medicineCount,omitempty"`
  28. unknownFields protoimpl.UnknownFields
  29. sizeCache protoimpl.SizeCache
  30. }
  31. func (x *ClinicRecovery) Reset() {
  32. *x = ClinicRecovery{}
  33. mi := &file_clinic_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. func (x *ClinicRecovery) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*ClinicRecovery) ProtoMessage() {}
  41. func (x *ClinicRecovery) ProtoReflect() protoreflect.Message {
  42. mi := &file_clinic_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 ClinicRecovery.ProtoReflect.Descriptor instead.
  53. func (*ClinicRecovery) Descriptor() ([]byte, []int) {
  54. return file_clinic_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *ClinicRecovery) GetHeros() []*I64I32 {
  57. if x != nil {
  58. return x.Heros
  59. }
  60. return nil
  61. }
  62. func (x *ClinicRecovery) GetMedicineCount() int32 {
  63. if x != nil {
  64. return x.MedicineCount
  65. }
  66. return 0
  67. }
  68. var File_clinic_proto protoreflect.FileDescriptor
  69. const file_clinic_proto_rawDesc = "" +
  70. "\n" +
  71. "\fclinic.proto\x12\x02pb\x1a\x0fbase_type.proto\"X\n" +
  72. "\x0eClinicRecovery\x12 \n" +
  73. "\x05heros\x18\x01 \x03(\v2\n" +
  74. ".pb.I64I32R\x05heros\x12$\n" +
  75. "\rmedicineCount\x18\x02 \x01(\x05R\rmedicineCountB\x05Z\x03/pbb\x06proto3"
  76. var (
  77. file_clinic_proto_rawDescOnce sync.Once
  78. file_clinic_proto_rawDescData []byte
  79. )
  80. func file_clinic_proto_rawDescGZIP() []byte {
  81. file_clinic_proto_rawDescOnce.Do(func() {
  82. file_clinic_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_clinic_proto_rawDesc), len(file_clinic_proto_rawDesc)))
  83. })
  84. return file_clinic_proto_rawDescData
  85. }
  86. var file_clinic_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  87. var file_clinic_proto_goTypes = []any{
  88. (*ClinicRecovery)(nil), // 0: pb.ClinicRecovery
  89. (*I64I32)(nil), // 1: pb.I64I32
  90. }
  91. var file_clinic_proto_depIdxs = []int32{
  92. 1, // 0: pb.ClinicRecovery.heros:type_name -> pb.I64I32
  93. 1, // [1:1] is the sub-list for method output_type
  94. 1, // [1:1] is the sub-list for method input_type
  95. 1, // [1:1] is the sub-list for extension type_name
  96. 1, // [1:1] is the sub-list for extension extendee
  97. 0, // [0:1] is the sub-list for field type_name
  98. }
  99. func init() { file_clinic_proto_init() }
  100. func file_clinic_proto_init() {
  101. if File_clinic_proto != nil {
  102. return
  103. }
  104. file_base_type_proto_init()
  105. type x struct{}
  106. out := protoimpl.TypeBuilder{
  107. File: protoimpl.DescBuilder{
  108. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  109. RawDescriptor: unsafe.Slice(unsafe.StringData(file_clinic_proto_rawDesc), len(file_clinic_proto_rawDesc)),
  110. NumEnums: 0,
  111. NumMessages: 1,
  112. NumExtensions: 0,
  113. NumServices: 0,
  114. },
  115. GoTypes: file_clinic_proto_goTypes,
  116. DependencyIndexes: file_clinic_proto_depIdxs,
  117. MessageInfos: file_clinic_proto_msgTypes,
  118. }.Build()
  119. File_clinic_proto = out.File
  120. file_clinic_proto_goTypes = nil
  121. file_clinic_proto_depIdxs = nil
  122. }