本文整理汇总了Golang中github.com/golang/protobuf/proto.RegisterType函数的典型用法代码示例。如果您正苦于以下问题:Golang RegisterType函数的具体用法?Golang RegisterType怎么用?Golang RegisterType使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RegisterType函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: init
func init() {
proto.RegisterType((*JobInfo)(nil), "pachyderm.pps.persist.JobInfo")
proto.RegisterType((*JobInfos)(nil), "pachyderm.pps.persist.JobInfos")
proto.RegisterType((*JobOutput)(nil), "pachyderm.pps.persist.JobOutput")
proto.RegisterType((*PipelineInfo)(nil), "pachyderm.pps.persist.PipelineInfo")
proto.RegisterType((*PipelineInfos)(nil), "pachyderm.pps.persist.PipelineInfos")
}
示例2: init
func init() {
proto.RegisterType((*NotLeader)(nil), "errorpb.NotLeader")
proto.RegisterType((*RegionNotFound)(nil), "errorpb.RegionNotFound")
proto.RegisterType((*KeyNotInRegion)(nil), "errorpb.KeyNotInRegion")
proto.RegisterType((*StaleEpoch)(nil), "errorpb.StaleEpoch")
proto.RegisterType((*Error)(nil), "errorpb.Error")
}
示例3: init
func init() {
proto.RegisterType((*Point)(nil), "routeguide.Point")
proto.RegisterType((*Rectangle)(nil), "routeguide.Rectangle")
proto.RegisterType((*Feature)(nil), "routeguide.Feature")
proto.RegisterType((*RouteNote)(nil), "routeguide.RouteNote")
proto.RegisterType((*RouteSummary)(nil), "routeguide.RouteSummary")
}
示例4: init
func init() {
proto.RegisterType((*SubMessage)(nil), "SubMessage")
proto.RegisterType((*Message)(nil), "Message")
proto.RegisterType((*Address)(nil), "Address")
proto.RegisterType((*User)(nil), "User")
proto.RegisterEnum("Enum", Enum_name, Enum_value)
}
示例5: init
func init() {
proto.RegisterType((*ColumnDefinition)(nil), "shim.ColumnDefinition")
proto.RegisterType((*Table)(nil), "shim.Table")
proto.RegisterType((*Column)(nil), "shim.Column")
proto.RegisterType((*Row)(nil), "shim.Row")
proto.RegisterEnum("shim.ColumnDefinition_Type", ColumnDefinition_Type_name, ColumnDefinition_Type_value)
}
示例6: init
func init() {
proto.RegisterType((*PrefixesRequest)(nil), "lorawan.PrefixesRequest")
proto.RegisterType((*PrefixesResponse)(nil), "lorawan.PrefixesResponse")
proto.RegisterType((*PrefixesResponse_PrefixMapping)(nil), "lorawan.PrefixesResponse.PrefixMapping")
proto.RegisterType((*DevAddrRequest)(nil), "lorawan.DevAddrRequest")
proto.RegisterType((*DevAddrResponse)(nil), "lorawan.DevAddrResponse")
}
示例7: init
func init() {
proto.RegisterType((*Blob)(nil), "contester.proto.Blob")
proto.RegisterType((*Blob_CompressionInfo)(nil), "contester.proto.Blob.CompressionInfo")
proto.RegisterType((*Module)(nil), "contester.proto.Module")
proto.RegisterType((*FileBlob)(nil), "contester.proto.FileBlob")
proto.RegisterEnum("contester.proto.Blob_CompressionInfo_CompressionType", Blob_CompressionInfo_CompressionType_name, Blob_CompressionInfo_CompressionType_value)
}
示例8: init
func init() {
proto.RegisterType((*CorpusRootsRequest)(nil), "kythe.proto.CorpusRootsRequest")
proto.RegisterType((*CorpusRootsReply)(nil), "kythe.proto.CorpusRootsReply")
proto.RegisterType((*CorpusRootsReply_Corpus)(nil), "kythe.proto.CorpusRootsReply.Corpus")
proto.RegisterType((*DirectoryRequest)(nil), "kythe.proto.DirectoryRequest")
proto.RegisterType((*DirectoryReply)(nil), "kythe.proto.DirectoryReply")
}
示例9: init
func init() {
proto.RegisterType((*Request)(nil), "profile.Request")
proto.RegisterType((*Result)(nil), "profile.Result")
proto.RegisterType((*Hotel)(nil), "profile.Hotel")
proto.RegisterType((*Address)(nil), "profile.Address")
proto.RegisterType((*Image)(nil), "profile.Image")
}
示例10: init
func init() {
proto.RegisterType((*Config)(nil), "gamedef.Config")
proto.RegisterType((*Prop)(nil), "gamedef.Prop")
proto.RegisterType((*SampleDefine)(nil), "gamedef.SampleDefine")
proto.RegisterType((*ExpDefine)(nil), "gamedef.ExpDefine")
proto.RegisterEnum("gamedef.ActorType", ActorType_name, ActorType_value)
}
示例11: init
func init() {
proto.RegisterType((*StatusRequest)(nil), "kythe.proto.StatusRequest")
proto.RegisterType((*StatusReply)(nil), "kythe.proto.StatusReply")
proto.RegisterType((*StatusReply_Origin)(nil), "kythe.proto.StatusReply.Origin")
proto.RegisterType((*StatusReply_Language)(nil), "kythe.proto.StatusReply.Language")
proto.RegisterEnum("kythe.proto.StatusReply_Language_Support", StatusReply_Language_Support_name, StatusReply_Language_Support_value)
}
示例12: init
func init() {
proto.RegisterType((*Request)(nil), "brig.transfer.Request")
proto.RegisterType((*StoreVersionResponse)(nil), "brig.transfer.StoreVersionResponse")
proto.RegisterType((*FetchResponse)(nil), "brig.transfer.FetchResponse")
proto.RegisterType((*Response)(nil), "brig.transfer.Response")
proto.RegisterEnum("brig.transfer.RequestType", RequestType_name, RequestType_value)
}
示例13: init
func init() {
proto.RegisterType((*Authentication)(nil), "google.api.Authentication")
proto.RegisterType((*AuthenticationRule)(nil), "google.api.AuthenticationRule")
proto.RegisterType((*AuthProvider)(nil), "google.api.AuthProvider")
proto.RegisterType((*OAuthRequirements)(nil), "google.api.OAuthRequirements")
proto.RegisterType((*AuthRequirement)(nil), "google.api.AuthRequirement")
}
示例14: init
func init() {
proto.RegisterType((*Matcher)(nil), "silencepb.Matcher")
proto.RegisterType((*Comment)(nil), "silencepb.Comment")
proto.RegisterType((*Silence)(nil), "silencepb.Silence")
proto.RegisterType((*MeshSilence)(nil), "silencepb.MeshSilence")
proto.RegisterEnum("silencepb.Matcher_Type", Matcher_Type_name, Matcher_Type_value)
}
示例15: init
func init() {
proto.RegisterType((*ContentManifestPayload)(nil), "ContentManifestPayload")
proto.RegisterType((*ContentManifestPayload_FileMapping)(nil), "ContentManifestPayload.FileMapping")
proto.RegisterType((*ContentManifestPayload_FileMapping_ChunkData)(nil), "ContentManifestPayload.FileMapping.ChunkData")
proto.RegisterType((*ContentManifestMetadata)(nil), "ContentManifestMetadata")
proto.RegisterType((*ContentManifestSignature)(nil), "ContentManifestSignature")
}