Golang RegisterEnum示例

说明

golang registerenum示例是从最受好评的开源项目中提取的实现代码,你可以参考下面示例的使用方式。

编程语言: Golang

命名空间/包名称: github.com/golang/protobuf/proto

示例#1
文件: econ_shared_enums.pb.go 项目: HighGroundVision/Manta

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)
}

示例#2
文件: a_bit_of_everything.pb.go 项目: t-yuki/grpc-gateway

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)
}

示例#3
文件: simonsays.pb.go 项目: yugui/grpc-simon-says

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)
}

示例#4
文件: networkbasetypes.pb.go 项目: HighGroundVision/Manta

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)
}

示例#5
文件: binlog.pb.go 项目: pingcap/tidb

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)
}

示例#6
文件: images_service.pb.go 项目: David-Shibley/goPlayground

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)
}

示例#7
文件: query.pb.go 项目: aaijazi/vitess

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)
}

示例#8
文件: images_service.pb.go 项目: hortonworks/kubernetes-yarn

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)
}

示例#9
文件: skizze.pb.go 项目: njpatel/goskizze

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)
}

示例#10
文件: api.pb.go 项目: ethernetdan/kubernetes

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)
}

示例#11
文件: econ_gcmessages.pb.go 项目: Gacnt/cs-go

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)
}

示例#12
文件: config.pb.go 项目: v2ray/v2ray-core

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)
}

示例#13
文件: gcsdk.pb.go 项目: Inkp/go-steam

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)
}

示例#14
文件: Response.go 项目: limitd/go-client

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)
}

示例#15
文件: orc.pb.go 项目: scritchley/orc

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)
}

示例#16

func init() {
	proto.RegisterType((*RicardianContract)(nil), "RicardianContract")
	proto.RegisterType((*Listing)(nil), "Listing")
	proto.RegisterType((*Listing_Metadata)(nil), "Listing.Metadata")
	proto.RegisterType((*Listing_Item)(nil), "Listing.Item")
	proto.RegisterType((*Listing_Item_Option)(nil), "Listing.Item.Option")
	proto.RegisterType((*Listing_Shipping)(nil), "Listing.Shipping")
	proto.RegisterType((*Listing_Shipping_EstimatedDelivery)(nil), "Listing.Shipping.EstimatedDelivery")
	proto.RegisterType((*Listing_Price)(nil), "Listing.Price")
	proto.RegisterType((*Listing_Price_Fiat)(nil), "Listing.Price.Fiat")
	proto.RegisterType((*Order)(nil), "Order")
	proto.RegisterType((*Order_Shipping)(nil), "Order.Shipping")
	proto.RegisterType((*Order_Item)(nil), "Order.Item")
	proto.RegisterType((*Order_Item_Option)(nil), "Order.Item.Option")
	proto.RegisterType((*Order_Payment)(nil), "Order.Payment")
	proto.RegisterType((*OrderConfirmation)(nil), "OrderConfirmation")
	proto.RegisterType((*Rating)(nil), "Rating")
	proto.RegisterType((*Dispute)(nil), "Dispute")
	proto.RegisterType((*DisputeResolution)(nil), "DisputeResolution")
	proto.RegisterType((*Refund)(nil), "Refund")
	proto.RegisterType((*ID)(nil), "ID")
	proto.RegisterType((*ID_Pubkeys)(nil), "ID.Pubkeys")
	proto.RegisterType((*Signatures)(nil), "Signatures")
	proto.RegisterEnum("Listing_Metadata_CategorySub", Listing_Metadata_CategorySub_name, Listing_Metadata_CategorySub_value)
	proto.RegisterEnum("Listing_Metadata_Category", Listing_Metadata_Category_name, Listing_Metadata_Category_value)
	proto.RegisterEnum("Order_Payment_Method", Order_Payment_Method_name, Order_Payment_Method_value)
	proto.RegisterEnum("Signatures_Section", Signatures_Section_name, Signatures_Section_value)
}

示例#17
文件: cmd.pb.go 项目: joshuarubin/marantz

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)
}

示例#18
文件: qpm.pb.go 项目: benlau/qpm

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)
}

示例#19
文件: RpcHeader.pb.go 项目: Microsoft/colinmarc-hdfs

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)
}

示例#20
文件: scheduler.pb.go 项目: jimenez/mesoscon-demo

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)
}

示例#21
文件: kvrpcpb.pb.go 项目: anywhy/tidb

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)
}

示例#22
文件: fabric.pb.go 项目: yoshiharay/fabric

