// message结构的属性名请使用 驼峰小写字母开始 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc v6.31.1 // source: clinic.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 ClinicRecovery struct { state protoimpl.MessageState `protogen:"open.v1"` // 需要治疗的英雄 key为英雄唯一ID,value为治疗量 Heros []*I64I32 `protobuf:"bytes,1,rep,name=heros,proto3" json:"heros,omitempty"` // 补充药剂数量 默认为0 MedicineCount int32 `protobuf:"varint,2,opt,name=medicineCount,proto3" json:"medicineCount,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ClinicRecovery) Reset() { *x = ClinicRecovery{} mi := &file_clinic_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ClinicRecovery) String() string { return protoimpl.X.MessageStringOf(x) } func (*ClinicRecovery) ProtoMessage() {} func (x *ClinicRecovery) ProtoReflect() protoreflect.Message { mi := &file_clinic_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 ClinicRecovery.ProtoReflect.Descriptor instead. func (*ClinicRecovery) Descriptor() ([]byte, []int) { return file_clinic_proto_rawDescGZIP(), []int{0} } func (x *ClinicRecovery) GetHeros() []*I64I32 { if x != nil { return x.Heros } return nil } func (x *ClinicRecovery) GetMedicineCount() int32 { if x != nil { return x.MedicineCount } return 0 } var File_clinic_proto protoreflect.FileDescriptor const file_clinic_proto_rawDesc = "" + "\n" + "\fclinic.proto\x12\x02pb\x1a\x0fbase_type.proto\"X\n" + "\x0eClinicRecovery\x12 \n" + "\x05heros\x18\x01 \x03(\v2\n" + ".pb.I64I32R\x05heros\x12$\n" + "\rmedicineCount\x18\x02 \x01(\x05R\rmedicineCountB\x05Z\x03/pbb\x06proto3" var ( file_clinic_proto_rawDescOnce sync.Once file_clinic_proto_rawDescData []byte ) func file_clinic_proto_rawDescGZIP() []byte { file_clinic_proto_rawDescOnce.Do(func() { file_clinic_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_clinic_proto_rawDesc), len(file_clinic_proto_rawDesc))) }) return file_clinic_proto_rawDescData } var file_clinic_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_clinic_proto_goTypes = []any{ (*ClinicRecovery)(nil), // 0: pb.ClinicRecovery (*I64I32)(nil), // 1: pb.I64I32 } var file_clinic_proto_depIdxs = []int32{ 1, // 0: pb.ClinicRecovery.heros:type_name -> pb.I64I32 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_clinic_proto_init() } func file_clinic_proto_init() { if File_clinic_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_clinic_proto_rawDesc), len(file_clinic_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, GoTypes: file_clinic_proto_goTypes, DependencyIndexes: file_clinic_proto_depIdxs, MessageInfos: file_clinic_proto_msgTypes, }.Build() File_clinic_proto = out.File file_clinic_proto_goTypes = nil file_clinic_proto_depIdxs = nil }