// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v7.35.0
// source: proto/events/luckygift/v1/events.proto

package luckygifteventsv1

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)
)

// EventEnvelope 是 lucky-gift-service 发布 owner outbox 事实的稳定信封。
// occurred_at_ms 固定为抽奖事实创建时的 Unix epoch milliseconds；MQ 实际发送时间不改变业务发生时间。
type EventEnvelope struct {
	state     protoimpl.MessageState `protogen:"open.v1"`
	EventId   string                 `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	EventType string                 `protobuf:"bytes,2,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	AppCode   string                 `protobuf:"bytes,3,opt,name=app_code,json=appCode,proto3" json:"app_code,omitempty"`
	// draw_id 是本次送礼命令的聚合中奖标识；批量子抽明细仍只保存在 lucky owner 数据库，不能放大 MQ 负载。
	DrawId        string `protobuf:"bytes,4,opt,name=draw_id,json=drawId,proto3" json:"draw_id,omitempty"`
	OccurredAtMs  int64  `protobuf:"varint,5,opt,name=occurred_at_ms,json=occurredAtMs,proto3" json:"occurred_at_ms,omitempty"`
	Body          []byte `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *EventEnvelope) Reset() {
	*x = EventEnvelope{}
	mi := &file_proto_events_luckygift_v1_events_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *EventEnvelope) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*EventEnvelope) ProtoMessage() {}

func (x *EventEnvelope) ProtoReflect() protoreflect.Message {
	mi := &file_proto_events_luckygift_v1_events_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 EventEnvelope.ProtoReflect.Descriptor instead.
func (*EventEnvelope) Descriptor() ([]byte, []int) {
	return file_proto_events_luckygift_v1_events_proto_rawDescGZIP(), []int{0}
}

func (x *EventEnvelope) GetEventId() string {
	if x != nil {
		return x.EventId
	}
	return ""
}

func (x *EventEnvelope) GetEventType() string {
	if x != nil {
		return x.EventType
	}
	return ""
}

func (x *EventEnvelope) GetAppCode() string {
	if x != nil {
		return x.AppCode
	}
	return ""
}

func (x *EventEnvelope) GetDrawId() string {
	if x != nil {
		return x.DrawId
	}
	return ""
}

func (x *EventEnvelope) GetOccurredAtMs() int64 {
	if x != nil {
		return x.OccurredAtMs
	}
	return 0
}

func (x *EventEnvelope) GetBody() []byte {
	if x != nil {
		return x.Body
	}
	return nil
}

// LuckyGiftDrawn 表达钱包返奖已经 granted 的幸运礼物中奖事实。
// lucky-gift-service 必须先完成 wallet-service 入账和本地 granted 收敛，再发布本事件；
// room-service 与 activity-service 只从该事实派生房内 IM 和区域飘屏，不能反向改变抽奖或账务状态。
type LuckyGiftDrawn struct {
	state        protoimpl.MessageState `protogen:"open.v1"`
	DrawId       string                 `protobuf:"bytes,1,opt,name=draw_id,json=drawId,proto3" json:"draw_id,omitempty"`
	CommandId    string                 `protobuf:"bytes,2,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	RoomId       string                 `protobuf:"bytes,3,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	PoolId       string                 `protobuf:"bytes,4,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	GiftId       string                 `protobuf:"bytes,5,opt,name=gift_id,json=giftId,proto3" json:"gift_id,omitempty"`
	GiftCount    int32                  `protobuf:"varint,6,opt,name=gift_count,json=giftCount,proto3" json:"gift_count,omitempty"`
	SenderUserId int64                  `protobuf:"varint,7,opt,name=sender_user_id,json=senderUserId,proto3" json:"sender_user_id,omitempty"`
	TargetUserId int64                  `protobuf:"varint,8,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
	// 展示资料是送礼入口固化的快照；消费者不应为了飘屏高频同步反查 user-service。
	SenderName                string `protobuf:"bytes,9,opt,name=sender_name,json=senderName,proto3" json:"sender_name,omitempty"`
	SenderAvatar              string `protobuf:"bytes,10,opt,name=sender_avatar,json=senderAvatar,proto3" json:"sender_avatar,omitempty"`
	SenderDisplayUserId       string `protobuf:"bytes,11,opt,name=sender_display_user_id,json=senderDisplayUserId,proto3" json:"sender_display_user_id,omitempty"`
	SenderPrettyDisplayUserId string `protobuf:"bytes,12,opt,name=sender_pretty_display_user_id,json=senderPrettyDisplayUserId,proto3" json:"sender_pretty_display_user_id,omitempty"`
	// visible_region_id 是房间可见区域，区域播报不能用客户端 IP 或服务所在地推断。
	VisibleRegionId      int64  `protobuf:"varint,13,opt,name=visible_region_id,json=visibleRegionId,proto3" json:"visible_region_id,omitempty"`
	CountryId            int64  `protobuf:"varint,14,opt,name=country_id,json=countryId,proto3" json:"country_id,omitempty"`
	CoinSpent            int64  `protobuf:"varint,15,opt,name=coin_spent,json=coinSpent,proto3" json:"coin_spent,omitempty"`
	RuleVersion          int64  `protobuf:"varint,16,opt,name=rule_version,json=ruleVersion,proto3" json:"rule_version,omitempty"`
	ExperiencePool       string `protobuf:"bytes,17,opt,name=experience_pool,json=experiencePool,proto3" json:"experience_pool,omitempty"`
	SelectedTierId       string `protobuf:"bytes,18,opt,name=selected_tier_id,json=selectedTierId,proto3" json:"selected_tier_id,omitempty"`
	MultiplierPpm        int64  `protobuf:"varint,19,opt,name=multiplier_ppm,json=multiplierPpm,proto3" json:"multiplier_ppm,omitempty"`
	BaseRewardCoins      int64  `protobuf:"varint,20,opt,name=base_reward_coins,json=baseRewardCoins,proto3" json:"base_reward_coins,omitempty"`
	EffectiveRewardCoins int64  `protobuf:"varint,21,opt,name=effective_reward_coins,json=effectiveRewardCoins,proto3" json:"effective_reward_coins,omitempty"`
	StageFeedback        bool   `protobuf:"varint,22,opt,name=stage_feedback,json=stageFeedback,proto3" json:"stage_feedback,omitempty"`
	HighMultiplier       bool   `protobuf:"varint,23,opt,name=high_multiplier,json=highMultiplier,proto3" json:"high_multiplier,omitempty"`
	// reward_status 在本事件中只能是 granted；保留字段是为了下游 JSON 与现有 Flutter 协议同名映射。
	RewardStatus        string `protobuf:"bytes,24,opt,name=reward_status,json=rewardStatus,proto3" json:"reward_status,omitempty"`
	WalletTransactionId string `protobuf:"bytes,25,opt,name=wallet_transaction_id,json=walletTransactionId,proto3" json:"wallet_transaction_id,omitempty"`
	// 两个时间均为 UTC Unix epoch milliseconds：抽奖发生时间与钱包返奖确认时间不能混用。
	DrawCreatedAtMs   int64 `protobuf:"varint,26,opt,name=draw_created_at_ms,json=drawCreatedAtMs,proto3" json:"draw_created_at_ms,omitempty"`
	RewardGrantedAtMs int64 `protobuf:"varint,27,opt,name=reward_granted_at_ms,json=rewardGrantedAtMs,proto3" json:"reward_granted_at_ms,omitempty"`
	// room_locked 是 room-service 在原始送礼命令内固化的 Room Cell 锁状态；下游不能异步回查当前房间再改写历史事实。
	RoomLocked bool `protobuf:"varint,28,opt,name=room_locked,json=roomLocked,proto3" json:"room_locked,omitempty"`
	// owner_user_id 是原始送礼命令内固化的房主快照，只用于跨房展示交互，不参与抽奖或返奖。
	OwnerUserId   int64 `protobuf:"varint,29,opt,name=owner_user_id,json=ownerUserId,proto3" json:"owner_user_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *LuckyGiftDrawn) Reset() {
	*x = LuckyGiftDrawn{}
	mi := &file_proto_events_luckygift_v1_events_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *LuckyGiftDrawn) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*LuckyGiftDrawn) ProtoMessage() {}

func (x *LuckyGiftDrawn) ProtoReflect() protoreflect.Message {
	mi := &file_proto_events_luckygift_v1_events_proto_msgTypes[1]
	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 LuckyGiftDrawn.ProtoReflect.Descriptor instead.
func (*LuckyGiftDrawn) Descriptor() ([]byte, []int) {
	return file_proto_events_luckygift_v1_events_proto_rawDescGZIP(), []int{1}
}

func (x *LuckyGiftDrawn) GetDrawId() string {
	if x != nil {
		return x.DrawId
	}
	return ""
}

func (x *LuckyGiftDrawn) GetCommandId() string {
	if x != nil {
		return x.CommandId
	}
	return ""
}

func (x *LuckyGiftDrawn) GetRoomId() string {
	if x != nil {
		return x.RoomId
	}
	return ""
}

func (x *LuckyGiftDrawn) GetPoolId() string {
	if x != nil {
		return x.PoolId
	}
	return ""
}

func (x *LuckyGiftDrawn) GetGiftId() string {
	if x != nil {
		return x.GiftId
	}
	return ""
}

func (x *LuckyGiftDrawn) GetGiftCount() int32 {
	if x != nil {
		return x.GiftCount
	}
	return 0
}

func (x *LuckyGiftDrawn) GetSenderUserId() int64 {
	if x != nil {
		return x.SenderUserId
	}
	return 0
}

func (x *LuckyGiftDrawn) GetTargetUserId() int64 {
	if x != nil {
		return x.TargetUserId
	}
	return 0
}

func (x *LuckyGiftDrawn) GetSenderName() string {
	if x != nil {
		return x.SenderName
	}
	return ""
}

func (x *LuckyGiftDrawn) GetSenderAvatar() string {
	if x != nil {
		return x.SenderAvatar
	}
	return ""
}

func (x *LuckyGiftDrawn) GetSenderDisplayUserId() string {
	if x != nil {
		return x.SenderDisplayUserId
	}
	return ""
}

func (x *LuckyGiftDrawn) GetSenderPrettyDisplayUserId() string {
	if x != nil {
		return x.SenderPrettyDisplayUserId
	}
	return ""
}

func (x *LuckyGiftDrawn) GetVisibleRegionId() int64 {
	if x != nil {
		return x.VisibleRegionId
	}
	return 0
}

func (x *LuckyGiftDrawn) GetCountryId() int64 {
	if x != nil {
		return x.CountryId
	}
	return 0
}

func (x *LuckyGiftDrawn) GetCoinSpent() int64 {
	if x != nil {
		return x.CoinSpent
	}
	return 0
}

func (x *LuckyGiftDrawn) GetRuleVersion() int64 {
	if x != nil {
		return x.RuleVersion
	}
	return 0
}

func (x *LuckyGiftDrawn) GetExperiencePool() string {
	if x != nil {
		return x.ExperiencePool
	}
	return ""
}

func (x *LuckyGiftDrawn) GetSelectedTierId() string {
	if x != nil {
		return x.SelectedTierId
	}
	return ""
}

func (x *LuckyGiftDrawn) GetMultiplierPpm() int64 {
	if x != nil {
		return x.MultiplierPpm
	}
	return 0
}

func (x *LuckyGiftDrawn) GetBaseRewardCoins() int64 {
	if x != nil {
		return x.BaseRewardCoins
	}
	return 0
}

func (x *LuckyGiftDrawn) GetEffectiveRewardCoins() int64 {
	if x != nil {
		return x.EffectiveRewardCoins
	}
	return 0
}

func (x *LuckyGiftDrawn) GetStageFeedback() bool {
	if x != nil {
		return x.StageFeedback
	}
	return false
}

func (x *LuckyGiftDrawn) GetHighMultiplier() bool {
	if x != nil {
		return x.HighMultiplier
	}
	return false
}

func (x *LuckyGiftDrawn) GetRewardStatus() string {
	if x != nil {
		return x.RewardStatus
	}
	return ""
}

func (x *LuckyGiftDrawn) GetWalletTransactionId() string {
	if x != nil {
		return x.WalletTransactionId
	}
	return ""
}

func (x *LuckyGiftDrawn) GetDrawCreatedAtMs() int64 {
	if x != nil {
		return x.DrawCreatedAtMs
	}
	return 0
}

func (x *LuckyGiftDrawn) GetRewardGrantedAtMs() int64 {
	if x != nil {
		return x.RewardGrantedAtMs
	}
	return 0
}

func (x *LuckyGiftDrawn) GetRoomLocked() bool {
	if x != nil {
		return x.RoomLocked
	}
	return false
}

func (x *LuckyGiftDrawn) GetOwnerUserId() int64 {
	if x != nil {
		return x.OwnerUserId
	}
	return 0
}

var File_proto_events_luckygift_v1_events_proto protoreflect.FileDescriptor

const file_proto_events_luckygift_v1_events_proto_rawDesc = "" +
	"\n" +
	"&proto/events/luckygift/v1/events.proto\x12\x19hyapp.events.luckygift.v1\"\xb7\x01\n" +
	"\rEventEnvelope\x12\x19\n" +
	"\bevent_id\x18\x01 \x01(\tR\aeventId\x12\x1d\n" +
	"\n" +
	"event_type\x18\x02 \x01(\tR\teventType\x12\x19\n" +
	"\bapp_code\x18\x03 \x01(\tR\aappCode\x12\x17\n" +
	"\adraw_id\x18\x04 \x01(\tR\x06drawId\x12$\n" +
	"\x0eoccurred_at_ms\x18\x05 \x01(\x03R\foccurredAtMs\x12\x12\n" +
	"\x04body\x18\x06 \x01(\fR\x04body\"\xf0\b\n" +
	"\x0eLuckyGiftDrawn\x12\x17\n" +
	"\adraw_id\x18\x01 \x01(\tR\x06drawId\x12\x1d\n" +
	"\n" +
	"command_id\x18\x02 \x01(\tR\tcommandId\x12\x17\n" +
	"\aroom_id\x18\x03 \x01(\tR\x06roomId\x12\x17\n" +
	"\apool_id\x18\x04 \x01(\tR\x06poolId\x12\x17\n" +
	"\agift_id\x18\x05 \x01(\tR\x06giftId\x12\x1d\n" +
	"\n" +
	"gift_count\x18\x06 \x01(\x05R\tgiftCount\x12$\n" +
	"\x0esender_user_id\x18\a \x01(\x03R\fsenderUserId\x12$\n" +
	"\x0etarget_user_id\x18\b \x01(\x03R\ftargetUserId\x12\x1f\n" +
	"\vsender_name\x18\t \x01(\tR\n" +
	"senderName\x12#\n" +
	"\rsender_avatar\x18\n" +
	" \x01(\tR\fsenderAvatar\x123\n" +
	"\x16sender_display_user_id\x18\v \x01(\tR\x13senderDisplayUserId\x12@\n" +
	"\x1dsender_pretty_display_user_id\x18\f \x01(\tR\x19senderPrettyDisplayUserId\x12*\n" +
	"\x11visible_region_id\x18\r \x01(\x03R\x0fvisibleRegionId\x12\x1d\n" +
	"\n" +
	"country_id\x18\x0e \x01(\x03R\tcountryId\x12\x1d\n" +
	"\n" +
	"coin_spent\x18\x0f \x01(\x03R\tcoinSpent\x12!\n" +
	"\frule_version\x18\x10 \x01(\x03R\vruleVersion\x12'\n" +
	"\x0fexperience_pool\x18\x11 \x01(\tR\x0eexperiencePool\x12(\n" +
	"\x10selected_tier_id\x18\x12 \x01(\tR\x0eselectedTierId\x12%\n" +
	"\x0emultiplier_ppm\x18\x13 \x01(\x03R\rmultiplierPpm\x12*\n" +
	"\x11base_reward_coins\x18\x14 \x01(\x03R\x0fbaseRewardCoins\x124\n" +
	"\x16effective_reward_coins\x18\x15 \x01(\x03R\x14effectiveRewardCoins\x12%\n" +
	"\x0estage_feedback\x18\x16 \x01(\bR\rstageFeedback\x12'\n" +
	"\x0fhigh_multiplier\x18\x17 \x01(\bR\x0ehighMultiplier\x12#\n" +
	"\rreward_status\x18\x18 \x01(\tR\frewardStatus\x122\n" +
	"\x15wallet_transaction_id\x18\x19 \x01(\tR\x13walletTransactionId\x12+\n" +
	"\x12draw_created_at_ms\x18\x1a \x01(\x03R\x0fdrawCreatedAtMs\x12/\n" +
	"\x14reward_granted_at_ms\x18\x1b \x01(\x03R\x11rewardGrantedAtMs\x12\x1f\n" +
	"\vroom_locked\x18\x1c \x01(\bR\n" +
	"roomLocked\x12\"\n" +
	"\rowner_user_id\x18\x1d \x01(\x03R\vownerUserIdB=Z;hyapp.local/api/proto/events/luckygift/v1;luckygifteventsv1b\x06proto3"

var (
	file_proto_events_luckygift_v1_events_proto_rawDescOnce sync.Once
	file_proto_events_luckygift_v1_events_proto_rawDescData []byte
)

func file_proto_events_luckygift_v1_events_proto_rawDescGZIP() []byte {
	file_proto_events_luckygift_v1_events_proto_rawDescOnce.Do(func() {
		file_proto_events_luckygift_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_events_luckygift_v1_events_proto_rawDesc), len(file_proto_events_luckygift_v1_events_proto_rawDesc)))
	})
	return file_proto_events_luckygift_v1_events_proto_rawDescData
}

var file_proto_events_luckygift_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_proto_events_luckygift_v1_events_proto_goTypes = []any{
	(*EventEnvelope)(nil),  // 0: hyapp.events.luckygift.v1.EventEnvelope
	(*LuckyGiftDrawn)(nil), // 1: hyapp.events.luckygift.v1.LuckyGiftDrawn
}
var file_proto_events_luckygift_v1_events_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_proto_events_luckygift_v1_events_proto_init() }
func file_proto_events_luckygift_v1_events_proto_init() {
	if File_proto_events_luckygift_v1_events_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_events_luckygift_v1_events_proto_rawDesc), len(file_proto_events_luckygift_v1_events_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_proto_events_luckygift_v1_events_proto_goTypes,
		DependencyIndexes: file_proto_events_luckygift_v1_events_proto_depIdxs,
		MessageInfos:      file_proto_events_luckygift_v1_events_proto_msgTypes,
	}.Build()
	File_proto_events_luckygift_v1_events_proto = out.File
	file_proto_events_luckygift_v1_events_proto_goTypes = nil
	file_proto_events_luckygift_v1_events_proto_depIdxs = nil
}