func init() {
	proto.RegisterType((*Transaction)(nil), "protos.Transaction")
	proto.RegisterType((*TransactionBlock)(nil), "protos.TransactionBlock")
	proto.RegisterType((*TransactionResult)(nil), "protos.TransactionResult")
	proto.RegisterType((*Block)(nil), "protos.Block")
	proto.RegisterType((*BlockchainInfo)(nil), "protos.BlockchainInfo")
	proto.RegisterType((*NonHashData)(nil), "protos.NonHashData")
	proto.RegisterType((*PeerAddress)(nil), "protos.PeerAddress")
	proto.RegisterType((*PeerID)(nil), "protos.PeerID")
	proto.RegisterType((*PeerEndpoint)(nil), "protos.PeerEndpoint")
	proto.RegisterType((*PeersMessage)(nil), "protos.PeersMessage")
	proto.RegisterType((*PeersAddresses)(nil), "protos.PeersAddresses")
	proto.RegisterType((*HelloMessage)(nil), "protos.HelloMessage")
	proto.RegisterType((*Message)(nil), "protos.Message")
	proto.RegisterType((*Response)(nil), "protos.Response")
	proto.RegisterType((*BlockState)(nil), "protos.BlockState")
	proto.RegisterType((*SyncBlockRange)(nil), "protos.SyncBlockRange")
	proto.RegisterType((*SyncBlocks)(nil), "protos.SyncBlocks")
	proto.RegisterType((*SyncStateSnapshotRequest)(nil), "protos.SyncStateSnapshotRequest")
	proto.RegisterType((*SyncStateSnapshot)(nil), "protos.SyncStateSnapshot")
	proto.RegisterType((*SyncStateDeltasRequest)(nil), "protos.SyncStateDeltasRequest")
	proto.RegisterType((*SyncStateDeltas)(nil), "protos.SyncStateDeltas")
	proto.RegisterEnum("protos.Transaction_Type", Transaction_Type_name, Transaction_Type_value)
	proto.RegisterEnum("protos.PeerEndpoint_Type", PeerEndpoint_Type_name, PeerEndpoint_Type_value)
	proto.RegisterEnum("protos.Message_Type", Message_Type_name, Message_Type_value)
	proto.RegisterEnum("protos.Response_StatusCode", Response_StatusCode_name, Response_StatusCode_value)
}

示例#23
文件: protot.pb.go 项目: piotrkowalczuk/protot

func init() {
	proto.RegisterType((*QueryString)(nil), "protot.QueryString")
	proto.RegisterType((*QueryInt64)(nil), "protot.QueryInt64")
	proto.RegisterType((*QueryFloat64)(nil), "protot.QueryFloat64")
	proto.RegisterType((*QueryTimestamp)(nil), "protot.QueryTimestamp")
	proto.RegisterEnum("protot.TextQueryType", TextQueryType_name, TextQueryType_value)
	proto.RegisterEnum("protot.NumericQueryType", NumericQueryType_name, NumericQueryType_value)
}

示例#24
文件: config.pb.go 项目: ylywyn/v2ray-core

func init() {
	proto.RegisterType((*Domain)(nil), "v2ray.core.app.router.Domain")
	proto.RegisterType((*CIDR)(nil), "v2ray.core.app.router.CIDR")
	proto.RegisterType((*RoutingRule)(nil), "v2ray.core.app.router.RoutingRule")
	proto.RegisterType((*Config)(nil), "v2ray.core.app.router.Config")
	proto.RegisterEnum("v2ray.core.app.router.Domain_Type", Domain_Type_name, Domain_Type_value)
	proto.RegisterEnum("v2ray.core.app.router.Config_DomainStrategy", Config_DomainStrategy_name, Config_DomainStrategy_value)
}

示例#25
文件: capability_service.pb.go 项目: David-Shibley/goPlayground

func init() {
	proto.RegisterType((*CapabilityConfigList)(nil), "appengine.CapabilityConfigList")
	proto.RegisterType((*CapabilityConfig)(nil), "appengine.CapabilityConfig")
	proto.RegisterType((*IsEnabledRequest)(nil), "appengine.IsEnabledRequest")
	proto.RegisterType((*IsEnabledResponse)(nil), "appengine.IsEnabledResponse")
	proto.RegisterEnum("appengine.CapabilityConfig_Status", CapabilityConfig_Status_name, CapabilityConfig_Status_value)
	proto.RegisterEnum("appengine.IsEnabledResponse_SummaryStatus", IsEnabledResponse_SummaryStatus_name, IsEnabledResponse_SummaryStatus_value)
}

示例#26
文件: flow.pb.go 项目: fdebonneval/skydive

func init() {
	proto.RegisterType((*FlowEndpointStatistics)(nil), "flow.FlowEndpointStatistics")
	proto.RegisterType((*FlowEndpointsStatistics)(nil), "flow.FlowEndpointsStatistics")
	proto.RegisterType((*FlowStatistics)(nil), "flow.FlowStatistics")
	proto.RegisterType((*Flow)(nil), "flow.Flow")
	proto.RegisterEnum("flow.FlowEndpointLayer", FlowEndpointLayer_name, FlowEndpointLayer_value)
	proto.RegisterEnum("flow.FlowEndpointType", FlowEndpointType_name, FlowEndpointType_value)
}

示例#27
文件: ricochet.pb.go 项目: Yawning/ricochet

func init() {
	proto.RegisterEnum("packet.ChannelResult_CommonError", ChannelResult_CommonError_name, ChannelResult_CommonError_value)
	proto.RegisterEnum("packet.ContactRequestResponse_Status", ContactRequestResponse_Status_name, ContactRequestResponse_Status_value)
	proto.RegisterExtension(E_ClientCookie)
	proto.RegisterExtension(E_ServerCookie)
	proto.RegisterExtension(E_ContactRequest)
	proto.RegisterExtension(E_Response)
}

示例#28
文件: api_v2.pb.go 项目: manuviswam/gauge-go

func init() {
	proto.RegisterType((*ExecutionRequest)(nil), "gauge.messages.ExecutionRequest")
	proto.RegisterType((*ExecutionResponse)(nil), "gauge.messages.ExecutionResponse")
	proto.RegisterType((*ExecutionResponse_ExecutionError)(nil), "gauge.messages.ExecutionResponse.ExecutionError")
	proto.RegisterEnum("gauge.messages.ExecutionRequest_LogLevel", ExecutionRequest_LogLevel_name, ExecutionRequest_LogLevel_value)
	proto.RegisterEnum("gauge.messages.ExecutionRequest_Strategy", ExecutionRequest_Strategy_name, ExecutionRequest_Strategy_value)
	proto.RegisterEnum("gauge.messages.ExecutionResponse_ExecutionResponseType", ExecutionResponse_ExecutionResponseType_name, ExecutionResponse_ExecutionResponseType_value)
	proto.RegisterEnum("gauge.messages.ExecutionResponse_Status", ExecutionResponse_Status_name, ExecutionResponse_Status_value)
}

示例#29
文件: urlfetch_service.pb.go 项目: David-Shibley/goPlayground

func init() {
	proto.RegisterType((*URLFetchServiceError)(nil), "appengine.URLFetchServiceError")
	proto.RegisterType((*URLFetchRequest)(nil), "appengine.URLFetchRequest")
	proto.RegisterType((*URLFetchRequest_Header)(nil), "appengine.URLFetchRequest.Header")
	proto.RegisterType((*URLFetchResponse)(nil), "appengine.URLFetchResponse")
	proto.RegisterType((*URLFetchResponse_Header)(nil), "appengine.URLFetchResponse.Header")
	proto.RegisterEnum("appengine.URLFetchServiceError_ErrorCode", URLFetchServiceError_ErrorCode_name, URLFetchServiceError_ErrorCode_value)
	proto.RegisterEnum("appengine.URLFetchRequest_RequestMethod", URLFetchRequest_RequestMethod_name, URLFetchRequest_RequestMethod_value)
}

示例#30
文件: content.pb.go 项目: otsimo/distribution

func init() {
	proto.RegisterType((*Content)(nil), "apipb.Content")
	proto.RegisterType((*ContentListRequest)(nil), "apipb.ContentListRequest")
	proto.RegisterType((*ContentListResponse)(nil), "apipb.ContentListResponse")
	proto.RegisterType((*ContentGetRequest)(nil), "apipb.ContentGetRequest")
	proto.RegisterEnum("apipb.ContentListRequest_ListStatus", ContentListRequest_ListStatus_name, ContentListRequest_ListStatus_value)
	proto.RegisterEnum("apipb.ContentListRequest_SortBy", ContentListRequest_SortBy_name, ContentListRequest_SortBy_value)
	proto.RegisterEnum("apipb.ContentListRequest_SortOrder", ContentListRequest_SortOrder_name, ContentListRequest_SortOrder_value)
}

展开阅读全文