You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1639 lines
44 KiB
Go

2 years ago
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc (unknown)
// source: common.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
import proto "google.golang.org/protobuf/proto"
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)
)
2 years ago
type Ping struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ClientTime int64 `protobuf:"varint,1,opt,name=ClientTime,json=clientTime,proto3" json:"ClientTime,omitempty"` //客户端时间戳
}
func (x *Ping) Reset() {
*x = Ping{}
if protoimpl.UnsafeEnabled {
mi := &file_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Ping) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *Ping) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *Ping) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*Ping) ProtoMessage() {}
func (x *Ping) ProtoReflect() protoreflect.Message {
mi := &file_common_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Ping.ProtoReflect.Descriptor instead.
func (*Ping) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{0}
}
func (x *Ping) GetClientTime() int64 {
if x != nil {
return x.ClientTime
}
return 0
}
func (x *Ping) SetClientTime(val int64) {
if x != nil {
x.ClientTime = val
}
}
type Pong struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerTime int64 `protobuf:"varint,1,opt,name=ServerTime,json=serverTime,proto3" json:"ServerTime,omitempty"` //服务器本地时间戳
ClientTime int64 `protobuf:"varint,2,opt,name=ClientTime,json=clientTime,proto3" json:"ClientTime,omitempty"` //客户端时间戳
}
func (x *Pong) Reset() {
*x = Pong{}
if protoimpl.UnsafeEnabled {
mi := &file_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Pong) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *Pong) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *Pong) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*Pong) ProtoMessage() {}
func (x *Pong) ProtoReflect() protoreflect.Message {
mi := &file_common_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Pong.ProtoReflect.Descriptor instead.
func (*Pong) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{1}
}
func (x *Pong) GetServerTime() int64 {
if x != nil {
return x.ServerTime
}
return 0
}
func (x *Pong) GetClientTime() int64 {
if x != nil {
return x.ClientTime
}
return 0
}
func (x *Pong) SetServerTime(val int64) {
if x != nil {
x.ServerTime = val
}
}
func (x *Pong) SetClientTime(val int64) {
if x != nil {
x.ClientTime = val
}
}
2 years ago
type Login struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2 years ago
AppId string `protobuf:"bytes,1,opt,name=AppId,json=appId,proto3" json:"AppId,omitempty"`
Token string `protobuf:"bytes,2,opt,name=Token,json=token,proto3" json:"Token,omitempty"`
IsDebug bool `protobuf:"varint,3,opt,name=IsDebug,json=isDebug,proto3" json:"IsDebug,omitempty"`
2 years ago
}
func (x *Login) Reset() {
*x = Login{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[2]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Login) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *Login) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *Login) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*Login) ProtoMessage() {}
func (x *Login) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[2]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Login.ProtoReflect.Descriptor instead.
func (*Login) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{2}
2 years ago
}
func (x *Login) GetAppId() string {
if x != nil {
return x.AppId
}
return ""
}
func (x *Login) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
2 years ago
func (x *Login) GetIsDebug() bool {
if x != nil {
return x.IsDebug
}
return false
}
2 years ago
func (x *Login) SetAppId(val string) {
if x != nil {
x.AppId = val
}
}
func (x *Login) SetToken(val string) {
if x != nil {
x.Token = val
}
}
2 years ago
func (x *Login) SetIsDebug(val bool) {
if x != nil {
x.IsDebug = val
}
}
2 years ago
type LoginResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Result ERROR_CODE `protobuf:"varint,1,opt,name=Result,json=result,proto3,enum=message.ERROR_CODE" json:"Result,omitempty"`
RoomId string `protobuf:"bytes,2,opt,name=RoomId,json=roomId,proto3" json:"RoomId,omitempty"`
UID string `protobuf:"bytes,3,opt,name=UID,json=uID,proto3" json:"UID,omitempty"`
NickName string `protobuf:"bytes,4,opt,name=NickName,json=nickName,proto3" json:"NickName,omitempty"`
}
func (x *LoginResult) Reset() {
*x = LoginResult{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[3]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LoginResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *LoginResult) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *LoginResult) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*LoginResult) ProtoMessage() {}
func (x *LoginResult) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[3]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LoginResult.ProtoReflect.Descriptor instead.
func (*LoginResult) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{3}
2 years ago
}
func (x *LoginResult) GetResult() ERROR_CODE {
if x != nil {
return x.Result
}
return ERROR_CODE_SUCCESS
}
func (x *LoginResult) GetRoomId() string {
if x != nil {
return x.RoomId
}
return ""
}
func (x *LoginResult) GetUID() string {
if x != nil {
return x.UID
}
return ""
}
func (x *LoginResult) GetNickName() string {
if x != nil {
return x.NickName
}
return ""
}
func (x *LoginResult) SetResult(val ERROR_CODE) {
if x != nil {
x.Result = val
}
}
func (x *LoginResult) SetRoomId(val string) {
if x != nil {
x.RoomId = val
}
}
func (x *LoginResult) SetUID(val string) {
if x != nil {
x.UID = val
}
}
func (x *LoginResult) SetNickName(val string) {
if x != nil {
x.NickName = val
}
}
type PlayStart struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *PlayStart) Reset() {
*x = PlayStart{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[4]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PlayStart) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *PlayStart) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *PlayStart) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*PlayStart) ProtoMessage() {}
func (x *PlayStart) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[4]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PlayStart.ProtoReflect.Descriptor instead.
func (*PlayStart) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{4}
2 years ago
}
type PlayStartResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Result ERROR_CODE `protobuf:"varint,1,opt,name=Result,json=result,proto3,enum=message.ERROR_CODE" json:"Result,omitempty"`
}
func (x *PlayStartResult) Reset() {
*x = PlayStartResult{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[5]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PlayStartResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *PlayStartResult) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *PlayStartResult) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*PlayStartResult) ProtoMessage() {}
func (x *PlayStartResult) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[5]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PlayStartResult.ProtoReflect.Descriptor instead.
func (*PlayStartResult) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{5}
2 years ago
}
func (x *PlayStartResult) GetResult() ERROR_CODE {
if x != nil {
return x.Result
}
return ERROR_CODE_SUCCESS
}
func (x *PlayStartResult) SetResult(val ERROR_CODE) {
if x != nil {
x.Result = val
}
}
type PlayEnd struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *PlayEnd) Reset() {
*x = PlayEnd{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[6]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PlayEnd) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *PlayEnd) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *PlayEnd) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*PlayEnd) ProtoMessage() {}
func (x *PlayEnd) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[6]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PlayEnd.ProtoReflect.Descriptor instead.
func (*PlayEnd) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{6}
2 years ago
}
type PlayEndResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Result ERROR_CODE `protobuf:"varint,1,opt,name=Result,json=result,proto3,enum=message.ERROR_CODE" json:"Result,omitempty"`
}
func (x *PlayEndResult) Reset() {
*x = PlayEndResult{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[7]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PlayEndResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *PlayEndResult) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *PlayEndResult) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*PlayEndResult) ProtoMessage() {}
func (x *PlayEndResult) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[7]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PlayEndResult.ProtoReflect.Descriptor instead.
func (*PlayEndResult) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{7}
2 years ago
}
func (x *PlayEndResult) GetResult() ERROR_CODE {
if x != nil {
return x.Result
}
return ERROR_CODE_SUCCESS
}
func (x *PlayEndResult) SetResult(val ERROR_CODE) {
if x != nil {
x.Result = val
}
}
type Report struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Info []*ReportInfo `protobuf:"bytes,1,rep,name=Info,json=info,proto3" json:"Info,omitempty"`
}
func (x *Report) Reset() {
*x = Report{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[8]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Report) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *Report) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *Report) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*Report) ProtoMessage() {}
func (x *Report) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[8]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Report.ProtoReflect.Descriptor instead.
func (*Report) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{8}
2 years ago
}
func (x *Report) GetInfo() []*ReportInfo {
if x != nil {
return x.Info
}
return nil
}
func (x *Report) SetInfo(val []*ReportInfo) {
if x != nil {
x.Info = val
}
}
type ReportResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Result ERROR_CODE `protobuf:"varint,1,opt,name=Result,json=result,proto3,enum=message.ERROR_CODE" json:"Result,omitempty"`
}
func (x *ReportResult) Reset() {
*x = ReportResult{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[9]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReportResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *ReportResult) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *ReportResult) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*ReportResult) ProtoMessage() {}
func (x *ReportResult) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[9]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReportResult.ProtoReflect.Descriptor instead.
func (*ReportResult) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{9}
2 years ago
}
func (x *ReportResult) GetResult() ERROR_CODE {
if x != nil {
return x.Result
}
return ERROR_CODE_SUCCESS
}
func (x *ReportResult) SetResult(val ERROR_CODE) {
if x != nil {
x.Result = val
}
}
type GetRank struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TopCount int32 `protobuf:"varint,1,opt,name=TopCount,json=topCount,proto3" json:"TopCount,omitempty"`
}
func (x *GetRank) Reset() {
*x = GetRank{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[10]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRank) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *GetRank) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *GetRank) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*GetRank) ProtoMessage() {}
func (x *GetRank) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[10]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRank.ProtoReflect.Descriptor instead.
func (*GetRank) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{10}
2 years ago
}
func (x *GetRank) GetTopCount() int32 {
if x != nil {
return x.TopCount
}
return 0
}
func (x *GetRank) SetTopCount(val int32) {
if x != nil {
x.TopCount = val
}
}
type GetRankResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Result ERROR_CODE `protobuf:"varint,1,opt,name=Result,json=result,proto3,enum=message.ERROR_CODE" json:"Result,omitempty"`
Info []*ReportInfo `protobuf:"bytes,2,rep,name=Info,json=info,proto3" json:"Info,omitempty"`
}
func (x *GetRankResult) Reset() {
*x = GetRankResult{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[11]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRankResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *GetRankResult) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *GetRankResult) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*GetRankResult) ProtoMessage() {}
func (x *GetRankResult) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[11]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRankResult.ProtoReflect.Descriptor instead.
func (*GetRankResult) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{11}
2 years ago
}
func (x *GetRankResult) GetResult() ERROR_CODE {
if x != nil {
return x.Result
}
return ERROR_CODE_SUCCESS
}
func (x *GetRankResult) GetInfo() []*ReportInfo {
if x != nil {
return x.Info
}
return nil
}
func (x *GetRankResult) SetResult(val ERROR_CODE) {
if x != nil {
x.Result = val
}
}
func (x *GetRankResult) SetInfo(val []*ReportInfo) {
if x != nil {
x.Info = val
}
}
//新用户推送
type NotifyNewAudience struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Audience *Audience `protobuf:"bytes,1,opt,name=Audience,json=audience,proto3" json:"Audience,omitempty"`
}
func (x *NotifyNewAudience) Reset() {
*x = NotifyNewAudience{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[12]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NotifyNewAudience) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *NotifyNewAudience) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *NotifyNewAudience) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*NotifyNewAudience) ProtoMessage() {}
func (x *NotifyNewAudience) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[12]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NotifyNewAudience.ProtoReflect.Descriptor instead.
func (*NotifyNewAudience) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{12}
2 years ago
}
func (x *NotifyNewAudience) GetAudience() *Audience {
if x != nil {
return x.Audience
}
return nil
}
func (x *NotifyNewAudience) SetAudience(val *Audience) {
if x != nil {
x.Audience = val
}
}
//用户行为推送
type NotifyAudienceAction struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
OpenId string `protobuf:"bytes,1,opt,name=OpenId,json=openId,proto3" json:"OpenId,omitempty"`
Content string `protobuf:"bytes,2,opt,name=Content,json=content,proto3" json:"Content,omitempty"` //评论
LikeNum int32 `protobuf:"varint,3,opt,name=LikeNum,json=likeNum,proto3" json:"LikeNum,omitempty"` //点赞数量
GiftId string `protobuf:"bytes,4,opt,name=GiftId,json=giftId,proto3" json:"GiftId,omitempty"` //礼物ID
GiftNum int32 `protobuf:"varint,5,opt,name=GiftNum,json=giftNum,proto3" json:"GiftNum,omitempty"` //礼物数量
}
func (x *NotifyAudienceAction) Reset() {
*x = NotifyAudienceAction{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[13]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NotifyAudienceAction) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *NotifyAudienceAction) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *NotifyAudienceAction) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*NotifyAudienceAction) ProtoMessage() {}
func (x *NotifyAudienceAction) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[13]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NotifyAudienceAction.ProtoReflect.Descriptor instead.
func (*NotifyAudienceAction) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{13}
2 years ago
}
func (x *NotifyAudienceAction) GetOpenId() string {
if x != nil {
return x.OpenId
}
return ""
}
func (x *NotifyAudienceAction) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *NotifyAudienceAction) GetLikeNum() int32 {
if x != nil {
return x.LikeNum
}
return 0
}
func (x *NotifyAudienceAction) GetGiftId() string {
if x != nil {
return x.GiftId
}
return ""
}
func (x *NotifyAudienceAction) GetGiftNum() int32 {
if x != nil {
return x.GiftNum
}
return 0
}
func (x *NotifyAudienceAction) SetOpenId(val string) {
if x != nil {
x.OpenId = val
}
}
func (x *NotifyAudienceAction) SetContent(val string) {
if x != nil {
x.Content = val
}
}
func (x *NotifyAudienceAction) SetLikeNum(val int32) {
if x != nil {
x.LikeNum = val
}
}
func (x *NotifyAudienceAction) SetGiftId(val string) {
if x != nil {
x.GiftId = val
}
}
func (x *NotifyAudienceAction) SetGiftNum(val int32) {
if x != nil {
x.GiftNum = val
}
}
//分数信息
type ReportInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
OpenId string `protobuf:"bytes,1,opt,name=OpenId,json=openId,proto3" json:"OpenId,omitempty"`
Score int32 `protobuf:"varint,2,opt,name=Score,json=score,proto3" json:"Score,omitempty"`
}
func (x *ReportInfo) Reset() {
*x = ReportInfo{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[14]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReportInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *ReportInfo) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *ReportInfo) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*ReportInfo) ProtoMessage() {}
func (x *ReportInfo) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[14]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReportInfo.ProtoReflect.Descriptor instead.
func (*ReportInfo) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{14}
2 years ago
}
func (x *ReportInfo) GetOpenId() string {
if x != nil {
return x.OpenId
}
return ""
}
func (x *ReportInfo) GetScore() int32 {
if x != nil {
return x.Score
}
return 0
}
func (x *ReportInfo) SetOpenId(val string) {
if x != nil {
x.OpenId = val
}
}
func (x *ReportInfo) SetScore(val int32) {
if x != nil {
x.Score = val
}
}
//观众信息
type Audience struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
1 year ago
OpenId string `protobuf:"bytes,1,opt,name=OpenId,json=openId,proto3" json:"OpenId,omitempty"`
NickName string `protobuf:"bytes,2,opt,name=NickName,json=nickName,proto3" json:"NickName,omitempty"`
AvatarUrl string `protobuf:"bytes,3,opt,name=AvatarUrl,json=avatarUrl,proto3" json:"AvatarUrl,omitempty"`
Rank int32 `protobuf:"varint,4,opt,name=Rank,json=rank,proto3" json:"Rank,omitempty"` //排名
WinningStreak int32 `protobuf:"varint,5,opt,name=WinningStreak,json=winningStreak,proto3" json:"WinningStreak,omitempty"` //连胜
2 years ago
}
func (x *Audience) Reset() {
*x = Audience{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[15]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Audience) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *Audience) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *Audience) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*Audience) ProtoMessage() {}
func (x *Audience) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[15]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Audience.ProtoReflect.Descriptor instead.
func (*Audience) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{15}
2 years ago
}
func (x *Audience) GetOpenId() string {
if x != nil {
return x.OpenId
}
return ""
}
func (x *Audience) GetNickName() string {
if x != nil {
return x.NickName
}
return ""
}
func (x *Audience) GetAvatarUrl() string {
if x != nil {
return x.AvatarUrl
}
return ""
}
1 year ago
func (x *Audience) GetRank() int32 {
if x != nil {
return x.Rank
}
return 0
}
func (x *Audience) GetWinningStreak() int32 {
if x != nil {
return x.WinningStreak
}
return 0
}
2 years ago
func (x *Audience) SetOpenId(val string) {
if x != nil {
x.OpenId = val
}
}
func (x *Audience) SetNickName(val string) {
if x != nil {
x.NickName = val
}
}
func (x *Audience) SetAvatarUrl(val string) {
if x != nil {
x.AvatarUrl = val
}
}
1 year ago
func (x *Audience) SetRank(val int32) {
if x != nil {
x.Rank = val
}
}
func (x *Audience) SetWinningStreak(val int32) {
if x != nil {
x.WinningStreak = val
}
}
2 years ago
//排名信息
type RankInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Audience *Audience `protobuf:"bytes,1,opt,name=Audience,json=audience,proto3" json:"Audience,omitempty"` //观众信息
Rank int32 `protobuf:"varint,2,opt,name=Rank,json=rank,proto3" json:"Rank,omitempty"` //排名
Score int32 `protobuf:"varint,3,opt,name=Score,json=score,proto3" json:"Score,omitempty"` //用户分数
}
func (x *RankInfo) Reset() {
*x = RankInfo{}
if protoimpl.UnsafeEnabled {
2 years ago
mi := &file_common_proto_msgTypes[16]
2 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RankInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (x *RankInfo) FromDB(data []byte) error {
return proto.Unmarshal(data, x)
}
func (x *RankInfo) ToDB() ([]byte, error) {
return proto.Marshal(x)
}
func (*RankInfo) ProtoMessage() {}
func (x *RankInfo) ProtoReflect() protoreflect.Message {
2 years ago
mi := &file_common_proto_msgTypes[16]
2 years ago
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RankInfo.ProtoReflect.Descriptor instead.
func (*RankInfo) Descriptor() ([]byte, []int) {
2 years ago
return file_common_proto_rawDescGZIP(), []int{16}
2 years ago
}
func (x *RankInfo) GetAudience() *Audience {
if x != nil {
return x.Audience
}
return nil
}
func (x *RankInfo) GetRank() int32 {
if x != nil {
return x.Rank
}
return 0
}
func (x *RankInfo) GetScore() int32 {
if x != nil {
return x.Score
}
return 0
}
func (x *RankInfo) SetAudience(val *Audience) {
if x != nil {
x.Audience = val
}
}
func (x *RankInfo) SetRank(val int32) {
if x != nil {
x.Rank = val
}
}
func (x *RankInfo) SetScore(val int32) {
if x != nil {
x.Score = val
}
}
var File_common_proto protoreflect.FileDescriptor
var file_common_proto_rawDesc = []byte{
0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x0d, 0x6d, 0x73, 0x67, 0x74, 0x79, 0x70, 0x65,
2 years ago
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x1e,
0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x03, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x46,
0x0a, 0x04, 0x50, 0x6f, 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
0x54, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76,
0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65,
0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x4d, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12,
2 years ago
0x14, 0x0a, 0x05, 0x41, 0x70, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
2 years ago
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x49,
0x73, 0x44, 0x65, 0x62, 0x75, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73,
0x44, 0x65, 0x62, 0x75, 0x67, 0x22, 0x80, 0x01, 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52,
0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75,
0x6c, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x49,
0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08,
0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x0b, 0x0a, 0x09, 0x50, 0x6c, 0x61, 0x79,
0x53, 0x74, 0x61, 0x72, 0x74, 0x22, 0x3e, 0x0a, 0x0f, 0x50, 0x6c, 0x61, 0x79, 0x53, 0x74, 0x61,
0x72, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75,
0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x2e, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x06, 0x72,
0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x09, 0x0a, 0x07, 0x50, 0x6c, 0x61, 0x79, 0x45, 0x6e, 0x64,
0x22, 0x3c, 0x0a, 0x0d, 0x50, 0x6c, 0x61, 0x79, 0x45, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c,
0x74, 0x12, 0x2b, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x45, 0x52, 0x52, 0x4f,
0x52, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x31,
0x0a, 0x06, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x27, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66,
0x6f, 0x22, 0x3b, 0x0a, 0x0c, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c,
0x74, 0x12, 0x2b, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x45, 0x52, 0x52, 0x4f,
0x52, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x25,
0x0a, 0x07, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x54, 0x6f, 0x70,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x74, 0x6f, 0x70,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x65, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x6b,
0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x2e, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x52, 0x06, 0x72, 0x65, 0x73,
0x75, 0x6c, 0x74, 0x12, 0x27, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6f,
0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x42, 0x0a, 0x11,
0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x4e, 0x65, 0x77, 0x41, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63,
0x65, 0x12, 0x2d, 0x0a, 0x08, 0x41, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x75,
0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65,
0x22, 0x94, 0x01, 0x0a, 0x14, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x41, 0x75, 0x64, 0x69, 0x65,
0x6e, 0x63, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x4f, 0x70, 0x65,
0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49,
0x64, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x4c,
0x69, 0x6b, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6c, 0x69,
0x6b, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x69, 0x66, 0x74, 0x49, 0x64, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x69, 0x66, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a,
0x07, 0x47, 0x69, 0x66, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
0x67, 0x69, 0x66, 0x74, 0x4e, 0x75, 0x6d, 0x22, 0x3a, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6f, 0x72,
0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a,
0x05, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63,
1 year ago
0x6f, 0x72, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x08, 0x41, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65,
0x12, 0x16, 0x0a, 0x06, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x06, 0x6f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x4e, 0x69, 0x63, 0x6b,
0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x41, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72,
0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55,
0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x52, 0x61, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
0x52, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x12, 0x24, 0x0a, 0x0d, 0x57, 0x69, 0x6e, 0x6e, 0x69, 0x6e,
0x67, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x77,
0x69, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6b, 0x22, 0x63, 0x0a, 0x08,
0x52, 0x61, 0x6e, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2d, 0x0a, 0x08, 0x41, 0x75, 0x64, 0x69,
0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x61,
0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x52, 0x61, 0x6e, 0x6b, 0x18,
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x53,
0x63, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72,
0x65, 0x42, 0x05, 0x5a, 0x03, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
2 years ago
}
var (
file_common_proto_rawDescOnce sync.Once
file_common_proto_rawDescData = file_common_proto_rawDesc
)
func file_common_proto_rawDescGZIP() []byte {
file_common_proto_rawDescOnce.Do(func() {
file_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_proto_rawDescData)
})
return file_common_proto_rawDescData
}
2 years ago
var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
2 years ago
var file_common_proto_goTypes = []interface{}{
2 years ago
(*Ping)(nil), // 0: message.Ping
(*Pong)(nil), // 1: message.Pong
(*Login)(nil), // 2: message.Login
(*LoginResult)(nil), // 3: message.LoginResult
(*PlayStart)(nil), // 4: message.PlayStart
(*PlayStartResult)(nil), // 5: message.PlayStartResult
(*PlayEnd)(nil), // 6: message.PlayEnd
(*PlayEndResult)(nil), // 7: message.PlayEndResult
(*Report)(nil), // 8: message.Report
(*ReportResult)(nil), // 9: message.ReportResult
(*GetRank)(nil), // 10: message.GetRank
(*GetRankResult)(nil), // 11: message.GetRankResult
(*NotifyNewAudience)(nil), // 12: message.NotifyNewAudience
(*NotifyAudienceAction)(nil), // 13: message.NotifyAudienceAction
(*ReportInfo)(nil), // 14: message.ReportInfo
(*Audience)(nil), // 15: message.Audience
(*RankInfo)(nil), // 16: message.RankInfo
(ERROR_CODE)(0), // 17: message.ERROR_CODE
2 years ago
}
var file_common_proto_depIdxs = []int32{
2 years ago
17, // 0: message.LoginResult.Result:type_name -> message.ERROR_CODE
17, // 1: message.PlayStartResult.Result:type_name -> message.ERROR_CODE
17, // 2: message.PlayEndResult.Result:type_name -> message.ERROR_CODE
14, // 3: message.Report.Info:type_name -> message.ReportInfo
17, // 4: message.ReportResult.Result:type_name -> message.ERROR_CODE
17, // 5: message.GetRankResult.Result:type_name -> message.ERROR_CODE
14, // 6: message.GetRankResult.Info:type_name -> message.ReportInfo
15, // 7: message.NotifyNewAudience.Audience:type_name -> message.Audience
15, // 8: message.RankInfo.Audience:type_name -> message.Audience
2 years ago
9, // [9:9] is the sub-list for method output_type
9, // [9:9] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_common_proto_init() }
func file_common_proto_init() {
if File_common_proto != nil {
return
}
file_msgtype_proto_init()
if !protoimpl.UnsafeEnabled {
file_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*Ping); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*Pong); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*Login); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*LoginResult); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*PlayStart); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*PlayStartResult); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*PlayEnd); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*PlayEndResult); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*Report); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*ReportResult); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*GetRank); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*GetRankResult); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*NotifyNewAudience); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*NotifyAudienceAction); i {
2 years ago
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*ReportInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Audience); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
2 years ago
switch v := v.(*RankInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_common_proto_rawDesc,
NumEnums: 0,
2 years ago
NumMessages: 17,
2 years ago
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_common_proto_goTypes,
DependencyIndexes: file_common_proto_depIdxs,
MessageInfos: file_common_proto_msgTypes,
}.Build()
File_common_proto = out.File
file_common_proto_rawDesc = nil
file_common_proto_goTypes = nil
file_common_proto_depIdxs = nil
}