本文整理汇总了Golang中code/google/com/p/gogoprotobuf/proto.RegisterEnum函数的典型用法代码示例。如果您正苦于以下问题:Golang RegisterEnum函数的具体用法?Golang RegisterEnum怎么用?Golang RegisterEnum使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RegisterEnum函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: init
func init() {
proto.RegisterEnum("my.test.HatType", HatType_name, HatType_value)
proto.RegisterEnum("my.test.Days", Days_name, Days_value)
proto.RegisterEnum("my.test.Request_Color", Request_Color_name, Request_Color_value)
proto.RegisterEnum("my.test.Reply_Entry_Game", Reply_Entry_Game_name, Reply_Entry_Game_value)
proto.RegisterExtension(E_ReplyExtensions_Time)
proto.RegisterExtension(E_Tag)
}
示例2: init
func init() {
proto.RegisterEnum("backend.FrequencyMsg_DAYS", FrequencyMsg_DAYS_name, FrequencyMsg_DAYS_value)
}
示例3: init
func init() {
proto.RegisterEnum("game.state.pb.Player", Player_name, Player_value)
}
示例4: init
func init() {
proto.RegisterEnum("dota.EDotaClientMessages", EDotaClientMessages_name, EDotaClientMessages_value)
}
示例5: init
func init() {
proto.RegisterEnum("warden.Message_Type", Message_Type_name, Message_Type_value)
}
示例6: init
func init() {
proto.RegisterEnum("events.PeerType", PeerType_name, PeerType_value)
proto.RegisterEnum("events.Method", Method_name, Method_value)
}
示例7: init
func init() {
proto.RegisterEnum("google.protobuf.FieldDescriptorProto_Type", FieldDescriptorProto_Type_name, FieldDescriptorProto_Type_value)
proto.RegisterEnum("google.protobuf.FieldDescriptorProto_Label", FieldDescriptorProto_Label_name, FieldDescriptorProto_Label_value)
proto.RegisterEnum("google.protobuf.FileOptions_OptimizeMode", FileOptions_OptimizeMode_name, FileOptions_OptimizeMode_value)
proto.RegisterEnum("google.protobuf.FieldOptions_CType", FieldOptions_CType_name, FieldOptions_CType_value)
}
示例8: init
func init() {
proto.RegisterEnum("dota.EDOTAChatWheelMessage", EDOTAChatWheelMessage_name, EDOTAChatWheelMessage_value)
proto.RegisterEnum("dota.EDOTAStatPopupTypes", EDOTAStatPopupTypes_name, EDOTAStatPopupTypes_value)
}
示例9: init
func init() {
proto.RegisterEnum("dota.EGCSystemMsg", EGCSystemMsg_name, EGCSystemMsg_value)
proto.RegisterEnum("dota.ESOMsg", ESOMsg_name, ESOMsg_value)
proto.RegisterEnum("dota.EGCBaseClientMsg", EGCBaseClientMsg_name, EGCBaseClientMsg_value)
proto.RegisterEnum("dota.EGCToGCMsg", EGCToGCMsg_name, EGCToGCMsg_value)
}
示例10: init
func init() {
proto.RegisterEnum("protobuf.PlayerAction_Action", PlayerAction_Action_name, PlayerAction_Action_value)
}
示例11: init
func init() {
proto.RegisterEnum("dota.EDotaBroadcastMessages", EDotaBroadcastMessages_name, EDotaBroadcastMessages_value)
}
示例12: init
func init() {
proto.RegisterEnum("warden.ProcessPayload_Source", ProcessPayload_Source_name, ProcessPayload_Source_value)
}
示例13: init
func init() {
proto.RegisterEnum("events.PeerType", PeerType_name, PeerType_value)
proto.RegisterEnum("events.HttpStart_Method", HttpStart_Method_name, HttpStart_Method_value)
}
示例14: init
func init() {
proto.RegisterEnum("dota.ENetworkDisconnectionReason", ENetworkDisconnectionReason_name, ENetworkDisconnectionReason_value)
proto.RegisterExtension(E_NetworkConnectionToken)
}
示例15: init
func init() {
proto.RegisterEnum("enumstringer.TheTestEnum", TheTestEnum_name, TheTestEnum_value)
}