testpb

package
v0.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DurationType_name = map[int32]string{
		0: "DURATION_TYPE_UNKNOWN",
		1: "DURATION_TYPE_ABSOLUTE",
		2: "DURATION_TYPE_REGISTER",
		3: "DURATION_TYPE_OPEN_SERVER",
	}
	DurationType_value = map[string]int32{
		"DURATION_TYPE_UNKNOWN":     0,
		"DURATION_TYPE_ABSOLUTE":    1,
		"DURATION_TYPE_REGISTER":    2,
		"DURATION_TYPE_OPEN_SERVER": 3,
	}
)

Enum value maps for DurationType.

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_hero__test_conf_proto protoreflect.FileDescriptor
View Source
var File_test_conf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Activity

type Activity struct {
	ActivityMap map[uint32]*Activity_Activity `` /* 183-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Activity) Descriptor deprecated

func (*Activity) Descriptor() ([]byte, []int)

Deprecated: Use Activity.ProtoReflect.Descriptor instead.

func (*Activity) GetActivityMap

func (x *Activity) GetActivityMap() map[uint32]*Activity_Activity

func (*Activity) ProtoMessage

func (*Activity) ProtoMessage()

func (*Activity) ProtoReflect

func (x *Activity) ProtoReflect() protoreflect.Message

func (*Activity) Reset

func (x *Activity) Reset()

func (*Activity) String

func (x *Activity) String() string

type Activity_Activity

type Activity_Activity struct {
	ActivityId   uint32                                `protobuf:"varint,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"`
	ActivityName string                                `protobuf:"bytes,2,opt,name=activity_name,json=activityName,proto3" json:"activity_name,omitempty"`
	ChapterMap   map[uint32]*Activity_Activity_Chapter `` /* 180-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Activity_Activity) Descriptor deprecated

func (*Activity_Activity) Descriptor() ([]byte, []int)

Deprecated: Use Activity_Activity.ProtoReflect.Descriptor instead.

func (*Activity_Activity) GetActivityId

func (x *Activity_Activity) GetActivityId() uint32

func (*Activity_Activity) GetActivityName

func (x *Activity_Activity) GetActivityName() string

func (*Activity_Activity) GetChapterMap

func (x *Activity_Activity) GetChapterMap() map[uint32]*Activity_Activity_Chapter

func (*Activity_Activity) ProtoMessage

func (*Activity_Activity) ProtoMessage()

func (*Activity_Activity) ProtoReflect

func (x *Activity_Activity) ProtoReflect() protoreflect.Message

func (*Activity_Activity) Reset

func (x *Activity_Activity) Reset()

func (*Activity_Activity) String

func (x *Activity_Activity) String() string

type Activity_Activity_Chapter

type Activity_Activity_Chapter struct {
	ChapterId   uint32                               `protobuf:"varint,1,opt,name=chapter_id,json=chapterId,proto3" json:"chapter_id,omitempty"`
	ChapterName string                               `protobuf:"bytes,2,opt,name=chapter_name,json=chapterName,proto3" json:"chapter_name,omitempty"`
	SectionList []*Activity_Activity_Chapter_Section `protobuf:"bytes,3,rep,name=section_list,json=sectionList,proto3" json:"section_list,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity_Activity_Chapter) Descriptor deprecated

func (*Activity_Activity_Chapter) Descriptor() ([]byte, []int)

Deprecated: Use Activity_Activity_Chapter.ProtoReflect.Descriptor instead.

func (*Activity_Activity_Chapter) GetChapterId

func (x *Activity_Activity_Chapter) GetChapterId() uint32

func (*Activity_Activity_Chapter) GetChapterName

func (x *Activity_Activity_Chapter) GetChapterName() string

func (*Activity_Activity_Chapter) GetSectionList

func (*Activity_Activity_Chapter) ProtoMessage

func (*Activity_Activity_Chapter) ProtoMessage()

func (*Activity_Activity_Chapter) ProtoReflect

func (*Activity_Activity_Chapter) Reset

func (x *Activity_Activity_Chapter) Reset()

func (*Activity_Activity_Chapter) String

func (x *Activity_Activity_Chapter) String() string

type Activity_Activity_Chapter_Section

type Activity_Activity_Chapter_Section struct {
	SectionId       uint32                                    `protobuf:"varint,1,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"`
	SectionName     string                                    `protobuf:"bytes,2,opt,name=section_name,json=sectionName,proto3" json:"section_name,omitempty"`
	SectionItemList []*Activity_Activity_Chapter_Section_Item `protobuf:"bytes,3,rep,name=section_item_list,json=sectionItemList,proto3" json:"section_item_list,omitempty"`
	Duration        *Duration                                 `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"`
	Timespan        *duration.Duration                        `protobuf:"bytes,5,opt,name=timespan,proto3" json:"timespan,omitempty"`
	Task            *Activity_Activity_Chapter_Section_Task   `protobuf:"bytes,6,opt,name=task,proto3" json:"task,omitempty"`
	WarnInfo        *Activity_Activity_Chapter_Section_Info   `protobuf:"bytes,7,opt,name=warn_info,json=warnInfo,proto3" json:"warn_info,omitempty"`
	IncellStruct    *Activity_Activity_Chapter_Section_Info   `protobuf:"bytes,8,opt,name=incell_struct,json=incellStruct,proto3" json:"incell_struct,omitempty"`
	IntParams       []int32                                   `protobuf:"varint,9,rep,packed,name=int_params,json=intParams,proto3" json:"int_params,omitempty"`
	Tips            map[int32]string                          `` /* 151-byte string literal not displayed */
	ClientParamList []string                                  `protobuf:"bytes,11,rep,name=client_param_list,json=clientParamList,proto3" json:"client_param_list,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity_Activity_Chapter_Section) Descriptor deprecated

func (*Activity_Activity_Chapter_Section) Descriptor() ([]byte, []int)

Deprecated: Use Activity_Activity_Chapter_Section.ProtoReflect.Descriptor instead.

func (*Activity_Activity_Chapter_Section) GetClientParamList added in v0.5.5

func (x *Activity_Activity_Chapter_Section) GetClientParamList() []string

func (*Activity_Activity_Chapter_Section) GetDuration

func (x *Activity_Activity_Chapter_Section) GetDuration() *Duration

func (*Activity_Activity_Chapter_Section) GetIncellStruct added in v0.5.9

func (*Activity_Activity_Chapter_Section) GetIntParams added in v0.5.8

func (x *Activity_Activity_Chapter_Section) GetIntParams() []int32

func (*Activity_Activity_Chapter_Section) GetSectionId

func (x *Activity_Activity_Chapter_Section) GetSectionId() uint32

func (*Activity_Activity_Chapter_Section) GetSectionItemList

func (*Activity_Activity_Chapter_Section) GetSectionName

func (x *Activity_Activity_Chapter_Section) GetSectionName() string

func (*Activity_Activity_Chapter_Section) GetTask

func (*Activity_Activity_Chapter_Section) GetTimespan added in v0.6.0

func (*Activity_Activity_Chapter_Section) GetTips added in v0.5.8

func (*Activity_Activity_Chapter_Section) GetWarnInfo added in v0.5.8

func (*Activity_Activity_Chapter_Section) ProtoMessage

func (*Activity_Activity_Chapter_Section) ProtoMessage()

func (*Activity_Activity_Chapter_Section) ProtoReflect

func (*Activity_Activity_Chapter_Section) Reset

func (*Activity_Activity_Chapter_Section) String

type Activity_Activity_Chapter_Section_Info added in v0.5.8

type Activity_Activity_Chapter_Section_Info struct {
	Id    int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Desc  string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	Value int32  `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity_Activity_Chapter_Section_Info) Descriptor deprecated added in v0.5.8

