• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Golang proto.RegisterEnum函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Golang中code/google/com/p/goprotobuf/proto.RegisterEnum函数的典型用法代码示例。如果您正苦于以下问题:Golang RegisterEnum函数的具体用法?Golang RegisterEnum怎么用?Golang RegisterEnum使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了RegisterEnum函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。

示例1: init

func init() {
	proto.RegisterEnum("protobufs.LossFunction", LossFunction_name, LossFunction_value)
	proto.RegisterEnum("protobufs.Rescaling", Rescaling_name, Rescaling_value)
	proto.RegisterEnum("protobufs.Algorithm", Algorithm_name, Algorithm_value)
	proto.RegisterEnum("protobufs.TrainingStatus", TrainingStatus_name, TrainingStatus_value)
	proto.RegisterEnum("protobufs.DataSource", DataSource_name, DataSource_value)
}
开发者ID:adamdrake,项目名称:decisiontrees,代码行数:7,代码来源:decisiontrees.pb.go


示例2: init

func init() {
	proto.RegisterEnum("Auth.Buddy.S2C.EditCategoryError_EditCategoryErrorType", EditCategoryError_EditCategoryErrorType_name, EditCategoryError_EditCategoryErrorType_value)
	proto.RegisterEnum("Auth.Buddy.S2C.DeleteCategoryError_DeleteCategoryErrorType", DeleteCategoryError_DeleteCategoryErrorType_name, DeleteCategoryError_DeleteCategoryErrorType_value)
	proto.RegisterEnum("Auth.Buddy.S2C.RequestAddBuddyError_RequestAddBuddyErrorType", RequestAddBuddyError_RequestAddBuddyErrorType_name, RequestAddBuddyError_RequestAddBuddyErrorType_value)
	proto.RegisterEnum("Auth.Buddy.S2C.DeleteBuddyError_DeleteBuddyErrorType", DeleteBuddyError_DeleteBuddyErrorType_name, DeleteBuddyError_DeleteBuddyErrorType_value)
	proto.RegisterEnum("Auth.Buddy.S2C.RequestUserInfoError_RequestUserInfoErrorType", RequestUserInfoError_RequestUserInfoErrorType_name, RequestUserInfoError_RequestUserInfoErrorType_value)
}
开发者ID:botaydotcom,项目名称:GoMessagingTestFrameWork,代码行数:7,代码来源:S2CBuddyProtocol.pb.go


示例3: init

func init() {
	proto.RegisterEnum("hadoop.common.RpcKindProto", RpcKindProto_name, RpcKindProto_value)
	proto.RegisterEnum("hadoop.common.RpcRequestHeaderProto_OperationProto", RpcRequestHeaderProto_OperationProto_name, RpcRequestHeaderProto_OperationProto_value)
	proto.RegisterEnum("hadoop.common.RpcResponseHeaderProto_RpcStatusProto", RpcResponseHeaderProto_RpcStatusProto_name, RpcResponseHeaderProto_RpcStatusProto_value)
	proto.RegisterEnum("hadoop.common.RpcResponseHeaderProto_RpcErrorCodeProto", RpcResponseHeaderProto_RpcErrorCodeProto_name, RpcResponseHeaderProto_RpcErrorCodeProto_value)
	proto.RegisterEnum("hadoop.common.RpcSaslProto_SaslState", RpcSaslProto_SaslState_name, RpcSaslProto_SaslState_value)
}
开发者ID:hortonworks,项目名称:kubernetes-yarn,代码行数:7,代码来源:RpcHeader.pb.go


示例4: init

func init() {
	proto.RegisterEnum("appengine.ImagesServiceError_ErrorCode", ImagesServiceError_ErrorCode_name, ImagesServiceError_ErrorCode_value)
	proto.RegisterEnum("appengine.ImagesServiceTransform_Type", ImagesServiceTransform_Type_name, ImagesServiceTransform_Type_value)
	proto.RegisterEnum("appengine.InputSettings_ORIENTATION_CORRECTION_TYPE", InputSettings_ORIENTATION_CORRECTION_TYPE_name, InputSettings_ORIENTATION_CORRECTION_TYPE_value)
	proto.RegisterEnum("appengine.OutputSettings_MIME_TYPE", OutputSettings_MIME_TYPE_name, OutputSettings_MIME_TYPE_value)
	proto.RegisterEnum("appengine.CompositeImageOptions_ANCHOR", CompositeImageOptions_ANCHOR_name, CompositeImageOptions_ANCHOR_value)
}
开发者ID:yschu7,项目名称:go_test,代码行数:7,代码来源:images_service.pb.go


示例5: 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)
	proto.RegisterEnum("google_protobuf.StreamOptions_TokenUnit", StreamOptions_TokenUnit_name, StreamOptions_TokenUnit_value)
}
开发者ID:jaredwilkening,项目名称:goprotobuf,代码行数:7,代码来源:descriptor.pb.go


示例6: 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)
}
开发者ID:Greentor,项目名称:roshi,代码行数:8,代码来源:test.pb.go


示例7: init

func init() {
	proto.RegisterEnum("dbproto.Command", Command_name, Command_value)
	proto.RegisterEnum("dbproto.Errcode", Errcode_name, Errcode_value)
	proto.RegisterEnum("dbproto.Flags", Flags_name, Flags_value)
	proto.RegisterExtension(E_Index)
	proto.RegisterExtension(E_IndexUnique)
	proto.RegisterExtension(E_MysqlCreateOption)
	proto.RegisterExtension(E_Orm)
	proto.RegisterExtension(E_Indexfield)
	proto.RegisterExtension(E_MysqlCreateTableOption)
}
开发者ID:lijie,项目名称:siriusdb,代码行数:11,代码来源:dbproxy.pb.go


示例8: init

func init() {
	proto.RegisterEnum("testdata.FOO", FOO_name, FOO_value)
	proto.RegisterEnum("testdata.GoTest_KIND", GoTest_KIND_name, GoTest_KIND_value)
	proto.RegisterEnum("testdata.MyMessage_Color", MyMessage_Color_name, MyMessage_Color_value)
	proto.RegisterEnum("testdata.Defaults_Color", Defaults_Color_name, Defaults_Color_value)
	proto.RegisterEnum("testdata.RepeatedEnum_Color", RepeatedEnum_Color_name, RepeatedEnum_Color_value)
	proto.RegisterExtension(E_Ext_More)
	proto.RegisterExtension(E_Ext_Text)
	proto.RegisterExtension(E_Ext_Number)
	proto.RegisterExtension(E_Greeting)
}
开发者ID:LeXa4894,项目名称:test,代码行数:11,代码来源:test.pb.go


示例9: init

func init() {
	proto.RegisterEnum("message.Account_Type", Account_Type_name, Account_Type_value)
	proto.RegisterEnum("message.Birthday_Month", Birthday_Month_name, Birthday_Month_value)
	proto.RegisterEnum("message.Profile_Gender", Profile_Gender_name, Profile_Gender_value)
	proto.RegisterExtension(E_Veryfy_Account)
	proto.RegisterExtension(E_Veryfy_User)
	proto.RegisterExtension(E_Register_User)
	proto.RegisterExtension(E_Register_Captcha)
	proto.RegisterExtension(E_Login_Account)
	proto.RegisterExtension(E_Login_User)
	proto.RegisterExtension(E_Update_New)
	proto.RegisterExtension(E_Update_User)
}
开发者ID:henglinli,项目名称:goserver,代码行数:13,代码来源:extensions.pb.go


示例10: init

func init() {
	proto.RegisterEnum("jesgoo.uilog.MediaType", MediaType_name, MediaType_value)
	proto.RegisterEnum("jesgoo.uilog.AdslotType", AdslotType_name, AdslotType_value)
	proto.RegisterEnum("jesgoo.uilog.NetworkType", NetworkType_name, NetworkType_value)
	proto.RegisterEnum("jesgoo.uilog.OSType", OSType_name, OSType_value)
	proto.RegisterEnum("jesgoo.uilog.DeviceIdType", DeviceIdType_name, DeviceIdType_value)
	proto.RegisterEnum("jesgoo.uilog.AdType", AdType_name, AdType_value)
	proto.RegisterEnum("jesgoo.uilog.AdSrc", AdSrc_name, AdSrc_value)
	proto.RegisterEnum("jesgoo.uilog.InteractionType", InteractionType_name, InteractionType_value)
	proto.RegisterEnum("jesgoo.uilog.ClientType", ClientType_name, ClientType_value)
}
开发者ID:ifzz,项目名称:seller_adptor,代码行数:11,代码来源:uilog.pb.go


示例11: init

