本文整理汇总了Golang中github.com/golang/protobuf/proto.RegisterEnum函数的典型用法代码示例。如果您正苦于以下问题:Golang RegisterEnum函数的具体用法?Golang RegisterEnum怎么用?Golang RegisterEnum使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RegisterEnum函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: init
func init() {
proto.RegisterType((*CMsgGenericResult)(nil), "dota.CMsgGenericResult")
proto.RegisterEnum("dota.EGCEconBaseMsg", EGCEconBaseMsg_name, EGCEconBaseMsg_value)
proto.RegisterEnum("dota.EGCMsgResponse", EGCMsgResponse_name, EGCMsgResponse_value)
proto.RegisterEnum("dota.EGCPartnerRequestResponse", EGCPartnerRequestResponse_name, EGCPartnerRequestResponse_value)
proto.RegisterEnum("dota.EGCMsgUseItemResponse", EGCMsgUseItemResponse_name, EGCMsgUseItemResponse_value)
}
开发者ID:HighGroundVision,项目名称:Manta,代码行数:7,代码来源:econ_shared_enums.pb.go
示例2: init
func init() {
proto.RegisterType((*ABitOfEverything)(nil), "gengo.grpc.gateway.examples.examplepb.ABitOfEverything")
proto.RegisterType((*ABitOfEverything_Nested)(nil), "gengo.grpc.gateway.examples.examplepb.ABitOfEverything.Nested")
proto.RegisterType((*EmptyMessage)(nil), "gengo.grpc.gateway.examples.examplepb.EmptyMessage")
proto.RegisterEnum("gengo.grpc.gateway.examples.examplepb.NumericEnum", NumericEnum_name, NumericEnum_value)
proto.RegisterEnum("gengo.grpc.gateway.examples.examplepb.ABitOfEverything_Nested_DeepEnum", ABitOfEverything_Nested_DeepEnum_name, ABitOfEverything_Nested_DeepEnum_value)
}
开发者ID:t-yuki,项目名称:grpc-gateway,代码行数:7,代码来源:a_bit_of_everything.pb.go
示例3: init
func init() {
proto.RegisterType((*Request)(nil), "simonsays.Request")
proto.RegisterType((*Request_Player)(nil), "simonsays.Request.Player")
proto.RegisterType((*Response)(nil), "simonsays.Response")
proto.RegisterEnum("simonsays.Color", Color_name, Color_value)
proto.RegisterEnum("simonsays.Response_State", Response_State_name, Response_State_value)
}
开发者ID:yugui,项目名称:grpc-simon-says,代码行数:7,代码来源:simonsays.pb.go
示例4: init
func init() {
proto.RegisterType((*CMsgVector)(nil), "dota.CMsgVector")
proto.RegisterType((*CMsgVector2D)(nil), "dota.CMsgVector2D")
proto.RegisterType((*CMsgQAngle)(nil), "dota.CMsgQAngle")
proto.RegisterType((*CMsgPlayerInfo)(nil), "dota.CMsgPlayerInfo")
proto.RegisterType((*CMsg_CVars)(nil), "dota.CMsg_CVars")
proto.RegisterType((*CMsg_CVars_CVar)(nil), "dota.CMsg_CVars.CVar")
proto.RegisterType((*CNETMsg_NOP)(nil), "dota.CNETMsg_NOP")
proto.RegisterType((*CNETMsg_SplitScreenUser)(nil), "dota.CNETMsg_SplitScreenUser")
proto.RegisterType((*CNETMsg_Disconnect)(nil), "dota.CNETMsg_Disconnect")
proto.RegisterType((*CNETMsg_Tick)(nil), "dota.CNETMsg_Tick")
proto.RegisterType((*CNETMsg_StringCmd)(nil), "dota.CNETMsg_StringCmd")
proto.RegisterType((*CNETMsg_SetConVar)(nil), "dota.CNETMsg_SetConVar")
proto.RegisterType((*CNETMsg_SignonState)(nil), "dota.CNETMsg_SignonState")
proto.RegisterType((*CSVCMsg_GameEvent)(nil), "dota.CSVCMsg_GameEvent")
proto.RegisterType((*CSVCMsg_GameEventKeyT)(nil), "dota.CSVCMsg_GameEvent.key_t")
proto.RegisterType((*CSVCMsgList_GameEvents)(nil), "dota.CSVCMsgList_GameEvents")
proto.RegisterType((*CSVCMsgList_GameEventsEventT)(nil), "dota.CSVCMsgList_GameEvents.event_t")
proto.RegisterType((*CSVCMsg_UserMessage)(nil), "dota.CSVCMsg_UserMessage")
proto.RegisterType((*CSVCMsgList_UserMessages)(nil), "dota.CSVCMsgList_UserMessages")
proto.RegisterType((*CSVCMsgList_UserMessagesUsermsgT)(nil), "dota.CSVCMsgList_UserMessages.usermsg_t")
proto.RegisterType((*CNETMsg_SpawnGroup_Load)(nil), "dota.CNETMsg_SpawnGroup_Load")
proto.RegisterType((*CNETMsg_SpawnGroup_ManifestUpdate)(nil), "dota.CNETMsg_SpawnGroup_ManifestUpdate")
proto.RegisterType((*CNETMsg_SpawnGroup_SetCreationTick)(nil), "dota.CNETMsg_SpawnGroup_SetCreationTick")
proto.RegisterType((*CNETMsg_SpawnGroup_Unload)(nil), "dota.CNETMsg_SpawnGroup_Unload")
proto.RegisterType((*CNETMsg_SpawnGroup_LoadCompleted)(nil), "dota.CNETMsg_SpawnGroup_LoadCompleted")
proto.RegisterType((*CSVCMsg_GameSessionConfiguration)(nil), "dota.CSVCMsg_GameSessionConfiguration")
proto.RegisterEnum("dota.NET_Messages", NET_Messages_name, NET_Messages_value)
proto.RegisterEnum("dota.SpawnGroupFlagsT", SpawnGroupFlagsT_name, SpawnGroupFlagsT_value)
}
开发者ID:HighGroundVision,项目名称:Manta,代码行数:30,代码来源:networkbasetypes.pb.go
示例5: init
func init() {
proto.RegisterType((*TableMutation)(nil), "binlog.TableMutation")
proto.RegisterType((*PrewriteValue)(nil), "binlog.PrewriteValue")
proto.RegisterType((*Binlog)(nil), "binlog.Binlog")
proto.RegisterEnum("binlog.MutationType", MutationType_name, MutationType_value)
proto.RegisterEnum("binlog.BinlogType", BinlogType_name, BinlogType_value)
}
开发者ID:pingcap,项目名称:tidb,代码行数:7,代码来源:binlog.pb.go
示例6: init
func init() {
proto.RegisterType((*ImagesServiceError)(nil), "appengine.ImagesServiceError")
proto.RegisterType((*ImagesServiceTransform)(nil), "appengine.ImagesServiceTransform")
proto.RegisterType((*Transform)(nil), "appengine.Transform")
proto.RegisterType((*ImageData)(nil), "appengine.ImageData")
proto.RegisterType((*InputSettings)(nil), "appengine.InputSettings")
proto.RegisterType((*OutputSettings)(nil), "appengine.OutputSettings")
proto.RegisterType((*ImagesTransformRequest)(nil), "appengine.ImagesTransformRequest")
proto.RegisterType((*ImagesTransformResponse)(nil), "appengine.ImagesTransformResponse")
proto.RegisterType((*CompositeImageOptions)(nil), "appengine.CompositeImageOptions")
proto.RegisterType((*ImagesCanvas)(nil), "appengine.ImagesCanvas")
proto.RegisterType((*ImagesCompositeRequest)(nil), "appengine.ImagesCompositeRequest")
proto.RegisterType((*ImagesCompositeResponse)(nil), "appengine.ImagesCompositeResponse")
proto.RegisterType((*ImagesHistogramRequest)(nil), "appengine.ImagesHistogramRequest")
proto.RegisterType((*ImagesHistogram)(nil), "appengine.ImagesHistogram")
proto.RegisterType((*ImagesHistogramResponse)(nil), "appengine.ImagesHistogramResponse")
proto.RegisterType((*ImagesGetUrlBaseRequest)(nil), "appengine.ImagesGetUrlBaseRequest")
proto.RegisterType((*ImagesGetUrlBaseResponse)(nil), "appengine.ImagesGetUrlBaseResponse")
proto.RegisterType((*ImagesDeleteUrlBaseRequest)(nil), "appengine.ImagesDeleteUrlBaseRequest")
proto.RegisterType((*ImagesDeleteUrlBaseResponse)(nil), "appengine.ImagesDeleteUrlBaseResponse")
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:David-Shibley,项目名称:goPlayground,代码行数:26,代码来源:images_service.pb.go
示例7: init
func init() {
proto.RegisterType((*Target)(nil), "query.Target")
proto.RegisterType((*VTGateCallerID)(nil), "query.VTGateCallerID")
proto.RegisterType((*Value)(nil), "query.Value")
proto.RegisterType((*BindVariable)(nil), "query.BindVariable")
proto.RegisterType((*BoundQuery)(nil), "query.BoundQuery")
proto.RegisterType((*Field)(nil), "query.Field")
proto.RegisterType((*Row)(nil), "query.Row")
proto.RegisterType((*QueryResult)(nil), "query.QueryResult")
proto.RegisterType((*GetSessionIdRequest)(nil), "query.GetSessionIdRequest")
proto.RegisterType((*GetSessionIdResponse)(nil), "query.GetSessionIdResponse")
proto.RegisterType((*ExecuteRequest)(nil), "query.ExecuteRequest")
proto.RegisterType((*ExecuteResponse)(nil), "query.ExecuteResponse")
proto.RegisterType((*ExecuteBatchRequest)(nil), "query.ExecuteBatchRequest")
proto.RegisterType((*ExecuteBatchResponse)(nil), "query.ExecuteBatchResponse")
proto.RegisterType((*StreamExecuteRequest)(nil), "query.StreamExecuteRequest")
proto.RegisterType((*StreamExecuteResponse)(nil), "query.StreamExecuteResponse")
proto.RegisterType((*BeginRequest)(nil), "query.BeginRequest")
proto.RegisterType((*BeginResponse)(nil), "query.BeginResponse")
proto.RegisterType((*CommitRequest)(nil), "query.CommitRequest")
proto.RegisterType((*CommitResponse)(nil), "query.CommitResponse")
proto.RegisterType((*RollbackRequest)(nil), "query.RollbackRequest")
proto.RegisterType((*RollbackResponse)(nil), "query.RollbackResponse")
proto.RegisterType((*SplitQueryRequest)(nil), "query.SplitQueryRequest")
proto.RegisterType((*QuerySplit)(nil), "query.QuerySplit")
proto.RegisterType((*SplitQueryResponse)(nil), "query.SplitQueryResponse")
proto.RegisterType((*StreamHealthRequest)(nil), "query.StreamHealthRequest")
proto.RegisterType((*RealtimeStats)(nil), "query.RealtimeStats")
proto.RegisterType((*StreamHealthResponse)(nil), "query.StreamHealthResponse")
proto.RegisterEnum("query.Flag", Flag_name, Flag_value)
proto.RegisterEnum("query.Type", Type_name, Type_value)
proto.RegisterEnum("query.SplitQueryRequest_Algorithm", SplitQueryRequest_Algorithm_name, SplitQueryRequest_Algorithm_value)
}
开发者ID:aaijazi,项目名称:vitess,代码行数:33,代码来源:query.pb.go
示例8: 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:hortonworks,项目名称:kubernetes-yarn,代码行数:7,代码来源:images_service.pb.go
示例9: init
func init() {
proto.RegisterType((*Empty)(nil), "protobuf.Empty")
proto.RegisterType((*SketchProperties)(nil), "protobuf.SketchProperties")
proto.RegisterType((*SketchState)(nil), "protobuf.SketchState")
proto.RegisterType((*Domain)(nil), "protobuf.Domain")
proto.RegisterType((*Sketch)(nil), "protobuf.Sketch")
proto.RegisterType((*Membership)(nil), "protobuf.Membership")
proto.RegisterType((*Frequency)(nil), "protobuf.Frequency")
proto.RegisterType((*Rank)(nil), "protobuf.Rank")
proto.RegisterType((*CreateSnapshotRequest)(nil), "protobuf.CreateSnapshotRequest")
proto.RegisterType((*CreateSnapshotReply)(nil), "protobuf.CreateSnapshotReply")
proto.RegisterType((*GetSnapshotRequest)(nil), "protobuf.GetSnapshotRequest")
proto.RegisterType((*GetSnapshotReply)(nil), "protobuf.GetSnapshotReply")
proto.RegisterType((*ListRequest)(nil), "protobuf.ListRequest")
proto.RegisterType((*ListReply)(nil), "protobuf.ListReply")
proto.RegisterType((*ListDomainsReply)(nil), "protobuf.ListDomainsReply")
proto.RegisterType((*AddRequest)(nil), "protobuf.AddRequest")
proto.RegisterType((*AddReply)(nil), "protobuf.AddReply")
proto.RegisterType((*GetRequest)(nil), "protobuf.GetRequest")
proto.RegisterType((*MembershipResult)(nil), "protobuf.MembershipResult")
proto.RegisterType((*FrequencyResult)(nil), "protobuf.FrequencyResult")
proto.RegisterType((*CardinalityResult)(nil), "protobuf.CardinalityResult")
proto.RegisterType((*RankingsResult)(nil), "protobuf.RankingsResult")
proto.RegisterType((*GetMembershipReply)(nil), "protobuf.GetMembershipReply")
proto.RegisterType((*GetFrequencyReply)(nil), "protobuf.GetFrequencyReply")
proto.RegisterType((*GetCardinalityReply)(nil), "protobuf.GetCardinalityReply")
proto.RegisterType((*GetRankingsReply)(nil), "protobuf.GetRankingsReply")
proto.RegisterEnum("protobuf.SketchType", SketchType_name, SketchType_value)
proto.RegisterEnum("protobuf.SnapshotStatus", SnapshotStatus_name, SnapshotStatus_value)
}
开发者ID:njpatel,项目名称:goskizze,代码行数:30,代码来源:skizze.pb.go
示例10: init
func init() {
proto.RegisterType((*ImageFormat)(nil), "v1alpha.ImageFormat")
proto.RegisterType((*Image)(nil), "v1alpha.Image")
proto.RegisterType((*Network)(nil), "v1alpha.Network")
proto.RegisterType((*App)(nil), "v1alpha.App")
proto.RegisterType((*Pod)(nil), "v1alpha.Pod")
proto.RegisterType((*KeyValue)(nil), "v1alpha.KeyValue")
proto.RegisterType((*PodFilter)(nil), "v1alpha.PodFilter")
proto.RegisterType((*ImageFilter)(nil), "v1alpha.ImageFilter")
proto.RegisterType((*Info)(nil), "v1alpha.Info")
proto.RegisterType((*Event)(nil), "v1alpha.Event")
proto.RegisterType((*EventFilter)(nil), "v1alpha.EventFilter")
proto.RegisterType((*GetInfoRequest)(nil), "v1alpha.GetInfoRequest")
proto.RegisterType((*GetInfoResponse)(nil), "v1alpha.GetInfoResponse")
proto.RegisterType((*ListPodsRequest)(nil), "v1alpha.ListPodsRequest")
proto.RegisterType((*ListPodsResponse)(nil), "v1alpha.ListPodsResponse")
proto.RegisterType((*InspectPodRequest)(nil), "v1alpha.InspectPodRequest")
proto.RegisterType((*InspectPodResponse)(nil), "v1alpha.InspectPodResponse")
proto.RegisterType((*ListImagesRequest)(nil), "v1alpha.ListImagesRequest")
proto.RegisterType((*ListImagesResponse)(nil), "v1alpha.ListImagesResponse")
proto.RegisterType((*InspectImageRequest)(nil), "v1alpha.InspectImageRequest")
proto.RegisterType((*InspectImageResponse)(nil), "v1alpha.InspectImageResponse")
proto.RegisterType((*ListenEventsRequest)(nil), "v1alpha.ListenEventsRequest")
proto.RegisterType((*ListenEventsResponse)(nil), "v1alpha.ListenEventsResponse")
proto.RegisterType((*GetLogsRequest)(nil), "v1alpha.GetLogsRequest")
proto.RegisterType((*GetLogsResponse)(nil), "v1alpha.GetLogsResponse")
proto.RegisterEnum("v1alpha.ImageType", ImageType_name, ImageType_value)
proto.RegisterEnum("v1alpha.AppState", AppState_name, AppState_value)
proto.RegisterEnum("v1alpha.PodState", PodState_name, PodState_value)
proto.RegisterEnum("v1alpha.EventType", EventType_name, EventType_value)
}
开发者ID:ethernetdan,项目名称:kubernetes,代码行数:31,代码来源:api.pb.go
示例11: init
func init() {
proto.RegisterType((*CMsgGCGiftedItems)(nil), "CMsgGCGiftedItems")
proto.RegisterType((*CMsgApplyAutograph)(nil), "CMsgApplyAutograph")
proto.RegisterEnum("EGCItemMsg", EGCItemMsg_name, EGCItemMsg_value)
proto.RegisterEnum("EGCMsgResponse", EGCMsgResponse_name, EGCMsgResponse_value)
proto.RegisterEnum("EUnlockStyle", EUnlockStyle_name, EUnlockStyle_value)
}
开发者ID:Gacnt,项目名称:cs-go,代码行数:7,代码来源:econ_gcmessages.pb.go
示例12: init
func init() {
proto.RegisterType((*Account)(nil), "v2ray.core.proxy.shadowsocks.Account")
proto.RegisterType((*ServerConfig)(nil), "v2ray.core.proxy.shadowsocks.ServerConfig")
proto.RegisterType((*ClientConfig)(nil), "v2ray.core.proxy.shadowsocks.ClientConfig")
proto.RegisterEnum("v2ray.core.proxy.shadowsocks.CipherType", CipherType_name, CipherType_value)
proto.RegisterEnum("v2ray.core.proxy.shadowsocks.Account_OneTimeAuth", Account_OneTimeAuth_name, Account_OneTimeAuth_value)
}
开发者ID:v2ray,项目名称:v2ray-core,代码行数:7,代码来源:config.pb.go
示例13: init
func init() {
proto.RegisterType((*CMsgSOIDOwner)(nil), "CMsgSOIDOwner")
proto.RegisterType((*CMsgSOSingleObject)(nil), "CMsgSOSingleObject")
proto.RegisterType((*CMsgSOMultipleObjects)(nil), "CMsgSOMultipleObjects")
proto.RegisterType((*CMsgSOMultipleObjects_SingleObject)(nil), "CMsgSOMultipleObjects.SingleObject")
proto.RegisterType((*CMsgSOCacheSubscribed)(nil), "CMsgSOCacheSubscribed")
proto.RegisterType((*CMsgSOCacheSubscribed_SubscribedType)(nil), "CMsgSOCacheSubscribed.SubscribedType")
proto.RegisterType((*CMsgSOCacheSubscribedUpToDate)(nil), "CMsgSOCacheSubscribedUpToDate")
proto.RegisterType((*CMsgSOCacheUnsubscribed)(nil), "CMsgSOCacheUnsubscribed")
proto.RegisterType((*CMsgSOCacheSubscriptionCheck)(nil), "CMsgSOCacheSubscriptionCheck")
proto.RegisterType((*CMsgSOCacheSubscriptionRefresh)(nil), "CMsgSOCacheSubscriptionRefresh")
proto.RegisterType((*CMsgSOCacheVersion)(nil), "CMsgSOCacheVersion")
proto.RegisterType((*CMsgGCMultiplexMessage)(nil), "CMsgGCMultiplexMessage")
proto.RegisterType((*CGCToGCMsgMasterAck)(nil), "CGCToGCMsgMasterAck")
proto.RegisterType((*CGCToGCMsgMasterAck_Response)(nil), "CGCToGCMsgMasterAck_Response")
proto.RegisterType((*CGCToGCMsgMasterStartupComplete)(nil), "CGCToGCMsgMasterStartupComplete")
proto.RegisterType((*CGCToGCMsgMasterStartupComplete_GCInfo)(nil), "CGCToGCMsgMasterStartupComplete.GCInfo")
proto.RegisterType((*CGCToGCMsgRouted)(nil), "CGCToGCMsgRouted")
proto.RegisterType((*CGCToGCMsgRoutedReply)(nil), "CGCToGCMsgRoutedReply")
proto.RegisterType((*CMsgGCUpdateSubGCSessionInfo)(nil), "CMsgGCUpdateSubGCSessionInfo")
proto.RegisterType((*CMsgGCUpdateSubGCSessionInfo_CMsgUpdate)(nil), "CMsgGCUpdateSubGCSessionInfo.CMsgUpdate")
proto.RegisterType((*CMsgGCRequestSubGCSessionInfo)(nil), "CMsgGCRequestSubGCSessionInfo")
proto.RegisterType((*CMsgGCRequestSubGCSessionInfoResponse)(nil), "CMsgGCRequestSubGCSessionInfoResponse")
proto.RegisterType((*CMsgGCToGCIncrementRecruitmentLevel)(nil), "CMsgGCToGCIncrementRecruitmentLevel")
proto.RegisterType((*CMsgSOCacheHaveVersion)(nil), "CMsgSOCacheHaveVersion")
proto.RegisterType((*CMsgConnectionStatus)(nil), "CMsgConnectionStatus")
proto.RegisterType((*CMsgGCToGCSOCacheSubscribe)(nil), "CMsgGCToGCSOCacheSubscribe")
proto.RegisterType((*CMsgGCToGCSOCacheSubscribe_CMsgHaveVersions)(nil), "CMsgGCToGCSOCacheSubscribe.CMsgHaveVersions")
proto.RegisterType((*CMsgGCToGCSOCacheUnsubscribe)(nil), "CMsgGCToGCSOCacheUnsubscribe")
proto.RegisterType((*CMsgGCClientPing)(nil), "CMsgGCClientPing")
proto.RegisterEnum("PartnerAccountType", PartnerAccountType_name, PartnerAccountType_value)
proto.RegisterEnum("GCConnectionStatus", GCConnectionStatus_name, GCConnectionStatus_value)
}
开发者ID:Inkp,项目名称:go-steam,代码行数:33,代码来源:gcsdk.pb.go
示例14: init
func init() {
proto.RegisterEnum("limitd.Response_Type", Response_Type_name, Response_Type_value)
proto.RegisterEnum("limitd.ErrorResponse_Type", ErrorResponse_Type_name, ErrorResponse_Type_value)
proto.RegisterExtension(E_ErrorResponse_Response)
proto.RegisterExtension(E_TakeResponse_Response)
proto.RegisterExtension(E_PutResponse_Response)
}
开发者ID:limitd,项目名称:go-client,代码行数:7,代码来源:Response.go
示例15: init
func init() {
proto1.RegisterType((*IntegerStatistics)(nil), "proto.IntegerStatistics")
proto1.RegisterType((*DoubleStatistics)(nil), "proto.DoubleStatistics")
proto1.RegisterType((*StringStatistics)(nil), "proto.StringStatistics")
proto1.RegisterType((*BucketStatistics)(nil), "proto.BucketStatistics")
proto1.RegisterType((*DecimalStatistics)(nil), "proto.DecimalStatistics")
proto1.RegisterType((*DateStatistics)(nil), "proto.DateStatistics")
proto1.RegisterType((*TimestampStatistics)(nil), "proto.TimestampStatistics")
proto1.RegisterType((*BinaryStatistics)(nil), "proto.BinaryStatistics")
proto1.RegisterType((*ColumnStatistics)(nil), "proto.ColumnStatistics")
proto1.RegisterType((*RowIndexEntry)(nil), "proto.RowIndexEntry")
proto1.RegisterType((*RowIndex)(nil), "proto.RowIndex")
proto1.RegisterType((*BloomFilter)(nil), "proto.BloomFilter")
proto1.RegisterType((*BloomFilterIndex)(nil), "proto.BloomFilterIndex")
proto1.RegisterType((*Stream)(nil), "proto.Stream")
proto1.RegisterType((*ColumnEncoding)(nil), "proto.ColumnEncoding")
proto1.RegisterType((*StripeFooter)(nil), "proto.StripeFooter")
proto1.RegisterType((*Type)(nil), "proto.Type")
proto1.RegisterType((*StripeInformation)(nil), "proto.StripeInformation")
proto1.RegisterType((*UserMetadataItem)(nil), "proto.UserMetadataItem")
proto1.RegisterType((*StripeStatistics)(nil), "proto.StripeStatistics")
proto1.RegisterType((*Metadata)(nil), "proto.Metadata")
proto1.RegisterType((*Footer)(nil), "proto.Footer")
proto1.RegisterType((*PostScript)(nil), "proto.PostScript")
proto1.RegisterType((*FileTail)(nil), "proto.FileTail")
proto1.RegisterEnum("proto.CompressionKind", CompressionKind_name, CompressionKind_value)
proto1.RegisterEnum("proto.Stream_Kind", Stream_Kind_name, Stream_Kind_value)
proto1.RegisterEnum("proto.ColumnEncoding_Kind", ColumnEncoding_Kind_name, ColumnEncoding_Kind_value)
proto1.RegisterEnum("proto.Type_Kind", Type_Kind_name, Type_Kind_value)
}
开发者ID:scritchley,项目名称:orc,代码行数:30,代码来源:orc.pb.go
示例16: init
func init() {
proto.RegisterType((*Cmd)(nil), "msg.Cmd")
proto.RegisterEnum("msg.Cmd_Cmd", Cmd_Cmd_name, Cmd_Cmd_value)
proto.RegisterEnum("msg.Cmd_PwrValue", Cmd_PwrValue_name, Cmd_PwrValue_value)
proto.RegisterEnum("msg.Cmd_VolValue", Cmd_VolValue_name, Cmd_VolValue_value)
proto.RegisterEnum("msg.Cmd_SrcValue", Cmd_SrcValue_name, Cmd_SrcValue_value)
}
开发者ID:joshuarubin,项目名称:marantz,代码行数:7,代码来源:cmd.pb.go
示例17: init
func init() {
proto.RegisterType((*DependencyMessage)(nil), "messages.DependencyMessage")
proto.RegisterType((*Package)(nil), "messages.Package")
proto.RegisterType((*Package_Repository)(nil), "messages.Package.Repository")
proto.RegisterType((*Package_Version)(nil), "messages.Package.Version")
proto.RegisterType((*Package_Author)(nil), "messages.Package.Author")
proto.RegisterType((*Dependency)(nil), "messages.Dependency")
proto.RegisterType((*VersionInfo)(nil), "messages.VersionInfo")
proto.RegisterType((*SearchResult)(nil), "messages.SearchResult")
proto.RegisterType((*PingRequest)(nil), "messages.PingRequest")
proto.RegisterType((*PingResponse)(nil), "messages.PingResponse")
proto.RegisterType((*PublishRequest)(nil), "messages.PublishRequest")
proto.RegisterType((*PublishResponse)(nil), "messages.PublishResponse")
proto.RegisterType((*DependencyRequest)(nil), "messages.DependencyRequest")
proto.RegisterType((*DependencyResponse)(nil), "messages.DependencyResponse")
proto.RegisterType((*SearchRequest)(nil), "messages.SearchRequest")
proto.RegisterType((*SearchResponse)(nil), "messages.SearchResponse")
proto.RegisterType((*ListRequest)(nil), "messages.ListRequest")
proto.RegisterType((*ListResponse)(nil), "messages.ListResponse")
proto.RegisterType((*LoginRequest)(nil), "messages.LoginRequest")
proto.RegisterType((*LoginResponse)(nil), "messages.LoginResponse")
proto.RegisterType((*InfoRequest)(nil), "messages.InfoRequest")
proto.RegisterType((*InfoResponse)(nil), "messages.InfoResponse")
proto.RegisterType((*LicenseRequest)(nil), "messages.LicenseRequest")
proto.RegisterType((*LicenseResponse)(nil), "messages.LicenseResponse")
proto.RegisterEnum("messages.RepoType", RepoType_name, RepoType_value)
proto.RegisterEnum("messages.LicenseType", LicenseType_name, LicenseType_value)
proto.RegisterEnum("messages.MessageType", MessageType_name, MessageType_value)
}
开发者ID:benlau,项目名称:qpm,代码行数:29,代码来源:qpm.pb.go
示例18: 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:Microsoft,项目名称:colinmarc-hdfs,代码行数:7,代码来源:RpcHeader.pb.go
示例19: init
func init() {
proto.RegisterType((*Event)(nil), "mesos.v1.scheduler.Event")
proto.RegisterType((*Event_Subscribed)(nil), "mesos.v1.scheduler.Event.Subscribed")
proto.RegisterType((*Event_Offers)(nil), "mesos.v1.scheduler.Event.Offers")
proto.RegisterType((*Event_InverseOffers)(nil), "mesos.v1.scheduler.Event.InverseOffers")
proto.RegisterType((*Event_Rescind)(nil), "mesos.v1.scheduler.Event.Rescind")
proto.RegisterType((*Event_RescindInverseOffer)(nil), "mesos.v1.scheduler.Event.RescindInverseOffer")
proto.RegisterType((*Event_Update)(nil), "mesos.v1.scheduler.Event.Update")
proto.RegisterType((*Event_Message)(nil), "mesos.v1.scheduler.Event.Message")
proto.RegisterType((*Event_Failure)(nil), "mesos.v1.scheduler.Event.Failure")
proto.RegisterType((*Event_Error)(nil), "mesos.v1.scheduler.Event.Error")
proto.RegisterType((*Call)(nil), "mesos.v1.scheduler.Call")
proto.RegisterType((*Call_Subscribe)(nil), "mesos.v1.scheduler.Call.Subscribe")
proto.RegisterType((*Call_Accept)(nil), "mesos.v1.scheduler.Call.Accept")
proto.RegisterType((*Call_Decline)(nil), "mesos.v1.scheduler.Call.Decline")
proto.RegisterType((*Call_AcceptInverseOffers)(nil), "mesos.v1.scheduler.Call.AcceptInverseOffers")
proto.RegisterType((*Call_DeclineInverseOffers)(nil), "mesos.v1.scheduler.Call.DeclineInverseOffers")
proto.RegisterType((*Call_Kill)(nil), "mesos.v1.scheduler.Call.Kill")
proto.RegisterType((*Call_Shutdown)(nil), "mesos.v1.scheduler.Call.Shutdown")
proto.RegisterType((*Call_Acknowledge)(nil), "mesos.v1.scheduler.Call.Acknowledge")
proto.RegisterType((*Call_Reconcile)(nil), "mesos.v1.scheduler.Call.Reconcile")
proto.RegisterType((*Call_Reconcile_Task)(nil), "mesos.v1.scheduler.Call.Reconcile.Task")
proto.RegisterType((*Call_Message)(nil), "mesos.v1.scheduler.Call.Message")
proto.RegisterType((*Call_Request)(nil), "mesos.v1.scheduler.Call.Request")
proto.RegisterEnum("mesos.v1.scheduler.Event_Type", Event_Type_name, Event_Type_value)
proto.RegisterEnum("mesos.v1.scheduler.Call_Type", Call_Type_name, Call_Type_value)
}
开发者ID:jimenez,项目名称:mesoscon-demo,代码行数:27,代码来源:scheduler.pb.go
示例20: init
func init() {
proto.RegisterType((*LockInfo)(nil), "kvrpcpb.LockInfo")
proto.RegisterType((*KeyError)(nil), "kvrpcpb.KeyError")
proto.RegisterType((*Context)(nil), "kvrpcpb.Context")
proto.RegisterType((*CmdGetRequest)(nil), "kvrpcpb.CmdGetRequest")
proto.RegisterType((*CmdGetResponse)(nil), "kvrpcpb.CmdGetResponse")
proto.RegisterType((*CmdScanRequest)(nil), "kvrpcpb.CmdScanRequest")
proto.RegisterType((*KvPair)(nil), "kvrpcpb.KvPair")
proto.RegisterType((*CmdScanResponse)(nil), "kvrpcpb.CmdScanResponse")
proto.RegisterType((*Mutation)(nil), "kvrpcpb.Mutation")
proto.RegisterType((*CmdPrewriteRequest)(nil), "kvrpcpb.CmdPrewriteRequest")
proto.RegisterType((*CmdPrewriteResponse)(nil), "kvrpcpb.CmdPrewriteResponse")
proto.RegisterType((*CmdCommitRequest)(nil), "kvrpcpb.CmdCommitRequest")
proto.RegisterType((*CmdCommitResponse)(nil), "kvrpcpb.CmdCommitResponse")
proto.RegisterType((*CmdBatchRollbackRequest)(nil), "kvrpcpb.CmdBatchRollbackRequest")
proto.RegisterType((*CmdBatchRollbackResponse)(nil), "kvrpcpb.CmdBatchRollbackResponse")
proto.RegisterType((*CmdCleanupRequest)(nil), "kvrpcpb.CmdCleanupRequest")
proto.RegisterType((*CmdCleanupResponse)(nil), "kvrpcpb.CmdCleanupResponse")
proto.RegisterType((*CmdRollbackThenGetRequest)(nil), "kvrpcpb.CmdRollbackThenGetRequest")
proto.RegisterType((*CmdRollbackThenGetResponse)(nil), "kvrpcpb.CmdRollbackThenGetResponse")
proto.RegisterType((*CmdCommitThenGetRequest)(nil), "kvrpcpb.CmdCommitThenGetRequest")
proto.RegisterType((*CmdCommitThenGetResponse)(nil), "kvrpcpb.CmdCommitThenGetResponse")
proto.RegisterType((*CmdBatchGetRequest)(nil), "kvrpcpb.CmdBatchGetRequest")
proto.RegisterType((*CmdBatchGetResponse)(nil), "kvrpcpb.CmdBatchGetResponse")
proto.RegisterType((*Request)(nil), "kvrpcpb.Request")
proto.RegisterType((*Response)(nil), "kvrpcpb.Response")
proto.RegisterEnum("kvrpcpb.MessageType", MessageType_name, MessageType_value)
proto.RegisterEnum("kvrpcpb.Op", Op_name, Op_value)
}
开发者ID:anywhy,项目名称:tidb,代码行数:29,代码来源:kvrpcpb.pb.go
注:本文中的github.com/golang/protobuf/proto.RegisterEnum函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论