func (*Activity_Activity_Chapter_Section_Info) Descriptor() ([]byte, []int)

Deprecated: Use Activity_Activity_Chapter_Section_Info.ProtoReflect.Descriptor instead.

func (*Activity_Activity_Chapter_Section_Info) GetDesc added in v0.5.8

func (*Activity_Activity_Chapter_Section_Info) GetId added in v0.5.8

func (*Activity_Activity_Chapter_Section_Info) GetValue added in v0.5.8

func (*Activity_Activity_Chapter_Section_Info) ProtoMessage added in v0.5.8

func (*Activity_Activity_Chapter_Section_Info) ProtoReflect added in v0.5.8

func (*Activity_Activity_Chapter_Section_Info) Reset added in v0.5.8

func (*Activity_Activity_Chapter_Section_Info) String added in v0.5.8

type Activity_Activity_Chapter_Section_Item

type Activity_Activity_Chapter_Section_Item struct {
	Id  int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Num int32 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity_Activity_Chapter_Section_Item) Descriptor deprecated

func (*Activity_Activity_Chapter_Section_Item) Descriptor() ([]byte, []int)

Deprecated: Use Activity_Activity_Chapter_Section_Item.ProtoReflect.Descriptor instead.

func (*Activity_Activity_Chapter_Section_Item) GetId

func (*Activity_Activity_Chapter_Section_Item) GetNum

func (*Activity_Activity_Chapter_Section_Item) ProtoMessage

func (*Activity_Activity_Chapter_Section_Item) ProtoReflect

func (*Activity_Activity_Chapter_Section_Item) Reset