func init() {
	proto.RegisterEnum("api.services.datastore.EntityResult_ResultType", EntityResult_ResultType_name, EntityResult_ResultType_value)
	proto.RegisterEnum("api.services.datastore.PropertyExpression_AggregationFunction", PropertyExpression_AggregationFunction_name, PropertyExpression_AggregationFunction_value)
	proto.RegisterEnum("api.services.datastore.PropertyOrder_Direction", PropertyOrder_Direction_name, PropertyOrder_Direction_value)
	proto.RegisterEnum("api.services.datastore.CompositeFilter_Operator", CompositeFilter_Operator_name, CompositeFilter_Operator_value)
	proto.RegisterEnum("api.services.datastore.PropertyFilter_Operator", PropertyFilter_Operator_name, PropertyFilter_Operator_value)
	proto.RegisterEnum("api.services.datastore.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value)
	proto.RegisterEnum("api.services.datastore.ReadOptions_ReadConsistency", ReadOptions_ReadConsistency_name, ReadOptions_ReadConsistency_value)
	proto.RegisterEnum("api.services.datastore.BeginTransactionRequest_IsolationLevel", BeginTransactionRequest_IsolationLevel_name, BeginTransactionRequest_IsolationLevel_value)
	proto.RegisterEnum("api.services.datastore.CommitRequest_Mode", CommitRequest_Mode_name, CommitRequest_Mode_value)
}
开发者ID:razvanm,项目名称:google-cloud-datastore-go,代码行数:11,代码来源:datastore_v1.pb.go


示例12: init

func init() {
	proto.RegisterEnum("appengine.MemcacheShardingStrategy_Enum", MemcacheShardingStrategy_Enum_name, MemcacheShardingStrategy_Enum_value)
	proto.RegisterEnum("appengine.MemcacheServiceError_ErrorCode", MemcacheServiceError_ErrorCode_name, MemcacheServiceError_ErrorCode_value)
	proto.RegisterEnum("appengine.MemcacheSetRequest_SetPolicy", MemcacheSetRequest_SetPolicy_name, MemcacheSetRequest_SetPolicy_value)
	proto.RegisterEnum("appengine.MemcacheSetResponse_SetStatusCode", MemcacheSetResponse_SetStatusCode_name, MemcacheSetResponse_SetStatusCode_value)
	proto.RegisterEnum("appengine.MemcacheDeleteResponse_DeleteStatusCode", MemcacheDeleteResponse_DeleteStatusCode_name, MemcacheDeleteResponse_DeleteStatusCode_value)
	proto.RegisterEnum("appengine.MemcacheIncrementRequest_Direction", MemcacheIncrementRequest_Direction_name, MemcacheIncrementRequest_Direction_value)
	proto.RegisterEnum("appengine.MemcacheIncrementResponse_IncrementStatusCode", MemcacheIncrementResponse_IncrementStatusCode_name, MemcacheIncrementResponse_IncrementStatusCode_value)
}
开发者ID:LeXa4894,项目名称:test,代码行数:9,代码来源:memcache_service.pb.go


示例13: init

func init() {
	proto.RegisterEnum("transit_realtime.FeedHeader_Incrementality", FeedHeader_Incrementality_name, FeedHeader_Incrementality_value)
	proto.RegisterEnum("transit_realtime.TripUpdate_StopTimeUpdate_ScheduleRelationship", TripUpdate_StopTimeUpdate_ScheduleRelationship_name, TripUpdate_StopTimeUpdate_ScheduleRelationship_value)
	proto.RegisterEnum("transit_realtime.VehiclePosition_VehicleStopStatus", VehiclePosition_VehicleStopStatus_name, VehiclePosition_VehicleStopStatus_value)
	proto.RegisterEnum("transit_realtime.VehiclePosition_CongestionLevel", VehiclePosition_CongestionLevel_name, VehiclePosition_CongestionLevel_value)
	proto.RegisterEnum("transit_realtime.Alert_Cause", Alert_Cause_name, Alert_Cause_value)
	proto.RegisterEnum("transit_realtime.Alert_Effect", Alert_Effect_name, Alert_Effect_value)
	proto.RegisterEnum("transit_realtime.TripDescriptor_ScheduleRelationship", TripDescriptor_ScheduleRelationship_name, TripDescriptor_ScheduleRelationship_value)
}
开发者ID:0x7cc,项目名称:rsc,代码行数:9,代码来源:gtfs.pb.go


示例14: init

func init() {
	proto.RegisterEnum("VersionDummy_Version", VersionDummy_Version_name, VersionDummy_Version_value)
	proto.RegisterEnum("VersionDummy_Protocol", VersionDummy_Protocol_name, VersionDummy_Protocol_value)
	proto.RegisterEnum("Query_QueryType", Query_QueryType_name, Query_QueryType_value)
	proto.RegisterEnum("Frame_FrameType", Frame_FrameType_name, Frame_FrameType_value)
	proto.RegisterEnum("Response_ResponseType", Response_ResponseType_name, Response_ResponseType_value)
	proto.RegisterEnum("Datum_DatumType", Datum_DatumType_name, Datum_DatumType_value)
	proto.RegisterEnum("Term_TermType", Term_TermType_name, Term_TermType_value)
}
开发者ID:carriercomm,项目名称:lavabot,代码行数:9,代码来源:ql2.pb.go


示例15: init

func init() {
	proto.RegisterEnum("Auth.Buddy.Common.RemoteUserAction", RemoteUserAction_name, RemoteUserAction_value)
	proto.RegisterEnum("Auth.Buddy.Common.RequestBuddyInfoType", RequestBuddyInfoType_name, RequestBuddyInfoType_value)
	proto.RegisterEnum("Auth.Buddy.Common.UserOnlineStatus", UserOnlineStatus_name, UserOnlineStatus_value)
	proto.RegisterEnum("Auth.Buddy.Common.UserBuddyRelationship", UserBuddyRelationship_name, UserBuddyRelationship_value)
	proto.RegisterEnum("Auth.Buddy.Common.UserOptionInfo", UserOptionInfo_name, UserOptionInfo_value)
	proto.RegisterEnum("Auth.Buddy.Common.AddBuddyResultCode", AddBuddyResultCode_name, AddBuddyResultCode_value)
}
开发者ID:botaydotcom,项目名称:GoMessagingTestFrameWork,代码行数:8,代码来源:CommonBuddyProtocol.pb.go


示例16: init

func init() {
	proto.RegisterEnum("files.FileServiceErrors_ErrorCode", FileServiceErrors_ErrorCode_name, FileServiceErrors_ErrorCode_value)
	proto.RegisterEnum("files.FileContentType_ContentType", FileContentType_ContentType_name, FileContentType_ContentType_value)
	proto.RegisterEnum("files.OpenRequest_OpenMode", OpenRequest_OpenMode_name, OpenRequest_OpenMode_value)
	proto.RegisterEnum("files.ShuffleEnums_InputFormat", ShuffleEnums_InputFormat_name, ShuffleEnums_InputFormat_value)
	proto.RegisterEnum("files.ShuffleEnums_OutputFormat", ShuffleEnums_OutputFormat_name, ShuffleEnums_OutputFormat_value)
	proto.RegisterEnum("files.ShuffleEnums_Status", ShuffleEnums_Status_name, ShuffleEnums_Status_value)
}
开发者ID:yschu7,项目名称:go_test,代码行数:8,代码来源:file_service.pb.go


示例17: init

func init() {
	proto.RegisterEnum("P.Common.StringMaxLen", StringMaxLen_name, StringMaxLen_value)
	proto.RegisterEnum("P.Common.ChannelMembership", ChannelMembership_name, ChannelMembership_value)
	proto.RegisterEnum("P.Common.UserQueueMoveAction", UserQueueMoveAction_name, UserQueueMoveAction_value)
	proto.RegisterEnum("P.Common.VoiceModeControl_MaxMicTime", VoiceModeControl_MaxMicTime_name, VoiceModeControl_MaxMicTime_value)
	proto.RegisterEnum("P.Common.VoiceModeControl_EnumVoiceModeControl", VoiceModeControl_EnumVoiceModeControl_name, VoiceModeControl_EnumVoiceModeControl_value)
	proto.RegisterEnum("P.Common.ChannelTextControlInfo_ControlInfoOption", ChannelTextControlInfo_ControlInfoOption_name, ChannelTextControlInfo_ControlInfoOption_value)
}
开发者ID:botaydotcom,项目名称:GoMessagingTestFrameWork,代码行数:8,代码来源:CommonProtocol.pb.go


示例18: init

func init() {
	proto.RegisterEnum("mesosproto.Status", Status_name, Status_value)
	proto.RegisterEnum("mesosproto.TaskState", TaskState_name, TaskState_value)
	proto.RegisterEnum("mesosproto.Value_Type", Value_Type_name, Value_Type_value)
}
开发者ID:nekto0n,项目名称:gomes,代码行数:5,代码来源:mesos.pb.go


示例19: init

func init() {
	proto.RegisterEnum("protocol.Request_Type", Request_Type_name, Request_Type_value)
	proto.RegisterEnum("protocol.Response_Type", Response_Type_name, Response_Type_value)
	proto.RegisterEnum("protocol.Response_ErrorCode", Response_ErrorCode_name, Response_ErrorCode_value)
}
开发者ID:ronaldevers,项目名称:influxdb,代码行数:5,代码来源:protocol.pb.go


示例20: init

func init() {
	proto.RegisterEnum("onlineproto.Command", Command_name, Command_value)
	proto.RegisterEnum("onlineproto.Errcode", Errcode_name, Errcode_value)
}
开发者ID:lijie,项目名称:siriusdb,代码行数:4,代码来源:online.pb.go



注:本文中的code/google/com/p/goprotobuf/proto.RegisterEnum函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Golang proto.String函数代码示例发布时间:2022-05-24
下一篇:
Golang proto.NewBuffer函数代码示例发布时间:2022-05-24
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap