当前位置: 首页>>代码示例>>Golang>>正文


Golang proto.RegisterEnum函数代码示例

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


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


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