func (*Activity_Activity_Chapter_Section_Item) String

type Activity_Activity_Chapter_Section_Task

type Activity_Activity_Chapter_Section_Task struct {
	Type    int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
	Param_1 int32 `protobuf:"varint,2,opt,name=param_1,json=param1,proto3" json:"param_1,omitempty"`
	Param_2 int32 `protobuf:"varint,3,opt,name=param_2,json=param2,proto3" json:"param_2,omitempty"`
	Param_3 int32 `protobuf:"varint,4,opt,name=param_3,json=param3,proto3" json:"param_3,omitempty"`
	Target  int32 `protobuf:"varint,5,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity_Activity_Chapter_Section_Task) Descriptor deprecated

func (*Activity_Activity_Chapter_Section_Task) Descriptor() ([]byte, []int)

Deprecated: Use Activity_Activity_Chapter_Section_Task.ProtoReflect.Descriptor instead.

func (*Activity_Activity_Chapter_Section_Task) GetParam_1

func (*Activity_Activity_Chapter_Section_Task) GetParam_2

func (*Activity_Activity_Chapter_Section_Task) GetParam_3

func (*Activity_Activity_Chapter_Section_Task) GetTarget

func (*Activity_Activity_Chapter_Section_Task) GetType

func (*Activity_Activity_Chapter_Section_Task) ProtoMessage

func (*Activity_Activity_Chapter_Section_Task) ProtoReflect

func (*Activity_Activity_Chapter_Section_Task) Reset

func (*Activity_Activity_Chapter_Section_Task) String

type Duration added in v0.6.1

type Duration struct {
	Type        DurationType         `protobuf:"varint,1,opt,name=type,proto3,enum=test.DurationType" json:"type,omitempty"`
	Begin       *timestamp.Timestamp `protobuf:"bytes,2,opt,name=begin,proto3" json:"begin,omitempty"`
	End         *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	DelayedDays int32                `protobuf:"varint,4,opt,name=delayed_days,json=delayedDays,proto3" json:"delayed_days,omitempty"`
	Params      []int32              `protobuf:"varint,5,rep,packed,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*Duration) Descriptor deprecated added in v0.6.1

func (*Duration) Descriptor() ([]byte, []int)

Deprecated: Use Duration.ProtoReflect.Descriptor instead.

func (*Duration) GetBegin added in v0.6.1

func (x *Duration) GetBegin() *timestamp.Timestamp

func (*Duration) GetDelayedDays added in v0.6.1

func (x *Duration) GetDelayedDays() int32

func (*Duration) GetEnd added in v0.6.1

func (x *Duration) GetEnd() *timestamp.Timestamp

func (*Duration) GetParams added in v0.6.1

func (x *Duration) GetParams() []int32

func (*Duration) GetType added in v0.6.1

func (x *Duration) GetType() DurationType

func (*Duration) ProtoMessage added in v0.6.1

func (*Duration) ProtoMessage()

func (*Duration) ProtoReflect added in v0.6.1

func (x *Duration) ProtoReflect() protoreflect.Message

func (*Duration) Reset added in v0.6.1

func (x *Duration) Reset()

func (*Duration) String added in v0.6.1

func (x *Duration) String() string

type DurationType added in v0.6.1

type DurationType int32
const (
	DurationType_DURATION_TYPE_UNKNOWN     DurationType = 0
	DurationType_DURATION_TYPE_ABSOLUTE    DurationType = 1
	DurationType_DURATION_TYPE_REGISTER    DurationType = 2
	DurationType_DURATION_TYPE_OPEN_SERVER DurationType = 3
)

func (DurationType) Descriptor added in v0.6.1

func (DurationType) Enum added in v0.6.1

func (x DurationType) Enum() *DurationType

func (DurationType) EnumDescriptor deprecated added in v0.6.1

func (DurationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DurationType.Descriptor instead.

func (DurationType) Number added in v0.6.1

func (DurationType) String added in v0.6.1

func (x DurationType) String() string

func (DurationType) Type added in v0.6.1

type ExchangeInfo added in v0.6.3

type ExchangeInfo struct {
	RewardMap map[uint32]*ExchangeInfo_Reward `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ExchangeInfo) Descriptor deprecated added in v0.6.3

func (*ExchangeInfo) Descriptor() ([]byte, []int)

Deprecated: Use ExchangeInfo.ProtoReflect.Descriptor instead.

func (*ExchangeInfo) GetRewardMap added in v0.6.3

func (x *ExchangeInfo) GetRewardMap() map[uint32]*ExchangeInfo_Reward

func (*ExchangeInfo) ProtoMessage added in v0.6.3

func (*ExchangeInfo) ProtoMessage()

func (*ExchangeInfo) ProtoReflect added in v0.6.3

func (x *ExchangeInfo) ProtoReflect() protoreflect.Message

func (*ExchangeInfo) Reset added in v0.6.3

func (x *ExchangeInfo) Reset()

func (*ExchangeInfo) String added in v0.6.3

func (x *ExchangeInfo) String() string

type ExchangeInfo_Reward added in v0.6.3

type ExchangeInfo_Reward struct {
	Id        uint32               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Desc      string               `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	BeginTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=begin_time,json=beginTime,proto3" json:"begin_time,omitempty"`
	Date      *timestamp.Timestamp `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"`
	Time      *duration.Duration   `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*ExchangeInfo_Reward) Descriptor deprecated added in v0.6.3

func (*ExchangeInfo_Reward) Descriptor() ([]byte, []int)

Deprecated: Use ExchangeInfo_Reward.ProtoReflect.Descriptor instead.

func (*ExchangeInfo_Reward) GetBeginTime added in v0.6.3

func (x *ExchangeInfo_Reward) GetBeginTime() *timestamp.Timestamp

func (*ExchangeInfo_Reward) GetDate added in v0.6.3

func (x *ExchangeInfo_Reward) GetDate() *timestamp.Timestamp

func (*ExchangeInfo_Reward) GetDesc added in v0.6.3

func (x *ExchangeInfo_Reward) GetDesc() string

func (*ExchangeInfo_Reward) GetId added in v0.6.3

func (x *ExchangeInfo_Reward) GetId() uint32

func (*ExchangeInfo_Reward) GetTime added in v0.6.3

func (x *ExchangeInfo_Reward) GetTime() *duration.Duration

func (*ExchangeInfo_Reward) ProtoMessage added in v0.6.3

func (*ExchangeInfo_Reward) ProtoMessage()

func (*ExchangeInfo_Reward) ProtoReflect added in v0.6.3

func (x *ExchangeInfo_Reward) ProtoReflect() protoreflect.Message

func (*ExchangeInfo_Reward) Reset added in v0.6.3

func (x *ExchangeInfo_Reward) Reset()

func (*ExchangeInfo_Reward) String added in v0.6.3

func (x *ExchangeInfo_Reward) String() string

type Hero added in v0.6.4

type Hero struct {
	RewardMap map[uint32]*Hero_Reward `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Hero) Descriptor deprecated added in v0.6.4

func (*Hero) Descriptor() ([]byte, []int)

Deprecated: Use Hero.ProtoReflect.Descriptor instead.

func (*Hero) GetRewardMap added in v0.6.4

func (x *Hero) GetRewardMap() map[uint32]*Hero_Reward

func (*Hero) ProtoMessage added in v0.6.4

func (*Hero) ProtoMessage()

func (*Hero) ProtoReflect added in v0.6.4

func (x *Hero) ProtoReflect() protoreflect.Message

func (*Hero) Reset added in v0.6.4

func (x *Hero) Reset()

func (*Hero) String added in v0.6.4

func (x *Hero) String() string

type Hero_Reward added in v0.6.4

type Hero_Reward struct {
	Id   uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	// contains filtered or unexported fields
}

func (*Hero_Reward) Descriptor deprecated added in v0.6.4

func (*Hero_Reward) Descriptor() ([]byte, []int)

Deprecated: Use Hero_Reward.ProtoReflect.Descriptor instead.

func (*Hero_Reward) GetDesc added in v0.6.4

func (x *Hero_Reward) GetDesc() string

func (*Hero_Reward) GetId added in v0.6.4

func (x *Hero_Reward) GetId() uint32

func (*Hero_Reward) ProtoMessage added in v0.6.4

func (*Hero_Reward) ProtoMessage()

func (*Hero_Reward) ProtoReflect added in v0.6.4

func (x *Hero_Reward) ProtoReflect() protoreflect.Message

func (*Hero_Reward) Reset added in v0.6.4

func (x *Hero_Reward) Reset()

func (*Hero_Reward) String added in v0.6.4

func (x *Hero_Reward) String() string

type Item added in v0.5.7

type Item struct {
	Id  int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Num int32 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"`
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated added in v0.5.7

func (*Item) Descriptor() ([]byte, []int)

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetId added in v0.5.7

func (x *Item) GetId() int32

func (*Item) GetNum added in v0.5.7

func (x *Item) GetNum() int32

func (*Item) ProtoMessage added in v0.5.7

func (*Item) ProtoMessage()

func (*Item) ProtoReflect added in v0.5.7

func (x *Item) ProtoReflect() protoreflect.Message

func (*Item) Reset added in v0.5.7

func (x *Item) Reset()

func (*Item) String added in v0.5.7

func (x *Item) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL