コード例 #1
0
ファイル: test.pb.go プロジェクト: andres-erbsen/protobuf
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_ReplyExtensions_Carrot)
	proto.RegisterExtension(E_ReplyExtensions_Donut)
	proto.RegisterExtension(E_Tag)
	proto.RegisterExtension(E_Donut)
}
コード例 #2
0
ファイル: tlsconfig.pb.go プロジェクト: Liamsi/coname
func init() {
	proto1.RegisterEnum("proto.TLSVersion", TLSVersion_name, TLSVersion_value)
	proto1.RegisterEnum("proto.ClientAuthType", ClientAuthType_name, ClientAuthType_value)
	proto1.RegisterEnum("proto.CipherSuite", CipherSuite_name, CipherSuite_value)
	proto1.RegisterEnum("proto.CurveID", CurveID_name, CurveID_value)
}
コード例 #3
0
ファイル: proto3.pb.go プロジェクト: andres-erbsen/protobuf
func init() {
	proto.RegisterEnum("proto3_proto.Message_Humour", Message_Humour_name, Message_Humour_value)
}
コード例 #4
0
func init() {
	proto.RegisterEnum("enumstringer.TheTestEnum", TheTestEnum_name, TheTestEnum_value)
}
コード例 #5
0
ファイル: tlsconfig.pb.go プロジェクト: postfix/coname
func init() {
	github_com_andres_erbsen_protobuf_proto.RegisterEnum("proto.TLSVersion", TLSVersion_name, TLSVersion_value)
	github_com_andres_erbsen_protobuf_proto.RegisterEnum("proto.ClientAuthType", ClientAuthType_name, ClientAuthType_value)
	github_com_andres_erbsen_protobuf_proto.RegisterEnum("proto.CipherSuite", CipherSuite_name, CipherSuite_value)
	github_com_andres_erbsen_protobuf_proto.RegisterEnum("proto.CurveID", CurveID_name, CurveID_value)
}
コード例 #6
0
func init() {
	proto.RegisterEnum("jsonpb.Widget_Color", Widget_Color_name, Widget_Color_value)
}