// message结构的属性名请使用 驼峰小写字母开始 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.8 // protoc v6.31.1 // source: vip.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) ) // VIP信息 type VipInfo struct { state protoimpl.MessageState `protogen:"open.v1"` // vip等级 Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"` // vip点数 Exp int64 `protobuf:"varint,2,opt,name=exp,proto3" json:"exp,omitempty"` // vip属性 Attrs *Attrs `protobuf:"bytes,3,opt,name=attrs,proto3" json:"attrs,omitempty"` // 过期时间(毫秒) ExpireTime int64 `protobuf:"varint,4,opt,name=expireTime,proto3" json:"expireTime,omitempty"` // 每日宝箱是否已经领取 IsDailyBoxReceived bool `protobuf:"varint,5,opt,name=isDailyBoxReceived,proto3" json:"isDailyBoxReceived,omitempty"` // 每日vip点数是否已经领取 IsDailyExpReceived bool `protobuf:"varint,6,opt,name=isDailyExpReceived,proto3" json:"isDailyExpReceived,omitempty"` // 连续登录天数 ContinuousLoginDays int32 `protobuf:"varint,7,opt,name=continuousLoginDays,proto3" json:"continuousLoginDays,omitempty"` // 专属宝箱充值状态 key:vip等级 value:是否已领取 SpecialBoxStates map[int32]bool `protobuf:"bytes,8,rep,name=specialBoxStates,proto3" json:"specialBoxStates,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *VipInfo) Reset() { *x = VipInfo{} mi := &file_vip_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *VipInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*VipInfo) ProtoMessage() {} func (x *VipInfo) ProtoReflect() protoreflect.Message { mi := &file_vip_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 VipInfo.ProtoReflect.Descriptor instead. func (*VipInfo) Descriptor() ([]byte, []int) { return file_vip_proto_rawDescGZIP(), []int{0} } func (x *VipInfo) GetLevel() int32 { if x != nil { return x.Level } return 0 } func (x *VipInfo) GetExp() int64 { if x != nil { return x.Exp } return 0 } func (x *VipInfo) GetAttrs() *Attrs { if x != nil { return x.Attrs } return nil } func (x *VipInfo) GetExpireTime() int64 { if x != nil { return x.ExpireTime } return 0 } func (x *VipInfo) GetIsDailyBoxReceived() bool { if x != nil { return x.IsDailyBoxReceived } return false } func (x *VipInfo) GetIsDailyExpReceived() bool { if x != nil { return x.IsDailyExpReceived } return false } func (x *VipInfo) GetContinuousLoginDays() int32 { if x != nil { return x.ContinuousLoginDays } return 0 } func (x *VipInfo) GetSpecialBoxStates() map[int32]bool { if x != nil { return x.SpecialBoxStates } return nil } var File_vip_proto protoreflect.FileDescriptor const file_vip_proto_rawDesc = "" + "\n" + "\tvip.proto\x12\x02pb\x1a\x0fbase_type.proto\"\x98\x03\n" + "\aVipInfo\x12\x14\n" + "\x05level\x18\x01 \x01(\x05R\x05level\x12\x10\n" + "\x03exp\x18\x02 \x01(\x03R\x03exp\x12\x1f\n" + "\x05attrs\x18\x03 \x01(\v2\t.pb.AttrsR\x05attrs\x12\x1e\n" + "\n" + "expireTime\x18\x04 \x01(\x03R\n" + "expireTime\x12.\n" + "\x12isDailyBoxReceived\x18\x05 \x01(\bR\x12isDailyBoxReceived\x12.\n" + "\x12isDailyExpReceived\x18\x06 \x01(\bR\x12isDailyExpReceived\x120\n" + "\x13continuousLoginDays\x18\a \x01(\x05R\x13continuousLoginDays\x12M\n" + "\x10specialBoxStates\x18\b \x03(\v2!.pb.VipInfo.SpecialBoxStatesEntryR\x10specialBoxStates\x1aC\n" + "\x15SpecialBoxStatesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\bR\x05value:\x028\x01B\x05Z\x03/pbb\x06proto3" var ( file_vip_proto_rawDescOnce sync.Once file_vip_proto_rawDescData []byte ) func file_vip_proto_rawDescGZIP() []byte { file_vip_proto_rawDescOnce.Do(func() { file_vip_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_vip_proto_rawDesc), len(file_vip_proto_rawDesc))) }) return file_vip_proto_rawDescData } var file_vip_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_vip_proto_goTypes = []any{ (*VipInfo)(nil), // 0: pb.VipInfo nil, // 1: pb.VipInfo.SpecialBoxStatesEntry (*Attrs)(nil), // 2: pb.Attrs } var file_vip_proto_depIdxs = []int32{ 2, // 0: pb.VipInfo.attrs:type_name -> pb.Attrs 1, // 1: pb.VipInfo.specialBoxStates:type_name -> pb.VipInfo.SpecialBoxStatesEntry 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_vip_proto_init() } func file_vip_proto_init() { if File_vip_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_vip_proto_rawDesc), len(file_vip_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_vip_proto_goTypes, DependencyIndexes: file_vip_proto_depIdxs, MessageInfos: file_vip_proto_msgTypes, }.Build() File_vip_proto = out.File file_vip_proto_goTypes = nil file_vip_proto_depIdxs = nil }