func (g *codegen) generateMethods(files []*protogen.File) {
	for _, f := range files {
		gf := g.NewGeneratedFile(f.GeneratedFilenamePrefix+"_hashpb.pb.go", f.GoImportPath)
		gf.P("// Code generated by protoc-gen-go-hashpb. Do not edit.")
		gf.P("// protoc-gen-go-hashpb ", Version)
		gf.P("// Source: ", f.Desc.Path())
		gf.P()
		gf.P("package ", files[0].GoPackageName)
		gf.P()

		genFuncs := make(map[string]struct{})

		for _, msg := range f.Messages {
			g.genMethodForMsg(gf, genFuncs, msg)
		}
	}
}
// generateMethods generates helper methods (HashPB) for the top level messages defined in each file.
generateMethods generates helper methods (HashPB) for the top level messages defined in each file.
// generateMethods generates helper methods ( HashPB ) for the top level messages defined in each file .
func (g *codegen) generateMethods(files []*protogen.File) {
	for _, f := range files {
		gf := g.NewGeneratedFile(f.GeneratedFilenamePrefix+"_hashpb.pb.go", f.GoImportPath)
		gf.P("// Code generated by protoc-gen-go-hashpb. Do not edit.")
		gf.P("// protoc-gen-go-hashpb ", Version)
		gf.P("// Source: ", f.Desc.Path())
		gf.P()
		gf.P("package ", files[0].GoPackageName)
		gf.P()
		genFuncs := make(map[string]struct{})
		for _, msg := range f.Messages {
			g.genMethodForMsg(gf, genFuncs, msg)
		}
	}
}
func ( g * codegen ) generateMethods ( files [ ] * protogen . File ) { for _ , f := range files { gf := g . NewGeneratedFile ( f . GeneratedFilenamePrefix + " " , f . GoImportPath ) gf . P ( " " ) gf . P ( " " , Version ) gf . P ( " " , f . Desc . Path ( ) ) gf . P ( ) gf . P ( " " , files [ 0 ] . GoPackageName ) gf . P ( ) genFuncs := make ( map [ string ] struct { } ) for _ , msg := range f . Messages { g . genMethodForMsg ( gf , genFuncs , msg ) } } }
generateMethods generates helper methods (HashPB) for the top level messages defined in each file.
generateMethods generates helper methods ( HashPB ) for the top level messages defined in each file .